_ide_helper.php 758 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084
  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.82.0.
  7. *
  8. * This file should not be included in your code, only analyzed by your IDE!
  9. *
  10. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  11. * @see https://github.com/barryvdh/laravel-ide-helper
  12. */
  13. namespace Illuminate\Support\Facades {
  14. /**
  15. *
  16. *
  17. * @see \Illuminate\Contracts\Foundation\Application
  18. */
  19. class App {
  20. /**
  21. * Get the version number of the application.
  22. *
  23. * @return string
  24. * @static
  25. */
  26. public static function version()
  27. {
  28. /** @var \Illuminate\Foundation\Application $instance */
  29. return $instance->version();
  30. }
  31. /**
  32. * Run the given array of bootstrap classes.
  33. *
  34. * @param string[] $bootstrappers
  35. * @return void
  36. * @static
  37. */
  38. public static function bootstrapWith($bootstrappers)
  39. {
  40. /** @var \Illuminate\Foundation\Application $instance */
  41. $instance->bootstrapWith($bootstrappers);
  42. }
  43. /**
  44. * Register a callback to run after loading the environment.
  45. *
  46. * @param \Closure $callback
  47. * @return void
  48. * @static
  49. */
  50. public static function afterLoadingEnvironment($callback)
  51. {
  52. /** @var \Illuminate\Foundation\Application $instance */
  53. $instance->afterLoadingEnvironment($callback);
  54. }
  55. /**
  56. * Register a callback to run before a bootstrapper.
  57. *
  58. * @param string $bootstrapper
  59. * @param \Closure $callback
  60. * @return void
  61. * @static
  62. */
  63. public static function beforeBootstrapping($bootstrapper, $callback)
  64. {
  65. /** @var \Illuminate\Foundation\Application $instance */
  66. $instance->beforeBootstrapping($bootstrapper, $callback);
  67. }
  68. /**
  69. * Register a callback to run after a bootstrapper.
  70. *
  71. * @param string $bootstrapper
  72. * @param \Closure $callback
  73. * @return void
  74. * @static
  75. */
  76. public static function afterBootstrapping($bootstrapper, $callback)
  77. {
  78. /** @var \Illuminate\Foundation\Application $instance */
  79. $instance->afterBootstrapping($bootstrapper, $callback);
  80. }
  81. /**
  82. * Determine if the application has been bootstrapped before.
  83. *
  84. * @return bool
  85. * @static
  86. */
  87. public static function hasBeenBootstrapped()
  88. {
  89. /** @var \Illuminate\Foundation\Application $instance */
  90. return $instance->hasBeenBootstrapped();
  91. }
  92. /**
  93. * Set the base path for the application.
  94. *
  95. * @param string $basePath
  96. * @return \Illuminate\Foundation\Application
  97. * @static
  98. */
  99. public static function setBasePath($basePath)
  100. {
  101. /** @var \Illuminate\Foundation\Application $instance */
  102. return $instance->setBasePath($basePath);
  103. }
  104. /**
  105. * Get the path to the application "app" directory.
  106. *
  107. * @param string $path
  108. * @return string
  109. * @static
  110. */
  111. public static function path($path = '')
  112. {
  113. /** @var \Illuminate\Foundation\Application $instance */
  114. return $instance->path($path);
  115. }
  116. /**
  117. * Set the application directory.
  118. *
  119. * @param string $path
  120. * @return \Illuminate\Foundation\Application
  121. * @static
  122. */
  123. public static function useAppPath($path)
  124. {
  125. /** @var \Illuminate\Foundation\Application $instance */
  126. return $instance->useAppPath($path);
  127. }
  128. /**
  129. * Get the base path of the Laravel installation.
  130. *
  131. * @param string $path
  132. * @return string
  133. * @static
  134. */
  135. public static function basePath($path = '')
  136. {
  137. /** @var \Illuminate\Foundation\Application $instance */
  138. return $instance->basePath($path);
  139. }
  140. /**
  141. * Get the path to the bootstrap directory.
  142. *
  143. * @param string $path
  144. * @return string
  145. * @static
  146. */
  147. public static function bootstrapPath($path = '')
  148. {
  149. /** @var \Illuminate\Foundation\Application $instance */
  150. return $instance->bootstrapPath($path);
  151. }
  152. /**
  153. * Get the path to the application configuration files.
  154. *
  155. * @param string $path
  156. * @return string
  157. * @static
  158. */
  159. public static function configPath($path = '')
  160. {
  161. /** @var \Illuminate\Foundation\Application $instance */
  162. return $instance->configPath($path);
  163. }
  164. /**
  165. * Get the path to the database directory.
  166. *
  167. * @param string $path
  168. * @return string
  169. * @static
  170. */
  171. public static function databasePath($path = '')
  172. {
  173. /** @var \Illuminate\Foundation\Application $instance */
  174. return $instance->databasePath($path);
  175. }
  176. /**
  177. * Set the database directory.
  178. *
  179. * @param string $path
  180. * @return \Illuminate\Foundation\Application
  181. * @static
  182. */
  183. public static function useDatabasePath($path)
  184. {
  185. /** @var \Illuminate\Foundation\Application $instance */
  186. return $instance->useDatabasePath($path);
  187. }
  188. /**
  189. * Get the path to the language files.
  190. *
  191. * @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 \Illuminate\Container\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. * Determine if the current user is authenticated. If not, throw an exception.
  2169. *
  2170. * @return \App\Models\User
  2171. * @throws \Illuminate\Auth\AuthenticationException
  2172. * @static
  2173. */
  2174. public static function authenticate()
  2175. {
  2176. /** @var \Illuminate\Auth\SessionGuard $instance */
  2177. return $instance->authenticate();
  2178. }
  2179. /**
  2180. * Determine if the guard has a user instance.
  2181. *
  2182. * @return bool
  2183. * @static
  2184. */
  2185. public static function hasUser()
  2186. {
  2187. /** @var \Illuminate\Auth\SessionGuard $instance */
  2188. return $instance->hasUser();
  2189. }
  2190. /**
  2191. * Determine if the current user is authenticated.
  2192. *
  2193. * @return bool
  2194. * @static
  2195. */
  2196. public static function check()
  2197. {
  2198. /** @var \Illuminate\Auth\SessionGuard $instance */
  2199. return $instance->check();
  2200. }
  2201. /**
  2202. * Determine if the current user is a guest.
  2203. *
  2204. * @return bool
  2205. * @static
  2206. */
  2207. public static function guest()
  2208. {
  2209. /** @var \Illuminate\Auth\SessionGuard $instance */
  2210. return $instance->guest();
  2211. }
  2212. /**
  2213. * Get the user provider used by the guard.
  2214. *
  2215. * @return \Illuminate\Contracts\Auth\UserProvider
  2216. * @static
  2217. */
  2218. public static function getProvider()
  2219. {
  2220. /** @var \Illuminate\Auth\SessionGuard $instance */
  2221. return $instance->getProvider();
  2222. }
  2223. /**
  2224. * Set the user provider used by the guard.
  2225. *
  2226. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2227. * @return void
  2228. * @static
  2229. */
  2230. public static function setProvider($provider)
  2231. {
  2232. /** @var \Illuminate\Auth\SessionGuard $instance */
  2233. $instance->setProvider($provider);
  2234. }
  2235. /**
  2236. * Register a custom macro.
  2237. *
  2238. * @param string $name
  2239. * @param object|callable $macro
  2240. * @return void
  2241. * @static
  2242. */
  2243. public static function macro($name, $macro)
  2244. {
  2245. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2246. }
  2247. /**
  2248. * Mix another object into the class.
  2249. *
  2250. * @param object $mixin
  2251. * @param bool $replace
  2252. * @return void
  2253. * @throws \ReflectionException
  2254. * @static
  2255. */
  2256. public static function mixin($mixin, $replace = true)
  2257. {
  2258. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2259. }
  2260. /**
  2261. * Checks if macro is registered.
  2262. *
  2263. * @param string $name
  2264. * @return bool
  2265. * @static
  2266. */
  2267. public static function hasMacro($name)
  2268. {
  2269. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2270. }
  2271. /**
  2272. * Flush the existing macros.
  2273. *
  2274. * @return void
  2275. * @static
  2276. */
  2277. public static function flushMacros()
  2278. {
  2279. \Illuminate\Auth\SessionGuard::flushMacros();
  2280. }
  2281. }
  2282. /**
  2283. *
  2284. *
  2285. * @see \Illuminate\View\Compilers\BladeCompiler
  2286. */
  2287. class Blade {
  2288. /**
  2289. * Compile the view at the given path.
  2290. *
  2291. * @param string|null $path
  2292. * @return void
  2293. * @static
  2294. */
  2295. public static function compile($path = null)
  2296. {
  2297. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2298. $instance->compile($path);
  2299. }
  2300. /**
  2301. * Get the path currently being compiled.
  2302. *
  2303. * @return string
  2304. * @static
  2305. */
  2306. public static function getPath()
  2307. {
  2308. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2309. return $instance->getPath();
  2310. }
  2311. /**
  2312. * Set the path currently being compiled.
  2313. *
  2314. * @param string $path
  2315. * @return void
  2316. * @static
  2317. */
  2318. public static function setPath($path)
  2319. {
  2320. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2321. $instance->setPath($path);
  2322. }
  2323. /**
  2324. * Compile the given Blade template contents.
  2325. *
  2326. * @param string $value
  2327. * @return string
  2328. * @static
  2329. */
  2330. public static function compileString($value)
  2331. {
  2332. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2333. return $instance->compileString($value);
  2334. }
  2335. /**
  2336. * Evaluate and render a Blade string to HTML.
  2337. *
  2338. * @param string $string
  2339. * @param array $data
  2340. * @param bool $deleteCachedView
  2341. * @return string
  2342. * @static
  2343. */
  2344. public static function render($string, $data = [], $deleteCachedView = false)
  2345. {
  2346. return \Illuminate\View\Compilers\BladeCompiler::render($string, $data, $deleteCachedView);
  2347. }
  2348. /**
  2349. * Strip the parentheses from the given expression.
  2350. *
  2351. * @param string $expression
  2352. * @return string
  2353. * @static
  2354. */
  2355. public static function stripParentheses($expression)
  2356. {
  2357. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2358. return $instance->stripParentheses($expression);
  2359. }
  2360. /**
  2361. * Register a custom Blade compiler.
  2362. *
  2363. * @param callable $compiler
  2364. * @return void
  2365. * @static
  2366. */
  2367. public static function extend($compiler)
  2368. {
  2369. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2370. $instance->extend($compiler);
  2371. }
  2372. /**
  2373. * Get the extensions used by the compiler.
  2374. *
  2375. * @return array
  2376. * @static
  2377. */
  2378. public static function getExtensions()
  2379. {
  2380. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2381. return $instance->getExtensions();
  2382. }
  2383. /**
  2384. * Register an "if" statement directive.
  2385. *
  2386. * @param string $name
  2387. * @param callable $callback
  2388. * @return void
  2389. * @static
  2390. */
  2391. public static function if($name, $callback)
  2392. {
  2393. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2394. $instance->if($name, $callback);
  2395. }
  2396. /**
  2397. * Check the result of a condition.
  2398. *
  2399. * @param string $name
  2400. * @param array $parameters
  2401. * @return bool
  2402. * @static
  2403. */
  2404. public static function check($name, ...$parameters)
  2405. {
  2406. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2407. return $instance->check($name, ...$parameters);
  2408. }
  2409. /**
  2410. * Register a class-based component alias directive.
  2411. *
  2412. * @param string $class
  2413. * @param string|null $alias
  2414. * @param string $prefix
  2415. * @return void
  2416. * @static
  2417. */
  2418. public static function component($class, $alias = null, $prefix = '')
  2419. {
  2420. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2421. $instance->component($class, $alias, $prefix);
  2422. }
  2423. /**
  2424. * Register an array of class-based components.
  2425. *
  2426. * @param array $components
  2427. * @param string $prefix
  2428. * @return void
  2429. * @static
  2430. */
  2431. public static function components($components, $prefix = '')
  2432. {
  2433. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2434. $instance->components($components, $prefix);
  2435. }
  2436. /**
  2437. * Get the registered class component aliases.
  2438. *
  2439. * @return array
  2440. * @static
  2441. */
  2442. public static function getClassComponentAliases()
  2443. {
  2444. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2445. return $instance->getClassComponentAliases();
  2446. }
  2447. /**
  2448. * Register a class-based component namespace.
  2449. *
  2450. * @param string $namespace
  2451. * @param string $prefix
  2452. * @return void
  2453. * @static
  2454. */
  2455. public static function componentNamespace($namespace, $prefix)
  2456. {
  2457. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2458. $instance->componentNamespace($namespace, $prefix);
  2459. }
  2460. /**
  2461. * Get the registered class component namespaces.
  2462. *
  2463. * @return array
  2464. * @static
  2465. */
  2466. public static function getClassComponentNamespaces()
  2467. {
  2468. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2469. return $instance->getClassComponentNamespaces();
  2470. }
  2471. /**
  2472. * Register a component alias directive.
  2473. *
  2474. * @param string $path
  2475. * @param string|null $alias
  2476. * @return void
  2477. * @static
  2478. */
  2479. public static function aliasComponent($path, $alias = null)
  2480. {
  2481. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2482. $instance->aliasComponent($path, $alias);
  2483. }
  2484. /**
  2485. * Register an include alias directive.
  2486. *
  2487. * @param string $path
  2488. * @param string|null $alias
  2489. * @return void
  2490. * @static
  2491. */
  2492. public static function include($path, $alias = null)
  2493. {
  2494. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2495. $instance->include($path, $alias);
  2496. }
  2497. /**
  2498. * Register an include alias directive.
  2499. *
  2500. * @param string $path
  2501. * @param string|null $alias
  2502. * @return void
  2503. * @static
  2504. */
  2505. public static function aliasInclude($path, $alias = null)
  2506. {
  2507. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2508. $instance->aliasInclude($path, $alias);
  2509. }
  2510. /**
  2511. * Register a handler for custom directives.
  2512. *
  2513. * @param string $name
  2514. * @param callable $handler
  2515. * @return void
  2516. * @throws \InvalidArgumentException
  2517. * @static
  2518. */
  2519. public static function directive($name, $handler)
  2520. {
  2521. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2522. $instance->directive($name, $handler);
  2523. }
  2524. /**
  2525. * Get the list of custom directives.
  2526. *
  2527. * @return array
  2528. * @static
  2529. */
  2530. public static function getCustomDirectives()
  2531. {
  2532. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2533. return $instance->getCustomDirectives();
  2534. }
  2535. /**
  2536. * Register a new precompiler.
  2537. *
  2538. * @param callable $precompiler
  2539. * @return void
  2540. * @static
  2541. */
  2542. public static function precompiler($precompiler)
  2543. {
  2544. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2545. $instance->precompiler($precompiler);
  2546. }
  2547. /**
  2548. * Set the echo format to be used by the compiler.
  2549. *
  2550. * @param string $format
  2551. * @return void
  2552. * @static
  2553. */
  2554. public static function setEchoFormat($format)
  2555. {
  2556. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2557. $instance->setEchoFormat($format);
  2558. }
  2559. /**
  2560. * Set the "echo" format to double encode entities.
  2561. *
  2562. * @return void
  2563. * @static
  2564. */
  2565. public static function withDoubleEncoding()
  2566. {
  2567. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2568. $instance->withDoubleEncoding();
  2569. }
  2570. /**
  2571. * Set the "echo" format to not double encode entities.
  2572. *
  2573. * @return void
  2574. * @static
  2575. */
  2576. public static function withoutDoubleEncoding()
  2577. {
  2578. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2579. $instance->withoutDoubleEncoding();
  2580. }
  2581. /**
  2582. * Indicate that component tags should not be compiled.
  2583. *
  2584. * @return void
  2585. * @static
  2586. */
  2587. public static function withoutComponentTags()
  2588. {
  2589. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2590. $instance->withoutComponentTags();
  2591. }
  2592. /**
  2593. * Get the path to the compiled version of a view.
  2594. *
  2595. * @param string $path
  2596. * @return string
  2597. * @static
  2598. */
  2599. public static function getCompiledPath($path)
  2600. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2601. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2602. return $instance->getCompiledPath($path);
  2603. }
  2604. /**
  2605. * Determine if the view at the given path is expired.
  2606. *
  2607. * @param string $path
  2608. * @return bool
  2609. * @static
  2610. */
  2611. public static function isExpired($path)
  2612. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2613. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2614. return $instance->isExpired($path);
  2615. }
  2616. /**
  2617. * Get a new component hash for a component name.
  2618. *
  2619. * @param string $component
  2620. * @return string
  2621. * @static
  2622. */
  2623. public static function newComponentHash($component)
  2624. {
  2625. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2626. }
  2627. /**
  2628. * Compile a class component opening.
  2629. *
  2630. * @param string $component
  2631. * @param string $alias
  2632. * @param string $data
  2633. * @param string $hash
  2634. * @return string
  2635. * @static
  2636. */
  2637. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2638. {
  2639. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2640. }
  2641. /**
  2642. * Compile the end-component statements into valid PHP.
  2643. *
  2644. * @return string
  2645. * @static
  2646. */
  2647. public static function compileEndComponentClass()
  2648. {
  2649. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2650. return $instance->compileEndComponentClass();
  2651. }
  2652. /**
  2653. * Sanitize the given component attribute value.
  2654. *
  2655. * @param mixed $value
  2656. * @return mixed
  2657. * @static
  2658. */
  2659. public static function sanitizeComponentAttribute($value)
  2660. {
  2661. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2662. }
  2663. /**
  2664. * Compile an end-once block into valid PHP.
  2665. *
  2666. * @return string
  2667. * @static
  2668. */
  2669. public static function compileEndOnce()
  2670. {
  2671. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2672. return $instance->compileEndOnce();
  2673. }
  2674. /**
  2675. * Add a handler to be executed before echoing a given class.
  2676. *
  2677. * @param string|callable $class
  2678. * @param callable|null $handler
  2679. * @return void
  2680. * @static
  2681. */
  2682. public static function stringable($class, $handler = null)
  2683. {
  2684. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2685. $instance->stringable($class, $handler);
  2686. }
  2687. /**
  2688. * Compile Blade echos into valid PHP.
  2689. *
  2690. * @param string $value
  2691. * @return string
  2692. * @static
  2693. */
  2694. public static function compileEchos($value)
  2695. {
  2696. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2697. return $instance->compileEchos($value);
  2698. }
  2699. /**
  2700. * Apply the echo handler for the value if it exists.
  2701. *
  2702. * @param string $value
  2703. * @return string
  2704. * @static
  2705. */
  2706. public static function applyEchoHandler($value)
  2707. {
  2708. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2709. return $instance->applyEchoHandler($value);
  2710. }
  2711. }
  2712. /**
  2713. *
  2714. *
  2715. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2716. * @method static mixed auth(\Illuminate\Http\Request $request)
  2717. * @see \Illuminate\Contracts\Broadcasting\Factory
  2718. */
  2719. class Broadcast {
  2720. /**
  2721. * Register the routes for handling broadcast authentication and sockets.
  2722. *
  2723. * @param array|null $attributes
  2724. * @return void
  2725. * @static
  2726. */
  2727. public static function routes($attributes = null)
  2728. {
  2729. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2730. $instance->routes($attributes);
  2731. }
  2732. /**
  2733. * Get the socket ID for the given request.
  2734. *
  2735. * @param \Illuminate\Http\Request|null $request
  2736. * @return string|null
  2737. * @static
  2738. */
  2739. public static function socket($request = null)
  2740. {
  2741. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2742. return $instance->socket($request);
  2743. }
  2744. /**
  2745. * Begin broadcasting an event.
  2746. *
  2747. * @param mixed|null $event
  2748. * @return \Illuminate\Broadcasting\PendingBroadcast
  2749. * @static
  2750. */
  2751. public static function event($event = null)
  2752. {
  2753. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2754. return $instance->event($event);
  2755. }
  2756. /**
  2757. * Queue the given event for broadcast.
  2758. *
  2759. * @param mixed $event
  2760. * @return void
  2761. * @static
  2762. */
  2763. public static function queue($event)
  2764. {
  2765. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2766. $instance->queue($event);
  2767. }
  2768. /**
  2769. * Get a driver instance.
  2770. *
  2771. * @param string|null $driver
  2772. * @return mixed
  2773. * @static
  2774. */
  2775. public static function connection($driver = null)
  2776. {
  2777. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2778. return $instance->connection($driver);
  2779. }
  2780. /**
  2781. * Get a driver instance.
  2782. *
  2783. * @param string|null $name
  2784. * @return mixed
  2785. * @static
  2786. */
  2787. public static function driver($name = null)
  2788. {
  2789. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2790. return $instance->driver($name);
  2791. }
  2792. /**
  2793. * Get the default driver name.
  2794. *
  2795. * @return string
  2796. * @static
  2797. */
  2798. public static function getDefaultDriver()
  2799. {
  2800. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2801. return $instance->getDefaultDriver();
  2802. }
  2803. /**
  2804. * Set the default driver name.
  2805. *
  2806. * @param string $name
  2807. * @return void
  2808. * @static
  2809. */
  2810. public static function setDefaultDriver($name)
  2811. {
  2812. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2813. $instance->setDefaultDriver($name);
  2814. }
  2815. /**
  2816. * Disconnect the given disk and remove from local cache.
  2817. *
  2818. * @param string|null $name
  2819. * @return void
  2820. * @static
  2821. */
  2822. public static function purge($name = null)
  2823. {
  2824. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2825. $instance->purge($name);
  2826. }
  2827. /**
  2828. * Register a custom driver creator Closure.
  2829. *
  2830. * @param string $driver
  2831. * @param \Closure $callback
  2832. * @return \Illuminate\Broadcasting\BroadcastManager
  2833. * @static
  2834. */
  2835. public static function extend($driver, $callback)
  2836. {
  2837. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2838. return $instance->extend($driver, $callback);
  2839. }
  2840. /**
  2841. * Get the application instance used by the manager.
  2842. *
  2843. * @return \Illuminate\Contracts\Foundation\Application
  2844. * @static
  2845. */
  2846. public static function getApplication()
  2847. {
  2848. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2849. return $instance->getApplication();
  2850. }
  2851. /**
  2852. * Set the application instance used by the manager.
  2853. *
  2854. * @param \Illuminate\Contracts\Foundation\Application $app
  2855. * @return \Illuminate\Broadcasting\BroadcastManager
  2856. * @static
  2857. */
  2858. public static function setApplication($app)
  2859. {
  2860. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2861. return $instance->setApplication($app);
  2862. }
  2863. /**
  2864. * Forget all of the resolved driver instances.
  2865. *
  2866. * @return \Illuminate\Broadcasting\BroadcastManager
  2867. * @static
  2868. */
  2869. public static function forgetDrivers()
  2870. {
  2871. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2872. return $instance->forgetDrivers();
  2873. }
  2874. }
  2875. /**
  2876. *
  2877. *
  2878. * @see \Illuminate\Contracts\Bus\Dispatcher
  2879. */
  2880. class Bus {
  2881. /**
  2882. * Dispatch a command to its appropriate handler.
  2883. *
  2884. * @param mixed $command
  2885. * @return mixed
  2886. * @static
  2887. */
  2888. public static function dispatch($command)
  2889. {
  2890. /** @var \Illuminate\Bus\Dispatcher $instance */
  2891. return $instance->dispatch($command);
  2892. }
  2893. /**
  2894. * Dispatch a command to its appropriate handler in the current process.
  2895. *
  2896. * Queueable jobs will be dispatched to the "sync" queue.
  2897. *
  2898. * @param mixed $command
  2899. * @param mixed $handler
  2900. * @return mixed
  2901. * @static
  2902. */
  2903. public static function dispatchSync($command, $handler = null)
  2904. {
  2905. /** @var \Illuminate\Bus\Dispatcher $instance */
  2906. return $instance->dispatchSync($command, $handler);
  2907. }
  2908. /**
  2909. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  2910. *
  2911. * @param mixed $command
  2912. * @param mixed $handler
  2913. * @return mixed
  2914. * @static
  2915. */
  2916. public static function dispatchNow($command, $handler = null)
  2917. {
  2918. /** @var \Illuminate\Bus\Dispatcher $instance */
  2919. return $instance->dispatchNow($command, $handler);
  2920. }
  2921. /**
  2922. * Attempt to find the batch with the given ID.
  2923. *
  2924. * @param string $batchId
  2925. * @return \Illuminate\Bus\Batch|null
  2926. * @static
  2927. */
  2928. public static function findBatch($batchId)
  2929. {
  2930. /** @var \Illuminate\Bus\Dispatcher $instance */
  2931. return $instance->findBatch($batchId);
  2932. }
  2933. /**
  2934. * Create a new batch of queueable jobs.
  2935. *
  2936. * @param \Illuminate\Support\Collection|array|mixed $jobs
  2937. * @return \Illuminate\Bus\PendingBatch
  2938. * @static
  2939. */
  2940. public static function batch($jobs)
  2941. {
  2942. /** @var \Illuminate\Bus\Dispatcher $instance */
  2943. return $instance->batch($jobs);
  2944. }
  2945. /**
  2946. * Create a new chain of queueable jobs.
  2947. *
  2948. * @param \Illuminate\Support\Collection|array $jobs
  2949. * @return \Illuminate\Foundation\Bus\PendingChain
  2950. * @static
  2951. */
  2952. public static function chain($jobs)
  2953. {
  2954. /** @var \Illuminate\Bus\Dispatcher $instance */
  2955. return $instance->chain($jobs);
  2956. }
  2957. /**
  2958. * Determine if the given command has a handler.
  2959. *
  2960. * @param mixed $command
  2961. * @return bool
  2962. * @static
  2963. */
  2964. public static function hasCommandHandler($command)
  2965. {
  2966. /** @var \Illuminate\Bus\Dispatcher $instance */
  2967. return $instance->hasCommandHandler($command);
  2968. }
  2969. /**
  2970. * Retrieve the handler for a command.
  2971. *
  2972. * @param mixed $command
  2973. * @return bool|mixed
  2974. * @static
  2975. */
  2976. public static function getCommandHandler($command)
  2977. {
  2978. /** @var \Illuminate\Bus\Dispatcher $instance */
  2979. return $instance->getCommandHandler($command);
  2980. }
  2981. /**
  2982. * Dispatch a command to its appropriate handler behind a queue.
  2983. *
  2984. * @param mixed $command
  2985. * @return mixed
  2986. * @throws \RuntimeException
  2987. * @static
  2988. */
  2989. public static function dispatchToQueue($command)
  2990. {
  2991. /** @var \Illuminate\Bus\Dispatcher $instance */
  2992. return $instance->dispatchToQueue($command);
  2993. }
  2994. /**
  2995. * Dispatch a command to its appropriate handler after the current process.
  2996. *
  2997. * @param mixed $command
  2998. * @param mixed $handler
  2999. * @return void
  3000. * @static
  3001. */
  3002. public static function dispatchAfterResponse($command, $handler = null)
  3003. {
  3004. /** @var \Illuminate\Bus\Dispatcher $instance */
  3005. $instance->dispatchAfterResponse($command, $handler);
  3006. }
  3007. /**
  3008. * Set the pipes through which commands should be piped before dispatching.
  3009. *
  3010. * @param array $pipes
  3011. * @return \Illuminate\Bus\Dispatcher
  3012. * @static
  3013. */
  3014. public static function pipeThrough($pipes)
  3015. {
  3016. /** @var \Illuminate\Bus\Dispatcher $instance */
  3017. return $instance->pipeThrough($pipes);
  3018. }
  3019. /**
  3020. * Map a command to a handler.
  3021. *
  3022. * @param array $map
  3023. * @return \Illuminate\Bus\Dispatcher
  3024. * @static
  3025. */
  3026. public static function map($map)
  3027. {
  3028. /** @var \Illuminate\Bus\Dispatcher $instance */
  3029. return $instance->map($map);
  3030. }
  3031. /**
  3032. * Assert if a job was dispatched based on a truth-test callback.
  3033. *
  3034. * @param string|\Closure $command
  3035. * @param callable|int|null $callback
  3036. * @return void
  3037. * @static
  3038. */
  3039. public static function assertDispatched($command, $callback = null)
  3040. {
  3041. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3042. $instance->assertDispatched($command, $callback);
  3043. }
  3044. /**
  3045. * Assert if a job was pushed a number of times.
  3046. *
  3047. * @param string $command
  3048. * @param int $times
  3049. * @return void
  3050. * @static
  3051. */
  3052. public static function assertDispatchedTimes($command, $times = 1)
  3053. {
  3054. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3055. $instance->assertDispatchedTimes($command, $times);
  3056. }
  3057. /**
  3058. * Determine if a job was dispatched based on a truth-test callback.
  3059. *
  3060. * @param string|\Closure $command
  3061. * @param callable|null $callback
  3062. * @return void
  3063. * @static
  3064. */
  3065. public static function assertNotDispatched($command, $callback = null)
  3066. {
  3067. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3068. $instance->assertNotDispatched($command, $callback);
  3069. }
  3070. /**
  3071. * Assert that no jobs were dispatched.
  3072. *
  3073. * @return void
  3074. * @static
  3075. */
  3076. public static function assertNothingDispatched()
  3077. {
  3078. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3079. $instance->assertNothingDispatched();
  3080. }
  3081. /**
  3082. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3083. *
  3084. * @param string|\Closure $command
  3085. * @param callable|int|null $callback
  3086. * @return void
  3087. * @static
  3088. */
  3089. public static function assertDispatchedSync($command, $callback = null)
  3090. {
  3091. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3092. $instance->assertDispatchedSync($command, $callback);
  3093. }
  3094. /**
  3095. * Assert if a job was pushed synchronously a number of times.
  3096. *
  3097. * @param string $command
  3098. * @param int $times
  3099. * @return void
  3100. * @static
  3101. */
  3102. public static function assertDispatchedSyncTimes($command, $times = 1)
  3103. {
  3104. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3105. $instance->assertDispatchedSyncTimes($command, $times);
  3106. }
  3107. /**
  3108. * Determine if a job was dispatched based on a truth-test callback.
  3109. *
  3110. * @param string|\Closure $command
  3111. * @param callable|null $callback
  3112. * @return void
  3113. * @static
  3114. */
  3115. public static function assertNotDispatchedSync($command, $callback = null)
  3116. {
  3117. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3118. $instance->assertNotDispatchedSync($command, $callback);
  3119. }
  3120. /**
  3121. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3122. *
  3123. * @param string|\Closure $command
  3124. * @param callable|int|null $callback
  3125. * @return void
  3126. * @static
  3127. */
  3128. public static function assertDispatchedAfterResponse($command, $callback = null)
  3129. {
  3130. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3131. $instance->assertDispatchedAfterResponse($command, $callback);
  3132. }
  3133. /**
  3134. * Assert if a job was pushed after the response was sent a number of times.
  3135. *
  3136. * @param string $command
  3137. * @param int $times
  3138. * @return void
  3139. * @static
  3140. */
  3141. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3142. {
  3143. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3144. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3145. }
  3146. /**
  3147. * Determine if a job was dispatched based on a truth-test callback.
  3148. *
  3149. * @param string|\Closure $command
  3150. * @param callable|null $callback
  3151. * @return void
  3152. * @static
  3153. */
  3154. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3155. {
  3156. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3157. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3158. }
  3159. /**
  3160. * Assert if a chain of jobs was dispatched.
  3161. *
  3162. * @param array $expectedChain
  3163. * @return void
  3164. * @static
  3165. */
  3166. public static function assertChained($expectedChain)
  3167. {
  3168. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3169. $instance->assertChained($expectedChain);
  3170. }
  3171. /**
  3172. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3173. *
  3174. * @param string|\Closure $command
  3175. * @param callable|null $callback
  3176. * @return void
  3177. * @static
  3178. */
  3179. public static function assertDispatchedWithoutChain($command, $callback = null)
  3180. {
  3181. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3182. $instance->assertDispatchedWithoutChain($command, $callback);
  3183. }
  3184. /**
  3185. * Assert if a batch was dispatched based on a truth-test callback.
  3186. *
  3187. * @param callable $callback
  3188. * @return void
  3189. * @static
  3190. */
  3191. public static function assertBatched($callback)
  3192. {
  3193. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3194. $instance->assertBatched($callback);
  3195. }
  3196. /**
  3197. * Assert the number of batches that have been dispatched.
  3198. *
  3199. * @param int $count
  3200. * @return void
  3201. * @static
  3202. */
  3203. public static function assertBatchCount($count)
  3204. {
  3205. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3206. $instance->assertBatchCount($count);
  3207. }
  3208. /**
  3209. * Get all of the jobs matching a truth-test callback.
  3210. *
  3211. * @param string $command
  3212. * @param callable|null $callback
  3213. * @return \Illuminate\Support\Collection
  3214. * @static
  3215. */
  3216. public static function dispatched($command, $callback = null)
  3217. {
  3218. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3219. return $instance->dispatched($command, $callback);
  3220. }
  3221. /**
  3222. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3223. *
  3224. * @param string $command
  3225. * @param callable|null $callback
  3226. * @return \Illuminate\Support\Collection
  3227. * @static
  3228. */
  3229. public static function dispatchedSync($command, $callback = null)
  3230. {
  3231. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3232. return $instance->dispatchedSync($command, $callback);
  3233. }
  3234. /**
  3235. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3236. *
  3237. * @param string $command
  3238. * @param callable|null $callback
  3239. * @return \Illuminate\Support\Collection
  3240. * @static
  3241. */
  3242. public static function dispatchedAfterResponse($command, $callback = null)
  3243. {
  3244. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3245. return $instance->dispatchedAfterResponse($command, $callback);
  3246. }
  3247. /**
  3248. * Get all of the pending batches matching a truth-test callback.
  3249. *
  3250. * @param callable $callback
  3251. * @return \Illuminate\Support\Collection
  3252. * @static
  3253. */
  3254. public static function batched($callback)
  3255. {
  3256. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3257. return $instance->batched($callback);
  3258. }
  3259. /**
  3260. * Determine if there are any stored commands for a given class.
  3261. *
  3262. * @param string $command
  3263. * @return bool
  3264. * @static
  3265. */
  3266. public static function hasDispatched($command)
  3267. {
  3268. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3269. return $instance->hasDispatched($command);
  3270. }
  3271. /**
  3272. * Determine if there are any stored commands for a given class.
  3273. *
  3274. * @param string $command
  3275. * @return bool
  3276. * @static
  3277. */
  3278. public static function hasDispatchedSync($command)
  3279. {
  3280. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3281. return $instance->hasDispatchedSync($command);
  3282. }
  3283. /**
  3284. * Determine if there are any stored commands for a given class.
  3285. *
  3286. * @param string $command
  3287. * @return bool
  3288. * @static
  3289. */
  3290. public static function hasDispatchedAfterResponse($command)
  3291. {
  3292. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3293. return $instance->hasDispatchedAfterResponse($command);
  3294. }
  3295. /**
  3296. * Record the fake pending batch dispatch.
  3297. *
  3298. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  3299. * @return \Illuminate\Bus\Batch
  3300. * @static
  3301. */
  3302. public static function recordPendingBatch($pendingBatch)
  3303. {
  3304. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3305. return $instance->recordPendingBatch($pendingBatch);
  3306. }
  3307. }
  3308. /**
  3309. *
  3310. *
  3311. * @see \Illuminate\Cache\CacheManager
  3312. * @see \Illuminate\Cache\Repository
  3313. */
  3314. class Cache {
  3315. /**
  3316. * Get a cache store instance by name, wrapped in a repository.
  3317. *
  3318. * @param string|null $name
  3319. * @return \Illuminate\Contracts\Cache\Repository
  3320. * @static
  3321. */
  3322. public static function store($name = null)
  3323. {
  3324. /** @var \Illuminate\Cache\CacheManager $instance */
  3325. return $instance->store($name);
  3326. }
  3327. /**
  3328. * Get a cache driver instance.
  3329. *
  3330. * @param string|null $driver
  3331. * @return \Illuminate\Contracts\Cache\Repository
  3332. * @static
  3333. */
  3334. public static function driver($driver = null)
  3335. {
  3336. /** @var \Illuminate\Cache\CacheManager $instance */
  3337. return $instance->driver($driver);
  3338. }
  3339. /**
  3340. * Create a new cache repository with the given implementation.
  3341. *
  3342. * @param \Illuminate\Contracts\Cache\Store $store
  3343. * @return \Illuminate\Cache\Repository
  3344. * @static
  3345. */
  3346. public static function repository($store)
  3347. {
  3348. /** @var \Illuminate\Cache\CacheManager $instance */
  3349. return $instance->repository($store);
  3350. }
  3351. /**
  3352. * Re-set the event dispatcher on all resolved cache repositories.
  3353. *
  3354. * @return void
  3355. * @static
  3356. */
  3357. public static function refreshEventDispatcher()
  3358. {
  3359. /** @var \Illuminate\Cache\CacheManager $instance */
  3360. $instance->refreshEventDispatcher();
  3361. }
  3362. /**
  3363. * Get the default cache driver name.
  3364. *
  3365. * @return string
  3366. * @static
  3367. */
  3368. public static function getDefaultDriver()
  3369. {
  3370. /** @var \Illuminate\Cache\CacheManager $instance */
  3371. return $instance->getDefaultDriver();
  3372. }
  3373. /**
  3374. * Set the default cache driver name.
  3375. *
  3376. * @param string $name
  3377. * @return void
  3378. * @static
  3379. */
  3380. public static function setDefaultDriver($name)
  3381. {
  3382. /** @var \Illuminate\Cache\CacheManager $instance */
  3383. $instance->setDefaultDriver($name);
  3384. }
  3385. /**
  3386. * Unset the given driver instances.
  3387. *
  3388. * @param array|string|null $name
  3389. * @return \Illuminate\Cache\CacheManager
  3390. * @static
  3391. */
  3392. public static function forgetDriver($name = null)
  3393. {
  3394. /** @var \Illuminate\Cache\CacheManager $instance */
  3395. return $instance->forgetDriver($name);
  3396. }
  3397. /**
  3398. * Disconnect the given driver and remove from local cache.
  3399. *
  3400. * @param string|null $name
  3401. * @return void
  3402. * @static
  3403. */
  3404. public static function purge($name = null)
  3405. {
  3406. /** @var \Illuminate\Cache\CacheManager $instance */
  3407. $instance->purge($name);
  3408. }
  3409. /**
  3410. * Register a custom driver creator Closure.
  3411. *
  3412. * @param string $driver
  3413. * @param \Closure $callback
  3414. * @return \Illuminate\Cache\CacheManager
  3415. * @static
  3416. */
  3417. public static function extend($driver, $callback)
  3418. {
  3419. /** @var \Illuminate\Cache\CacheManager $instance */
  3420. return $instance->extend($driver, $callback);
  3421. }
  3422. /**
  3423. * Determine if an item exists in the cache.
  3424. *
  3425. * @param string $key
  3426. * @return bool
  3427. * @static
  3428. */
  3429. public static function has($key)
  3430. {
  3431. /** @var \Illuminate\Cache\Repository $instance */
  3432. return $instance->has($key);
  3433. }
  3434. /**
  3435. * Determine if an item doesn't exist in the cache.
  3436. *
  3437. * @param string $key
  3438. * @return bool
  3439. * @static
  3440. */
  3441. public static function missing($key)
  3442. {
  3443. /** @var \Illuminate\Cache\Repository $instance */
  3444. return $instance->missing($key);
  3445. }
  3446. /**
  3447. * Retrieve an item from the cache by key.
  3448. *
  3449. * @param string $key
  3450. * @param mixed $default
  3451. * @return mixed
  3452. * @static
  3453. */
  3454. public static function get($key, $default = null)
  3455. {
  3456. /** @var \Illuminate\Cache\Repository $instance */
  3457. return $instance->get($key, $default);
  3458. }
  3459. /**
  3460. * Retrieve multiple items from the cache by key.
  3461. *
  3462. * Items not found in the cache will have a null value.
  3463. *
  3464. * @param array $keys
  3465. * @return array
  3466. * @static
  3467. */
  3468. public static function many($keys)
  3469. {
  3470. /** @var \Illuminate\Cache\Repository $instance */
  3471. return $instance->many($keys);
  3472. }
  3473. /**
  3474. * Obtains multiple cache items by their unique keys.
  3475. *
  3476. * @return \Illuminate\Cache\iterable
  3477. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  3478. * @param mixed $default Default value to return for keys that do not exist.
  3479. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  3480. * @throws \Psr\SimpleCache\InvalidArgumentException
  3481. * MUST be thrown if $keys is neither an array nor a Traversable,
  3482. * or if any of the $keys are not a legal value.
  3483. * @static
  3484. */
  3485. public static function getMultiple($keys, $default = null)
  3486. {
  3487. /** @var \Illuminate\Cache\Repository $instance */
  3488. return $instance->getMultiple($keys, $default);
  3489. }
  3490. /**
  3491. * Retrieve an item from the cache and delete it.
  3492. *
  3493. * @param string $key
  3494. * @param mixed $default
  3495. * @return mixed
  3496. * @static
  3497. */
  3498. public static function pull($key, $default = null)
  3499. {
  3500. /** @var \Illuminate\Cache\Repository $instance */
  3501. return $instance->pull($key, $default);
  3502. }
  3503. /**
  3504. * Store an item in the cache.
  3505. *
  3506. * @param string $key
  3507. * @param mixed $value
  3508. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3509. * @return bool
  3510. * @static
  3511. */
  3512. public static function put($key, $value, $ttl = null)
  3513. {
  3514. /** @var \Illuminate\Cache\Repository $instance */
  3515. return $instance->put($key, $value, $ttl);
  3516. }
  3517. /**
  3518. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3519. *
  3520. * @return bool
  3521. * @param string $key The key of the item to store.
  3522. * @param mixed $value The value of the item to store, must be serializable.
  3523. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3524. * the driver supports TTL then the library may set a default value
  3525. * for it or let the driver take care of that.
  3526. * @return bool True on success and false on failure.
  3527. * @throws \Psr\SimpleCache\InvalidArgumentException
  3528. * MUST be thrown if the $key string is not a legal value.
  3529. * @static
  3530. */
  3531. public static function set($key, $value, $ttl = null)
  3532. {
  3533. /** @var \Illuminate\Cache\Repository $instance */
  3534. return $instance->set($key, $value, $ttl);
  3535. }
  3536. /**
  3537. * Store multiple items in the cache for a given number of seconds.
  3538. *
  3539. * @param array $values
  3540. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3541. * @return bool
  3542. * @static
  3543. */
  3544. public static function putMany($values, $ttl = null)
  3545. {
  3546. /** @var \Illuminate\Cache\Repository $instance */
  3547. return $instance->putMany($values, $ttl);
  3548. }
  3549. /**
  3550. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3551. *
  3552. * @return bool
  3553. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  3554. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3555. * the driver supports TTL then the library may set a default value
  3556. * for it or let the driver take care of that.
  3557. * @return bool True on success and false on failure.
  3558. * @throws \Psr\SimpleCache\InvalidArgumentException
  3559. * MUST be thrown if $values is neither an array nor a Traversable,
  3560. * or if any of the $values are not a legal value.
  3561. * @static
  3562. */
  3563. public static function setMultiple($values, $ttl = null)
  3564. {
  3565. /** @var \Illuminate\Cache\Repository $instance */
  3566. return $instance->setMultiple($values, $ttl);
  3567. }
  3568. /**
  3569. * Store an item in the cache if the key does not exist.
  3570. *
  3571. * @param string $key
  3572. * @param mixed $value
  3573. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3574. * @return bool
  3575. * @static
  3576. */
  3577. public static function add($key, $value, $ttl = null)
  3578. {
  3579. /** @var \Illuminate\Cache\Repository $instance */
  3580. return $instance->add($key, $value, $ttl);
  3581. }
  3582. /**
  3583. * Increment the value of an item in the cache.
  3584. *
  3585. * @param string $key
  3586. * @param mixed $value
  3587. * @return int|bool
  3588. * @static
  3589. */
  3590. public static function increment($key, $value = 1)
  3591. {
  3592. /** @var \Illuminate\Cache\Repository $instance */
  3593. return $instance->increment($key, $value);
  3594. }
  3595. /**
  3596. * Decrement the value of an item in the cache.
  3597. *
  3598. * @param string $key
  3599. * @param mixed $value
  3600. * @return int|bool
  3601. * @static
  3602. */
  3603. public static function decrement($key, $value = 1)
  3604. {
  3605. /** @var \Illuminate\Cache\Repository $instance */
  3606. return $instance->decrement($key, $value);
  3607. }
  3608. /**
  3609. * Store an item in the cache indefinitely.
  3610. *
  3611. * @param string $key
  3612. * @param mixed $value
  3613. * @return bool
  3614. * @static
  3615. */
  3616. public static function forever($key, $value)
  3617. {
  3618. /** @var \Illuminate\Cache\Repository $instance */
  3619. return $instance->forever($key, $value);
  3620. }
  3621. /**
  3622. * Get an item from the cache, or execute the given Closure and store the result.
  3623. *
  3624. * @param string $key
  3625. * @param \Closure|\DateTimeInterface|\DateInterval|int|null $ttl
  3626. * @param \Closure $callback
  3627. * @return mixed
  3628. * @static
  3629. */
  3630. public static function remember($key, $ttl, $callback)
  3631. {
  3632. /** @var \Illuminate\Cache\Repository $instance */
  3633. return $instance->remember($key, $ttl, $callback);
  3634. }
  3635. /**
  3636. * Get an item from the cache, or execute the given Closure and store the result forever.
  3637. *
  3638. * @param string $key
  3639. * @param \Closure $callback
  3640. * @return mixed
  3641. * @static
  3642. */
  3643. public static function sear($key, $callback)
  3644. {
  3645. /** @var \Illuminate\Cache\Repository $instance */
  3646. return $instance->sear($key, $callback);
  3647. }
  3648. /**
  3649. * Get an item from the cache, or execute the given Closure and store the result forever.
  3650. *
  3651. * @param string $key
  3652. * @param \Closure $callback
  3653. * @return mixed
  3654. * @static
  3655. */
  3656. public static function rememberForever($key, $callback)
  3657. {
  3658. /** @var \Illuminate\Cache\Repository $instance */
  3659. return $instance->rememberForever($key, $callback);
  3660. }
  3661. /**
  3662. * Remove an item from the cache.
  3663. *
  3664. * @param string $key
  3665. * @return bool
  3666. * @static
  3667. */
  3668. public static function forget($key)
  3669. {
  3670. /** @var \Illuminate\Cache\Repository $instance */
  3671. return $instance->forget($key);
  3672. }
  3673. /**
  3674. * Delete an item from the cache by its unique key.
  3675. *
  3676. * @return bool
  3677. * @param string $key The unique cache key of the item to delete.
  3678. * @return bool True if the item was successfully removed. False if there was an error.
  3679. * @throws \Psr\SimpleCache\InvalidArgumentException
  3680. * MUST be thrown if the $key string is not a legal value.
  3681. * @static
  3682. */
  3683. public static function delete($key)
  3684. {
  3685. /** @var \Illuminate\Cache\Repository $instance */
  3686. return $instance->delete($key);
  3687. }
  3688. /**
  3689. * Deletes multiple cache items in a single operation.
  3690. *
  3691. * @return bool
  3692. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  3693. * @return bool True if the items were successfully removed. False if there was an error.
  3694. * @throws \Psr\SimpleCache\InvalidArgumentException
  3695. * MUST be thrown if $keys is neither an array nor a Traversable,
  3696. * or if any of the $keys are not a legal value.
  3697. * @static
  3698. */
  3699. public static function deleteMultiple($keys)
  3700. {
  3701. /** @var \Illuminate\Cache\Repository $instance */
  3702. return $instance->deleteMultiple($keys);
  3703. }
  3704. /**
  3705. * Wipes clean the entire cache's keys.
  3706. *
  3707. * @return bool
  3708. * @return bool True on success and false on failure.
  3709. * @static
  3710. */
  3711. public static function clear()
  3712. {
  3713. /** @var \Illuminate\Cache\Repository $instance */
  3714. return $instance->clear();
  3715. }
  3716. /**
  3717. * Begin executing a new tags operation if the store supports it.
  3718. *
  3719. * @param array|mixed $names
  3720. * @return \Illuminate\Cache\TaggedCache
  3721. * @throws \BadMethodCallException
  3722. * @static
  3723. */
  3724. public static function tags($names)
  3725. {
  3726. /** @var \Illuminate\Cache\Repository $instance */
  3727. return $instance->tags($names);
  3728. }
  3729. /**
  3730. * Determine if the current store supports tags.
  3731. *
  3732. * @return bool
  3733. * @static
  3734. */
  3735. public static function supportsTags()
  3736. {
  3737. /** @var \Illuminate\Cache\Repository $instance */
  3738. return $instance->supportsTags();
  3739. }
  3740. /**
  3741. * Get the default cache time.
  3742. *
  3743. * @return int|null
  3744. * @static
  3745. */
  3746. public static function getDefaultCacheTime()
  3747. {
  3748. /** @var \Illuminate\Cache\Repository $instance */
  3749. return $instance->getDefaultCacheTime();
  3750. }
  3751. /**
  3752. * Set the default cache time in seconds.
  3753. *
  3754. * @param int|null $seconds
  3755. * @return \Illuminate\Cache\Repository
  3756. * @static
  3757. */
  3758. public static function setDefaultCacheTime($seconds)
  3759. {
  3760. /** @var \Illuminate\Cache\Repository $instance */
  3761. return $instance->setDefaultCacheTime($seconds);
  3762. }
  3763. /**
  3764. * Get the cache store implementation.
  3765. *
  3766. * @return \Illuminate\Contracts\Cache\Store
  3767. * @static
  3768. */
  3769. public static function getStore()
  3770. {
  3771. /** @var \Illuminate\Cache\Repository $instance */
  3772. return $instance->getStore();
  3773. }
  3774. /**
  3775. * Get the event dispatcher instance.
  3776. *
  3777. * @return \Illuminate\Contracts\Events\Dispatcher
  3778. * @static
  3779. */
  3780. public static function getEventDispatcher()
  3781. {
  3782. /** @var \Illuminate\Cache\Repository $instance */
  3783. return $instance->getEventDispatcher();
  3784. }
  3785. /**
  3786. * Set the event dispatcher instance.
  3787. *
  3788. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3789. * @return void
  3790. * @static
  3791. */
  3792. public static function setEventDispatcher($events)
  3793. {
  3794. /** @var \Illuminate\Cache\Repository $instance */
  3795. $instance->setEventDispatcher($events);
  3796. }
  3797. /**
  3798. * Determine if a cached value exists.
  3799. *
  3800. * @param string $key
  3801. * @return bool
  3802. * @static
  3803. */
  3804. public static function offsetExists($key)
  3805. {
  3806. /** @var \Illuminate\Cache\Repository $instance */
  3807. return $instance->offsetExists($key);
  3808. }
  3809. /**
  3810. * Retrieve an item from the cache by key.
  3811. *
  3812. * @param string $key
  3813. * @return mixed
  3814. * @static
  3815. */
  3816. public static function offsetGet($key)
  3817. {
  3818. /** @var \Illuminate\Cache\Repository $instance */
  3819. return $instance->offsetGet($key);
  3820. }
  3821. /**
  3822. * Store an item in the cache for the default time.
  3823. *
  3824. * @param string $key
  3825. * @param mixed $value
  3826. * @return void
  3827. * @static
  3828. */
  3829. public static function offsetSet($key, $value)
  3830. {
  3831. /** @var \Illuminate\Cache\Repository $instance */
  3832. $instance->offsetSet($key, $value);
  3833. }
  3834. /**
  3835. * Remove an item from the cache.
  3836. *
  3837. * @param string $key
  3838. * @return void
  3839. * @static
  3840. */
  3841. public static function offsetUnset($key)
  3842. {
  3843. /** @var \Illuminate\Cache\Repository $instance */
  3844. $instance->offsetUnset($key);
  3845. }
  3846. /**
  3847. * Register a custom macro.
  3848. *
  3849. * @param string $name
  3850. * @param object|callable $macro
  3851. * @return void
  3852. * @static
  3853. */
  3854. public static function macro($name, $macro)
  3855. {
  3856. \Illuminate\Cache\Repository::macro($name, $macro);
  3857. }
  3858. /**
  3859. * Mix another object into the class.
  3860. *
  3861. * @param object $mixin
  3862. * @param bool $replace
  3863. * @return void
  3864. * @throws \ReflectionException
  3865. * @static
  3866. */
  3867. public static function mixin($mixin, $replace = true)
  3868. {
  3869. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3870. }
  3871. /**
  3872. * Checks if macro is registered.
  3873. *
  3874. * @param string $name
  3875. * @return bool
  3876. * @static
  3877. */
  3878. public static function hasMacro($name)
  3879. {
  3880. return \Illuminate\Cache\Repository::hasMacro($name);
  3881. }
  3882. /**
  3883. * Flush the existing macros.
  3884. *
  3885. * @return void
  3886. * @static
  3887. */
  3888. public static function flushMacros()
  3889. {
  3890. \Illuminate\Cache\Repository::flushMacros();
  3891. }
  3892. /**
  3893. * Dynamically handle calls to the class.
  3894. *
  3895. * @param string $method
  3896. * @param array $parameters
  3897. * @return mixed
  3898. * @throws \BadMethodCallException
  3899. * @static
  3900. */
  3901. public static function macroCall($method, $parameters)
  3902. {
  3903. /** @var \Illuminate\Cache\Repository $instance */
  3904. return $instance->macroCall($method, $parameters);
  3905. }
  3906. /**
  3907. * Remove all items from the cache.
  3908. *
  3909. * @return bool
  3910. * @static
  3911. */
  3912. public static function flush()
  3913. {
  3914. /** @var \Illuminate\Cache\FileStore $instance */
  3915. return $instance->flush();
  3916. }
  3917. /**
  3918. * Get the Filesystem instance.
  3919. *
  3920. * @return \Illuminate\Filesystem\Filesystem
  3921. * @static
  3922. */
  3923. public static function getFilesystem()
  3924. {
  3925. /** @var \Illuminate\Cache\FileStore $instance */
  3926. return $instance->getFilesystem();
  3927. }
  3928. /**
  3929. * Get the working directory of the cache.
  3930. *
  3931. * @return string
  3932. * @static
  3933. */
  3934. public static function getDirectory()
  3935. {
  3936. /** @var \Illuminate\Cache\FileStore $instance */
  3937. return $instance->getDirectory();
  3938. }
  3939. /**
  3940. * Get the cache key prefix.
  3941. *
  3942. * @return string
  3943. * @static
  3944. */
  3945. public static function getPrefix()
  3946. {
  3947. /** @var \Illuminate\Cache\FileStore $instance */
  3948. return $instance->getPrefix();
  3949. }
  3950. /**
  3951. * Get a lock instance.
  3952. *
  3953. * @param string $name
  3954. * @param int $seconds
  3955. * @param string|null $owner
  3956. * @return \Illuminate\Contracts\Cache\Lock
  3957. * @static
  3958. */
  3959. public static function lock($name, $seconds = 0, $owner = null)
  3960. {
  3961. /** @var \Illuminate\Cache\FileStore $instance */
  3962. return $instance->lock($name, $seconds, $owner);
  3963. }
  3964. /**
  3965. * Restore a lock instance using the owner identifier.
  3966. *
  3967. * @param string $name
  3968. * @param string $owner
  3969. * @return \Illuminate\Contracts\Cache\Lock
  3970. * @static
  3971. */
  3972. public static function restoreLock($name, $owner)
  3973. {
  3974. /** @var \Illuminate\Cache\FileStore $instance */
  3975. return $instance->restoreLock($name, $owner);
  3976. }
  3977. }
  3978. /**
  3979. *
  3980. *
  3981. * @see \Illuminate\Config\Repository
  3982. */
  3983. class Config {
  3984. /**
  3985. * Determine if the given configuration value exists.
  3986. *
  3987. * @param string $key
  3988. * @return bool
  3989. * @static
  3990. */
  3991. public static function has($key)
  3992. {
  3993. /** @var \Illuminate\Config\Repository $instance */
  3994. return $instance->has($key);
  3995. }
  3996. /**
  3997. * Get the specified configuration value.
  3998. *
  3999. * @param array|string $key
  4000. * @param mixed $default
  4001. * @return mixed
  4002. * @static
  4003. */
  4004. public static function get($key, $default = null)
  4005. {
  4006. /** @var \Illuminate\Config\Repository $instance */
  4007. return $instance->get($key, $default);
  4008. }
  4009. /**
  4010. * Get many configuration values.
  4011. *
  4012. * @param array $keys
  4013. * @return array
  4014. * @static
  4015. */
  4016. public static function getMany($keys)
  4017. {
  4018. /** @var \Illuminate\Config\Repository $instance */
  4019. return $instance->getMany($keys);
  4020. }
  4021. /**
  4022. * Set a given configuration value.
  4023. *
  4024. * @param array|string $key
  4025. * @param mixed $value
  4026. * @return void
  4027. * @static
  4028. */
  4029. public static function set($key, $value = null)
  4030. {
  4031. /** @var \Illuminate\Config\Repository $instance */
  4032. $instance->set($key, $value);
  4033. }
  4034. /**
  4035. * Prepend a value onto an array configuration value.
  4036. *
  4037. * @param string $key
  4038. * @param mixed $value
  4039. * @return void
  4040. * @static
  4041. */
  4042. public static function prepend($key, $value)
  4043. {
  4044. /** @var \Illuminate\Config\Repository $instance */
  4045. $instance->prepend($key, $value);
  4046. }
  4047. /**
  4048. * Push a value onto an array configuration value.
  4049. *
  4050. * @param string $key
  4051. * @param mixed $value
  4052. * @return void
  4053. * @static
  4054. */
  4055. public static function push($key, $value)
  4056. {
  4057. /** @var \Illuminate\Config\Repository $instance */
  4058. $instance->push($key, $value);
  4059. }
  4060. /**
  4061. * Get all of the configuration items for the application.
  4062. *
  4063. * @return array
  4064. * @static
  4065. */
  4066. public static function all()
  4067. {
  4068. /** @var \Illuminate\Config\Repository $instance */
  4069. return $instance->all();
  4070. }
  4071. /**
  4072. * Determine if the given configuration option exists.
  4073. *
  4074. * @param string $key
  4075. * @return bool
  4076. * @static
  4077. */
  4078. public static function offsetExists($key)
  4079. {
  4080. /** @var \Illuminate\Config\Repository $instance */
  4081. return $instance->offsetExists($key);
  4082. }
  4083. /**
  4084. * Get a configuration option.
  4085. *
  4086. * @param string $key
  4087. * @return mixed
  4088. * @static
  4089. */
  4090. public static function offsetGet($key)
  4091. {
  4092. /** @var \Illuminate\Config\Repository $instance */
  4093. return $instance->offsetGet($key);
  4094. }
  4095. /**
  4096. * Set a configuration option.
  4097. *
  4098. * @param string $key
  4099. * @param mixed $value
  4100. * @return void
  4101. * @static
  4102. */
  4103. public static function offsetSet($key, $value)
  4104. {
  4105. /** @var \Illuminate\Config\Repository $instance */
  4106. $instance->offsetSet($key, $value);
  4107. }
  4108. /**
  4109. * Unset a configuration option.
  4110. *
  4111. * @param string $key
  4112. * @return void
  4113. * @static
  4114. */
  4115. public static function offsetUnset($key)
  4116. {
  4117. /** @var \Illuminate\Config\Repository $instance */
  4118. $instance->offsetUnset($key);
  4119. }
  4120. }
  4121. /**
  4122. *
  4123. *
  4124. * @see \Illuminate\Cookie\CookieJar
  4125. */
  4126. class Cookie {
  4127. /**
  4128. * Create a new cookie instance.
  4129. *
  4130. * @param string $name
  4131. * @param string $value
  4132. * @param int $minutes
  4133. * @param string|null $path
  4134. * @param string|null $domain
  4135. * @param bool|null $secure
  4136. * @param bool $httpOnly
  4137. * @param bool $raw
  4138. * @param string|null $sameSite
  4139. * @return \Symfony\Component\HttpFoundation\Cookie
  4140. * @static
  4141. */
  4142. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4143. {
  4144. /** @var \Illuminate\Cookie\CookieJar $instance */
  4145. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4146. }
  4147. /**
  4148. * Create a cookie that lasts "forever" (five years).
  4149. *
  4150. * @param string $name
  4151. * @param string $value
  4152. * @param string|null $path
  4153. * @param string|null $domain
  4154. * @param bool|null $secure
  4155. * @param bool $httpOnly
  4156. * @param bool $raw
  4157. * @param string|null $sameSite
  4158. * @return \Symfony\Component\HttpFoundation\Cookie
  4159. * @static
  4160. */
  4161. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4162. {
  4163. /** @var \Illuminate\Cookie\CookieJar $instance */
  4164. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4165. }
  4166. /**
  4167. * Expire the given cookie.
  4168. *
  4169. * @param string $name
  4170. * @param string|null $path
  4171. * @param string|null $domain
  4172. * @return \Symfony\Component\HttpFoundation\Cookie
  4173. * @static
  4174. */
  4175. public static function forget($name, $path = null, $domain = null)
  4176. {
  4177. /** @var \Illuminate\Cookie\CookieJar $instance */
  4178. return $instance->forget($name, $path, $domain);
  4179. }
  4180. /**
  4181. * Determine if a cookie has been queued.
  4182. *
  4183. * @param string $key
  4184. * @param string|null $path
  4185. * @return bool
  4186. * @static
  4187. */
  4188. public static function hasQueued($key, $path = null)
  4189. {
  4190. /** @var \Illuminate\Cookie\CookieJar $instance */
  4191. return $instance->hasQueued($key, $path);
  4192. }
  4193. /**
  4194. * Get a queued cookie instance.
  4195. *
  4196. * @param string $key
  4197. * @param mixed $default
  4198. * @param string|null $path
  4199. * @return \Symfony\Component\HttpFoundation\Cookie|null
  4200. * @static
  4201. */
  4202. public static function queued($key, $default = null, $path = null)
  4203. {
  4204. /** @var \Illuminate\Cookie\CookieJar $instance */
  4205. return $instance->queued($key, $default, $path);
  4206. }
  4207. /**
  4208. * Queue a cookie to send with the next response.
  4209. *
  4210. * @param array $parameters
  4211. * @return void
  4212. * @static
  4213. */
  4214. public static function queue(...$parameters)
  4215. {
  4216. /** @var \Illuminate\Cookie\CookieJar $instance */
  4217. $instance->queue(...$parameters);
  4218. }
  4219. /**
  4220. * Queue a cookie to expire with the next response.
  4221. *
  4222. * @param string $name
  4223. * @param string|null $path
  4224. * @param string|null $domain
  4225. * @return void
  4226. * @static
  4227. */
  4228. public static function expire($name, $path = null, $domain = null)
  4229. {
  4230. /** @var \Illuminate\Cookie\CookieJar $instance */
  4231. $instance->expire($name, $path, $domain);
  4232. }
  4233. /**
  4234. * Remove a cookie from the queue.
  4235. *
  4236. * @param string $name
  4237. * @param string|null $path
  4238. * @return void
  4239. * @static
  4240. */
  4241. public static function unqueue($name, $path = null)
  4242. {
  4243. /** @var \Illuminate\Cookie\CookieJar $instance */
  4244. $instance->unqueue($name, $path);
  4245. }
  4246. /**
  4247. * Set the default path and domain for the jar.
  4248. *
  4249. * @param string $path
  4250. * @param string $domain
  4251. * @param bool $secure
  4252. * @param string|null $sameSite
  4253. * @return \Illuminate\Cookie\CookieJar
  4254. * @static
  4255. */
  4256. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  4257. {
  4258. /** @var \Illuminate\Cookie\CookieJar $instance */
  4259. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  4260. }
  4261. /**
  4262. * Get the cookies which have been queued for the next request.
  4263. *
  4264. * @return \Symfony\Component\HttpFoundation\Cookie[]
  4265. * @static
  4266. */
  4267. public static function getQueuedCookies()
  4268. {
  4269. /** @var \Illuminate\Cookie\CookieJar $instance */
  4270. return $instance->getQueuedCookies();
  4271. }
  4272. /**
  4273. * Flush the cookies which have been queued for the next request.
  4274. *
  4275. * @return \Illuminate\Cookie\CookieJar
  4276. * @static
  4277. */
  4278. public static function flushQueuedCookies()
  4279. {
  4280. /** @var \Illuminate\Cookie\CookieJar $instance */
  4281. return $instance->flushQueuedCookies();
  4282. }
  4283. /**
  4284. * Register a custom macro.
  4285. *
  4286. * @param string $name
  4287. * @param object|callable $macro
  4288. * @return void
  4289. * @static
  4290. */
  4291. public static function macro($name, $macro)
  4292. {
  4293. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  4294. }
  4295. /**
  4296. * Mix another object into the class.
  4297. *
  4298. * @param object $mixin
  4299. * @param bool $replace
  4300. * @return void
  4301. * @throws \ReflectionException
  4302. * @static
  4303. */
  4304. public static function mixin($mixin, $replace = true)
  4305. {
  4306. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  4307. }
  4308. /**
  4309. * Checks if macro is registered.
  4310. *
  4311. * @param string $name
  4312. * @return bool
  4313. * @static
  4314. */
  4315. public static function hasMacro($name)
  4316. {
  4317. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  4318. }
  4319. /**
  4320. * Flush the existing macros.
  4321. *
  4322. * @return void
  4323. * @static
  4324. */
  4325. public static function flushMacros()
  4326. {
  4327. \Illuminate\Cookie\CookieJar::flushMacros();
  4328. }
  4329. }
  4330. /**
  4331. *
  4332. *
  4333. * @see \Illuminate\Encryption\Encrypter
  4334. */
  4335. class Crypt {
  4336. /**
  4337. * Determine if the given key and cipher combination is valid.
  4338. *
  4339. * @param string $key
  4340. * @param string $cipher
  4341. * @return bool
  4342. * @static
  4343. */
  4344. public static function supported($key, $cipher)
  4345. {
  4346. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  4347. }
  4348. /**
  4349. * Create a new encryption key for the given cipher.
  4350. *
  4351. * @param string $cipher
  4352. * @return string
  4353. * @static
  4354. */
  4355. public static function generateKey($cipher)
  4356. {
  4357. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  4358. }
  4359. /**
  4360. * Encrypt the given value.
  4361. *
  4362. * @param mixed $value
  4363. * @param bool $serialize
  4364. * @return string
  4365. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4366. * @static
  4367. */
  4368. public static function encrypt($value, $serialize = true)
  4369. {
  4370. /** @var \Illuminate\Encryption\Encrypter $instance */
  4371. return $instance->encrypt($value, $serialize);
  4372. }
  4373. /**
  4374. * Encrypt a string without serialization.
  4375. *
  4376. * @param string $value
  4377. * @return string
  4378. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4379. * @static
  4380. */
  4381. public static function encryptString($value)
  4382. {
  4383. /** @var \Illuminate\Encryption\Encrypter $instance */
  4384. return $instance->encryptString($value);
  4385. }
  4386. /**
  4387. * Decrypt the given value.
  4388. *
  4389. * @param string $payload
  4390. * @param bool $unserialize
  4391. * @return mixed
  4392. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4393. * @static
  4394. */
  4395. public static function decrypt($payload, $unserialize = true)
  4396. {
  4397. /** @var \Illuminate\Encryption\Encrypter $instance */
  4398. return $instance->decrypt($payload, $unserialize);
  4399. }
  4400. /**
  4401. * Decrypt the given string without unserialization.
  4402. *
  4403. * @param string $payload
  4404. * @return string
  4405. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4406. * @static
  4407. */
  4408. public static function decryptString($payload)
  4409. {
  4410. /** @var \Illuminate\Encryption\Encrypter $instance */
  4411. return $instance->decryptString($payload);
  4412. }
  4413. /**
  4414. * Get the encryption key.
  4415. *
  4416. * @return string
  4417. * @static
  4418. */
  4419. public static function getKey()
  4420. {
  4421. /** @var \Illuminate\Encryption\Encrypter $instance */
  4422. return $instance->getKey();
  4423. }
  4424. }
  4425. /**
  4426. *
  4427. *
  4428. * @see \Illuminate\Database\DatabaseManager
  4429. * @see \Illuminate\Database\Connection
  4430. */
  4431. class DB {
  4432. /**
  4433. * Get a database connection instance.
  4434. *
  4435. * @param string|null $name
  4436. * @return \Illuminate\Database\Connection
  4437. * @static
  4438. */
  4439. public static function connection($name = null)
  4440. {
  4441. /** @var \Illuminate\Database\DatabaseManager $instance */
  4442. return $instance->connection($name);
  4443. }
  4444. /**
  4445. * Register a custom Doctrine type.
  4446. *
  4447. * @param string $class
  4448. * @param string $name
  4449. * @param string $type
  4450. * @return void
  4451. * @throws \Doctrine\DBAL\DBALException
  4452. * @throws \RuntimeException
  4453. * @static
  4454. */
  4455. public static function registerDoctrineType($class, $name, $type)
  4456. {
  4457. /** @var \Illuminate\Database\DatabaseManager $instance */
  4458. $instance->registerDoctrineType($class, $name, $type);
  4459. }
  4460. /**
  4461. * Disconnect from the given database and remove from local cache.
  4462. *
  4463. * @param string|null $name
  4464. * @return void
  4465. * @static
  4466. */
  4467. public static function purge($name = null)
  4468. {
  4469. /** @var \Illuminate\Database\DatabaseManager $instance */
  4470. $instance->purge($name);
  4471. }
  4472. /**
  4473. * Disconnect from the given database.
  4474. *
  4475. * @param string|null $name
  4476. * @return void
  4477. * @static
  4478. */
  4479. public static function disconnect($name = null)
  4480. {
  4481. /** @var \Illuminate\Database\DatabaseManager $instance */
  4482. $instance->disconnect($name);
  4483. }
  4484. /**
  4485. * Reconnect to the given database.
  4486. *
  4487. * @param string|null $name
  4488. * @return \Illuminate\Database\Connection
  4489. * @static
  4490. */
  4491. public static function reconnect($name = null)
  4492. {
  4493. /** @var \Illuminate\Database\DatabaseManager $instance */
  4494. return $instance->reconnect($name);
  4495. }
  4496. /**
  4497. * Set the default database connection for the callback execution.
  4498. *
  4499. * @param string $name
  4500. * @param callable $callback
  4501. * @return mixed
  4502. * @static
  4503. */
  4504. public static function usingConnection($name, $callback)
  4505. {
  4506. /** @var \Illuminate\Database\DatabaseManager $instance */
  4507. return $instance->usingConnection($name, $callback);
  4508. }
  4509. /**
  4510. * Get the default connection name.
  4511. *
  4512. * @return string
  4513. * @static
  4514. */
  4515. public static function getDefaultConnection()
  4516. {
  4517. /** @var \Illuminate\Database\DatabaseManager $instance */
  4518. return $instance->getDefaultConnection();
  4519. }
  4520. /**
  4521. * Set the default connection name.
  4522. *
  4523. * @param string $name
  4524. * @return void
  4525. * @static
  4526. */
  4527. public static function setDefaultConnection($name)
  4528. {
  4529. /** @var \Illuminate\Database\DatabaseManager $instance */
  4530. $instance->setDefaultConnection($name);
  4531. }
  4532. /**
  4533. * Get all of the support drivers.
  4534. *
  4535. * @return array
  4536. * @static
  4537. */
  4538. public static function supportedDrivers()
  4539. {
  4540. /** @var \Illuminate\Database\DatabaseManager $instance */
  4541. return $instance->supportedDrivers();
  4542. }
  4543. /**
  4544. * Get all of the drivers that are actually available.
  4545. *
  4546. * @return array
  4547. * @static
  4548. */
  4549. public static function availableDrivers()
  4550. {
  4551. /** @var \Illuminate\Database\DatabaseManager $instance */
  4552. return $instance->availableDrivers();
  4553. }
  4554. /**
  4555. * Register an extension connection resolver.
  4556. *
  4557. * @param string $name
  4558. * @param callable $resolver
  4559. * @return void
  4560. * @static
  4561. */
  4562. public static function extend($name, $resolver)
  4563. {
  4564. /** @var \Illuminate\Database\DatabaseManager $instance */
  4565. $instance->extend($name, $resolver);
  4566. }
  4567. /**
  4568. * Return all of the created connections.
  4569. *
  4570. * @return array
  4571. * @static
  4572. */
  4573. public static function getConnections()
  4574. {
  4575. /** @var \Illuminate\Database\DatabaseManager $instance */
  4576. return $instance->getConnections();
  4577. }
  4578. /**
  4579. * Set the database reconnector callback.
  4580. *
  4581. * @param callable $reconnector
  4582. * @return void
  4583. * @static
  4584. */
  4585. public static function setReconnector($reconnector)
  4586. {
  4587. /** @var \Illuminate\Database\DatabaseManager $instance */
  4588. $instance->setReconnector($reconnector);
  4589. }
  4590. /**
  4591. * Set the application instance used by the manager.
  4592. *
  4593. * @param \Illuminate\Contracts\Foundation\Application $app
  4594. * @return \Illuminate\Database\DatabaseManager
  4595. * @static
  4596. */
  4597. public static function setApplication($app)
  4598. {
  4599. /** @var \Illuminate\Database\DatabaseManager $instance */
  4600. return $instance->setApplication($app);
  4601. }
  4602. /**
  4603. * Determine if the connected database is a MariaDB database.
  4604. *
  4605. * @return bool
  4606. * @static
  4607. */
  4608. public static function isMaria()
  4609. {
  4610. /** @var \Illuminate\Database\MySqlConnection $instance */
  4611. return $instance->isMaria();
  4612. }
  4613. /**
  4614. * Get a schema builder instance for the connection.
  4615. *
  4616. * @return \Illuminate\Database\Schema\MySqlBuilder
  4617. * @static
  4618. */
  4619. public static function getSchemaBuilder()
  4620. {
  4621. /** @var \Illuminate\Database\MySqlConnection $instance */
  4622. return $instance->getSchemaBuilder();
  4623. }
  4624. /**
  4625. * Get the schema state for the connection.
  4626. *
  4627. * @param \Illuminate\Filesystem\Filesystem|null $files
  4628. * @param callable|null $processFactory
  4629. * @return \Illuminate\Database\Schema\MySqlSchemaState
  4630. * @static
  4631. */
  4632. public static function getSchemaState($files = null, $processFactory = null)
  4633. {
  4634. /** @var \Illuminate\Database\MySqlConnection $instance */
  4635. return $instance->getSchemaState($files, $processFactory);
  4636. }
  4637. /**
  4638. * Set the query grammar to the default implementation.
  4639. *
  4640. * @return void
  4641. * @static
  4642. */
  4643. public static function useDefaultQueryGrammar()
  4644. { //Method inherited from \Illuminate\Database\Connection
  4645. /** @var \Illuminate\Database\MySqlConnection $instance */
  4646. $instance->useDefaultQueryGrammar();
  4647. }
  4648. /**
  4649. * Set the schema grammar to the default implementation.
  4650. *
  4651. * @return void
  4652. * @static
  4653. */
  4654. public static function useDefaultSchemaGrammar()
  4655. { //Method inherited from \Illuminate\Database\Connection
  4656. /** @var \Illuminate\Database\MySqlConnection $instance */
  4657. $instance->useDefaultSchemaGrammar();
  4658. }
  4659. /**
  4660. * Set the query post processor to the default implementation.
  4661. *
  4662. * @return void
  4663. * @static
  4664. */
  4665. public static function useDefaultPostProcessor()
  4666. { //Method inherited from \Illuminate\Database\Connection
  4667. /** @var \Illuminate\Database\MySqlConnection $instance */
  4668. $instance->useDefaultPostProcessor();
  4669. }
  4670. /**
  4671. * Begin a fluent query against a database table.
  4672. *
  4673. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  4674. * @param string|null $as
  4675. * @return \Illuminate\Database\Query\Builder
  4676. * @static
  4677. */
  4678. public static function table($table, $as = null)
  4679. { //Method inherited from \Illuminate\Database\Connection
  4680. /** @var \Illuminate\Database\MySqlConnection $instance */
  4681. return $instance->table($table, $as);
  4682. }
  4683. /**
  4684. * Get a new query builder instance.
  4685. *
  4686. * @return \Illuminate\Database\Query\Builder
  4687. * @static
  4688. */
  4689. public static function query()
  4690. { //Method inherited from \Illuminate\Database\Connection
  4691. /** @var \Illuminate\Database\MySqlConnection $instance */
  4692. return $instance->query();
  4693. }
  4694. /**
  4695. * Run a select statement and return a single result.
  4696. *
  4697. * @param string $query
  4698. * @param array $bindings
  4699. * @param bool $useReadPdo
  4700. * @return mixed
  4701. * @static
  4702. */
  4703. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  4704. { //Method inherited from \Illuminate\Database\Connection
  4705. /** @var \Illuminate\Database\MySqlConnection $instance */
  4706. return $instance->selectOne($query, $bindings, $useReadPdo);
  4707. }
  4708. /**
  4709. * Run a select statement against the database.
  4710. *
  4711. * @param string $query
  4712. * @param array $bindings
  4713. * @return array
  4714. * @static
  4715. */
  4716. public static function selectFromWriteConnection($query, $bindings = [])
  4717. { //Method inherited from \Illuminate\Database\Connection
  4718. /** @var \Illuminate\Database\MySqlConnection $instance */
  4719. return $instance->selectFromWriteConnection($query, $bindings);
  4720. }
  4721. /**
  4722. * Run a select statement against the database.
  4723. *
  4724. * @param string $query
  4725. * @param array $bindings
  4726. * @param bool $useReadPdo
  4727. * @return array
  4728. * @static
  4729. */
  4730. public static function select($query, $bindings = [], $useReadPdo = true)
  4731. { //Method inherited from \Illuminate\Database\Connection
  4732. /** @var \Illuminate\Database\MySqlConnection $instance */
  4733. return $instance->select($query, $bindings, $useReadPdo);
  4734. }
  4735. /**
  4736. * Run a select statement against the database and returns a generator.
  4737. *
  4738. * @param string $query
  4739. * @param array $bindings
  4740. * @param bool $useReadPdo
  4741. * @return \Generator
  4742. * @static
  4743. */
  4744. public static function cursor($query, $bindings = [], $useReadPdo = true)
  4745. { //Method inherited from \Illuminate\Database\Connection
  4746. /** @var \Illuminate\Database\MySqlConnection $instance */
  4747. return $instance->cursor($query, $bindings, $useReadPdo);
  4748. }
  4749. /**
  4750. * Run an insert statement against the database.
  4751. *
  4752. * @param string $query
  4753. * @param array $bindings
  4754. * @return bool
  4755. * @static
  4756. */
  4757. public static function insert($query, $bindings = [])
  4758. { //Method inherited from \Illuminate\Database\Connection
  4759. /** @var \Illuminate\Database\MySqlConnection $instance */
  4760. return $instance->insert($query, $bindings);
  4761. }
  4762. /**
  4763. * Run an update statement against the database.
  4764. *
  4765. * @param string $query
  4766. * @param array $bindings
  4767. * @return int
  4768. * @static
  4769. */
  4770. public static function update($query, $bindings = [])
  4771. { //Method inherited from \Illuminate\Database\Connection
  4772. /** @var \Illuminate\Database\MySqlConnection $instance */
  4773. return $instance->update($query, $bindings);
  4774. }
  4775. /**
  4776. * Run a delete statement against the database.
  4777. *
  4778. * @param string $query
  4779. * @param array $bindings
  4780. * @return int
  4781. * @static
  4782. */
  4783. public static function delete($query, $bindings = [])
  4784. { //Method inherited from \Illuminate\Database\Connection
  4785. /** @var \Illuminate\Database\MySqlConnection $instance */
  4786. return $instance->delete($query, $bindings);
  4787. }
  4788. /**
  4789. * Execute an SQL statement and return the boolean result.
  4790. *
  4791. * @param string $query
  4792. * @param array $bindings
  4793. * @return bool
  4794. * @static
  4795. */
  4796. public static function statement($query, $bindings = [])
  4797. { //Method inherited from \Illuminate\Database\Connection
  4798. /** @var \Illuminate\Database\MySqlConnection $instance */
  4799. return $instance->statement($query, $bindings);
  4800. }
  4801. /**
  4802. * Run an SQL statement and get the number of rows affected.
  4803. *
  4804. * @param string $query
  4805. * @param array $bindings
  4806. * @return int
  4807. * @static
  4808. */
  4809. public static function affectingStatement($query, $bindings = [])
  4810. { //Method inherited from \Illuminate\Database\Connection
  4811. /** @var \Illuminate\Database\MySqlConnection $instance */
  4812. return $instance->affectingStatement($query, $bindings);
  4813. }
  4814. /**
  4815. * Run a raw, unprepared query against the PDO connection.
  4816. *
  4817. * @param string $query
  4818. * @return bool
  4819. * @static
  4820. */
  4821. public static function unprepared($query)
  4822. { //Method inherited from \Illuminate\Database\Connection
  4823. /** @var \Illuminate\Database\MySqlConnection $instance */
  4824. return $instance->unprepared($query);
  4825. }
  4826. /**
  4827. * Execute the given callback in "dry run" mode.
  4828. *
  4829. * @param \Closure $callback
  4830. * @return array
  4831. * @static
  4832. */
  4833. public static function pretend($callback)
  4834. { //Method inherited from \Illuminate\Database\Connection
  4835. /** @var \Illuminate\Database\MySqlConnection $instance */
  4836. return $instance->pretend($callback);
  4837. }
  4838. /**
  4839. * Bind values to their parameters in the given statement.
  4840. *
  4841. * @param \PDOStatement $statement
  4842. * @param array $bindings
  4843. * @return void
  4844. * @static
  4845. */
  4846. public static function bindValues($statement, $bindings)
  4847. { //Method inherited from \Illuminate\Database\Connection
  4848. /** @var \Illuminate\Database\MySqlConnection $instance */
  4849. $instance->bindValues($statement, $bindings);
  4850. }
  4851. /**
  4852. * Prepare the query bindings for execution.
  4853. *
  4854. * @param array $bindings
  4855. * @return array
  4856. * @static
  4857. */
  4858. public static function prepareBindings($bindings)
  4859. { //Method inherited from \Illuminate\Database\Connection
  4860. /** @var \Illuminate\Database\MySqlConnection $instance */
  4861. return $instance->prepareBindings($bindings);
  4862. }
  4863. /**
  4864. * Log a query in the connection's query log.
  4865. *
  4866. * @param string $query
  4867. * @param array $bindings
  4868. * @param float|null $time
  4869. * @return void
  4870. * @static
  4871. */
  4872. public static function logQuery($query, $bindings, $time = null)
  4873. { //Method inherited from \Illuminate\Database\Connection
  4874. /** @var \Illuminate\Database\MySqlConnection $instance */
  4875. $instance->logQuery($query, $bindings, $time);
  4876. }
  4877. /**
  4878. * Register a hook to be run just before a database query is executed.
  4879. *
  4880. * @param \Closure $callback
  4881. * @return \Illuminate\Database\MySqlConnection
  4882. * @static
  4883. */
  4884. public static function beforeExecuting($callback)
  4885. { //Method inherited from \Illuminate\Database\Connection
  4886. /** @var \Illuminate\Database\MySqlConnection $instance */
  4887. return $instance->beforeExecuting($callback);
  4888. }
  4889. /**
  4890. * Register a database query listener with the connection.
  4891. *
  4892. * @param \Closure $callback
  4893. * @return void
  4894. * @static
  4895. */
  4896. public static function listen($callback)
  4897. { //Method inherited from \Illuminate\Database\Connection
  4898. /** @var \Illuminate\Database\MySqlConnection $instance */
  4899. $instance->listen($callback);
  4900. }
  4901. /**
  4902. * Get a new raw query expression.
  4903. *
  4904. * @param mixed $value
  4905. * @return \Illuminate\Database\Query\Expression
  4906. * @static
  4907. */
  4908. public static function raw($value)
  4909. { //Method inherited from \Illuminate\Database\Connection
  4910. /** @var \Illuminate\Database\MySqlConnection $instance */
  4911. return $instance->raw($value);
  4912. }
  4913. /**
  4914. * Determine if the database connection has modified any database records.
  4915. *
  4916. * @return bool
  4917. * @static
  4918. */
  4919. public static function hasModifiedRecords()
  4920. { //Method inherited from \Illuminate\Database\Connection
  4921. /** @var \Illuminate\Database\MySqlConnection $instance */
  4922. return $instance->hasModifiedRecords();
  4923. }
  4924. /**
  4925. * Indicate if any records have been modified.
  4926. *
  4927. * @param bool $value
  4928. * @return void
  4929. * @static
  4930. */
  4931. public static function recordsHaveBeenModified($value = true)
  4932. { //Method inherited from \Illuminate\Database\Connection
  4933. /** @var \Illuminate\Database\MySqlConnection $instance */
  4934. $instance->recordsHaveBeenModified($value);
  4935. }
  4936. /**
  4937. * Set the record modification state.
  4938. *
  4939. * @param bool $value
  4940. * @return \Illuminate\Database\MySqlConnection
  4941. * @static
  4942. */
  4943. public static function setRecordModificationState($value)
  4944. { //Method inherited from \Illuminate\Database\Connection
  4945. /** @var \Illuminate\Database\MySqlConnection $instance */
  4946. return $instance->setRecordModificationState($value);
  4947. }
  4948. /**
  4949. * Reset the record modification state.
  4950. *
  4951. * @return void
  4952. * @static
  4953. */
  4954. public static function forgetRecordModificationState()
  4955. { //Method inherited from \Illuminate\Database\Connection
  4956. /** @var \Illuminate\Database\MySqlConnection $instance */
  4957. $instance->forgetRecordModificationState();
  4958. }
  4959. /**
  4960. * Indicate that the connection should use the write PDO connection for reads.
  4961. *
  4962. * @param bool $value
  4963. * @return \Illuminate\Database\MySqlConnection
  4964. * @static
  4965. */
  4966. public static function useWriteConnectionWhenReading($value = true)
  4967. { //Method inherited from \Illuminate\Database\Connection
  4968. /** @var \Illuminate\Database\MySqlConnection $instance */
  4969. return $instance->useWriteConnectionWhenReading($value);
  4970. }
  4971. /**
  4972. * Is Doctrine available?
  4973. *
  4974. * @return bool
  4975. * @static
  4976. */
  4977. public static function isDoctrineAvailable()
  4978. { //Method inherited from \Illuminate\Database\Connection
  4979. /** @var \Illuminate\Database\MySqlConnection $instance */
  4980. return $instance->isDoctrineAvailable();
  4981. }
  4982. /**
  4983. * Get a Doctrine Schema Column instance.
  4984. *
  4985. * @param string $table
  4986. * @param string $column
  4987. * @return \Doctrine\DBAL\Schema\Column
  4988. * @static
  4989. */
  4990. public static function getDoctrineColumn($table, $column)
  4991. { //Method inherited from \Illuminate\Database\Connection
  4992. /** @var \Illuminate\Database\MySqlConnection $instance */
  4993. return $instance->getDoctrineColumn($table, $column);
  4994. }
  4995. /**
  4996. * Get the Doctrine DBAL schema manager for the connection.
  4997. *
  4998. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  4999. * @static
  5000. */
  5001. public static function getDoctrineSchemaManager()
  5002. { //Method inherited from \Illuminate\Database\Connection
  5003. /** @var \Illuminate\Database\MySqlConnection $instance */
  5004. return $instance->getDoctrineSchemaManager();
  5005. }
  5006. /**
  5007. * Get the Doctrine DBAL database connection instance.
  5008. *
  5009. * @return \Doctrine\DBAL\Connection
  5010. * @static
  5011. */
  5012. public static function getDoctrineConnection()
  5013. { //Method inherited from \Illuminate\Database\Connection
  5014. /** @var \Illuminate\Database\MySqlConnection $instance */
  5015. return $instance->getDoctrineConnection();
  5016. }
  5017. /**
  5018. * Get the current PDO connection.
  5019. *
  5020. * @return \PDO
  5021. * @static
  5022. */
  5023. public static function getPdo()
  5024. { //Method inherited from \Illuminate\Database\Connection
  5025. /** @var \Illuminate\Database\MySqlConnection $instance */
  5026. return $instance->getPdo();
  5027. }
  5028. /**
  5029. * Get the current PDO connection parameter without executing any reconnect logic.
  5030. *
  5031. * @return \PDO|\Closure|null
  5032. * @static
  5033. */
  5034. public static function getRawPdo()
  5035. { //Method inherited from \Illuminate\Database\Connection
  5036. /** @var \Illuminate\Database\MySqlConnection $instance */
  5037. return $instance->getRawPdo();
  5038. }
  5039. /**
  5040. * Get the current PDO connection used for reading.
  5041. *
  5042. * @return \PDO
  5043. * @static
  5044. */
  5045. public static function getReadPdo()
  5046. { //Method inherited from \Illuminate\Database\Connection
  5047. /** @var \Illuminate\Database\MySqlConnection $instance */
  5048. return $instance->getReadPdo();
  5049. }
  5050. /**
  5051. * Get the current read PDO connection parameter without executing any reconnect logic.
  5052. *
  5053. * @return \PDO|\Closure|null
  5054. * @static
  5055. */
  5056. public static function getRawReadPdo()
  5057. { //Method inherited from \Illuminate\Database\Connection
  5058. /** @var \Illuminate\Database\MySqlConnection $instance */
  5059. return $instance->getRawReadPdo();
  5060. }
  5061. /**
  5062. * Set the PDO connection.
  5063. *
  5064. * @param \PDO|\Closure|null $pdo
  5065. * @return \Illuminate\Database\MySqlConnection
  5066. * @static
  5067. */
  5068. public static function setPdo($pdo)
  5069. { //Method inherited from \Illuminate\Database\Connection
  5070. /** @var \Illuminate\Database\MySqlConnection $instance */
  5071. return $instance->setPdo($pdo);
  5072. }
  5073. /**
  5074. * Set the PDO connection used for reading.
  5075. *
  5076. * @param \PDO|\Closure|null $pdo
  5077. * @return \Illuminate\Database\MySqlConnection
  5078. * @static
  5079. */
  5080. public static function setReadPdo($pdo)
  5081. { //Method inherited from \Illuminate\Database\Connection
  5082. /** @var \Illuminate\Database\MySqlConnection $instance */
  5083. return $instance->setReadPdo($pdo);
  5084. }
  5085. /**
  5086. * Get the database connection name.
  5087. *
  5088. * @return string|null
  5089. * @static
  5090. */
  5091. public static function getName()
  5092. { //Method inherited from \Illuminate\Database\Connection
  5093. /** @var \Illuminate\Database\MySqlConnection $instance */
  5094. return $instance->getName();
  5095. }
  5096. /**
  5097. * Get the database connection full name.
  5098. *
  5099. * @return string|null
  5100. * @static
  5101. */
  5102. public static function getNameWithReadWriteType()
  5103. { //Method inherited from \Illuminate\Database\Connection
  5104. /** @var \Illuminate\Database\MySqlConnection $instance */
  5105. return $instance->getNameWithReadWriteType();
  5106. }
  5107. /**
  5108. * Get an option from the configuration options.
  5109. *
  5110. * @param string|null $option
  5111. * @return mixed
  5112. * @static
  5113. */
  5114. public static function getConfig($option = null)
  5115. { //Method inherited from \Illuminate\Database\Connection
  5116. /** @var \Illuminate\Database\MySqlConnection $instance */
  5117. return $instance->getConfig($option);
  5118. }
  5119. /**
  5120. * Get the PDO driver name.
  5121. *
  5122. * @return string
  5123. * @static
  5124. */
  5125. public static function getDriverName()
  5126. { //Method inherited from \Illuminate\Database\Connection
  5127. /** @var \Illuminate\Database\MySqlConnection $instance */
  5128. return $instance->getDriverName();
  5129. }
  5130. /**
  5131. * Get the query grammar used by the connection.
  5132. *
  5133. * @return \Illuminate\Database\Query\Grammars\Grammar
  5134. * @static
  5135. */
  5136. public static function getQueryGrammar()
  5137. { //Method inherited from \Illuminate\Database\Connection
  5138. /** @var \Illuminate\Database\MySqlConnection $instance */
  5139. return $instance->getQueryGrammar();
  5140. }
  5141. /**
  5142. * Set the query grammar used by the connection.
  5143. *
  5144. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  5145. * @return \Illuminate\Database\MySqlConnection
  5146. * @static
  5147. */
  5148. public static function setQueryGrammar($grammar)
  5149. { //Method inherited from \Illuminate\Database\Connection
  5150. /** @var \Illuminate\Database\MySqlConnection $instance */
  5151. return $instance->setQueryGrammar($grammar);
  5152. }
  5153. /**
  5154. * Get the schema grammar used by the connection.
  5155. *
  5156. * @return \Illuminate\Database\Schema\Grammars\Grammar
  5157. * @static
  5158. */
  5159. public static function getSchemaGrammar()
  5160. { //Method inherited from \Illuminate\Database\Connection
  5161. /** @var \Illuminate\Database\MySqlConnection $instance */
  5162. return $instance->getSchemaGrammar();
  5163. }
  5164. /**
  5165. * Set the schema grammar used by the connection.
  5166. *
  5167. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  5168. * @return \Illuminate\Database\MySqlConnection
  5169. * @static
  5170. */
  5171. public static function setSchemaGrammar($grammar)
  5172. { //Method inherited from \Illuminate\Database\Connection
  5173. /** @var \Illuminate\Database\MySqlConnection $instance */
  5174. return $instance->setSchemaGrammar($grammar);
  5175. }
  5176. /**
  5177. * Get the query post processor used by the connection.
  5178. *
  5179. * @return \Illuminate\Database\Query\Processors\Processor
  5180. * @static
  5181. */
  5182. public static function getPostProcessor()
  5183. { //Method inherited from \Illuminate\Database\Connection
  5184. /** @var \Illuminate\Database\MySqlConnection $instance */
  5185. return $instance->getPostProcessor();
  5186. }
  5187. /**
  5188. * Set the query post processor used by the connection.
  5189. *
  5190. * @param \Illuminate\Database\Query\Processors\Processor $processor
  5191. * @return \Illuminate\Database\MySqlConnection
  5192. * @static
  5193. */
  5194. public static function setPostProcessor($processor)
  5195. { //Method inherited from \Illuminate\Database\Connection
  5196. /** @var \Illuminate\Database\MySqlConnection $instance */
  5197. return $instance->setPostProcessor($processor);
  5198. }
  5199. /**
  5200. * Get the event dispatcher used by the connection.
  5201. *
  5202. * @return \Illuminate\Contracts\Events\Dispatcher
  5203. * @static
  5204. */
  5205. public static function getEventDispatcher()
  5206. { //Method inherited from \Illuminate\Database\Connection
  5207. /** @var \Illuminate\Database\MySqlConnection $instance */
  5208. return $instance->getEventDispatcher();
  5209. }
  5210. /**
  5211. * Set the event dispatcher instance on the connection.
  5212. *
  5213. * @param \Illuminate\Contracts\Events\Dispatcher $events
  5214. * @return \Illuminate\Database\MySqlConnection
  5215. * @static
  5216. */
  5217. public static function setEventDispatcher($events)
  5218. { //Method inherited from \Illuminate\Database\Connection
  5219. /** @var \Illuminate\Database\MySqlConnection $instance */
  5220. return $instance->setEventDispatcher($events);
  5221. }
  5222. /**
  5223. * Unset the event dispatcher for this connection.
  5224. *
  5225. * @return void
  5226. * @static
  5227. */
  5228. public static function unsetEventDispatcher()
  5229. { //Method inherited from \Illuminate\Database\Connection
  5230. /** @var \Illuminate\Database\MySqlConnection $instance */
  5231. $instance->unsetEventDispatcher();
  5232. }
  5233. /**
  5234. * Set the transaction manager instance on the connection.
  5235. *
  5236. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  5237. * @return \Illuminate\Database\MySqlConnection
  5238. * @static
  5239. */
  5240. public static function setTransactionManager($manager)
  5241. { //Method inherited from \Illuminate\Database\Connection
  5242. /** @var \Illuminate\Database\MySqlConnection $instance */
  5243. return $instance->setTransactionManager($manager);
  5244. }
  5245. /**
  5246. * Unset the transaction manager for this connection.
  5247. *
  5248. * @return void
  5249. * @static
  5250. */
  5251. public static function unsetTransactionManager()
  5252. { //Method inherited from \Illuminate\Database\Connection
  5253. /** @var \Illuminate\Database\MySqlConnection $instance */
  5254. $instance->unsetTransactionManager();
  5255. }
  5256. /**
  5257. * Determine if the connection is in a "dry run".
  5258. *
  5259. * @return bool
  5260. * @static
  5261. */
  5262. public static function pretending()
  5263. { //Method inherited from \Illuminate\Database\Connection
  5264. /** @var \Illuminate\Database\MySqlConnection $instance */
  5265. return $instance->pretending();
  5266. }
  5267. /**
  5268. * Get the connection query log.
  5269. *
  5270. * @return array
  5271. * @static
  5272. */
  5273. public static function getQueryLog()
  5274. { //Method inherited from \Illuminate\Database\Connection
  5275. /** @var \Illuminate\Database\MySqlConnection $instance */
  5276. return $instance->getQueryLog();
  5277. }
  5278. /**
  5279. * Clear the query log.
  5280. *
  5281. * @return void
  5282. * @static
  5283. */
  5284. public static function flushQueryLog()
  5285. { //Method inherited from \Illuminate\Database\Connection
  5286. /** @var \Illuminate\Database\MySqlConnection $instance */
  5287. $instance->flushQueryLog();
  5288. }
  5289. /**
  5290. * Enable the query log on the connection.
  5291. *
  5292. * @return void
  5293. * @static
  5294. */
  5295. public static function enableQueryLog()
  5296. { //Method inherited from \Illuminate\Database\Connection
  5297. /** @var \Illuminate\Database\MySqlConnection $instance */
  5298. $instance->enableQueryLog();
  5299. }
  5300. /**
  5301. * Disable the query log on the connection.
  5302. *
  5303. * @return void
  5304. * @static
  5305. */
  5306. public static function disableQueryLog()
  5307. { //Method inherited from \Illuminate\Database\Connection
  5308. /** @var \Illuminate\Database\MySqlConnection $instance */
  5309. $instance->disableQueryLog();
  5310. }
  5311. /**
  5312. * Determine whether we're logging queries.
  5313. *
  5314. * @return bool
  5315. * @static
  5316. */
  5317. public static function logging()
  5318. { //Method inherited from \Illuminate\Database\Connection
  5319. /** @var \Illuminate\Database\MySqlConnection $instance */
  5320. return $instance->logging();
  5321. }
  5322. /**
  5323. * Get the name of the connected database.
  5324. *
  5325. * @return string
  5326. * @static
  5327. */
  5328. public static function getDatabaseName()
  5329. { //Method inherited from \Illuminate\Database\Connection
  5330. /** @var \Illuminate\Database\MySqlConnection $instance */
  5331. return $instance->getDatabaseName();
  5332. }
  5333. /**
  5334. * Set the name of the connected database.
  5335. *
  5336. * @param string $database
  5337. * @return \Illuminate\Database\MySqlConnection
  5338. * @static
  5339. */
  5340. public static function setDatabaseName($database)
  5341. { //Method inherited from \Illuminate\Database\Connection
  5342. /** @var \Illuminate\Database\MySqlConnection $instance */
  5343. return $instance->setDatabaseName($database);
  5344. }
  5345. /**
  5346. * Set the read / write type of the connection.
  5347. *
  5348. * @param string|null $readWriteType
  5349. * @return \Illuminate\Database\MySqlConnection
  5350. * @static
  5351. */
  5352. public static function setReadWriteType($readWriteType)
  5353. { //Method inherited from \Illuminate\Database\Connection
  5354. /** @var \Illuminate\Database\MySqlConnection $instance */
  5355. return $instance->setReadWriteType($readWriteType);
  5356. }
  5357. /**
  5358. * Get the table prefix for the connection.
  5359. *
  5360. * @return string
  5361. * @static
  5362. */
  5363. public static function getTablePrefix()
  5364. { //Method inherited from \Illuminate\Database\Connection
  5365. /** @var \Illuminate\Database\MySqlConnection $instance */
  5366. return $instance->getTablePrefix();
  5367. }
  5368. /**
  5369. * Set the table prefix in use by the connection.
  5370. *
  5371. * @param string $prefix
  5372. * @return \Illuminate\Database\MySqlConnection
  5373. * @static
  5374. */
  5375. public static function setTablePrefix($prefix)
  5376. { //Method inherited from \Illuminate\Database\Connection
  5377. /** @var \Illuminate\Database\MySqlConnection $instance */
  5378. return $instance->setTablePrefix($prefix);
  5379. }
  5380. /**
  5381. * Set the table prefix and return the grammar.
  5382. *
  5383. * @param \Illuminate\Database\Grammar $grammar
  5384. * @return \Illuminate\Database\Grammar
  5385. * @static
  5386. */
  5387. public static function withTablePrefix($grammar)
  5388. { //Method inherited from \Illuminate\Database\Connection
  5389. /** @var \Illuminate\Database\MySqlConnection $instance */
  5390. return $instance->withTablePrefix($grammar);
  5391. }
  5392. /**
  5393. * Register a connection resolver.
  5394. *
  5395. * @param string $driver
  5396. * @param \Closure $callback
  5397. * @return void
  5398. * @static
  5399. */
  5400. public static function resolverFor($driver, $callback)
  5401. { //Method inherited from \Illuminate\Database\Connection
  5402. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  5403. }
  5404. /**
  5405. * Get the connection resolver for the given driver.
  5406. *
  5407. * @param string $driver
  5408. * @return mixed
  5409. * @static
  5410. */
  5411. public static function getResolver($driver)
  5412. { //Method inherited from \Illuminate\Database\Connection
  5413. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  5414. }
  5415. /**
  5416. * Execute a Closure within a transaction.
  5417. *
  5418. * @param \Closure $callback
  5419. * @param int $attempts
  5420. * @return mixed
  5421. * @throws \Throwable
  5422. * @static
  5423. */
  5424. public static function transaction($callback, $attempts = 1)
  5425. { //Method inherited from \Illuminate\Database\Connection
  5426. /** @var \Illuminate\Database\MySqlConnection $instance */
  5427. return $instance->transaction($callback, $attempts);
  5428. }
  5429. /**
  5430. * Start a new database transaction.
  5431. *
  5432. * @return void
  5433. * @throws \Throwable
  5434. * @static
  5435. */
  5436. public static function beginTransaction()
  5437. { //Method inherited from \Illuminate\Database\Connection
  5438. /** @var \Illuminate\Database\MySqlConnection $instance */
  5439. $instance->beginTransaction();
  5440. }
  5441. /**
  5442. * Commit the active database transaction.
  5443. *
  5444. * @return void
  5445. * @throws \Throwable
  5446. * @static
  5447. */
  5448. public static function commit()
  5449. { //Method inherited from \Illuminate\Database\Connection
  5450. /** @var \Illuminate\Database\MySqlConnection $instance */
  5451. $instance->commit();
  5452. }
  5453. /**
  5454. * Rollback the active database transaction.
  5455. *
  5456. * @param int|null $toLevel
  5457. * @return void
  5458. * @throws \Throwable
  5459. * @static
  5460. */
  5461. public static function rollBack($toLevel = null)
  5462. { //Method inherited from \Illuminate\Database\Connection
  5463. /** @var \Illuminate\Database\MySqlConnection $instance */
  5464. $instance->rollBack($toLevel);
  5465. }
  5466. /**
  5467. * Get the number of active transactions.
  5468. *
  5469. * @return int
  5470. * @static
  5471. */
  5472. public static function transactionLevel()
  5473. { //Method inherited from \Illuminate\Database\Connection
  5474. /** @var \Illuminate\Database\MySqlConnection $instance */
  5475. return $instance->transactionLevel();
  5476. }
  5477. /**
  5478. * Execute the callback after a transaction commits.
  5479. *
  5480. * @param callable $callback
  5481. * @return void
  5482. * @throws \RuntimeException
  5483. * @static
  5484. */
  5485. public static function afterCommit($callback)
  5486. { //Method inherited from \Illuminate\Database\Connection
  5487. /** @var \Illuminate\Database\MySqlConnection $instance */
  5488. $instance->afterCommit($callback);
  5489. }
  5490. }
  5491. /**
  5492. *
  5493. *
  5494. * @see \Illuminate\Events\Dispatcher
  5495. */
  5496. class Event {
  5497. /**
  5498. * Register an event listener with the dispatcher.
  5499. *
  5500. * @param \Closure|string|array $events
  5501. * @param \Closure|string|array|null $listener
  5502. * @return void
  5503. * @static
  5504. */
  5505. public static function listen($events, $listener = null)
  5506. {
  5507. /** @var \Illuminate\Events\Dispatcher $instance */
  5508. $instance->listen($events, $listener);
  5509. }
  5510. /**
  5511. * Determine if a given event has listeners.
  5512. *
  5513. * @param string $eventName
  5514. * @return bool
  5515. * @static
  5516. */
  5517. public static function hasListeners($eventName)
  5518. {
  5519. /** @var \Illuminate\Events\Dispatcher $instance */
  5520. return $instance->hasListeners($eventName);
  5521. }
  5522. /**
  5523. * Determine if the given event has any wildcard listeners.
  5524. *
  5525. * @param string $eventName
  5526. * @return bool
  5527. * @static
  5528. */
  5529. public static function hasWildcardListeners($eventName)
  5530. {
  5531. /** @var \Illuminate\Events\Dispatcher $instance */
  5532. return $instance->hasWildcardListeners($eventName);
  5533. }
  5534. /**
  5535. * Register an event and payload to be fired later.
  5536. *
  5537. * @param string $event
  5538. * @param array $payload
  5539. * @return void
  5540. * @static
  5541. */
  5542. public static function push($event, $payload = [])
  5543. {
  5544. /** @var \Illuminate\Events\Dispatcher $instance */
  5545. $instance->push($event, $payload);
  5546. }
  5547. /**
  5548. * Flush a set of pushed events.
  5549. *
  5550. * @param string $event
  5551. * @return void
  5552. * @static
  5553. */
  5554. public static function flush($event)
  5555. {
  5556. /** @var \Illuminate\Events\Dispatcher $instance */
  5557. $instance->flush($event);
  5558. }
  5559. /**
  5560. * Register an event subscriber with the dispatcher.
  5561. *
  5562. * @param object|string $subscriber
  5563. * @return void
  5564. * @static
  5565. */
  5566. public static function subscribe($subscriber)
  5567. {
  5568. /** @var \Illuminate\Events\Dispatcher $instance */
  5569. $instance->subscribe($subscriber);
  5570. }
  5571. /**
  5572. * Fire an event until the first non-null response is returned.
  5573. *
  5574. * @param string|object $event
  5575. * @param mixed $payload
  5576. * @return array|null
  5577. * @static
  5578. */
  5579. public static function until($event, $payload = [])
  5580. {
  5581. /** @var \Illuminate\Events\Dispatcher $instance */
  5582. return $instance->until($event, $payload);
  5583. }
  5584. /**
  5585. * Fire an event and call the listeners.
  5586. *
  5587. * @param string|object $event
  5588. * @param mixed $payload
  5589. * @param bool $halt
  5590. * @return array|null
  5591. * @static
  5592. */
  5593. public static function dispatch($event, $payload = [], $halt = false)
  5594. {
  5595. /** @var \Illuminate\Events\Dispatcher $instance */
  5596. return $instance->dispatch($event, $payload, $halt);
  5597. }
  5598. /**
  5599. * Get all of the listeners for a given event name.
  5600. *
  5601. * @param string $eventName
  5602. * @return array
  5603. * @static
  5604. */
  5605. public static function getListeners($eventName)
  5606. {
  5607. /** @var \Illuminate\Events\Dispatcher $instance */
  5608. return $instance->getListeners($eventName);
  5609. }
  5610. /**
  5611. * Register an event listener with the dispatcher.
  5612. *
  5613. * @param \Closure|string|array $listener
  5614. * @param bool $wildcard
  5615. * @return \Closure
  5616. * @static
  5617. */
  5618. public static function makeListener($listener, $wildcard = false)
  5619. {
  5620. /** @var \Illuminate\Events\Dispatcher $instance */
  5621. return $instance->makeListener($listener, $wildcard);
  5622. }
  5623. /**
  5624. * Create a class based listener using the IoC container.
  5625. *
  5626. * @param string $listener
  5627. * @param bool $wildcard
  5628. * @return \Closure
  5629. * @static
  5630. */
  5631. public static function createClassListener($listener, $wildcard = false)
  5632. {
  5633. /** @var \Illuminate\Events\Dispatcher $instance */
  5634. return $instance->createClassListener($listener, $wildcard);
  5635. }
  5636. /**
  5637. * Remove a set of listeners from the dispatcher.
  5638. *
  5639. * @param string $event
  5640. * @return void
  5641. * @static
  5642. */
  5643. public static function forget($event)
  5644. {
  5645. /** @var \Illuminate\Events\Dispatcher $instance */
  5646. $instance->forget($event);
  5647. }
  5648. /**
  5649. * Forget all of the pushed listeners.
  5650. *
  5651. * @return void
  5652. * @static
  5653. */
  5654. public static function forgetPushed()
  5655. {
  5656. /** @var \Illuminate\Events\Dispatcher $instance */
  5657. $instance->forgetPushed();
  5658. }
  5659. /**
  5660. * Set the queue resolver implementation.
  5661. *
  5662. * @param callable $resolver
  5663. * @return \Illuminate\Events\Dispatcher
  5664. * @static
  5665. */
  5666. public static function setQueueResolver($resolver)
  5667. {
  5668. /** @var \Illuminate\Events\Dispatcher $instance */
  5669. return $instance->setQueueResolver($resolver);
  5670. }
  5671. /**
  5672. * Register a custom macro.
  5673. *
  5674. * @param string $name
  5675. * @param object|callable $macro
  5676. * @return void
  5677. * @static
  5678. */
  5679. public static function macro($name, $macro)
  5680. {
  5681. \Illuminate\Events\Dispatcher::macro($name, $macro);
  5682. }
  5683. /**
  5684. * Mix another object into the class.
  5685. *
  5686. * @param object $mixin
  5687. * @param bool $replace
  5688. * @return void
  5689. * @throws \ReflectionException
  5690. * @static
  5691. */
  5692. public static function mixin($mixin, $replace = true)
  5693. {
  5694. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  5695. }
  5696. /**
  5697. * Checks if macro is registered.
  5698. *
  5699. * @param string $name
  5700. * @return bool
  5701. * @static
  5702. */
  5703. public static function hasMacro($name)
  5704. {
  5705. return \Illuminate\Events\Dispatcher::hasMacro($name);
  5706. }
  5707. /**
  5708. * Flush the existing macros.
  5709. *
  5710. * @return void
  5711. * @static
  5712. */
  5713. public static function flushMacros()
  5714. {
  5715. \Illuminate\Events\Dispatcher::flushMacros();
  5716. }
  5717. /**
  5718. * Assert if an event has a listener attached to it.
  5719. *
  5720. * @param string $expectedEvent
  5721. * @param string $expectedListener
  5722. * @return void
  5723. * @static
  5724. */
  5725. public static function assertListening($expectedEvent, $expectedListener)
  5726. {
  5727. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5728. $instance->assertListening($expectedEvent, $expectedListener);
  5729. }
  5730. /**
  5731. * Assert if an event was dispatched based on a truth-test callback.
  5732. *
  5733. * @param string|\Closure $event
  5734. * @param callable|int|null $callback
  5735. * @return void
  5736. * @static
  5737. */
  5738. public static function assertDispatched($event, $callback = null)
  5739. {
  5740. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5741. $instance->assertDispatched($event, $callback);
  5742. }
  5743. /**
  5744. * Assert if an event was dispatched a number of times.
  5745. *
  5746. * @param string $event
  5747. * @param int $times
  5748. * @return void
  5749. * @static
  5750. */
  5751. public static function assertDispatchedTimes($event, $times = 1)
  5752. {
  5753. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5754. $instance->assertDispatchedTimes($event, $times);
  5755. }
  5756. /**
  5757. * Determine if an event was dispatched based on a truth-test callback.
  5758. *
  5759. * @param string|\Closure $event
  5760. * @param callable|null $callback
  5761. * @return void
  5762. * @static
  5763. */
  5764. public static function assertNotDispatched($event, $callback = null)
  5765. {
  5766. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5767. $instance->assertNotDispatched($event, $callback);
  5768. }
  5769. /**
  5770. * Assert that no events were dispatched.
  5771. *
  5772. * @return void
  5773. * @static
  5774. */
  5775. public static function assertNothingDispatched()
  5776. {
  5777. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5778. $instance->assertNothingDispatched();
  5779. }
  5780. /**
  5781. * Get all of the events matching a truth-test callback.
  5782. *
  5783. * @param string $event
  5784. * @param callable|null $callback
  5785. * @return \Illuminate\Support\Collection
  5786. * @static
  5787. */
  5788. public static function dispatched($event, $callback = null)
  5789. {
  5790. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5791. return $instance->dispatched($event, $callback);
  5792. }
  5793. /**
  5794. * Determine if the given event has been dispatched.
  5795. *
  5796. * @param string $event
  5797. * @return bool
  5798. * @static
  5799. */
  5800. public static function hasDispatched($event)
  5801. {
  5802. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5803. return $instance->hasDispatched($event);
  5804. }
  5805. }
  5806. /**
  5807. *
  5808. *
  5809. * @see \Illuminate\Filesystem\Filesystem
  5810. */
  5811. class File {
  5812. /**
  5813. * Determine if a file or directory exists.
  5814. *
  5815. * @param string $path
  5816. * @return bool
  5817. * @static
  5818. */
  5819. public static function exists($path)
  5820. {
  5821. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5822. return $instance->exists($path);
  5823. }
  5824. /**
  5825. * Determine if a file or directory is missing.
  5826. *
  5827. * @param string $path
  5828. * @return bool
  5829. * @static
  5830. */
  5831. public static function missing($path)
  5832. {
  5833. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5834. return $instance->missing($path);
  5835. }
  5836. /**
  5837. * Get the contents of a file.
  5838. *
  5839. * @param string $path
  5840. * @param bool $lock
  5841. * @return string
  5842. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5843. * @static
  5844. */
  5845. public static function get($path, $lock = false)
  5846. {
  5847. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5848. return $instance->get($path, $lock);
  5849. }
  5850. /**
  5851. * Get contents of a file with shared access.
  5852. *
  5853. * @param string $path
  5854. * @return string
  5855. * @static
  5856. */
  5857. public static function sharedGet($path)
  5858. {
  5859. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5860. return $instance->sharedGet($path);
  5861. }
  5862. /**
  5863. * Get the returned value of a file.
  5864. *
  5865. * @param string $path
  5866. * @param array $data
  5867. * @return mixed
  5868. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5869. * @static
  5870. */
  5871. public static function getRequire($path, $data = [])
  5872. {
  5873. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5874. return $instance->getRequire($path, $data);
  5875. }
  5876. /**
  5877. * Require the given file once.
  5878. *
  5879. * @param string $path
  5880. * @param array $data
  5881. * @return mixed
  5882. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5883. * @static
  5884. */
  5885. public static function requireOnce($path, $data = [])
  5886. {
  5887. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5888. return $instance->requireOnce($path, $data);
  5889. }
  5890. /**
  5891. * Get the contents of a file one line at a time.
  5892. *
  5893. * @param string $path
  5894. * @return \Illuminate\Support\LazyCollection
  5895. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5896. * @static
  5897. */
  5898. public static function lines($path)
  5899. {
  5900. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5901. return $instance->lines($path);
  5902. }
  5903. /**
  5904. * Get the MD5 hash of the file at the given path.
  5905. *
  5906. * @param string $path
  5907. * @return string
  5908. * @static
  5909. */
  5910. public static function hash($path)
  5911. {
  5912. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5913. return $instance->hash($path);
  5914. }
  5915. /**
  5916. * Write the contents of a file.
  5917. *
  5918. * @param string $path
  5919. * @param string $contents
  5920. * @param bool $lock
  5921. * @return int|bool
  5922. * @static
  5923. */
  5924. public static function put($path, $contents, $lock = false)
  5925. {
  5926. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5927. return $instance->put($path, $contents, $lock);
  5928. }
  5929. /**
  5930. * Write the contents of a file, replacing it atomically if it already exists.
  5931. *
  5932. * @param string $path
  5933. * @param string $content
  5934. * @return void
  5935. * @static
  5936. */
  5937. public static function replace($path, $content)
  5938. {
  5939. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5940. $instance->replace($path, $content);
  5941. }
  5942. /**
  5943. * Replace a given string within a given file.
  5944. *
  5945. * @param array|string $search
  5946. * @param array|string $replace
  5947. * @param string $path
  5948. * @return void
  5949. * @static
  5950. */
  5951. public static function replaceInFile($search, $replace, $path)
  5952. {
  5953. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5954. $instance->replaceInFile($search, $replace, $path);
  5955. }
  5956. /**
  5957. * Prepend to a file.
  5958. *
  5959. * @param string $path
  5960. * @param string $data
  5961. * @return int
  5962. * @static
  5963. */
  5964. public static function prepend($path, $data)
  5965. {
  5966. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5967. return $instance->prepend($path, $data);
  5968. }
  5969. /**
  5970. * Append to a file.
  5971. *
  5972. * @param string $path
  5973. * @param string $data
  5974. * @return int
  5975. * @static
  5976. */
  5977. public static function append($path, $data)
  5978. {
  5979. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5980. return $instance->append($path, $data);
  5981. }
  5982. /**
  5983. * Get or set UNIX mode of a file or directory.
  5984. *
  5985. * @param string $path
  5986. * @param int|null $mode
  5987. * @return mixed
  5988. * @static
  5989. */
  5990. public static function chmod($path, $mode = null)
  5991. {
  5992. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5993. return $instance->chmod($path, $mode);
  5994. }
  5995. /**
  5996. * Delete the file at a given path.
  5997. *
  5998. * @param string|array $paths
  5999. * @return bool
  6000. * @static
  6001. */
  6002. public static function delete($paths)
  6003. {
  6004. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6005. return $instance->delete($paths);
  6006. }
  6007. /**
  6008. * Move a file to a new location.
  6009. *
  6010. * @param string $path
  6011. * @param string $target
  6012. * @return bool
  6013. * @static
  6014. */
  6015. public static function move($path, $target)
  6016. {
  6017. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6018. return $instance->move($path, $target);
  6019. }
  6020. /**
  6021. * Copy a file to a new location.
  6022. *
  6023. * @param string $path
  6024. * @param string $target
  6025. * @return bool
  6026. * @static
  6027. */
  6028. public static function copy($path, $target)
  6029. {
  6030. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6031. return $instance->copy($path, $target);
  6032. }
  6033. /**
  6034. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  6035. *
  6036. * @param string $target
  6037. * @param string $link
  6038. * @return void
  6039. * @static
  6040. */
  6041. public static function link($target, $link)
  6042. {
  6043. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6044. $instance->link($target, $link);
  6045. }
  6046. /**
  6047. * Create a relative symlink to the target file or directory.
  6048. *
  6049. * @param string $target
  6050. * @param string $link
  6051. * @return void
  6052. * @throws \RuntimeException
  6053. * @static
  6054. */
  6055. public static function relativeLink($target, $link)
  6056. {
  6057. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6058. $instance->relativeLink($target, $link);
  6059. }
  6060. /**
  6061. * Extract the file name from a file path.
  6062. *
  6063. * @param string $path
  6064. * @return string
  6065. * @static
  6066. */
  6067. public static function name($path)
  6068. {
  6069. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6070. return $instance->name($path);
  6071. }
  6072. /**
  6073. * Extract the trailing name component from a file path.
  6074. *
  6075. * @param string $path
  6076. * @return string
  6077. * @static
  6078. */
  6079. public static function basename($path)
  6080. {
  6081. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6082. return $instance->basename($path);
  6083. }
  6084. /**
  6085. * Extract the parent directory from a file path.
  6086. *
  6087. * @param string $path
  6088. * @return string
  6089. * @static
  6090. */
  6091. public static function dirname($path)
  6092. {
  6093. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6094. return $instance->dirname($path);
  6095. }
  6096. /**
  6097. * Extract the file extension from a file path.
  6098. *
  6099. * @param string $path
  6100. * @return string
  6101. * @static
  6102. */
  6103. public static function extension($path)
  6104. {
  6105. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6106. return $instance->extension($path);
  6107. }
  6108. /**
  6109. * Guess the file extension from the mime-type of a given file.
  6110. *
  6111. * @param string $path
  6112. * @return string|null
  6113. * @throws \RuntimeException
  6114. * @static
  6115. */
  6116. public static function guessExtension($path)
  6117. {
  6118. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6119. return $instance->guessExtension($path);
  6120. }
  6121. /**
  6122. * Get the file type of a given file.
  6123. *
  6124. * @param string $path
  6125. * @return string
  6126. * @static
  6127. */
  6128. public static function type($path)
  6129. {
  6130. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6131. return $instance->type($path);
  6132. }
  6133. /**
  6134. * Get the mime-type of a given file.
  6135. *
  6136. * @param string $path
  6137. * @return string|false
  6138. * @static
  6139. */
  6140. public static function mimeType($path)
  6141. {
  6142. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6143. return $instance->mimeType($path);
  6144. }
  6145. /**
  6146. * Get the file size of a given file.
  6147. *
  6148. * @param string $path
  6149. * @return int
  6150. * @static
  6151. */
  6152. public static function size($path)
  6153. {
  6154. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6155. return $instance->size($path);
  6156. }
  6157. /**
  6158. * Get the file's last modification time.
  6159. *
  6160. * @param string $path
  6161. * @return int
  6162. * @static
  6163. */
  6164. public static function lastModified($path)
  6165. {
  6166. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6167. return $instance->lastModified($path);
  6168. }
  6169. /**
  6170. * Determine if the given path is a directory.
  6171. *
  6172. * @param string $directory
  6173. * @return bool
  6174. * @static
  6175. */
  6176. public static function isDirectory($directory)
  6177. {
  6178. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6179. return $instance->isDirectory($directory);
  6180. }
  6181. /**
  6182. * Determine if the given path is readable.
  6183. *
  6184. * @param string $path
  6185. * @return bool
  6186. * @static
  6187. */
  6188. public static function isReadable($path)
  6189. {
  6190. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6191. return $instance->isReadable($path);
  6192. }
  6193. /**
  6194. * Determine if the given path is writable.
  6195. *
  6196. * @param string $path
  6197. * @return bool
  6198. * @static
  6199. */
  6200. public static function isWritable($path)
  6201. {
  6202. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6203. return $instance->isWritable($path);
  6204. }
  6205. /**
  6206. * Determine if the given path is a file.
  6207. *
  6208. * @param string $file
  6209. * @return bool
  6210. * @static
  6211. */
  6212. public static function isFile($file)
  6213. {
  6214. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6215. return $instance->isFile($file);
  6216. }
  6217. /**
  6218. * Find path names matching a given pattern.
  6219. *
  6220. * @param string $pattern
  6221. * @param int $flags
  6222. * @return array
  6223. * @static
  6224. */
  6225. public static function glob($pattern, $flags = 0)
  6226. {
  6227. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6228. return $instance->glob($pattern, $flags);
  6229. }
  6230. /**
  6231. * Get an array of all files in a directory.
  6232. *
  6233. * @param string $directory
  6234. * @param bool $hidden
  6235. * @return \Symfony\Component\Finder\SplFileInfo[]
  6236. * @static
  6237. */
  6238. public static function files($directory, $hidden = false)
  6239. {
  6240. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6241. return $instance->files($directory, $hidden);
  6242. }
  6243. /**
  6244. * Get all of the files from the given directory (recursive).
  6245. *
  6246. * @param string $directory
  6247. * @param bool $hidden
  6248. * @return \Symfony\Component\Finder\SplFileInfo[]
  6249. * @static
  6250. */
  6251. public static function allFiles($directory, $hidden = false)
  6252. {
  6253. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6254. return $instance->allFiles($directory, $hidden);
  6255. }
  6256. /**
  6257. * Get all of the directories within a given directory.
  6258. *
  6259. * @param string $directory
  6260. * @return array
  6261. * @static
  6262. */
  6263. public static function directories($directory)
  6264. {
  6265. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6266. return $instance->directories($directory);
  6267. }
  6268. /**
  6269. * Ensure a directory exists.
  6270. *
  6271. * @param string $path
  6272. * @param int $mode
  6273. * @param bool $recursive
  6274. * @return void
  6275. * @static
  6276. */
  6277. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  6278. {
  6279. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6280. $instance->ensureDirectoryExists($path, $mode, $recursive);
  6281. }
  6282. /**
  6283. * Create a directory.
  6284. *
  6285. * @param string $path
  6286. * @param int $mode
  6287. * @param bool $recursive
  6288. * @param bool $force
  6289. * @return bool
  6290. * @static
  6291. */
  6292. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  6293. {
  6294. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6295. return $instance->makeDirectory($path, $mode, $recursive, $force);
  6296. }
  6297. /**
  6298. * Move a directory.
  6299. *
  6300. * @param string $from
  6301. * @param string $to
  6302. * @param bool $overwrite
  6303. * @return bool
  6304. * @static
  6305. */
  6306. public static function moveDirectory($from, $to, $overwrite = false)
  6307. {
  6308. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6309. return $instance->moveDirectory($from, $to, $overwrite);
  6310. }
  6311. /**
  6312. * Copy a directory from one location to another.
  6313. *
  6314. * @param string $directory
  6315. * @param string $destination
  6316. * @param int|null $options
  6317. * @return bool
  6318. * @static
  6319. */
  6320. public static function copyDirectory($directory, $destination, $options = null)
  6321. {
  6322. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6323. return $instance->copyDirectory($directory, $destination, $options);
  6324. }
  6325. /**
  6326. * Recursively delete a directory.
  6327. *
  6328. * The directory itself may be optionally preserved.
  6329. *
  6330. * @param string $directory
  6331. * @param bool $preserve
  6332. * @return bool
  6333. * @static
  6334. */
  6335. public static function deleteDirectory($directory, $preserve = false)
  6336. {
  6337. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6338. return $instance->deleteDirectory($directory, $preserve);
  6339. }
  6340. /**
  6341. * Remove all of the directories within a given directory.
  6342. *
  6343. * @param string $directory
  6344. * @return bool
  6345. * @static
  6346. */
  6347. public static function deleteDirectories($directory)
  6348. {
  6349. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6350. return $instance->deleteDirectories($directory);
  6351. }
  6352. /**
  6353. * Empty the specified directory of all files and folders.
  6354. *
  6355. * @param string $directory
  6356. * @return bool
  6357. * @static
  6358. */
  6359. public static function cleanDirectory($directory)
  6360. {
  6361. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6362. return $instance->cleanDirectory($directory);
  6363. }
  6364. /**
  6365. * Register a custom macro.
  6366. *
  6367. * @param string $name
  6368. * @param object|callable $macro
  6369. * @return void
  6370. * @static
  6371. */
  6372. public static function macro($name, $macro)
  6373. {
  6374. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  6375. }
  6376. /**
  6377. * Mix another object into the class.
  6378. *
  6379. * @param object $mixin
  6380. * @param bool $replace
  6381. * @return void
  6382. * @throws \ReflectionException
  6383. * @static
  6384. */
  6385. public static function mixin($mixin, $replace = true)
  6386. {
  6387. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  6388. }
  6389. /**
  6390. * Checks if macro is registered.
  6391. *
  6392. * @param string $name
  6393. * @return bool
  6394. * @static
  6395. */
  6396. public static function hasMacro($name)
  6397. {
  6398. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  6399. }
  6400. /**
  6401. * Flush the existing macros.
  6402. *
  6403. * @return void
  6404. * @static
  6405. */
  6406. public static function flushMacros()
  6407. {
  6408. \Illuminate\Filesystem\Filesystem::flushMacros();
  6409. }
  6410. }
  6411. /**
  6412. *
  6413. *
  6414. * @see \Illuminate\Contracts\Auth\Access\Gate
  6415. */
  6416. class Gate {
  6417. /**
  6418. * Determine if a given ability has been defined.
  6419. *
  6420. * @param string|array $ability
  6421. * @return bool
  6422. * @static
  6423. */
  6424. public static function has($ability)
  6425. {
  6426. /** @var \Illuminate\Auth\Access\Gate $instance */
  6427. return $instance->has($ability);
  6428. }
  6429. /**
  6430. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is false.
  6431. *
  6432. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  6433. * @param string|null $message
  6434. * @param string|null $code
  6435. * @return \Illuminate\Auth\Access\Response
  6436. * @throws \Illuminate\Auth\Access\AuthorizationException
  6437. * @static
  6438. */
  6439. public static function allowIf($condition, $message = null, $code = null)
  6440. {
  6441. /** @var \Illuminate\Auth\Access\Gate $instance */
  6442. return $instance->allowIf($condition, $message, $code);
  6443. }
  6444. /**
  6445. * Perform an on-demand authorization check. Throw an authorization exception if the condition or callback is true.
  6446. *
  6447. * @param \Illuminate\Auth\Access\Response|\Closure|bool $condition
  6448. * @param string|null $message
  6449. * @param string|null $code
  6450. * @return \Illuminate\Auth\Access\Response
  6451. * @throws \Illuminate\Auth\Access\AuthorizationException
  6452. * @static
  6453. */
  6454. public static function denyIf($condition, $message = null, $code = null)
  6455. {
  6456. /** @var \Illuminate\Auth\Access\Gate $instance */
  6457. return $instance->denyIf($condition, $message, $code);
  6458. }
  6459. /**
  6460. * Define a new ability.
  6461. *
  6462. * @param string $ability
  6463. * @param callable|string $callback
  6464. * @return \Illuminate\Auth\Access\Gate
  6465. * @throws \InvalidArgumentException
  6466. * @static
  6467. */
  6468. public static function define($ability, $callback)
  6469. {
  6470. /** @var \Illuminate\Auth\Access\Gate $instance */
  6471. return $instance->define($ability, $callback);
  6472. }
  6473. /**
  6474. * Define abilities for a resource.
  6475. *
  6476. * @param string $name
  6477. * @param string $class
  6478. * @param array|null $abilities
  6479. * @return \Illuminate\Auth\Access\Gate
  6480. * @static
  6481. */
  6482. public static function resource($name, $class, $abilities = null)
  6483. {
  6484. /** @var \Illuminate\Auth\Access\Gate $instance */
  6485. return $instance->resource($name, $class, $abilities);
  6486. }
  6487. /**
  6488. * Define a policy class for a given class type.
  6489. *
  6490. * @param string $class
  6491. * @param string $policy
  6492. * @return \Illuminate\Auth\Access\Gate
  6493. * @static
  6494. */
  6495. public static function policy($class, $policy)
  6496. {
  6497. /** @var \Illuminate\Auth\Access\Gate $instance */
  6498. return $instance->policy($class, $policy);
  6499. }
  6500. /**
  6501. * Register a callback to run before all Gate checks.
  6502. *
  6503. * @param callable $callback
  6504. * @return \Illuminate\Auth\Access\Gate
  6505. * @static
  6506. */
  6507. public static function before($callback)
  6508. {
  6509. /** @var \Illuminate\Auth\Access\Gate $instance */
  6510. return $instance->before($callback);
  6511. }
  6512. /**
  6513. * Register a callback to run after all Gate checks.
  6514. *
  6515. * @param callable $callback
  6516. * @return \Illuminate\Auth\Access\Gate
  6517. * @static
  6518. */
  6519. public static function after($callback)
  6520. {
  6521. /** @var \Illuminate\Auth\Access\Gate $instance */
  6522. return $instance->after($callback);
  6523. }
  6524. /**
  6525. * Determine if the given ability should be granted for the current user.
  6526. *
  6527. * @param string $ability
  6528. * @param array|mixed $arguments
  6529. * @return bool
  6530. * @static
  6531. */
  6532. public static function allows($ability, $arguments = [])
  6533. {
  6534. /** @var \Illuminate\Auth\Access\Gate $instance */
  6535. return $instance->allows($ability, $arguments);
  6536. }
  6537. /**
  6538. * Determine if the given ability should be denied for the current user.
  6539. *
  6540. * @param string $ability
  6541. * @param array|mixed $arguments
  6542. * @return bool
  6543. * @static
  6544. */
  6545. public static function denies($ability, $arguments = [])
  6546. {
  6547. /** @var \Illuminate\Auth\Access\Gate $instance */
  6548. return $instance->denies($ability, $arguments);
  6549. }
  6550. /**
  6551. * Determine if all of the given abilities should be granted for the current user.
  6552. *
  6553. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6554. * @param array|mixed $arguments
  6555. * @return bool
  6556. * @static
  6557. */
  6558. public static function check($abilities, $arguments = [])
  6559. {
  6560. /** @var \Illuminate\Auth\Access\Gate $instance */
  6561. return $instance->check($abilities, $arguments);
  6562. }
  6563. /**
  6564. * Determine if any one of the given abilities should be granted for the current user.
  6565. *
  6566. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6567. * @param array|mixed $arguments
  6568. * @return bool
  6569. * @static
  6570. */
  6571. public static function any($abilities, $arguments = [])
  6572. {
  6573. /** @var \Illuminate\Auth\Access\Gate $instance */
  6574. return $instance->any($abilities, $arguments);
  6575. }
  6576. /**
  6577. * Determine if all of the given abilities should be denied for the current user.
  6578. *
  6579. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6580. * @param array|mixed $arguments
  6581. * @return bool
  6582. * @static
  6583. */
  6584. public static function none($abilities, $arguments = [])
  6585. {
  6586. /** @var \Illuminate\Auth\Access\Gate $instance */
  6587. return $instance->none($abilities, $arguments);
  6588. }
  6589. /**
  6590. * Determine if the given ability should be granted for the current user.
  6591. *
  6592. * @param string $ability
  6593. * @param array|mixed $arguments
  6594. * @return \Illuminate\Auth\Access\Response
  6595. * @throws \Illuminate\Auth\Access\AuthorizationException
  6596. * @static
  6597. */
  6598. public static function authorize($ability, $arguments = [])
  6599. {
  6600. /** @var \Illuminate\Auth\Access\Gate $instance */
  6601. return $instance->authorize($ability, $arguments);
  6602. }
  6603. /**
  6604. * Inspect the user for the given ability.
  6605. *
  6606. * @param string $ability
  6607. * @param array|mixed $arguments
  6608. * @return \Illuminate\Auth\Access\Response
  6609. * @static
  6610. */
  6611. public static function inspect($ability, $arguments = [])
  6612. {
  6613. /** @var \Illuminate\Auth\Access\Gate $instance */
  6614. return $instance->inspect($ability, $arguments);
  6615. }
  6616. /**
  6617. * Get the raw result from the authorization callback.
  6618. *
  6619. * @param string $ability
  6620. * @param array|mixed $arguments
  6621. * @return mixed
  6622. * @throws \Illuminate\Auth\Access\AuthorizationException
  6623. * @static
  6624. */
  6625. public static function raw($ability, $arguments = [])
  6626. {
  6627. /** @var \Illuminate\Auth\Access\Gate $instance */
  6628. return $instance->raw($ability, $arguments);
  6629. }
  6630. /**
  6631. * Get a policy instance for a given class.
  6632. *
  6633. * @param object|string $class
  6634. * @return mixed
  6635. * @static
  6636. */
  6637. public static function getPolicyFor($class)
  6638. {
  6639. /** @var \Illuminate\Auth\Access\Gate $instance */
  6640. return $instance->getPolicyFor($class);
  6641. }
  6642. /**
  6643. * Specify a callback to be used to guess policy names.
  6644. *
  6645. * @param callable $callback
  6646. * @return \Illuminate\Auth\Access\Gate
  6647. * @static
  6648. */
  6649. public static function guessPolicyNamesUsing($callback)
  6650. {
  6651. /** @var \Illuminate\Auth\Access\Gate $instance */
  6652. return $instance->guessPolicyNamesUsing($callback);
  6653. }
  6654. /**
  6655. * Build a policy class instance of the given type.
  6656. *
  6657. * @param object|string $class
  6658. * @return mixed
  6659. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  6660. * @static
  6661. */
  6662. public static function resolvePolicy($class)
  6663. {
  6664. /** @var \Illuminate\Auth\Access\Gate $instance */
  6665. return $instance->resolvePolicy($class);
  6666. }
  6667. /**
  6668. * Get a gate instance for the given user.
  6669. *
  6670. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  6671. * @return static
  6672. * @static
  6673. */
  6674. public static function forUser($user)
  6675. {
  6676. /** @var \Illuminate\Auth\Access\Gate $instance */
  6677. return $instance->forUser($user);
  6678. }
  6679. /**
  6680. * Get all of the defined abilities.
  6681. *
  6682. * @return array
  6683. * @static
  6684. */
  6685. public static function abilities()
  6686. {
  6687. /** @var \Illuminate\Auth\Access\Gate $instance */
  6688. return $instance->abilities();
  6689. }
  6690. /**
  6691. * Get all of the defined policies.
  6692. *
  6693. * @return array
  6694. * @static
  6695. */
  6696. public static function policies()
  6697. {
  6698. /** @var \Illuminate\Auth\Access\Gate $instance */
  6699. return $instance->policies();
  6700. }
  6701. /**
  6702. * Set the container instance used by the gate.
  6703. *
  6704. * @param \Illuminate\Contracts\Container\Container $container
  6705. * @return \Illuminate\Auth\Access\Gate
  6706. * @static
  6707. */
  6708. public static function setContainer($container)
  6709. {
  6710. /** @var \Illuminate\Auth\Access\Gate $instance */
  6711. return $instance->setContainer($container);
  6712. }
  6713. }
  6714. /**
  6715. *
  6716. *
  6717. * @see \Illuminate\Hashing\HashManager
  6718. */
  6719. class Hash {
  6720. /**
  6721. * Create an instance of the Bcrypt hash Driver.
  6722. *
  6723. * @return \Illuminate\Hashing\BcryptHasher
  6724. * @static
  6725. */
  6726. public static function createBcryptDriver()
  6727. {
  6728. /** @var \Illuminate\Hashing\HashManager $instance */
  6729. return $instance->createBcryptDriver();
  6730. }
  6731. /**
  6732. * Create an instance of the Argon2i hash Driver.
  6733. *
  6734. * @return \Illuminate\Hashing\ArgonHasher
  6735. * @static
  6736. */
  6737. public static function createArgonDriver()
  6738. {
  6739. /** @var \Illuminate\Hashing\HashManager $instance */
  6740. return $instance->createArgonDriver();
  6741. }
  6742. /**
  6743. * Create an instance of the Argon2id hash Driver.
  6744. *
  6745. * @return \Illuminate\Hashing\Argon2IdHasher
  6746. * @static
  6747. */
  6748. public static function createArgon2idDriver()
  6749. {
  6750. /** @var \Illuminate\Hashing\HashManager $instance */
  6751. return $instance->createArgon2idDriver();
  6752. }
  6753. /**
  6754. * Get information about the given hashed value.
  6755. *
  6756. * @param string $hashedValue
  6757. * @return array
  6758. * @static
  6759. */
  6760. public static function info($hashedValue)
  6761. {
  6762. /** @var \Illuminate\Hashing\HashManager $instance */
  6763. return $instance->info($hashedValue);
  6764. }
  6765. /**
  6766. * Hash the given value.
  6767. *
  6768. * @param string $value
  6769. * @param array $options
  6770. * @return string
  6771. * @static
  6772. */
  6773. public static function make($value, $options = [])
  6774. {
  6775. /** @var \Illuminate\Hashing\HashManager $instance */
  6776. return $instance->make($value, $options);
  6777. }
  6778. /**
  6779. * Check the given plain value against a hash.
  6780. *
  6781. * @param string $value
  6782. * @param string $hashedValue
  6783. * @param array $options
  6784. * @return bool
  6785. * @static
  6786. */
  6787. public static function check($value, $hashedValue, $options = [])
  6788. {
  6789. /** @var \Illuminate\Hashing\HashManager $instance */
  6790. return $instance->check($value, $hashedValue, $options);
  6791. }
  6792. /**
  6793. * Check if the given hash has been hashed using the given options.
  6794. *
  6795. * @param string $hashedValue
  6796. * @param array $options
  6797. * @return bool
  6798. * @static
  6799. */
  6800. public static function needsRehash($hashedValue, $options = [])
  6801. {
  6802. /** @var \Illuminate\Hashing\HashManager $instance */
  6803. return $instance->needsRehash($hashedValue, $options);
  6804. }
  6805. /**
  6806. * Get the default driver name.
  6807. *
  6808. * @return string
  6809. * @static
  6810. */
  6811. public static function getDefaultDriver()
  6812. {
  6813. /** @var \Illuminate\Hashing\HashManager $instance */
  6814. return $instance->getDefaultDriver();
  6815. }
  6816. /**
  6817. * Get a driver instance.
  6818. *
  6819. * @param string|null $driver
  6820. * @return mixed
  6821. * @throws \InvalidArgumentException
  6822. * @static
  6823. */
  6824. public static function driver($driver = null)
  6825. { //Method inherited from \Illuminate\Support\Manager
  6826. /** @var \Illuminate\Hashing\HashManager $instance */
  6827. return $instance->driver($driver);
  6828. }
  6829. /**
  6830. * Register a custom driver creator Closure.
  6831. *
  6832. * @param string $driver
  6833. * @param \Closure $callback
  6834. * @return \Illuminate\Hashing\HashManager
  6835. * @static
  6836. */
  6837. public static function extend($driver, $callback)
  6838. { //Method inherited from \Illuminate\Support\Manager
  6839. /** @var \Illuminate\Hashing\HashManager $instance */
  6840. return $instance->extend($driver, $callback);
  6841. }
  6842. /**
  6843. * Get all of the created "drivers".
  6844. *
  6845. * @return array
  6846. * @static
  6847. */
  6848. public static function getDrivers()
  6849. { //Method inherited from \Illuminate\Support\Manager
  6850. /** @var \Illuminate\Hashing\HashManager $instance */
  6851. return $instance->getDrivers();
  6852. }
  6853. /**
  6854. * Get the container instance used by the manager.
  6855. *
  6856. * @return \Illuminate\Contracts\Container\Container
  6857. * @static
  6858. */
  6859. public static function getContainer()
  6860. { //Method inherited from \Illuminate\Support\Manager
  6861. /** @var \Illuminate\Hashing\HashManager $instance */
  6862. return $instance->getContainer();
  6863. }
  6864. /**
  6865. * Set the container instance used by the manager.
  6866. *
  6867. * @param \Illuminate\Contracts\Container\Container $container
  6868. * @return \Illuminate\Hashing\HashManager
  6869. * @static
  6870. */
  6871. public static function setContainer($container)
  6872. { //Method inherited from \Illuminate\Support\Manager
  6873. /** @var \Illuminate\Hashing\HashManager $instance */
  6874. return $instance->setContainer($container);
  6875. }
  6876. /**
  6877. * Forget all of the resolved driver instances.
  6878. *
  6879. * @return \Illuminate\Hashing\HashManager
  6880. * @static
  6881. */
  6882. public static function forgetDrivers()
  6883. { //Method inherited from \Illuminate\Support\Manager
  6884. /** @var \Illuminate\Hashing\HashManager $instance */
  6885. return $instance->forgetDrivers();
  6886. }
  6887. }
  6888. /**
  6889. *
  6890. *
  6891. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  6892. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  6893. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  6894. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  6895. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  6896. * @method static \Illuminate\Http\Client\PendingRequest async()
  6897. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string $contents = '', string|null $filename = null, array $headers = [])
  6898. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  6899. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  6900. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  6901. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  6902. * @method static \Illuminate\Http\Client\PendingRequest dd()
  6903. * @method static \Illuminate\Http\Client\PendingRequest dump()
  6904. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleep = 0, ?callable $when = null)
  6905. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  6906. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  6907. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  6908. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  6909. * @method static \Illuminate\Http\Client\PendingRequest withBody(resource|string $content, string $contentType)
  6910. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  6911. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  6912. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  6913. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  6914. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  6915. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  6916. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string $userAgent)
  6917. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  6918. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  6919. * @method static array pool(callable $callback)
  6920. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  6921. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  6922. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  6923. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  6924. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  6925. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  6926. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  6927. * @see \Illuminate\Http\Client\Factory
  6928. */
  6929. class Http {
  6930. /**
  6931. * Create a new response instance for use during stubbing.
  6932. *
  6933. * @param array|string $body
  6934. * @param int $status
  6935. * @param array $headers
  6936. * @return \GuzzleHttp\Promise\PromiseInterface
  6937. * @static
  6938. */
  6939. public static function response($body = null, $status = 200, $headers = [])
  6940. {
  6941. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  6942. }
  6943. /**
  6944. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  6945. *
  6946. * @param array $responses
  6947. * @return \Illuminate\Http\Client\ResponseSequence
  6948. * @static
  6949. */
  6950. public static function sequence($responses = [])
  6951. {
  6952. /** @var \Illuminate\Http\Client\Factory $instance */
  6953. return $instance->sequence($responses);
  6954. }
  6955. /**
  6956. * Register a stub callable that will intercept requests and be able to return stub responses.
  6957. *
  6958. * @param callable|array $callback
  6959. * @return \Illuminate\Http\Client\Factory
  6960. * @static
  6961. */
  6962. public static function fake($callback = null)
  6963. {
  6964. /** @var \Illuminate\Http\Client\Factory $instance */
  6965. return $instance->fake($callback);
  6966. }
  6967. /**
  6968. * Register a response sequence for the given URL pattern.
  6969. *
  6970. * @param string $url
  6971. * @return \Illuminate\Http\Client\ResponseSequence
  6972. * @static
  6973. */
  6974. public static function fakeSequence($url = '*')
  6975. {
  6976. /** @var \Illuminate\Http\Client\Factory $instance */
  6977. return $instance->fakeSequence($url);
  6978. }
  6979. /**
  6980. * Stub the given URL using the given callback.
  6981. *
  6982. * @param string $url
  6983. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  6984. * @return \Illuminate\Http\Client\Factory
  6985. * @static
  6986. */
  6987. public static function stubUrl($url, $callback)
  6988. {
  6989. /** @var \Illuminate\Http\Client\Factory $instance */
  6990. return $instance->stubUrl($url, $callback);
  6991. }
  6992. /**
  6993. * Record a request response pair.
  6994. *
  6995. * @param \Illuminate\Http\Client\Request $request
  6996. * @param \Illuminate\Http\Client\Response $response
  6997. * @return void
  6998. * @static
  6999. */
  7000. public static function recordRequestResponsePair($request, $response)
  7001. {
  7002. /** @var \Illuminate\Http\Client\Factory $instance */
  7003. $instance->recordRequestResponsePair($request, $response);
  7004. }
  7005. /**
  7006. * Assert that a request / response pair was recorded matching a given truth test.
  7007. *
  7008. * @param callable $callback
  7009. * @return void
  7010. * @static
  7011. */
  7012. public static function assertSent($callback)
  7013. {
  7014. /** @var \Illuminate\Http\Client\Factory $instance */
  7015. $instance->assertSent($callback);
  7016. }
  7017. /**
  7018. * Assert that the given request was sent in the given order.
  7019. *
  7020. * @param array $callbacks
  7021. * @return void
  7022. * @static
  7023. */
  7024. public static function assertSentInOrder($callbacks)
  7025. {
  7026. /** @var \Illuminate\Http\Client\Factory $instance */
  7027. $instance->assertSentInOrder($callbacks);
  7028. }
  7029. /**
  7030. * Assert that a request / response pair was not recorded matching a given truth test.
  7031. *
  7032. * @param callable $callback
  7033. * @return void
  7034. * @static
  7035. */
  7036. public static function assertNotSent($callback)
  7037. {
  7038. /** @var \Illuminate\Http\Client\Factory $instance */
  7039. $instance->assertNotSent($callback);
  7040. }
  7041. /**
  7042. * Assert that no request / response pair was recorded.
  7043. *
  7044. * @return void
  7045. * @static
  7046. */
  7047. public static function assertNothingSent()
  7048. {
  7049. /** @var \Illuminate\Http\Client\Factory $instance */
  7050. $instance->assertNothingSent();
  7051. }
  7052. /**
  7053. * Assert how many requests have been recorded.
  7054. *
  7055. * @param int $count
  7056. * @return void
  7057. * @static
  7058. */
  7059. public static function assertSentCount($count)
  7060. {
  7061. /** @var \Illuminate\Http\Client\Factory $instance */
  7062. $instance->assertSentCount($count);
  7063. }
  7064. /**
  7065. * Assert that every created response sequence is empty.
  7066. *
  7067. * @return void
  7068. * @static
  7069. */
  7070. public static function assertSequencesAreEmpty()
  7071. {
  7072. /** @var \Illuminate\Http\Client\Factory $instance */
  7073. $instance->assertSequencesAreEmpty();
  7074. }
  7075. /**
  7076. * Get a collection of the request / response pairs matching the given truth test.
  7077. *
  7078. * @param callable $callback
  7079. * @return \Illuminate\Support\Collection
  7080. * @static
  7081. */
  7082. public static function recorded($callback = null)
  7083. {
  7084. /** @var \Illuminate\Http\Client\Factory $instance */
  7085. return $instance->recorded($callback);
  7086. }
  7087. /**
  7088. * Get the current event dispatcher implementation.
  7089. *
  7090. * @return \Illuminate\Contracts\Events\Dispatcher|null
  7091. * @static
  7092. */
  7093. public static function getDispatcher()
  7094. {
  7095. /** @var \Illuminate\Http\Client\Factory $instance */
  7096. return $instance->getDispatcher();
  7097. }
  7098. /**
  7099. * Register a custom macro.
  7100. *
  7101. * @param string $name
  7102. * @param object|callable $macro
  7103. * @return void
  7104. * @static
  7105. */
  7106. public static function macro($name, $macro)
  7107. {
  7108. \Illuminate\Http\Client\Factory::macro($name, $macro);
  7109. }
  7110. /**
  7111. * Mix another object into the class.
  7112. *
  7113. * @param object $mixin
  7114. * @param bool $replace
  7115. * @return void
  7116. * @throws \ReflectionException
  7117. * @static
  7118. */
  7119. public static function mixin($mixin, $replace = true)
  7120. {
  7121. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  7122. }
  7123. /**
  7124. * Checks if macro is registered.
  7125. *
  7126. * @param string $name
  7127. * @return bool
  7128. * @static
  7129. */
  7130. public static function hasMacro($name)
  7131. {
  7132. return \Illuminate\Http\Client\Factory::hasMacro($name);
  7133. }
  7134. /**
  7135. * Flush the existing macros.
  7136. *
  7137. * @return void
  7138. * @static
  7139. */
  7140. public static function flushMacros()
  7141. {
  7142. \Illuminate\Http\Client\Factory::flushMacros();
  7143. }
  7144. /**
  7145. * Dynamically handle calls to the class.
  7146. *
  7147. * @param string $method
  7148. * @param array $parameters
  7149. * @return mixed
  7150. * @throws \BadMethodCallException
  7151. * @static
  7152. */
  7153. public static function macroCall($method, $parameters)
  7154. {
  7155. /** @var \Illuminate\Http\Client\Factory $instance */
  7156. return $instance->macroCall($method, $parameters);
  7157. }
  7158. }
  7159. /**
  7160. *
  7161. *
  7162. * @see \Illuminate\Translation\Translator
  7163. */
  7164. class Lang {
  7165. /**
  7166. * Determine if a translation exists for a given locale.
  7167. *
  7168. * @param string $key
  7169. * @param string|null $locale
  7170. * @return bool
  7171. * @static
  7172. */
  7173. public static function hasForLocale($key, $locale = null)
  7174. {
  7175. /** @var \Illuminate\Translation\Translator $instance */
  7176. return $instance->hasForLocale($key, $locale);
  7177. }
  7178. /**
  7179. * Determine if a translation exists.
  7180. *
  7181. * @param string $key
  7182. * @param string|null $locale
  7183. * @param bool $fallback
  7184. * @return bool
  7185. * @static
  7186. */
  7187. public static function has($key, $locale = null, $fallback = true)
  7188. {
  7189. /** @var \Illuminate\Translation\Translator $instance */
  7190. return $instance->has($key, $locale, $fallback);
  7191. }
  7192. /**
  7193. * Get the translation for the given key.
  7194. *
  7195. * @param string $key
  7196. * @param array $replace
  7197. * @param string|null $locale
  7198. * @param bool $fallback
  7199. * @return string|array
  7200. * @static
  7201. */
  7202. public static function get($key, $replace = [], $locale = null, $fallback = true)
  7203. {
  7204. /** @var \Illuminate\Translation\Translator $instance */
  7205. return $instance->get($key, $replace, $locale, $fallback);
  7206. }
  7207. /**
  7208. * Get a translation according to an integer value.
  7209. *
  7210. * @param string $key
  7211. * @param \Countable|int|array $number
  7212. * @param array $replace
  7213. * @param string|null $locale
  7214. * @return string
  7215. * @static
  7216. */
  7217. public static function choice($key, $number, $replace = [], $locale = null)
  7218. {
  7219. /** @var \Illuminate\Translation\Translator $instance */
  7220. return $instance->choice($key, $number, $replace, $locale);
  7221. }
  7222. /**
  7223. * Add translation lines to the given locale.
  7224. *
  7225. * @param array $lines
  7226. * @param string $locale
  7227. * @param string $namespace
  7228. * @return void
  7229. * @static
  7230. */
  7231. public static function addLines($lines, $locale, $namespace = '*')
  7232. {
  7233. /** @var \Illuminate\Translation\Translator $instance */
  7234. $instance->addLines($lines, $locale, $namespace);
  7235. }
  7236. /**
  7237. * Load the specified language group.
  7238. *
  7239. * @param string $namespace
  7240. * @param string $group
  7241. * @param string $locale
  7242. * @return void
  7243. * @static
  7244. */
  7245. public static function load($namespace, $group, $locale)
  7246. {
  7247. /** @var \Illuminate\Translation\Translator $instance */
  7248. $instance->load($namespace, $group, $locale);
  7249. }
  7250. /**
  7251. * Add a new namespace to the loader.
  7252. *
  7253. * @param string $namespace
  7254. * @param string $hint
  7255. * @return void
  7256. * @static
  7257. */
  7258. public static function addNamespace($namespace, $hint)
  7259. {
  7260. /** @var \Illuminate\Translation\Translator $instance */
  7261. $instance->addNamespace($namespace, $hint);
  7262. }
  7263. /**
  7264. * Add a new JSON path to the loader.
  7265. *
  7266. * @param string $path
  7267. * @return void
  7268. * @static
  7269. */
  7270. public static function addJsonPath($path)
  7271. {
  7272. /** @var \Illuminate\Translation\Translator $instance */
  7273. $instance->addJsonPath($path);
  7274. }
  7275. /**
  7276. * Parse a key into namespace, group, and item.
  7277. *
  7278. * @param string $key
  7279. * @return array
  7280. * @static
  7281. */
  7282. public static function parseKey($key)
  7283. {
  7284. /** @var \Illuminate\Translation\Translator $instance */
  7285. return $instance->parseKey($key);
  7286. }
  7287. /**
  7288. * Get the message selector instance.
  7289. *
  7290. * @return \Illuminate\Translation\MessageSelector
  7291. * @static
  7292. */
  7293. public static function getSelector()
  7294. {
  7295. /** @var \Illuminate\Translation\Translator $instance */
  7296. return $instance->getSelector();
  7297. }
  7298. /**
  7299. * Set the message selector instance.
  7300. *
  7301. * @param \Illuminate\Translation\MessageSelector $selector
  7302. * @return void
  7303. * @static
  7304. */
  7305. public static function setSelector($selector)
  7306. {
  7307. /** @var \Illuminate\Translation\Translator $instance */
  7308. $instance->setSelector($selector);
  7309. }
  7310. /**
  7311. * Get the language line loader implementation.
  7312. *
  7313. * @return \Illuminate\Contracts\Translation\Loader
  7314. * @static
  7315. */
  7316. public static function getLoader()
  7317. {
  7318. /** @var \Illuminate\Translation\Translator $instance */
  7319. return $instance->getLoader();
  7320. }
  7321. /**
  7322. * Get the default locale being used.
  7323. *
  7324. * @return string
  7325. * @static
  7326. */
  7327. public static function locale()
  7328. {
  7329. /** @var \Illuminate\Translation\Translator $instance */
  7330. return $instance->locale();
  7331. }
  7332. /**
  7333. * Get the default locale being used.
  7334. *
  7335. * @return string
  7336. * @static
  7337. */
  7338. public static function getLocale()
  7339. {
  7340. /** @var \Illuminate\Translation\Translator $instance */
  7341. return $instance->getLocale();
  7342. }
  7343. /**
  7344. * Set the default locale.
  7345. *
  7346. * @param string $locale
  7347. * @return void
  7348. * @throws \InvalidArgumentException
  7349. * @static
  7350. */
  7351. public static function setLocale($locale)
  7352. {
  7353. /** @var \Illuminate\Translation\Translator $instance */
  7354. $instance->setLocale($locale);
  7355. }
  7356. /**
  7357. * Get the fallback locale being used.
  7358. *
  7359. * @return string
  7360. * @static
  7361. */
  7362. public static function getFallback()
  7363. {
  7364. /** @var \Illuminate\Translation\Translator $instance */
  7365. return $instance->getFallback();
  7366. }
  7367. /**
  7368. * Set the fallback locale being used.
  7369. *
  7370. * @param string $fallback
  7371. * @return void
  7372. * @static
  7373. */
  7374. public static function setFallback($fallback)
  7375. {
  7376. /** @var \Illuminate\Translation\Translator $instance */
  7377. $instance->setFallback($fallback);
  7378. }
  7379. /**
  7380. * Set the loaded translation groups.
  7381. *
  7382. * @param array $loaded
  7383. * @return void
  7384. * @static
  7385. */
  7386. public static function setLoaded($loaded)
  7387. {
  7388. /** @var \Illuminate\Translation\Translator $instance */
  7389. $instance->setLoaded($loaded);
  7390. }
  7391. /**
  7392. * Set the parsed value of a key.
  7393. *
  7394. * @param string $key
  7395. * @param array $parsed
  7396. * @return void
  7397. * @static
  7398. */
  7399. public static function setParsedKey($key, $parsed)
  7400. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7401. /** @var \Illuminate\Translation\Translator $instance */
  7402. $instance->setParsedKey($key, $parsed);
  7403. }
  7404. /**
  7405. * Flush the cache of parsed keys.
  7406. *
  7407. * @return void
  7408. * @static
  7409. */
  7410. public static function flushParsedKeys()
  7411. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7412. /** @var \Illuminate\Translation\Translator $instance */
  7413. $instance->flushParsedKeys();
  7414. }
  7415. /**
  7416. * Register a custom macro.
  7417. *
  7418. * @param string $name
  7419. * @param object|callable $macro
  7420. * @return void
  7421. * @static
  7422. */
  7423. public static function macro($name, $macro)
  7424. {
  7425. \Illuminate\Translation\Translator::macro($name, $macro);
  7426. }
  7427. /**
  7428. * Mix another object into the class.
  7429. *
  7430. * @param object $mixin
  7431. * @param bool $replace
  7432. * @return void
  7433. * @throws \ReflectionException
  7434. * @static
  7435. */
  7436. public static function mixin($mixin, $replace = true)
  7437. {
  7438. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  7439. }
  7440. /**
  7441. * Checks if macro is registered.
  7442. *
  7443. * @param string $name
  7444. * @return bool
  7445. * @static
  7446. */
  7447. public static function hasMacro($name)
  7448. {
  7449. return \Illuminate\Translation\Translator::hasMacro($name);
  7450. }
  7451. /**
  7452. * Flush the existing macros.
  7453. *
  7454. * @return void
  7455. * @static
  7456. */
  7457. public static function flushMacros()
  7458. {
  7459. \Illuminate\Translation\Translator::flushMacros();
  7460. }
  7461. }
  7462. /**
  7463. *
  7464. *
  7465. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  7466. * @method static \Illuminate\Log\Logger withoutContext()
  7467. * @method static void write(string $level, string $message, array $context = [])
  7468. * @method static void listen(\Closure $callback)
  7469. * @see \Illuminate\Log\Logger
  7470. */
  7471. class Log {
  7472. /**
  7473. * Build an on-demand log channel.
  7474. *
  7475. * @param array $config
  7476. * @return \Psr\Log\LoggerInterface
  7477. * @static
  7478. */
  7479. public static function build($config)
  7480. {
  7481. /** @var \Illuminate\Log\LogManager $instance */
  7482. return $instance->build($config);
  7483. }
  7484. /**
  7485. * Create a new, on-demand aggregate logger instance.
  7486. *
  7487. * @param array $channels
  7488. * @param string|null $channel
  7489. * @return \Psr\Log\LoggerInterface
  7490. * @static
  7491. */
  7492. public static function stack($channels, $channel = null)
  7493. {
  7494. /** @var \Illuminate\Log\LogManager $instance */
  7495. return $instance->stack($channels, $channel);
  7496. }
  7497. /**
  7498. * Get a log channel instance.
  7499. *
  7500. * @param string|null $channel
  7501. * @return \Psr\Log\LoggerInterface
  7502. * @static
  7503. */
  7504. public static function channel($channel = null)
  7505. {
  7506. /** @var \Illuminate\Log\LogManager $instance */
  7507. return $instance->channel($channel);
  7508. }
  7509. /**
  7510. * Get a log driver instance.
  7511. *
  7512. * @param string|null $driver
  7513. * @return \Psr\Log\LoggerInterface
  7514. * @static
  7515. */
  7516. public static function driver($driver = null)
  7517. {
  7518. /** @var \Illuminate\Log\LogManager $instance */
  7519. return $instance->driver($driver);
  7520. }
  7521. /**
  7522. * Get the default log driver name.
  7523. *
  7524. * @return string|null
  7525. * @static
  7526. */
  7527. public static function getDefaultDriver()
  7528. {
  7529. /** @var \Illuminate\Log\LogManager $instance */
  7530. return $instance->getDefaultDriver();
  7531. }
  7532. /**
  7533. * Set the default log driver name.
  7534. *
  7535. * @param string $name
  7536. * @return void
  7537. * @static
  7538. */
  7539. public static function setDefaultDriver($name)
  7540. {
  7541. /** @var \Illuminate\Log\LogManager $instance */
  7542. $instance->setDefaultDriver($name);
  7543. }
  7544. /**
  7545. * Register a custom driver creator Closure.
  7546. *
  7547. * @param string $driver
  7548. * @param \Closure $callback
  7549. * @return \Illuminate\Log\LogManager
  7550. * @static
  7551. */
  7552. public static function extend($driver, $callback)
  7553. {
  7554. /** @var \Illuminate\Log\LogManager $instance */
  7555. return $instance->extend($driver, $callback);
  7556. }
  7557. /**
  7558. * Unset the given channel instance.
  7559. *
  7560. * @param string|null $driver
  7561. * @return \Illuminate\Log\LogManager
  7562. * @static
  7563. */
  7564. public static function forgetChannel($driver = null)
  7565. {
  7566. /** @var \Illuminate\Log\LogManager $instance */
  7567. return $instance->forgetChannel($driver);
  7568. }
  7569. /**
  7570. * Get all of the resolved log channels.
  7571. *
  7572. * @return array
  7573. * @static
  7574. */
  7575. public static function getChannels()
  7576. {
  7577. /** @var \Illuminate\Log\LogManager $instance */
  7578. return $instance->getChannels();
  7579. }
  7580. /**
  7581. * System is unusable.
  7582. *
  7583. * @param string $message
  7584. * @param array $context
  7585. * @return void
  7586. * @static
  7587. */
  7588. public static function emergency($message, $context = [])
  7589. {
  7590. /** @var \Illuminate\Log\LogManager $instance */
  7591. $instance->emergency($message, $context);
  7592. }
  7593. /**
  7594. * Action must be taken immediately.
  7595. *
  7596. * Example: Entire website down, database unavailable, etc. This should
  7597. * trigger the SMS alerts and wake you up.
  7598. *
  7599. * @param string $message
  7600. * @param array $context
  7601. * @return void
  7602. * @static
  7603. */
  7604. public static function alert($message, $context = [])
  7605. {
  7606. /** @var \Illuminate\Log\LogManager $instance */
  7607. $instance->alert($message, $context);
  7608. }
  7609. /**
  7610. * Critical conditions.
  7611. *
  7612. * Example: Application component unavailable, unexpected exception.
  7613. *
  7614. * @param string $message
  7615. * @param array $context
  7616. * @return void
  7617. * @static
  7618. */
  7619. public static function critical($message, $context = [])
  7620. {
  7621. /** @var \Illuminate\Log\LogManager $instance */
  7622. $instance->critical($message, $context);
  7623. }
  7624. /**
  7625. * Runtime errors that do not require immediate action but should typically
  7626. * be logged and monitored.
  7627. *
  7628. * @param string $message
  7629. * @param array $context
  7630. * @return void
  7631. * @static
  7632. */
  7633. public static function error($message, $context = [])
  7634. {
  7635. /** @var \Illuminate\Log\LogManager $instance */
  7636. $instance->error($message, $context);
  7637. }
  7638. /**
  7639. * Exceptional occurrences that are not errors.
  7640. *
  7641. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  7642. * that are not necessarily wrong.
  7643. *
  7644. * @param string $message
  7645. * @param array $context
  7646. * @return void
  7647. * @static
  7648. */
  7649. public static function warning($message, $context = [])
  7650. {
  7651. /** @var \Illuminate\Log\LogManager $instance */
  7652. $instance->warning($message, $context);
  7653. }
  7654. /**
  7655. * Normal but significant events.
  7656. *
  7657. * @param string $message
  7658. * @param array $context
  7659. * @return void
  7660. * @static
  7661. */
  7662. public static function notice($message, $context = [])
  7663. {
  7664. /** @var \Illuminate\Log\LogManager $instance */
  7665. $instance->notice($message, $context);
  7666. }
  7667. /**
  7668. * Interesting events.
  7669. *
  7670. * Example: User logs in, SQL logs.
  7671. *
  7672. * @param string $message
  7673. * @param array $context
  7674. * @return void
  7675. * @static
  7676. */
  7677. public static function info($message, $context = [])
  7678. {
  7679. /** @var \Illuminate\Log\LogManager $instance */
  7680. $instance->info($message, $context);
  7681. }
  7682. /**
  7683. * Detailed debug information.
  7684. *
  7685. * @param string $message
  7686. * @param array $context
  7687. * @return void
  7688. * @static
  7689. */
  7690. public static function debug($message, $context = [])
  7691. {
  7692. /** @var \Illuminate\Log\LogManager $instance */
  7693. $instance->debug($message, $context);
  7694. }
  7695. /**
  7696. * Logs with an arbitrary level.
  7697. *
  7698. * @param mixed $level
  7699. * @param string $message
  7700. * @param array $context
  7701. * @return void
  7702. * @static
  7703. */
  7704. public static function log($level, $message, $context = [])
  7705. {
  7706. /** @var \Illuminate\Log\LogManager $instance */
  7707. $instance->log($level, $message, $context);
  7708. }
  7709. }
  7710. /**
  7711. *
  7712. *
  7713. * @method static void alwaysFrom(string $address, string|null $name = null)
  7714. * @method static void alwaysReplyTo(string $address, string|null $name = null)
  7715. * @method static void alwaysReturnPath(string $address)
  7716. * @method static void alwaysTo(string $address, string|null $name = null)
  7717. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7718. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7719. * @method static void plain(string $view, array $data, $callback)
  7720. * @method static void html(string $html, $callback)
  7721. * @see \Illuminate\Mail\Mailer
  7722. * @see \Illuminate\Support\Testing\Fakes\MailFake
  7723. */
  7724. class Mail {
  7725. /**
  7726. * Get a mailer instance by name.
  7727. *
  7728. * @param string|null $name
  7729. * @return \Illuminate\Contracts\Mail\Mailer
  7730. * @static
  7731. */
  7732. public static function mailer($name = null)
  7733. {
  7734. /** @var \Illuminate\Mail\MailManager $instance */
  7735. return $instance->mailer($name);
  7736. }
  7737. /**
  7738. * Get a mailer driver instance.
  7739. *
  7740. * @param string|null $driver
  7741. * @return \Illuminate\Mail\Mailer
  7742. * @static
  7743. */
  7744. public static function driver($driver = null)
  7745. {
  7746. /** @var \Illuminate\Mail\MailManager $instance */
  7747. return $instance->driver($driver);
  7748. }
  7749. /**
  7750. * Create a new transport instance.
  7751. *
  7752. * @param array $config
  7753. * @return \Swift_Transport
  7754. * @throws \InvalidArgumentException
  7755. * @static
  7756. */
  7757. public static function createTransport($config)
  7758. {
  7759. /** @var \Illuminate\Mail\MailManager $instance */
  7760. return $instance->createTransport($config);
  7761. }
  7762. /**
  7763. * Get the default mail driver name.
  7764. *
  7765. * @return string
  7766. * @static
  7767. */
  7768. public static function getDefaultDriver()
  7769. {
  7770. /** @var \Illuminate\Mail\MailManager $instance */
  7771. return $instance->getDefaultDriver();
  7772. }
  7773. /**
  7774. * Set the default mail driver name.
  7775. *
  7776. * @param string $name
  7777. * @return void
  7778. * @static
  7779. */
  7780. public static function setDefaultDriver($name)
  7781. {
  7782. /** @var \Illuminate\Mail\MailManager $instance */
  7783. $instance->setDefaultDriver($name);
  7784. }
  7785. /**
  7786. * Disconnect the given mailer and remove from local cache.
  7787. *
  7788. * @param string|null $name
  7789. * @return void
  7790. * @static
  7791. */
  7792. public static function purge($name = null)
  7793. {
  7794. /** @var \Illuminate\Mail\MailManager $instance */
  7795. $instance->purge($name);
  7796. }
  7797. /**
  7798. * Register a custom transport creator Closure.
  7799. *
  7800. * @param string $driver
  7801. * @param \Closure $callback
  7802. * @return \Illuminate\Mail\MailManager
  7803. * @static
  7804. */
  7805. public static function extend($driver, $callback)
  7806. {
  7807. /** @var \Illuminate\Mail\MailManager $instance */
  7808. return $instance->extend($driver, $callback);
  7809. }
  7810. /**
  7811. * Get the application instance used by the manager.
  7812. *
  7813. * @return \Illuminate\Contracts\Foundation\Application
  7814. * @static
  7815. */
  7816. public static function getApplication()
  7817. {
  7818. /** @var \Illuminate\Mail\MailManager $instance */
  7819. return $instance->getApplication();
  7820. }
  7821. /**
  7822. * Set the application instance used by the manager.
  7823. *
  7824. * @param \Illuminate\Contracts\Foundation\Application $app
  7825. * @return \Illuminate\Mail\MailManager
  7826. * @static
  7827. */
  7828. public static function setApplication($app)
  7829. {
  7830. /** @var \Illuminate\Mail\MailManager $instance */
  7831. return $instance->setApplication($app);
  7832. }
  7833. /**
  7834. * Forget all of the resolved mailer instances.
  7835. *
  7836. * @return \Illuminate\Mail\MailManager
  7837. * @static
  7838. */
  7839. public static function forgetMailers()
  7840. {
  7841. /** @var \Illuminate\Mail\MailManager $instance */
  7842. return $instance->forgetMailers();
  7843. }
  7844. /**
  7845. * Assert if a mailable was sent based on a truth-test callback.
  7846. *
  7847. * @param string|\Closure $mailable
  7848. * @param callable|int|null $callback
  7849. * @return void
  7850. * @static
  7851. */
  7852. public static function assertSent($mailable, $callback = null)
  7853. {
  7854. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7855. $instance->assertSent($mailable, $callback);
  7856. }
  7857. /**
  7858. * Determine if a mailable was not sent or queued to be sent based on a truth-test callback.
  7859. *
  7860. * @param string|\Closure $mailable
  7861. * @param callable|null $callback
  7862. * @return void
  7863. * @static
  7864. */
  7865. public static function assertNotOutgoing($mailable, $callback = null)
  7866. {
  7867. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7868. $instance->assertNotOutgoing($mailable, $callback);
  7869. }
  7870. /**
  7871. * Determine if a mailable was not sent based on a truth-test callback.
  7872. *
  7873. * @param string|\Closure $mailable
  7874. * @param callable|null $callback
  7875. * @return void
  7876. * @static
  7877. */
  7878. public static function assertNotSent($mailable, $callback = null)
  7879. {
  7880. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7881. $instance->assertNotSent($mailable, $callback);
  7882. }
  7883. /**
  7884. * Assert that no mailables were sent or queued to be sent.
  7885. *
  7886. * @return void
  7887. * @static
  7888. */
  7889. public static function assertNothingOutgoing()
  7890. {
  7891. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7892. $instance->assertNothingOutgoing();
  7893. }
  7894. /**
  7895. * Assert that no mailables were sent.
  7896. *
  7897. * @return void
  7898. * @static
  7899. */
  7900. public static function assertNothingSent()
  7901. {
  7902. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7903. $instance->assertNothingSent();
  7904. }
  7905. /**
  7906. * Assert if a mailable was queued based on a truth-test callback.
  7907. *
  7908. * @param string|\Closure $mailable
  7909. * @param callable|int|null $callback
  7910. * @return void
  7911. * @static
  7912. */
  7913. public static function assertQueued($mailable, $callback = null)
  7914. {
  7915. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7916. $instance->assertQueued($mailable, $callback);
  7917. }
  7918. /**
  7919. * Determine if a mailable was not queued based on a truth-test callback.
  7920. *
  7921. * @param string|\Closure $mailable
  7922. * @param callable|null $callback
  7923. * @return void
  7924. * @static
  7925. */
  7926. public static function assertNotQueued($mailable, $callback = null)
  7927. {
  7928. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7929. $instance->assertNotQueued($mailable, $callback);
  7930. }
  7931. /**
  7932. * Assert that no mailables were queued.
  7933. *
  7934. * @return void
  7935. * @static
  7936. */
  7937. public static function assertNothingQueued()
  7938. {
  7939. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7940. $instance->assertNothingQueued();
  7941. }
  7942. /**
  7943. * Get all of the mailables matching a truth-test callback.
  7944. *
  7945. * @param string|\Closure $mailable
  7946. * @param callable|null $callback
  7947. * @return \Illuminate\Support\Collection
  7948. * @static
  7949. */
  7950. public static function sent($mailable, $callback = null)
  7951. {
  7952. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7953. return $instance->sent($mailable, $callback);
  7954. }
  7955. /**
  7956. * Determine if the given mailable has been sent.
  7957. *
  7958. * @param string $mailable
  7959. * @return bool
  7960. * @static
  7961. */
  7962. public static function hasSent($mailable)
  7963. {
  7964. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7965. return $instance->hasSent($mailable);
  7966. }
  7967. /**
  7968. * Get all of the queued mailables matching a truth-test callback.
  7969. *
  7970. * @param string|\Closure $mailable
  7971. * @param callable|null $callback
  7972. * @return \Illuminate\Support\Collection
  7973. * @static
  7974. */
  7975. public static function queued($mailable, $callback = null)
  7976. {
  7977. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7978. return $instance->queued($mailable, $callback);
  7979. }
  7980. /**
  7981. * Determine if the given mailable has been queued.
  7982. *
  7983. * @param string $mailable
  7984. * @return bool
  7985. * @static
  7986. */
  7987. public static function hasQueued($mailable)
  7988. {
  7989. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7990. return $instance->hasQueued($mailable);
  7991. }
  7992. /**
  7993. * Begin the process of mailing a mailable class instance.
  7994. *
  7995. * @param mixed $users
  7996. * @return \Illuminate\Mail\PendingMail
  7997. * @static
  7998. */
  7999. public static function to($users)
  8000. {
  8001. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8002. return $instance->to($users);
  8003. }
  8004. /**
  8005. * Begin the process of mailing a mailable class instance.
  8006. *
  8007. * @param mixed $users
  8008. * @return \Illuminate\Mail\PendingMail
  8009. * @static
  8010. */
  8011. public static function bcc($users)
  8012. {
  8013. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8014. return $instance->bcc($users);
  8015. }
  8016. /**
  8017. * Send a new message with only a raw text part.
  8018. *
  8019. * @param string $text
  8020. * @param \Closure|string $callback
  8021. * @return void
  8022. * @static
  8023. */
  8024. public static function raw($text, $callback)
  8025. {
  8026. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8027. $instance->raw($text, $callback);
  8028. }
  8029. /**
  8030. * Send a new message using a view.
  8031. *
  8032. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8033. * @param array $data
  8034. * @param \Closure|string|null $callback
  8035. * @return void
  8036. * @static
  8037. */
  8038. public static function send($view, $data = [], $callback = null)
  8039. {
  8040. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8041. $instance->send($view, $data, $callback);
  8042. }
  8043. /**
  8044. * Queue a new e-mail message for sending.
  8045. *
  8046. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8047. * @param string|null $queue
  8048. * @return mixed
  8049. * @static
  8050. */
  8051. public static function queue($view, $queue = null)
  8052. {
  8053. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8054. return $instance->queue($view, $queue);
  8055. }
  8056. /**
  8057. * Queue a new e-mail message for sending after (n) seconds.
  8058. *
  8059. * @param \DateTimeInterface|\DateInterval|int $delay
  8060. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  8061. * @param string|null $queue
  8062. * @return mixed
  8063. * @static
  8064. */
  8065. public static function later($delay, $view, $queue = null)
  8066. {
  8067. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8068. return $instance->later($delay, $view, $queue);
  8069. }
  8070. /**
  8071. * Get the array of failed recipients.
  8072. *
  8073. * @return array
  8074. * @static
  8075. */
  8076. public static function failures()
  8077. {
  8078. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  8079. return $instance->failures();
  8080. }
  8081. }
  8082. /**
  8083. *
  8084. *
  8085. * @see \Illuminate\Notifications\ChannelManager
  8086. */
  8087. class Notification {
  8088. /**
  8089. * Send the given notification to the given notifiable entities.
  8090. *
  8091. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8092. * @param mixed $notification
  8093. * @return void
  8094. * @static
  8095. */
  8096. public static function send($notifiables, $notification)
  8097. {
  8098. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8099. $instance->send($notifiables, $notification);
  8100. }
  8101. /**
  8102. * Send the given notification immediately.
  8103. *
  8104. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  8105. * @param mixed $notification
  8106. * @param array|null $channels
  8107. * @return void
  8108. * @static
  8109. */
  8110. public static function sendNow($notifiables, $notification, $channels = null)
  8111. {
  8112. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8113. $instance->sendNow($notifiables, $notification, $channels);
  8114. }
  8115. /**
  8116. * Get a channel instance.
  8117. *
  8118. * @param string|null $name
  8119. * @return mixed
  8120. * @static
  8121. */
  8122. public static function channel($name = null)
  8123. {
  8124. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8125. return $instance->channel($name);
  8126. }
  8127. /**
  8128. * Get the default channel driver name.
  8129. *
  8130. * @return string
  8131. * @static
  8132. */
  8133. public static function getDefaultDriver()
  8134. {
  8135. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8136. return $instance->getDefaultDriver();
  8137. }
  8138. /**
  8139. * Get the default channel driver name.
  8140. *
  8141. * @return string
  8142. * @static
  8143. */
  8144. public static function deliversVia()
  8145. {
  8146. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8147. return $instance->deliversVia();
  8148. }
  8149. /**
  8150. * Set the default channel driver name.
  8151. *
  8152. * @param string $channel
  8153. * @return void
  8154. * @static
  8155. */
  8156. public static function deliverVia($channel)
  8157. {
  8158. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8159. $instance->deliverVia($channel);
  8160. }
  8161. /**
  8162. * Set the locale of notifications.
  8163. *
  8164. * @param string $locale
  8165. * @return \Illuminate\Notifications\ChannelManager
  8166. * @static
  8167. */
  8168. public static function locale($locale)
  8169. {
  8170. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8171. return $instance->locale($locale);
  8172. }
  8173. /**
  8174. * Get a driver instance.
  8175. *
  8176. * @param string|null $driver
  8177. * @return mixed
  8178. * @throws \InvalidArgumentException
  8179. * @static
  8180. */
  8181. public static function driver($driver = null)
  8182. { //Method inherited from \Illuminate\Support\Manager
  8183. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8184. return $instance->driver($driver);
  8185. }
  8186. /**
  8187. * Register a custom driver creator Closure.
  8188. *
  8189. * @param string $driver
  8190. * @param \Closure $callback
  8191. * @return \Illuminate\Notifications\ChannelManager
  8192. * @static
  8193. */
  8194. public static function extend($driver, $callback)
  8195. { //Method inherited from \Illuminate\Support\Manager
  8196. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8197. return $instance->extend($driver, $callback);
  8198. }
  8199. /**
  8200. * Get all of the created "drivers".
  8201. *
  8202. * @return array
  8203. * @static
  8204. */
  8205. public static function getDrivers()
  8206. { //Method inherited from \Illuminate\Support\Manager
  8207. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8208. return $instance->getDrivers();
  8209. }
  8210. /**
  8211. * Get the container instance used by the manager.
  8212. *
  8213. * @return \Illuminate\Contracts\Container\Container
  8214. * @static
  8215. */
  8216. public static function getContainer()
  8217. { //Method inherited from \Illuminate\Support\Manager
  8218. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8219. return $instance->getContainer();
  8220. }
  8221. /**
  8222. * Set the container instance used by the manager.
  8223. *
  8224. * @param \Illuminate\Contracts\Container\Container $container
  8225. * @return \Illuminate\Notifications\ChannelManager
  8226. * @static
  8227. */
  8228. public static function setContainer($container)
  8229. { //Method inherited from \Illuminate\Support\Manager
  8230. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8231. return $instance->setContainer($container);
  8232. }
  8233. /**
  8234. * Forget all of the resolved driver instances.
  8235. *
  8236. * @return \Illuminate\Notifications\ChannelManager
  8237. * @static
  8238. */
  8239. public static function forgetDrivers()
  8240. { //Method inherited from \Illuminate\Support\Manager
  8241. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8242. return $instance->forgetDrivers();
  8243. }
  8244. /**
  8245. * Assert if a notification was sent on-demand based on a truth-test callback.
  8246. *
  8247. * @param string|\Closure $notification
  8248. * @param callable|null $callback
  8249. * @return void
  8250. * @throws \Exception
  8251. * @static
  8252. */
  8253. public static function assertSentOnDemand($notification, $callback = null)
  8254. {
  8255. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8256. $instance->assertSentOnDemand($notification, $callback);
  8257. }
  8258. /**
  8259. * Assert if a notification was sent based on a truth-test callback.
  8260. *
  8261. * @param mixed $notifiable
  8262. * @param string|\Closure $notification
  8263. * @param callable|null $callback
  8264. * @return void
  8265. * @throws \Exception
  8266. * @static
  8267. */
  8268. public static function assertSentTo($notifiable, $notification, $callback = null)
  8269. {
  8270. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8271. $instance->assertSentTo($notifiable, $notification, $callback);
  8272. }
  8273. /**
  8274. * Assert if a notification was sent on-demand a number of times.
  8275. *
  8276. * @param string $notification
  8277. * @param int $times
  8278. * @return void
  8279. * @static
  8280. */
  8281. public static function assertSentOnDemandTimes($notification, $times = 1)
  8282. {
  8283. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8284. $instance->assertSentOnDemandTimes($notification, $times);
  8285. }
  8286. /**
  8287. * Assert if a notification was sent a number of times.
  8288. *
  8289. * @param mixed $notifiable
  8290. * @param string $notification
  8291. * @param int $times
  8292. * @return void
  8293. * @static
  8294. */
  8295. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  8296. {
  8297. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8298. $instance->assertSentToTimes($notifiable, $notification, $times);
  8299. }
  8300. /**
  8301. * Determine if a notification was sent based on a truth-test callback.
  8302. *
  8303. * @param mixed $notifiable
  8304. * @param string|\Closure $notification
  8305. * @param callable|null $callback
  8306. * @return void
  8307. * @throws \Exception
  8308. * @static
  8309. */
  8310. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  8311. {
  8312. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8313. $instance->assertNotSentTo($notifiable, $notification, $callback);
  8314. }
  8315. /**
  8316. * Assert that no notifications were sent.
  8317. *
  8318. * @return void
  8319. * @static
  8320. */
  8321. public static function assertNothingSent()
  8322. {
  8323. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8324. $instance->assertNothingSent();
  8325. }
  8326. /**
  8327. * Assert the total amount of times a notification was sent.
  8328. *
  8329. * @param string $notification
  8330. * @param int $expectedCount
  8331. * @return void
  8332. * @static
  8333. */
  8334. public static function assertSentTimes($notification, $expectedCount)
  8335. {
  8336. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8337. $instance->assertSentTimes($notification, $expectedCount);
  8338. }
  8339. /**
  8340. * Assert the total amount of times a notification was sent.
  8341. *
  8342. * @param int $expectedCount
  8343. * @param string $notification
  8344. * @return void
  8345. * @deprecated Use the assertSentTimes method instead
  8346. * @static
  8347. */
  8348. public static function assertTimesSent($expectedCount, $notification)
  8349. {
  8350. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8351. $instance->assertTimesSent($expectedCount, $notification);
  8352. }
  8353. /**
  8354. * Get all of the notifications matching a truth-test callback.
  8355. *
  8356. * @param mixed $notifiable
  8357. * @param string $notification
  8358. * @param callable|null $callback
  8359. * @return \Illuminate\Support\Collection
  8360. * @static
  8361. */
  8362. public static function sent($notifiable, $notification, $callback = null)
  8363. {
  8364. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8365. return $instance->sent($notifiable, $notification, $callback);
  8366. }
  8367. /**
  8368. * Determine if there are more notifications left to inspect.
  8369. *
  8370. * @param mixed $notifiable
  8371. * @param string $notification
  8372. * @return bool
  8373. * @static
  8374. */
  8375. public static function hasSent($notifiable, $notification)
  8376. {
  8377. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8378. return $instance->hasSent($notifiable, $notification);
  8379. }
  8380. /**
  8381. * Register a custom macro.
  8382. *
  8383. * @param string $name
  8384. * @param object|callable $macro
  8385. * @return void
  8386. * @static
  8387. */
  8388. public static function macro($name, $macro)
  8389. {
  8390. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  8391. }
  8392. /**
  8393. * Mix another object into the class.
  8394. *
  8395. * @param object $mixin
  8396. * @param bool $replace
  8397. * @return void
  8398. * @throws \ReflectionException
  8399. * @static
  8400. */
  8401. public static function mixin($mixin, $replace = true)
  8402. {
  8403. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  8404. }
  8405. /**
  8406. * Checks if macro is registered.
  8407. *
  8408. * @param string $name
  8409. * @return bool
  8410. * @static
  8411. */
  8412. public static function hasMacro($name)
  8413. {
  8414. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  8415. }
  8416. /**
  8417. * Flush the existing macros.
  8418. *
  8419. * @return void
  8420. * @static
  8421. */
  8422. public static function flushMacros()
  8423. {
  8424. \Illuminate\Support\Testing\Fakes\NotificationFake::flushMacros();
  8425. }
  8426. }
  8427. /**
  8428. *
  8429. *
  8430. * @method static mixed reset(array $credentials, \Closure $callback)
  8431. * @method static string sendResetLink(array $credentials, \Closure $callback = null)
  8432. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  8433. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8434. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8435. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  8436. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  8437. * @see \Illuminate\Auth\Passwords\PasswordBroker
  8438. */
  8439. class Password {
  8440. /**
  8441. * Attempt to get the broker from the local cache.
  8442. *
  8443. * @param string|null $name
  8444. * @return \Illuminate\Contracts\Auth\PasswordBroker
  8445. * @static
  8446. */
  8447. public static function broker($name = null)
  8448. {
  8449. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8450. return $instance->broker($name);
  8451. }
  8452. /**
  8453. * Get the default password broker name.
  8454. *
  8455. * @return string
  8456. * @static
  8457. */
  8458. public static function getDefaultDriver()
  8459. {
  8460. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8461. return $instance->getDefaultDriver();
  8462. }
  8463. /**
  8464. * Set the default password broker name.
  8465. *
  8466. * @param string $name
  8467. * @return void
  8468. * @static
  8469. */
  8470. public static function setDefaultDriver($name)
  8471. {
  8472. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8473. $instance->setDefaultDriver($name);
  8474. }
  8475. }
  8476. /**
  8477. *
  8478. *
  8479. * @see \Illuminate\Queue\QueueManager
  8480. * @see \Illuminate\Queue\Queue
  8481. */
  8482. class Queue {
  8483. /**
  8484. * Register an event listener for the before job event.
  8485. *
  8486. * @param mixed $callback
  8487. * @return void
  8488. * @static
  8489. */
  8490. public static function before($callback)
  8491. {
  8492. /** @var \Illuminate\Queue\QueueManager $instance */
  8493. $instance->before($callback);
  8494. }
  8495. /**
  8496. * Register an event listener for the after job event.
  8497. *
  8498. * @param mixed $callback
  8499. * @return void
  8500. * @static
  8501. */
  8502. public static function after($callback)
  8503. {
  8504. /** @var \Illuminate\Queue\QueueManager $instance */
  8505. $instance->after($callback);
  8506. }
  8507. /**
  8508. * Register an event listener for the exception occurred job event.
  8509. *
  8510. * @param mixed $callback
  8511. * @return void
  8512. * @static
  8513. */
  8514. public static function exceptionOccurred($callback)
  8515. {
  8516. /** @var \Illuminate\Queue\QueueManager $instance */
  8517. $instance->exceptionOccurred($callback);
  8518. }
  8519. /**
  8520. * Register an event listener for the daemon queue loop.
  8521. *
  8522. * @param mixed $callback
  8523. * @return void
  8524. * @static
  8525. */
  8526. public static function looping($callback)
  8527. {
  8528. /** @var \Illuminate\Queue\QueueManager $instance */
  8529. $instance->looping($callback);
  8530. }
  8531. /**
  8532. * Register an event listener for the failed job event.
  8533. *
  8534. * @param mixed $callback
  8535. * @return void
  8536. * @static
  8537. */
  8538. public static function failing($callback)
  8539. {
  8540. /** @var \Illuminate\Queue\QueueManager $instance */
  8541. $instance->failing($callback);
  8542. }
  8543. /**
  8544. * Register an event listener for the daemon queue stopping.
  8545. *
  8546. * @param mixed $callback
  8547. * @return void
  8548. * @static
  8549. */
  8550. public static function stopping($callback)
  8551. {
  8552. /** @var \Illuminate\Queue\QueueManager $instance */
  8553. $instance->stopping($callback);
  8554. }
  8555. /**
  8556. * Determine if the driver is connected.
  8557. *
  8558. * @param string|null $name
  8559. * @return bool
  8560. * @static
  8561. */
  8562. public static function connected($name = null)
  8563. {
  8564. /** @var \Illuminate\Queue\QueueManager $instance */
  8565. return $instance->connected($name);
  8566. }
  8567. /**
  8568. * Resolve a queue connection instance.
  8569. *
  8570. * @param string|null $name
  8571. * @return \Illuminate\Contracts\Queue\Queue
  8572. * @static
  8573. */
  8574. public static function connection($name = null)
  8575. {
  8576. /** @var \Illuminate\Queue\QueueManager $instance */
  8577. return $instance->connection($name);
  8578. }
  8579. /**
  8580. * Add a queue connection resolver.
  8581. *
  8582. * @param string $driver
  8583. * @param \Closure $resolver
  8584. * @return void
  8585. * @static
  8586. */
  8587. public static function extend($driver, $resolver)
  8588. {
  8589. /** @var \Illuminate\Queue\QueueManager $instance */
  8590. $instance->extend($driver, $resolver);
  8591. }
  8592. /**
  8593. * Add a queue connection resolver.
  8594. *
  8595. * @param string $driver
  8596. * @param \Closure $resolver
  8597. * @return void
  8598. * @static
  8599. */
  8600. public static function addConnector($driver, $resolver)
  8601. {
  8602. /** @var \Illuminate\Queue\QueueManager $instance */
  8603. $instance->addConnector($driver, $resolver);
  8604. }
  8605. /**
  8606. * Get the name of the default queue connection.
  8607. *
  8608. * @return string
  8609. * @static
  8610. */
  8611. public static function getDefaultDriver()
  8612. {
  8613. /** @var \Illuminate\Queue\QueueManager $instance */
  8614. return $instance->getDefaultDriver();
  8615. }
  8616. /**
  8617. * Set the name of the default queue connection.
  8618. *
  8619. * @param string $name
  8620. * @return void
  8621. * @static
  8622. */
  8623. public static function setDefaultDriver($name)
  8624. {
  8625. /** @var \Illuminate\Queue\QueueManager $instance */
  8626. $instance->setDefaultDriver($name);
  8627. }
  8628. /**
  8629. * Get the full name for the given connection.
  8630. *
  8631. * @param string|null $connection
  8632. * @return string
  8633. * @static
  8634. */
  8635. public static function getName($connection = null)
  8636. {
  8637. /** @var \Illuminate\Queue\QueueManager $instance */
  8638. return $instance->getName($connection);
  8639. }
  8640. /**
  8641. * Get the application instance used by the manager.
  8642. *
  8643. * @return \Illuminate\Contracts\Foundation\Application
  8644. * @static
  8645. */
  8646. public static function getApplication()
  8647. {
  8648. /** @var \Illuminate\Queue\QueueManager $instance */
  8649. return $instance->getApplication();
  8650. }
  8651. /**
  8652. * Set the application instance used by the manager.
  8653. *
  8654. * @param \Illuminate\Contracts\Foundation\Application $app
  8655. * @return \Illuminate\Queue\QueueManager
  8656. * @static
  8657. */
  8658. public static function setApplication($app)
  8659. {
  8660. /** @var \Illuminate\Queue\QueueManager $instance */
  8661. return $instance->setApplication($app);
  8662. }
  8663. /**
  8664. * Assert if a job was pushed based on a truth-test callback.
  8665. *
  8666. * @param string|\Closure $job
  8667. * @param callable|int|null $callback
  8668. * @return void
  8669. * @static
  8670. */
  8671. public static function assertPushed($job, $callback = null)
  8672. {
  8673. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8674. $instance->assertPushed($job, $callback);
  8675. }
  8676. /**
  8677. * Assert if a job was pushed based on a truth-test callback.
  8678. *
  8679. * @param string $queue
  8680. * @param string|\Closure $job
  8681. * @param callable|null $callback
  8682. * @return void
  8683. * @static
  8684. */
  8685. public static function assertPushedOn($queue, $job, $callback = null)
  8686. {
  8687. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8688. $instance->assertPushedOn($queue, $job, $callback);
  8689. }
  8690. /**
  8691. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  8692. *
  8693. * @param string $job
  8694. * @param array $expectedChain
  8695. * @param callable|null $callback
  8696. * @return void
  8697. * @static
  8698. */
  8699. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  8700. {
  8701. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8702. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  8703. }
  8704. /**
  8705. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  8706. *
  8707. * @param string $job
  8708. * @param callable|null $callback
  8709. * @return void
  8710. * @static
  8711. */
  8712. public static function assertPushedWithoutChain($job, $callback = null)
  8713. {
  8714. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8715. $instance->assertPushedWithoutChain($job, $callback);
  8716. }
  8717. /**
  8718. * Determine if a job was pushed based on a truth-test callback.
  8719. *
  8720. * @param string|\Closure $job
  8721. * @param callable|null $callback
  8722. * @return void
  8723. * @static
  8724. */
  8725. public static function assertNotPushed($job, $callback = null)
  8726. {
  8727. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8728. $instance->assertNotPushed($job, $callback);
  8729. }
  8730. /**
  8731. * Assert that no jobs were pushed.
  8732. *
  8733. * @return void
  8734. * @static
  8735. */
  8736. public static function assertNothingPushed()
  8737. {
  8738. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8739. $instance->assertNothingPushed();
  8740. }
  8741. /**
  8742. * Get all of the jobs matching a truth-test callback.
  8743. *
  8744. * @param string $job
  8745. * @param callable|null $callback
  8746. * @return \Illuminate\Support\Collection
  8747. * @static
  8748. */
  8749. public static function pushed($job, $callback = null)
  8750. {
  8751. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8752. return $instance->pushed($job, $callback);
  8753. }
  8754. /**
  8755. * Determine if there are any stored jobs for a given class.
  8756. *
  8757. * @param string $job
  8758. * @return bool
  8759. * @static
  8760. */
  8761. public static function hasPushed($job)
  8762. {
  8763. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8764. return $instance->hasPushed($job);
  8765. }
  8766. /**
  8767. * Get the size of the queue.
  8768. *
  8769. * @param string|null $queue
  8770. * @return int
  8771. * @static
  8772. */
  8773. public static function size($queue = null)
  8774. {
  8775. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8776. return $instance->size($queue);
  8777. }
  8778. /**
  8779. * Push a new job onto the queue.
  8780. *
  8781. * @param string $job
  8782. * @param mixed $data
  8783. * @param string|null $queue
  8784. * @return mixed
  8785. * @static
  8786. */
  8787. public static function push($job, $data = '', $queue = null)
  8788. {
  8789. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8790. return $instance->push($job, $data, $queue);
  8791. }
  8792. /**
  8793. * Push a raw payload onto the queue.
  8794. *
  8795. * @param string $payload
  8796. * @param string|null $queue
  8797. * @param array $options
  8798. * @return mixed
  8799. * @static
  8800. */
  8801. public static function pushRaw($payload, $queue = null, $options = [])
  8802. {
  8803. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8804. return $instance->pushRaw($payload, $queue, $options);
  8805. }
  8806. /**
  8807. * Push a new job onto the queue after a delay.
  8808. *
  8809. * @param \DateTimeInterface|\DateInterval|int $delay
  8810. * @param string $job
  8811. * @param mixed $data
  8812. * @param string|null $queue
  8813. * @return mixed
  8814. * @static
  8815. */
  8816. public static function later($delay, $job, $data = '', $queue = null)
  8817. {
  8818. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8819. return $instance->later($delay, $job, $data, $queue);
  8820. }
  8821. /**
  8822. * Push a new job onto the queue.
  8823. *
  8824. * @param string $queue
  8825. * @param string $job
  8826. * @param mixed $data
  8827. * @return mixed
  8828. * @static
  8829. */
  8830. public static function pushOn($queue, $job, $data = '')
  8831. {
  8832. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8833. return $instance->pushOn($queue, $job, $data);
  8834. }
  8835. /**
  8836. * Push a new job onto the queue after a delay.
  8837. *
  8838. * @param string $queue
  8839. * @param \DateTimeInterface|\DateInterval|int $delay
  8840. * @param string $job
  8841. * @param mixed $data
  8842. * @return mixed
  8843. * @static
  8844. */
  8845. public static function laterOn($queue, $delay, $job, $data = '')
  8846. {
  8847. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8848. return $instance->laterOn($queue, $delay, $job, $data);
  8849. }
  8850. /**
  8851. * Pop the next job off of the queue.
  8852. *
  8853. * @param string|null $queue
  8854. * @return \Illuminate\Contracts\Queue\Job|null
  8855. * @static
  8856. */
  8857. public static function pop($queue = null)
  8858. {
  8859. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8860. return $instance->pop($queue);
  8861. }
  8862. /**
  8863. * Push an array of jobs onto the queue.
  8864. *
  8865. * @param array $jobs
  8866. * @param mixed $data
  8867. * @param string|null $queue
  8868. * @return mixed
  8869. * @static
  8870. */
  8871. public static function bulk($jobs, $data = '', $queue = null)
  8872. {
  8873. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8874. return $instance->bulk($jobs, $data, $queue);
  8875. }
  8876. /**
  8877. * Get the jobs that have been pushed.
  8878. *
  8879. * @return array
  8880. * @static
  8881. */
  8882. public static function pushedJobs()
  8883. {
  8884. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8885. return $instance->pushedJobs();
  8886. }
  8887. /**
  8888. * Get the connection name for the queue.
  8889. *
  8890. * @return string
  8891. * @static
  8892. */
  8893. public static function getConnectionName()
  8894. {
  8895. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8896. return $instance->getConnectionName();
  8897. }
  8898. /**
  8899. * Set the connection name for the queue.
  8900. *
  8901. * @param string $name
  8902. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  8903. * @static
  8904. */
  8905. public static function setConnectionName($name)
  8906. {
  8907. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8908. return $instance->setConnectionName($name);
  8909. }
  8910. /**
  8911. * Get the backoff for an object-based queue handler.
  8912. *
  8913. * @param mixed $job
  8914. * @return mixed
  8915. * @static
  8916. */
  8917. public static function getJobBackoff($job)
  8918. { //Method inherited from \Illuminate\Queue\Queue
  8919. /** @var \Illuminate\Queue\SyncQueue $instance */
  8920. return $instance->getJobBackoff($job);
  8921. }
  8922. /**
  8923. * Get the expiration timestamp for an object-based queue handler.
  8924. *
  8925. * @param mixed $job
  8926. * @return mixed
  8927. * @static
  8928. */
  8929. public static function getJobExpiration($job)
  8930. { //Method inherited from \Illuminate\Queue\Queue
  8931. /** @var \Illuminate\Queue\SyncQueue $instance */
  8932. return $instance->getJobExpiration($job);
  8933. }
  8934. /**
  8935. * Register a callback to be executed when creating job payloads.
  8936. *
  8937. * @param callable|null $callback
  8938. * @return void
  8939. * @static
  8940. */
  8941. public static function createPayloadUsing($callback)
  8942. { //Method inherited from \Illuminate\Queue\Queue
  8943. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  8944. }
  8945. /**
  8946. * Get the container instance being used by the connection.
  8947. *
  8948. * @return \Illuminate\Container\Container
  8949. * @static
  8950. */
  8951. public static function getContainer()
  8952. { //Method inherited from \Illuminate\Queue\Queue
  8953. /** @var \Illuminate\Queue\SyncQueue $instance */
  8954. return $instance->getContainer();
  8955. }
  8956. /**
  8957. * Set the IoC container instance.
  8958. *
  8959. * @param \Illuminate\Container\Container $container
  8960. * @return void
  8961. * @static
  8962. */
  8963. public static function setContainer($container)
  8964. { //Method inherited from \Illuminate\Queue\Queue
  8965. /** @var \Illuminate\Queue\SyncQueue $instance */
  8966. $instance->setContainer($container);
  8967. }
  8968. }
  8969. /**
  8970. *
  8971. *
  8972. * @see \Illuminate\Routing\Redirector
  8973. */
  8974. class Redirect {
  8975. /**
  8976. * Create a new redirect response to the "home" route.
  8977. *
  8978. * @param int $status
  8979. * @return \Illuminate\Http\RedirectResponse
  8980. * @static
  8981. */
  8982. public static function home($status = 302)
  8983. {
  8984. /** @var \Illuminate\Routing\Redirector $instance */
  8985. return $instance->home($status);
  8986. }
  8987. /**
  8988. * Create a new redirect response to the previous location.
  8989. *
  8990. * @param int $status
  8991. * @param array $headers
  8992. * @param mixed $fallback
  8993. * @return \Illuminate\Http\RedirectResponse
  8994. * @static
  8995. */
  8996. public static function back($status = 302, $headers = [], $fallback = false)
  8997. {
  8998. /** @var \Illuminate\Routing\Redirector $instance */
  8999. return $instance->back($status, $headers, $fallback);
  9000. }
  9001. /**
  9002. * Create a new redirect response to the current URI.
  9003. *
  9004. * @param int $status
  9005. * @param array $headers
  9006. * @return \Illuminate\Http\RedirectResponse
  9007. * @static
  9008. */
  9009. public static function refresh($status = 302, $headers = [])
  9010. {
  9011. /** @var \Illuminate\Routing\Redirector $instance */
  9012. return $instance->refresh($status, $headers);
  9013. }
  9014. /**
  9015. * Create a new redirect response, while putting the current URL in the session.
  9016. *
  9017. * @param string $path
  9018. * @param int $status
  9019. * @param array $headers
  9020. * @param bool|null $secure
  9021. * @return \Illuminate\Http\RedirectResponse
  9022. * @static
  9023. */
  9024. public static function guest($path, $status = 302, $headers = [], $secure = null)
  9025. {
  9026. /** @var \Illuminate\Routing\Redirector $instance */
  9027. return $instance->guest($path, $status, $headers, $secure);
  9028. }
  9029. /**
  9030. * Create a new redirect response to the previously intended location.
  9031. *
  9032. * @param string $default
  9033. * @param int $status
  9034. * @param array $headers
  9035. * @param bool|null $secure
  9036. * @return \Illuminate\Http\RedirectResponse
  9037. * @static
  9038. */
  9039. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  9040. {
  9041. /** @var \Illuminate\Routing\Redirector $instance */
  9042. return $instance->intended($default, $status, $headers, $secure);
  9043. }
  9044. /**
  9045. * Set the intended url.
  9046. *
  9047. * @param string $url
  9048. * @return void
  9049. * @static
  9050. */
  9051. public static function setIntendedUrl($url)
  9052. {
  9053. /** @var \Illuminate\Routing\Redirector $instance */
  9054. $instance->setIntendedUrl($url);
  9055. }
  9056. /**
  9057. * Create a new redirect response to the given path.
  9058. *
  9059. * @param string $path
  9060. * @param int $status
  9061. * @param array $headers
  9062. * @param bool|null $secure
  9063. * @return \Illuminate\Http\RedirectResponse
  9064. * @static
  9065. */
  9066. public static function to($path, $status = 302, $headers = [], $secure = null)
  9067. {
  9068. /** @var \Illuminate\Routing\Redirector $instance */
  9069. return $instance->to($path, $status, $headers, $secure);
  9070. }
  9071. /**
  9072. * Create a new redirect response to an external URL (no validation).
  9073. *
  9074. * @param string $path
  9075. * @param int $status
  9076. * @param array $headers
  9077. * @return \Illuminate\Http\RedirectResponse
  9078. * @static
  9079. */
  9080. public static function away($path, $status = 302, $headers = [])
  9081. {
  9082. /** @var \Illuminate\Routing\Redirector $instance */
  9083. return $instance->away($path, $status, $headers);
  9084. }
  9085. /**
  9086. * Create a new redirect response to the given HTTPS path.
  9087. *
  9088. * @param string $path
  9089. * @param int $status
  9090. * @param array $headers
  9091. * @return \Illuminate\Http\RedirectResponse
  9092. * @static
  9093. */
  9094. public static function secure($path, $status = 302, $headers = [])
  9095. {
  9096. /** @var \Illuminate\Routing\Redirector $instance */
  9097. return $instance->secure($path, $status, $headers);
  9098. }
  9099. /**
  9100. * Create a new redirect response to a named route.
  9101. *
  9102. * @param string $route
  9103. * @param mixed $parameters
  9104. * @param int $status
  9105. * @param array $headers
  9106. * @return \Illuminate\Http\RedirectResponse
  9107. * @static
  9108. */
  9109. public static function route($route, $parameters = [], $status = 302, $headers = [])
  9110. {
  9111. /** @var \Illuminate\Routing\Redirector $instance */
  9112. return $instance->route($route, $parameters, $status, $headers);
  9113. }
  9114. /**
  9115. * Create a new redirect response to a signed named route.
  9116. *
  9117. * @param string $route
  9118. * @param mixed $parameters
  9119. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9120. * @param int $status
  9121. * @param array $headers
  9122. * @return \Illuminate\Http\RedirectResponse
  9123. * @static
  9124. */
  9125. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  9126. {
  9127. /** @var \Illuminate\Routing\Redirector $instance */
  9128. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  9129. }
  9130. /**
  9131. * Create a new redirect response to a signed named route.
  9132. *
  9133. * @param string $route
  9134. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9135. * @param mixed $parameters
  9136. * @param int $status
  9137. * @param array $headers
  9138. * @return \Illuminate\Http\RedirectResponse
  9139. * @static
  9140. */
  9141. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  9142. {
  9143. /** @var \Illuminate\Routing\Redirector $instance */
  9144. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  9145. }
  9146. /**
  9147. * Create a new redirect response to a controller action.
  9148. *
  9149. * @param string|array $action
  9150. * @param mixed $parameters
  9151. * @param int $status
  9152. * @param array $headers
  9153. * @return \Illuminate\Http\RedirectResponse
  9154. * @static
  9155. */
  9156. public static function action($action, $parameters = [], $status = 302, $headers = [])
  9157. {
  9158. /** @var \Illuminate\Routing\Redirector $instance */
  9159. return $instance->action($action, $parameters, $status, $headers);
  9160. }
  9161. /**
  9162. * Get the URL generator instance.
  9163. *
  9164. * @return \Illuminate\Routing\UrlGenerator
  9165. * @static
  9166. */
  9167. public static function getUrlGenerator()
  9168. {
  9169. /** @var \Illuminate\Routing\Redirector $instance */
  9170. return $instance->getUrlGenerator();
  9171. }
  9172. /**
  9173. * Set the active session store.
  9174. *
  9175. * @param \Illuminate\Session\Store $session
  9176. * @return void
  9177. * @static
  9178. */
  9179. public static function setSession($session)
  9180. {
  9181. /** @var \Illuminate\Routing\Redirector $instance */
  9182. $instance->setSession($session);
  9183. }
  9184. /**
  9185. * Register a custom macro.
  9186. *
  9187. * @param string $name
  9188. * @param object|callable $macro
  9189. * @return void
  9190. * @static
  9191. */
  9192. public static function macro($name, $macro)
  9193. {
  9194. \Illuminate\Routing\Redirector::macro($name, $macro);
  9195. }
  9196. /**
  9197. * Mix another object into the class.
  9198. *
  9199. * @param object $mixin
  9200. * @param bool $replace
  9201. * @return void
  9202. * @throws \ReflectionException
  9203. * @static
  9204. */
  9205. public static function mixin($mixin, $replace = true)
  9206. {
  9207. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  9208. }
  9209. /**
  9210. * Checks if macro is registered.
  9211. *
  9212. * @param string $name
  9213. * @return bool
  9214. * @static
  9215. */
  9216. public static function hasMacro($name)
  9217. {
  9218. return \Illuminate\Routing\Redirector::hasMacro($name);
  9219. }
  9220. /**
  9221. * Flush the existing macros.
  9222. *
  9223. * @return void
  9224. * @static
  9225. */
  9226. public static function flushMacros()
  9227. {
  9228. \Illuminate\Routing\Redirector::flushMacros();
  9229. }
  9230. }
  9231. /**
  9232. *
  9233. *
  9234. */
  9235. class Redis {
  9236. /**
  9237. * Get a Redis connection by name.
  9238. *
  9239. * @param string|null $name
  9240. * @return \Illuminate\Redis\Connections\Connection
  9241. * @static
  9242. */
  9243. public static function connection($name = null)
  9244. {
  9245. /** @var \Illuminate\Redis\RedisManager $instance */
  9246. return $instance->connection($name);
  9247. }
  9248. /**
  9249. * Resolve the given connection by name.
  9250. *
  9251. * @param string|null $name
  9252. * @return \Illuminate\Redis\Connections\Connection
  9253. * @throws \InvalidArgumentException
  9254. * @static
  9255. */
  9256. public static function resolve($name = null)
  9257. {
  9258. /** @var \Illuminate\Redis\RedisManager $instance */
  9259. return $instance->resolve($name);
  9260. }
  9261. /**
  9262. * Return all of the created connections.
  9263. *
  9264. * @return array
  9265. * @static
  9266. */
  9267. public static function connections()
  9268. {
  9269. /** @var \Illuminate\Redis\RedisManager $instance */
  9270. return $instance->connections();
  9271. }
  9272. /**
  9273. * Enable the firing of Redis command events.
  9274. *
  9275. * @return void
  9276. * @static
  9277. */
  9278. public static function enableEvents()
  9279. {
  9280. /** @var \Illuminate\Redis\RedisManager $instance */
  9281. $instance->enableEvents();
  9282. }
  9283. /**
  9284. * Disable the firing of Redis command events.
  9285. *
  9286. * @return void
  9287. * @static
  9288. */
  9289. public static function disableEvents()
  9290. {
  9291. /** @var \Illuminate\Redis\RedisManager $instance */
  9292. $instance->disableEvents();
  9293. }
  9294. /**
  9295. * Set the default driver.
  9296. *
  9297. * @param string $driver
  9298. * @return void
  9299. * @static
  9300. */
  9301. public static function setDriver($driver)
  9302. {
  9303. /** @var \Illuminate\Redis\RedisManager $instance */
  9304. $instance->setDriver($driver);
  9305. }
  9306. /**
  9307. * Disconnect the given connection and remove from local cache.
  9308. *
  9309. * @param string|null $name
  9310. * @return void
  9311. * @static
  9312. */
  9313. public static function purge($name = null)
  9314. {
  9315. /** @var \Illuminate\Redis\RedisManager $instance */
  9316. $instance->purge($name);
  9317. }
  9318. /**
  9319. * Register a custom driver creator Closure.
  9320. *
  9321. * @param string $driver
  9322. * @param \Closure $callback
  9323. * @return \Illuminate\Redis\RedisManager
  9324. * @static
  9325. */
  9326. public static function extend($driver, $callback)
  9327. {
  9328. /** @var \Illuminate\Redis\RedisManager $instance */
  9329. return $instance->extend($driver, $callback);
  9330. }
  9331. }
  9332. /**
  9333. *
  9334. *
  9335. * @method static mixed filterFiles(mixed $files)
  9336. * @see \Illuminate\Http\Request
  9337. */
  9338. class Request {
  9339. /**
  9340. * Create a new Illuminate HTTP request from server variables.
  9341. *
  9342. * @return static
  9343. * @static
  9344. */
  9345. public static function capture()
  9346. {
  9347. return \Illuminate\Http\Request::capture();
  9348. }
  9349. /**
  9350. * Return the Request instance.
  9351. *
  9352. * @return \Illuminate\Http\Request
  9353. * @static
  9354. */
  9355. public static function instance()
  9356. {
  9357. /** @var \Illuminate\Http\Request $instance */
  9358. return $instance->instance();
  9359. }
  9360. /**
  9361. * Get the request method.
  9362. *
  9363. * @return string
  9364. * @static
  9365. */
  9366. public static function method()
  9367. {
  9368. /** @var \Illuminate\Http\Request $instance */
  9369. return $instance->method();
  9370. }
  9371. /**
  9372. * Get the root URL for the application.
  9373. *
  9374. * @return string
  9375. * @static
  9376. */
  9377. public static function root()
  9378. {
  9379. /** @var \Illuminate\Http\Request $instance */
  9380. return $instance->root();
  9381. }
  9382. /**
  9383. * Get the URL (no query string) for the request.
  9384. *
  9385. * @return string
  9386. * @static
  9387. */
  9388. public static function url()
  9389. {
  9390. /** @var \Illuminate\Http\Request $instance */
  9391. return $instance->url();
  9392. }
  9393. /**
  9394. * Get the full URL for the request.
  9395. *
  9396. * @return string
  9397. * @static
  9398. */
  9399. public static function fullUrl()
  9400. {
  9401. /** @var \Illuminate\Http\Request $instance */
  9402. return $instance->fullUrl();
  9403. }
  9404. /**
  9405. * Get the full URL for the request with the added query string parameters.
  9406. *
  9407. * @param array $query
  9408. * @return string
  9409. * @static
  9410. */
  9411. public static function fullUrlWithQuery($query)
  9412. {
  9413. /** @var \Illuminate\Http\Request $instance */
  9414. return $instance->fullUrlWithQuery($query);
  9415. }
  9416. /**
  9417. * Get the full URL for the request without the given query string parameters.
  9418. *
  9419. * @param array|string $query
  9420. * @return string
  9421. * @static
  9422. */
  9423. public static function fullUrlWithoutQuery($keys)
  9424. {
  9425. /** @var \Illuminate\Http\Request $instance */
  9426. return $instance->fullUrlWithoutQuery($keys);
  9427. }
  9428. /**
  9429. * Get the current path info for the request.
  9430. *
  9431. * @return string
  9432. * @static
  9433. */
  9434. public static function path()
  9435. {
  9436. /** @var \Illuminate\Http\Request $instance */
  9437. return $instance->path();
  9438. }
  9439. /**
  9440. * Get the current decoded path info for the request.
  9441. *
  9442. * @return string
  9443. * @static
  9444. */
  9445. public static function decodedPath()
  9446. {
  9447. /** @var \Illuminate\Http\Request $instance */
  9448. return $instance->decodedPath();
  9449. }
  9450. /**
  9451. * Get a segment from the URI (1 based index).
  9452. *
  9453. * @param int $index
  9454. * @param string|null $default
  9455. * @return string|null
  9456. * @static
  9457. */
  9458. public static function segment($index, $default = null)
  9459. {
  9460. /** @var \Illuminate\Http\Request $instance */
  9461. return $instance->segment($index, $default);
  9462. }
  9463. /**
  9464. * Get all of the segments for the request path.
  9465. *
  9466. * @return array
  9467. * @static
  9468. */
  9469. public static function segments()
  9470. {
  9471. /** @var \Illuminate\Http\Request $instance */
  9472. return $instance->segments();
  9473. }
  9474. /**
  9475. * Determine if the current request URI matches a pattern.
  9476. *
  9477. * @param mixed $patterns
  9478. * @return bool
  9479. * @static
  9480. */
  9481. public static function is(...$patterns)
  9482. {
  9483. /** @var \Illuminate\Http\Request $instance */
  9484. return $instance->is(...$patterns);
  9485. }
  9486. /**
  9487. * Determine if the route name matches a given pattern.
  9488. *
  9489. * @param mixed $patterns
  9490. * @return bool
  9491. * @static
  9492. */
  9493. public static function routeIs(...$patterns)
  9494. {
  9495. /** @var \Illuminate\Http\Request $instance */
  9496. return $instance->routeIs(...$patterns);
  9497. }
  9498. /**
  9499. * Determine if the current request URL and query string match a pattern.
  9500. *
  9501. * @param mixed $patterns
  9502. * @return bool
  9503. * @static
  9504. */
  9505. public static function fullUrlIs(...$patterns)
  9506. {
  9507. /** @var \Illuminate\Http\Request $instance */
  9508. return $instance->fullUrlIs(...$patterns);
  9509. }
  9510. /**
  9511. * Determine if the request is the result of an AJAX call.
  9512. *
  9513. * @return bool
  9514. * @static
  9515. */
  9516. public static function ajax()
  9517. {
  9518. /** @var \Illuminate\Http\Request $instance */
  9519. return $instance->ajax();
  9520. }
  9521. /**
  9522. * Determine if the request is the result of a PJAX call.
  9523. *
  9524. * @return bool
  9525. * @static
  9526. */
  9527. public static function pjax()
  9528. {
  9529. /** @var \Illuminate\Http\Request $instance */
  9530. return $instance->pjax();
  9531. }
  9532. /**
  9533. * Determine if the request is the result of a prefetch call.
  9534. *
  9535. * @return bool
  9536. * @static
  9537. */
  9538. public static function prefetch()
  9539. {
  9540. /** @var \Illuminate\Http\Request $instance */
  9541. return $instance->prefetch();
  9542. }
  9543. /**
  9544. * Determine if the request is over HTTPS.
  9545. *
  9546. * @return bool
  9547. * @static
  9548. */
  9549. public static function secure()
  9550. {
  9551. /** @var \Illuminate\Http\Request $instance */
  9552. return $instance->secure();
  9553. }
  9554. /**
  9555. * Get the client IP address.
  9556. *
  9557. * @return string|null
  9558. * @static
  9559. */
  9560. public static function ip()
  9561. {
  9562. /** @var \Illuminate\Http\Request $instance */
  9563. return $instance->ip();
  9564. }
  9565. /**
  9566. * Get the client IP addresses.
  9567. *
  9568. * @return array
  9569. * @static
  9570. */
  9571. public static function ips()
  9572. {
  9573. /** @var \Illuminate\Http\Request $instance */
  9574. return $instance->ips();
  9575. }
  9576. /**
  9577. * Get the client user agent.
  9578. *
  9579. * @return string|null
  9580. * @static
  9581. */
  9582. public static function userAgent()
  9583. {
  9584. /** @var \Illuminate\Http\Request $instance */
  9585. return $instance->userAgent();
  9586. }
  9587. /**
  9588. * Merge new input into the current request's input array.
  9589. *
  9590. * @param array $input
  9591. * @return \Illuminate\Http\Request
  9592. * @static
  9593. */
  9594. public static function merge($input)
  9595. {
  9596. /** @var \Illuminate\Http\Request $instance */
  9597. return $instance->merge($input);
  9598. }
  9599. /**
  9600. * Merge new input into the request's input, but only when that key is missing from the request.
  9601. *
  9602. * @param array $input
  9603. * @return \Illuminate\Http\Request
  9604. * @static
  9605. */
  9606. public static function mergeIfMissing($input)
  9607. {
  9608. /** @var \Illuminate\Http\Request $instance */
  9609. return $instance->mergeIfMissing($input);
  9610. }
  9611. /**
  9612. * Replace the input for the current request.
  9613. *
  9614. * @param array $input
  9615. * @return \Illuminate\Http\Request
  9616. * @static
  9617. */
  9618. public static function replace($input)
  9619. {
  9620. /** @var \Illuminate\Http\Request $instance */
  9621. return $instance->replace($input);
  9622. }
  9623. /**
  9624. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  9625. *
  9626. * Instead, you may use the "input" method.
  9627. *
  9628. * @param string $key
  9629. * @param mixed $default
  9630. * @return mixed
  9631. * @static
  9632. */
  9633. public static function get($key, $default = null)
  9634. {
  9635. /** @var \Illuminate\Http\Request $instance */
  9636. return $instance->get($key, $default);
  9637. }
  9638. /**
  9639. * Get the JSON payload for the request.
  9640. *
  9641. * @param string|null $key
  9642. * @param mixed $default
  9643. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  9644. * @static
  9645. */
  9646. public static function json($key = null, $default = null)
  9647. {
  9648. /** @var \Illuminate\Http\Request $instance */
  9649. return $instance->json($key, $default);
  9650. }
  9651. /**
  9652. * Create a new request instance from the given Laravel request.
  9653. *
  9654. * @param \Illuminate\Http\Request $from
  9655. * @param \Illuminate\Http\Request|null $to
  9656. * @return static
  9657. * @static
  9658. */
  9659. public static function createFrom($from, $to = null)
  9660. {
  9661. return \Illuminate\Http\Request::createFrom($from, $to);
  9662. }
  9663. /**
  9664. * Create an Illuminate request from a Symfony instance.
  9665. *
  9666. * @param \Symfony\Component\HttpFoundation\Request $request
  9667. * @return static
  9668. * @static
  9669. */
  9670. public static function createFromBase($request)
  9671. {
  9672. return \Illuminate\Http\Request::createFromBase($request);
  9673. }
  9674. /**
  9675. * Clones a request and overrides some of its parameters.
  9676. *
  9677. * @return static
  9678. * @param array $query The GET parameters
  9679. * @param array $request The POST parameters
  9680. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9681. * @param array $cookies The COOKIE parameters
  9682. * @param array $files The FILES parameters
  9683. * @param array $server The SERVER parameters
  9684. * @return static
  9685. * @static
  9686. */
  9687. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  9688. {
  9689. /** @var \Illuminate\Http\Request $instance */
  9690. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  9691. }
  9692. /**
  9693. * Get the session associated with the request.
  9694. *
  9695. * @return \Illuminate\Session\Store
  9696. * @throws \RuntimeException
  9697. * @static
  9698. */
  9699. public static function session()
  9700. {
  9701. /** @var \Illuminate\Http\Request $instance */
  9702. return $instance->session();
  9703. }
  9704. /**
  9705. * Get the session associated with the request.
  9706. *
  9707. * @return \Illuminate\Session\Store|null
  9708. * @static
  9709. */
  9710. public static function getSession()
  9711. {
  9712. /** @var \Illuminate\Http\Request $instance */
  9713. return $instance->getSession();
  9714. }
  9715. /**
  9716. * Set the session instance on the request.
  9717. *
  9718. * @param \Illuminate\Contracts\Session\Session $session
  9719. * @return void
  9720. * @static
  9721. */
  9722. public static function setLaravelSession($session)
  9723. {
  9724. /** @var \Illuminate\Http\Request $instance */
  9725. $instance->setLaravelSession($session);
  9726. }
  9727. /**
  9728. * Get the user making the request.
  9729. *
  9730. * @param string|null $guard
  9731. * @return mixed
  9732. * @static
  9733. */
  9734. public static function user($guard = null)
  9735. {
  9736. /** @var \Illuminate\Http\Request $instance */
  9737. return $instance->user($guard);
  9738. }
  9739. /**
  9740. * Get the route handling the request.
  9741. *
  9742. * @param string|null $param
  9743. * @param mixed $default
  9744. * @return \Illuminate\Routing\Route|object|string|null
  9745. * @static
  9746. */
  9747. public static function route($param = null, $default = null)
  9748. {
  9749. /** @var \Illuminate\Http\Request $instance */
  9750. return $instance->route($param, $default);
  9751. }
  9752. /**
  9753. * Get a unique fingerprint for the request / route / IP address.
  9754. *
  9755. * @return string
  9756. * @throws \RuntimeException
  9757. * @static
  9758. */
  9759. public static function fingerprint()
  9760. {
  9761. /** @var \Illuminate\Http\Request $instance */
  9762. return $instance->fingerprint();
  9763. }
  9764. /**
  9765. * Set the JSON payload for the request.
  9766. *
  9767. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  9768. * @return \Illuminate\Http\Request
  9769. * @static
  9770. */
  9771. public static function setJson($json)
  9772. {
  9773. /** @var \Illuminate\Http\Request $instance */
  9774. return $instance->setJson($json);
  9775. }
  9776. /**
  9777. * Get the user resolver callback.
  9778. *
  9779. * @return \Closure
  9780. * @static
  9781. */
  9782. public static function getUserResolver()
  9783. {
  9784. /** @var \Illuminate\Http\Request $instance */
  9785. return $instance->getUserResolver();
  9786. }
  9787. /**
  9788. * Set the user resolver callback.
  9789. *
  9790. * @param \Closure $callback
  9791. * @return \Illuminate\Http\Request
  9792. * @static
  9793. */
  9794. public static function setUserResolver($callback)
  9795. {
  9796. /** @var \Illuminate\Http\Request $instance */
  9797. return $instance->setUserResolver($callback);
  9798. }
  9799. /**
  9800. * Get the route resolver callback.
  9801. *
  9802. * @return \Closure
  9803. * @static
  9804. */
  9805. public static function getRouteResolver()
  9806. {
  9807. /** @var \Illuminate\Http\Request $instance */
  9808. return $instance->getRouteResolver();
  9809. }
  9810. /**
  9811. * Set the route resolver callback.
  9812. *
  9813. * @param \Closure $callback
  9814. * @return \Illuminate\Http\Request
  9815. * @static
  9816. */
  9817. public static function setRouteResolver($callback)
  9818. {
  9819. /** @var \Illuminate\Http\Request $instance */
  9820. return $instance->setRouteResolver($callback);
  9821. }
  9822. /**
  9823. * Get all of the input and files for the request.
  9824. *
  9825. * @return array
  9826. * @static
  9827. */
  9828. public static function toArray()
  9829. {
  9830. /** @var \Illuminate\Http\Request $instance */
  9831. return $instance->toArray();
  9832. }
  9833. /**
  9834. * Determine if the given offset exists.
  9835. *
  9836. * @param string $offset
  9837. * @return bool
  9838. * @static
  9839. */
  9840. public static function offsetExists($offset)
  9841. {
  9842. /** @var \Illuminate\Http\Request $instance */
  9843. return $instance->offsetExists($offset);
  9844. }
  9845. /**
  9846. * Get the value at the given offset.
  9847. *
  9848. * @param string $offset
  9849. * @return mixed
  9850. * @static
  9851. */
  9852. public static function offsetGet($offset)
  9853. {
  9854. /** @var \Illuminate\Http\Request $instance */
  9855. return $instance->offsetGet($offset);
  9856. }
  9857. /**
  9858. * Set the value at the given offset.
  9859. *
  9860. * @param string $offset
  9861. * @param mixed $value
  9862. * @return void
  9863. * @static
  9864. */
  9865. public static function offsetSet($offset, $value)
  9866. {
  9867. /** @var \Illuminate\Http\Request $instance */
  9868. $instance->offsetSet($offset, $value);
  9869. }
  9870. /**
  9871. * Remove the value at the given offset.
  9872. *
  9873. * @param string $offset
  9874. * @return void
  9875. * @static
  9876. */
  9877. public static function offsetUnset($offset)
  9878. {
  9879. /** @var \Illuminate\Http\Request $instance */
  9880. $instance->offsetUnset($offset);
  9881. }
  9882. /**
  9883. * Sets the parameters for this request.
  9884. *
  9885. * This method also re-initializes all properties.
  9886. *
  9887. * @param array $query The GET parameters
  9888. * @param array $request The POST parameters
  9889. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9890. * @param array $cookies The COOKIE parameters
  9891. * @param array $files The FILES parameters
  9892. * @param array $server The SERVER parameters
  9893. * @param string|resource|null $content The raw body data
  9894. * @static
  9895. */
  9896. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  9897. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9898. /** @var \Illuminate\Http\Request $instance */
  9899. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  9900. }
  9901. /**
  9902. * Creates a new request with values from PHP's super globals.
  9903. *
  9904. * @return static
  9905. * @static
  9906. */
  9907. public static function createFromGlobals()
  9908. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9909. return \Illuminate\Http\Request::createFromGlobals();
  9910. }
  9911. /**
  9912. * Creates a Request based on a given URI and configuration.
  9913. *
  9914. * The information contained in the URI always take precedence
  9915. * over the other information (server and parameters).
  9916. *
  9917. * @param string $uri The URI
  9918. * @param string $method The HTTP method
  9919. * @param array $parameters The query (GET) or request (POST) parameters
  9920. * @param array $cookies The request cookies ($_COOKIE)
  9921. * @param array $files The request files ($_FILES)
  9922. * @param array $server The server parameters ($_SERVER)
  9923. * @param string|resource|null $content The raw body data
  9924. * @return static
  9925. * @static
  9926. */
  9927. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  9928. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9929. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  9930. }
  9931. /**
  9932. * Sets a callable able to create a Request instance.
  9933. *
  9934. * This is mainly useful when you need to override the Request class
  9935. * to keep BC with an existing system. It should not be used for any
  9936. * other purpose.
  9937. *
  9938. * @static
  9939. */
  9940. public static function setFactory($callable)
  9941. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9942. return \Illuminate\Http\Request::setFactory($callable);
  9943. }
  9944. /**
  9945. * Overrides the PHP global variables according to this request instance.
  9946. *
  9947. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  9948. * $_FILES is never overridden, see rfc1867
  9949. *
  9950. * @static
  9951. */
  9952. public static function overrideGlobals()
  9953. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9954. /** @var \Illuminate\Http\Request $instance */
  9955. return $instance->overrideGlobals();
  9956. }
  9957. /**
  9958. * Sets a list of trusted proxies.
  9959. *
  9960. * You should only list the reverse proxies that you manage directly.
  9961. *
  9962. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  9963. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  9964. * @static
  9965. */
  9966. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  9967. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9968. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  9969. }
  9970. /**
  9971. * Gets the list of trusted proxies.
  9972. *
  9973. * @return array
  9974. * @static
  9975. */
  9976. public static function getTrustedProxies()
  9977. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9978. return \Illuminate\Http\Request::getTrustedProxies();
  9979. }
  9980. /**
  9981. * Gets the set of trusted headers from trusted proxies.
  9982. *
  9983. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  9984. * @static
  9985. */
  9986. public static function getTrustedHeaderSet()
  9987. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9988. return \Illuminate\Http\Request::getTrustedHeaderSet();
  9989. }
  9990. /**
  9991. * Sets a list of trusted host patterns.
  9992. *
  9993. * You should only list the hosts you manage using regexs.
  9994. *
  9995. * @param array $hostPatterns A list of trusted host patterns
  9996. * @static
  9997. */
  9998. public static function setTrustedHosts($hostPatterns)
  9999. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10000. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  10001. }
  10002. /**
  10003. * Gets the list of trusted host patterns.
  10004. *
  10005. * @return array
  10006. * @static
  10007. */
  10008. public static function getTrustedHosts()
  10009. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10010. return \Illuminate\Http\Request::getTrustedHosts();
  10011. }
  10012. /**
  10013. * Normalizes a query string.
  10014. *
  10015. * It builds a normalized query string, where keys/value pairs are alphabetized,
  10016. * have consistent escaping and unneeded delimiters are removed.
  10017. *
  10018. * @return string
  10019. * @static
  10020. */
  10021. public static function normalizeQueryString($qs)
  10022. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10023. return \Illuminate\Http\Request::normalizeQueryString($qs);
  10024. }
  10025. /**
  10026. * Enables support for the _method request parameter to determine the intended HTTP method.
  10027. *
  10028. * Be warned that enabling this feature might lead to CSRF issues in your code.
  10029. * Check that you are using CSRF tokens when required.
  10030. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  10031. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  10032. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  10033. *
  10034. * The HTTP method can only be overridden when the real HTTP method is POST.
  10035. *
  10036. * @static
  10037. */
  10038. public static function enableHttpMethodParameterOverride()
  10039. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10040. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  10041. }
  10042. /**
  10043. * Checks whether support for the _method request parameter is enabled.
  10044. *
  10045. * @return bool
  10046. * @static
  10047. */
  10048. public static function getHttpMethodParameterOverride()
  10049. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10050. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  10051. }
  10052. /**
  10053. * Whether the request contains a Session which was started in one of the
  10054. * previous requests.
  10055. *
  10056. * @return bool
  10057. * @static
  10058. */
  10059. public static function hasPreviousSession()
  10060. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10061. /** @var \Illuminate\Http\Request $instance */
  10062. return $instance->hasPreviousSession();
  10063. }
  10064. /**
  10065. * Whether the request contains a Session object.
  10066. *
  10067. * This method does not give any information about the state of the session object,
  10068. * like whether the session is started or not. It is just a way to check if this Request
  10069. * is associated with a Session instance.
  10070. *
  10071. * @param bool $skipIfUninitialized When true, ignores factories injected by `setSessionFactory`
  10072. * @return bool
  10073. * @static
  10074. */
  10075. public static function hasSession()
  10076. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10077. /** @var \Illuminate\Http\Request $instance */
  10078. return $instance->hasSession();
  10079. }
  10080. /**
  10081. *
  10082. *
  10083. * @static
  10084. */
  10085. public static function setSession($session)
  10086. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10087. /** @var \Illuminate\Http\Request $instance */
  10088. return $instance->setSession($session);
  10089. }
  10090. /**
  10091. *
  10092. *
  10093. * @internal
  10094. * @param \Symfony\Component\HttpFoundation\callable(): SessionInterface $factory
  10095. * @static
  10096. */
  10097. public static function setSessionFactory($factory)
  10098. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10099. /** @var \Illuminate\Http\Request $instance */
  10100. return $instance->setSessionFactory($factory);
  10101. }
  10102. /**
  10103. * Returns the client IP addresses.
  10104. *
  10105. * In the returned array the most trusted IP address is first, and the
  10106. * least trusted one last. The "real" client IP address is the last one,
  10107. * but this is also the least trusted one. Trusted proxies are stripped.
  10108. *
  10109. * Use this method carefully; you should use getClientIp() instead.
  10110. *
  10111. * @return array
  10112. * @see getClientIp()
  10113. * @static
  10114. */
  10115. public static function getClientIps()
  10116. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10117. /** @var \Illuminate\Http\Request $instance */
  10118. return $instance->getClientIps();
  10119. }
  10120. /**
  10121. * Returns the client IP address.
  10122. *
  10123. * This method can read the client IP address from the "X-Forwarded-For" header
  10124. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  10125. * header value is a comma+space separated list of IP addresses, the left-most
  10126. * being the original client, and each successive proxy that passed the request
  10127. * adding the IP address where it received the request from.
  10128. *
  10129. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  10130. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  10131. * argument of the Request::setTrustedProxies() method instead.
  10132. *
  10133. * @return string|null
  10134. * @see getClientIps()
  10135. * @see https://wikipedia.org/wiki/X-Forwarded-For
  10136. * @static
  10137. */
  10138. public static function getClientIp()
  10139. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10140. /** @var \Illuminate\Http\Request $instance */
  10141. return $instance->getClientIp();
  10142. }
  10143. /**
  10144. * Returns current script name.
  10145. *
  10146. * @return string
  10147. * @static
  10148. */
  10149. public static function getScriptName()
  10150. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10151. /** @var \Illuminate\Http\Request $instance */
  10152. return $instance->getScriptName();
  10153. }
  10154. /**
  10155. * Returns the path being requested relative to the executed script.
  10156. *
  10157. * The path info always starts with a /.
  10158. *
  10159. * Suppose this request is instantiated from /mysite on localhost:
  10160. *
  10161. * * http://localhost/mysite returns an empty string
  10162. * * http://localhost/mysite/about returns '/about'
  10163. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  10164. * * http://localhost/mysite/about?var=1 returns '/about'
  10165. *
  10166. * @return string The raw path (i.e. not urldecoded)
  10167. * @static
  10168. */
  10169. public static function getPathInfo()
  10170. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10171. /** @var \Illuminate\Http\Request $instance */
  10172. return $instance->getPathInfo();
  10173. }
  10174. /**
  10175. * Returns the root path from which this request is executed.
  10176. *
  10177. * Suppose that an index.php file instantiates this request object:
  10178. *
  10179. * * http://localhost/index.php returns an empty string
  10180. * * http://localhost/index.php/page returns an empty string
  10181. * * http://localhost/web/index.php returns '/web'
  10182. * * http://localhost/we%20b/index.php returns '/we%20b'
  10183. *
  10184. * @return string The raw path (i.e. not urldecoded)
  10185. * @static
  10186. */
  10187. public static function getBasePath()
  10188. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10189. /** @var \Illuminate\Http\Request $instance */
  10190. return $instance->getBasePath();
  10191. }
  10192. /**
  10193. * Returns the root URL from which this request is executed.
  10194. *
  10195. * The base URL never ends with a /.
  10196. *
  10197. * This is similar to getBasePath(), except that it also includes the
  10198. * script filename (e.g. index.php) if one exists.
  10199. *
  10200. * @return string The raw URL (i.e. not urldecoded)
  10201. * @static
  10202. */
  10203. public static function getBaseUrl()
  10204. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10205. /** @var \Illuminate\Http\Request $instance */
  10206. return $instance->getBaseUrl();
  10207. }
  10208. /**
  10209. * Gets the request's scheme.
  10210. *
  10211. * @return string
  10212. * @static
  10213. */
  10214. public static function getScheme()
  10215. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10216. /** @var \Illuminate\Http\Request $instance */
  10217. return $instance->getScheme();
  10218. }
  10219. /**
  10220. * Returns the port on which the request is made.
  10221. *
  10222. * This method can read the client port from the "X-Forwarded-Port" header
  10223. * when trusted proxies were set via "setTrustedProxies()".
  10224. *
  10225. * The "X-Forwarded-Port" header must contain the client port.
  10226. *
  10227. * @return int|string|null Can be a string if fetched from the server bag
  10228. * @static
  10229. */
  10230. public static function getPort()
  10231. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10232. /** @var \Illuminate\Http\Request $instance */
  10233. return $instance->getPort();
  10234. }
  10235. /**
  10236. * Returns the user.
  10237. *
  10238. * @return string|null
  10239. * @static
  10240. */
  10241. public static function getUser()
  10242. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10243. /** @var \Illuminate\Http\Request $instance */
  10244. return $instance->getUser();
  10245. }
  10246. /**
  10247. * Returns the password.
  10248. *
  10249. * @return string|null
  10250. * @static
  10251. */
  10252. public static function getPassword()
  10253. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10254. /** @var \Illuminate\Http\Request $instance */
  10255. return $instance->getPassword();
  10256. }
  10257. /**
  10258. * Gets the user info.
  10259. *
  10260. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  10261. * @static
  10262. */
  10263. public static function getUserInfo()
  10264. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10265. /** @var \Illuminate\Http\Request $instance */
  10266. return $instance->getUserInfo();
  10267. }
  10268. /**
  10269. * Returns the HTTP host being requested.
  10270. *
  10271. * The port name will be appended to the host if it's non-standard.
  10272. *
  10273. * @return string
  10274. * @static
  10275. */
  10276. public static function getHttpHost()
  10277. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10278. /** @var \Illuminate\Http\Request $instance */
  10279. return $instance->getHttpHost();
  10280. }
  10281. /**
  10282. * Returns the requested URI (path and query string).
  10283. *
  10284. * @return string The raw URI (i.e. not URI decoded)
  10285. * @static
  10286. */
  10287. public static function getRequestUri()
  10288. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10289. /** @var \Illuminate\Http\Request $instance */
  10290. return $instance->getRequestUri();
  10291. }
  10292. /**
  10293. * Gets the scheme and HTTP host.
  10294. *
  10295. * If the URL was called with basic authentication, the user
  10296. * and the password are not added to the generated string.
  10297. *
  10298. * @return string
  10299. * @static
  10300. */
  10301. public static function getSchemeAndHttpHost()
  10302. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10303. /** @var \Illuminate\Http\Request $instance */
  10304. return $instance->getSchemeAndHttpHost();
  10305. }
  10306. /**
  10307. * Generates a normalized URI (URL) for the Request.
  10308. *
  10309. * @return string
  10310. * @see getQueryString()
  10311. * @static
  10312. */
  10313. public static function getUri()
  10314. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10315. /** @var \Illuminate\Http\Request $instance */
  10316. return $instance->getUri();
  10317. }
  10318. /**
  10319. * Generates a normalized URI for the given path.
  10320. *
  10321. * @param string $path A path to use instead of the current one
  10322. * @return string
  10323. * @static
  10324. */
  10325. public static function getUriForPath($path)
  10326. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10327. /** @var \Illuminate\Http\Request $instance */
  10328. return $instance->getUriForPath($path);
  10329. }
  10330. /**
  10331. * Returns the path as relative reference from the current Request path.
  10332. *
  10333. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  10334. * Both paths must be absolute and not contain relative parts.
  10335. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  10336. * Furthermore, they can be used to reduce the link size in documents.
  10337. *
  10338. * Example target paths, given a base path of "/a/b/c/d":
  10339. * - "/a/b/c/d" -> ""
  10340. * - "/a/b/c/" -> "./"
  10341. * - "/a/b/" -> "../"
  10342. * - "/a/b/c/other" -> "other"
  10343. * - "/a/x/y" -> "../../x/y"
  10344. *
  10345. * @return string
  10346. * @static
  10347. */
  10348. public static function getRelativeUriForPath($path)
  10349. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10350. /** @var \Illuminate\Http\Request $instance */
  10351. return $instance->getRelativeUriForPath($path);
  10352. }
  10353. /**
  10354. * Generates the normalized query string for the Request.
  10355. *
  10356. * It builds a normalized query string, where keys/value pairs are alphabetized
  10357. * and have consistent escaping.
  10358. *
  10359. * @return string|null
  10360. * @static
  10361. */
  10362. public static function getQueryString()
  10363. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10364. /** @var \Illuminate\Http\Request $instance */
  10365. return $instance->getQueryString();
  10366. }
  10367. /**
  10368. * Checks whether the request is secure or not.
  10369. *
  10370. * This method can read the client protocol from the "X-Forwarded-Proto" header
  10371. * when trusted proxies were set via "setTrustedProxies()".
  10372. *
  10373. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  10374. *
  10375. * @return bool
  10376. * @static
  10377. */
  10378. public static function isSecure()
  10379. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10380. /** @var \Illuminate\Http\Request $instance */
  10381. return $instance->isSecure();
  10382. }
  10383. /**
  10384. * Returns the host name.
  10385. *
  10386. * This method can read the client host name from the "X-Forwarded-Host" header
  10387. * when trusted proxies were set via "setTrustedProxies()".
  10388. *
  10389. * The "X-Forwarded-Host" header must contain the client host name.
  10390. *
  10391. * @return string
  10392. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  10393. * @static
  10394. */
  10395. public static function getHost()
  10396. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10397. /** @var \Illuminate\Http\Request $instance */
  10398. return $instance->getHost();
  10399. }
  10400. /**
  10401. * Sets the request method.
  10402. *
  10403. * @static
  10404. */
  10405. public static function setMethod($method)
  10406. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10407. /** @var \Illuminate\Http\Request $instance */
  10408. return $instance->setMethod($method);
  10409. }
  10410. /**
  10411. * Gets the request "intended" method.
  10412. *
  10413. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  10414. * then it is used to determine the "real" intended HTTP method.
  10415. *
  10416. * The _method request parameter can also be used to determine the HTTP method,
  10417. * but only if enableHttpMethodParameterOverride() has been called.
  10418. *
  10419. * The method is always an uppercased string.
  10420. *
  10421. * @return string
  10422. * @see getRealMethod()
  10423. * @static
  10424. */
  10425. public static function getMethod()
  10426. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10427. /** @var \Illuminate\Http\Request $instance */
  10428. return $instance->getMethod();
  10429. }
  10430. /**
  10431. * Gets the "real" request method.
  10432. *
  10433. * @return string
  10434. * @see getMethod()
  10435. * @static
  10436. */
  10437. public static function getRealMethod()
  10438. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10439. /** @var \Illuminate\Http\Request $instance */
  10440. return $instance->getRealMethod();
  10441. }
  10442. /**
  10443. * Gets the mime type associated with the format.
  10444. *
  10445. * @return string|null
  10446. * @static
  10447. */
  10448. public static function getMimeType($format)
  10449. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10450. /** @var \Illuminate\Http\Request $instance */
  10451. return $instance->getMimeType($format);
  10452. }
  10453. /**
  10454. * Gets the mime types associated with the format.
  10455. *
  10456. * @return array
  10457. * @static
  10458. */
  10459. public static function getMimeTypes($format)
  10460. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10461. return \Illuminate\Http\Request::getMimeTypes($format);
  10462. }
  10463. /**
  10464. * Gets the format associated with the mime type.
  10465. *
  10466. * @return string|null
  10467. * @static
  10468. */
  10469. public static function getFormat($mimeType)
  10470. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10471. /** @var \Illuminate\Http\Request $instance */
  10472. return $instance->getFormat($mimeType);
  10473. }
  10474. /**
  10475. * Associates a format with mime types.
  10476. *
  10477. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  10478. * @static
  10479. */
  10480. public static function setFormat($format, $mimeTypes)
  10481. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10482. /** @var \Illuminate\Http\Request $instance */
  10483. return $instance->setFormat($format, $mimeTypes);
  10484. }
  10485. /**
  10486. * Gets the request format.
  10487. *
  10488. * Here is the process to determine the format:
  10489. *
  10490. * * format defined by the user (with setRequestFormat())
  10491. * * _format request attribute
  10492. * * $default
  10493. *
  10494. * @see getPreferredFormat
  10495. * @return string|null
  10496. * @static
  10497. */
  10498. public static function getRequestFormat($default = 'html')
  10499. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10500. /** @var \Illuminate\Http\Request $instance */
  10501. return $instance->getRequestFormat($default);
  10502. }
  10503. /**
  10504. * Sets the request format.
  10505. *
  10506. * @static
  10507. */
  10508. public static function setRequestFormat($format)
  10509. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10510. /** @var \Illuminate\Http\Request $instance */
  10511. return $instance->setRequestFormat($format);
  10512. }
  10513. /**
  10514. * Gets the format associated with the request.
  10515. *
  10516. * @return string|null
  10517. * @static
  10518. */
  10519. public static function getContentType()
  10520. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10521. /** @var \Illuminate\Http\Request $instance */
  10522. return $instance->getContentType();
  10523. }
  10524. /**
  10525. * Sets the default locale.
  10526. *
  10527. * @static
  10528. */
  10529. public static function setDefaultLocale($locale)
  10530. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10531. /** @var \Illuminate\Http\Request $instance */
  10532. return $instance->setDefaultLocale($locale);
  10533. }
  10534. /**
  10535. * Get the default locale.
  10536. *
  10537. * @return string
  10538. * @static
  10539. */
  10540. public static function getDefaultLocale()
  10541. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10542. /** @var \Illuminate\Http\Request $instance */
  10543. return $instance->getDefaultLocale();
  10544. }
  10545. /**
  10546. * Sets the locale.
  10547. *
  10548. * @static
  10549. */
  10550. public static function setLocale($locale)
  10551. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10552. /** @var \Illuminate\Http\Request $instance */
  10553. return $instance->setLocale($locale);
  10554. }
  10555. /**
  10556. * Get the locale.
  10557. *
  10558. * @return string
  10559. * @static
  10560. */
  10561. public static function getLocale()
  10562. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10563. /** @var \Illuminate\Http\Request $instance */
  10564. return $instance->getLocale();
  10565. }
  10566. /**
  10567. * Checks if the request method is of specified type.
  10568. *
  10569. * @param string $method Uppercase request method (GET, POST etc)
  10570. * @return bool
  10571. * @static
  10572. */
  10573. public static function isMethod($method)
  10574. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10575. /** @var \Illuminate\Http\Request $instance */
  10576. return $instance->isMethod($method);
  10577. }
  10578. /**
  10579. * Checks whether or not the method is safe.
  10580. *
  10581. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  10582. * @return bool
  10583. * @static
  10584. */
  10585. public static function isMethodSafe()
  10586. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10587. /** @var \Illuminate\Http\Request $instance */
  10588. return $instance->isMethodSafe();
  10589. }
  10590. /**
  10591. * Checks whether or not the method is idempotent.
  10592. *
  10593. * @return bool
  10594. * @static
  10595. */
  10596. public static function isMethodIdempotent()
  10597. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10598. /** @var \Illuminate\Http\Request $instance */
  10599. return $instance->isMethodIdempotent();
  10600. }
  10601. /**
  10602. * Checks whether the method is cacheable or not.
  10603. *
  10604. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  10605. * @return bool
  10606. * @static
  10607. */
  10608. public static function isMethodCacheable()
  10609. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10610. /** @var \Illuminate\Http\Request $instance */
  10611. return $instance->isMethodCacheable();
  10612. }
  10613. /**
  10614. * Returns the protocol version.
  10615. *
  10616. * If the application is behind a proxy, the protocol version used in the
  10617. * requests between the client and the proxy and between the proxy and the
  10618. * server might be different. This returns the former (from the "Via" header)
  10619. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  10620. * the latter (from the "SERVER_PROTOCOL" server parameter).
  10621. *
  10622. * @return string|null
  10623. * @static
  10624. */
  10625. public static function getProtocolVersion()
  10626. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10627. /** @var \Illuminate\Http\Request $instance */
  10628. return $instance->getProtocolVersion();
  10629. }
  10630. /**
  10631. * Returns the request body content.
  10632. *
  10633. * @param bool $asResource If true, a resource will be returned
  10634. * @return string|resource
  10635. * @static
  10636. */
  10637. public static function getContent($asResource = false)
  10638. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10639. /** @var \Illuminate\Http\Request $instance */
  10640. return $instance->getContent($asResource);
  10641. }
  10642. /**
  10643. * Gets the Etags.
  10644. *
  10645. * @return array
  10646. * @static
  10647. */
  10648. public static function getETags()
  10649. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10650. /** @var \Illuminate\Http\Request $instance */
  10651. return $instance->getETags();
  10652. }
  10653. /**
  10654. *
  10655. *
  10656. * @return bool
  10657. * @static
  10658. */
  10659. public static function isNoCache()
  10660. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10661. /** @var \Illuminate\Http\Request $instance */
  10662. return $instance->isNoCache();
  10663. }
  10664. /**
  10665. * Gets the preferred format for the response by inspecting, in the following order:
  10666. * * the request format set using setRequestFormat;
  10667. * * the values of the Accept HTTP header.
  10668. *
  10669. * Note that if you use this method, you should send the "Vary: Accept" header
  10670. * in the response to prevent any issues with intermediary HTTP caches.
  10671. *
  10672. * @static
  10673. */
  10674. public static function getPreferredFormat($default = 'html')
  10675. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10676. /** @var \Illuminate\Http\Request $instance */
  10677. return $instance->getPreferredFormat($default);
  10678. }
  10679. /**
  10680. * Returns the preferred language.
  10681. *
  10682. * @param string[] $locales An array of ordered available locales
  10683. * @return string|null
  10684. * @static
  10685. */
  10686. public static function getPreferredLanguage($locales = null)
  10687. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10688. /** @var \Illuminate\Http\Request $instance */
  10689. return $instance->getPreferredLanguage($locales);
  10690. }
  10691. /**
  10692. * Gets a list of languages acceptable by the client browser ordered in the user browser preferences.
  10693. *
  10694. * @return array
  10695. * @static
  10696. */
  10697. public static function getLanguages()
  10698. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10699. /** @var \Illuminate\Http\Request $instance */
  10700. return $instance->getLanguages();
  10701. }
  10702. /**
  10703. * Gets a list of charsets acceptable by the client browser in preferable order.
  10704. *
  10705. * @return array
  10706. * @static
  10707. */
  10708. public static function getCharsets()
  10709. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10710. /** @var \Illuminate\Http\Request $instance */
  10711. return $instance->getCharsets();
  10712. }
  10713. /**
  10714. * Gets a list of encodings acceptable by the client browser in preferable order.
  10715. *
  10716. * @return array
  10717. * @static
  10718. */
  10719. public static function getEncodings()
  10720. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10721. /** @var \Illuminate\Http\Request $instance */
  10722. return $instance->getEncodings();
  10723. }
  10724. /**
  10725. * Gets a list of content types acceptable by the client browser in preferable order.
  10726. *
  10727. * @return array
  10728. * @static
  10729. */
  10730. public static function getAcceptableContentTypes()
  10731. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10732. /** @var \Illuminate\Http\Request $instance */
  10733. return $instance->getAcceptableContentTypes();
  10734. }
  10735. /**
  10736. * Returns true if the request is an XMLHttpRequest.
  10737. *
  10738. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  10739. * It is known to work with common JavaScript frameworks:
  10740. *
  10741. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  10742. * @return bool
  10743. * @static
  10744. */
  10745. public static function isXmlHttpRequest()
  10746. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10747. /** @var \Illuminate\Http\Request $instance */
  10748. return $instance->isXmlHttpRequest();
  10749. }
  10750. /**
  10751. * Checks whether the client browser prefers safe content or not according to RFC8674.
  10752. *
  10753. * @see https://tools.ietf.org/html/rfc8674
  10754. * @static
  10755. */
  10756. public static function preferSafeContent()
  10757. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10758. /** @var \Illuminate\Http\Request $instance */
  10759. return $instance->preferSafeContent();
  10760. }
  10761. /**
  10762. * Indicates whether this request originated from a trusted proxy.
  10763. *
  10764. * This can be useful to determine whether or not to trust the
  10765. * contents of a proxy-specific header.
  10766. *
  10767. * @return bool
  10768. * @static
  10769. */
  10770. public static function isFromTrustedProxy()
  10771. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10772. /** @var \Illuminate\Http\Request $instance */
  10773. return $instance->isFromTrustedProxy();
  10774. }
  10775. /**
  10776. * Determine if the request is sending JSON.
  10777. *
  10778. * @return bool
  10779. * @static
  10780. */
  10781. public static function isJson()
  10782. {
  10783. /** @var \Illuminate\Http\Request $instance */
  10784. return $instance->isJson();
  10785. }
  10786. /**
  10787. * Determine if the current request probably expects a JSON response.
  10788. *
  10789. * @return bool
  10790. * @static
  10791. */
  10792. public static function expectsJson()
  10793. {
  10794. /** @var \Illuminate\Http\Request $instance */
  10795. return $instance->expectsJson();
  10796. }
  10797. /**
  10798. * Determine if the current request is asking for JSON.
  10799. *
  10800. * @return bool
  10801. * @static
  10802. */
  10803. public static function wantsJson()
  10804. {
  10805. /** @var \Illuminate\Http\Request $instance */
  10806. return $instance->wantsJson();
  10807. }
  10808. /**
  10809. * Determines whether the current requests accepts a given content type.
  10810. *
  10811. * @param string|array $contentTypes
  10812. * @return bool
  10813. * @static
  10814. */
  10815. public static function accepts($contentTypes)
  10816. {
  10817. /** @var \Illuminate\Http\Request $instance */
  10818. return $instance->accepts($contentTypes);
  10819. }
  10820. /**
  10821. * Return the most suitable content type from the given array based on content negotiation.
  10822. *
  10823. * @param string|array $contentTypes
  10824. * @return string|null
  10825. * @static
  10826. */
  10827. public static function prefers($contentTypes)
  10828. {
  10829. /** @var \Illuminate\Http\Request $instance */
  10830. return $instance->prefers($contentTypes);
  10831. }
  10832. /**
  10833. * Determine if the current request accepts any content type.
  10834. *
  10835. * @return bool
  10836. * @static
  10837. */
  10838. public static function acceptsAnyContentType()
  10839. {
  10840. /** @var \Illuminate\Http\Request $instance */
  10841. return $instance->acceptsAnyContentType();
  10842. }
  10843. /**
  10844. * Determines whether a request accepts JSON.
  10845. *
  10846. * @return bool
  10847. * @static
  10848. */
  10849. public static function acceptsJson()
  10850. {
  10851. /** @var \Illuminate\Http\Request $instance */
  10852. return $instance->acceptsJson();
  10853. }
  10854. /**
  10855. * Determines whether a request accepts HTML.
  10856. *
  10857. * @return bool
  10858. * @static
  10859. */
  10860. public static function acceptsHtml()
  10861. {
  10862. /** @var \Illuminate\Http\Request $instance */
  10863. return $instance->acceptsHtml();
  10864. }
  10865. /**
  10866. * Determine if the given content types match.
  10867. *
  10868. * @param string $actual
  10869. * @param string $type
  10870. * @return bool
  10871. * @static
  10872. */
  10873. public static function matchesType($actual, $type)
  10874. {
  10875. return \Illuminate\Http\Request::matchesType($actual, $type);
  10876. }
  10877. /**
  10878. * Get the data format expected in the response.
  10879. *
  10880. * @param string $default
  10881. * @return string
  10882. * @static
  10883. */
  10884. public static function format($default = 'html')
  10885. {
  10886. /** @var \Illuminate\Http\Request $instance */
  10887. return $instance->format($default);
  10888. }
  10889. /**
  10890. * Retrieve an old input item.
  10891. *
  10892. * @param string|null $key
  10893. * @param string|array|null $default
  10894. * @return string|array|null
  10895. * @static
  10896. */
  10897. public static function old($key = null, $default = null)
  10898. {
  10899. /** @var \Illuminate\Http\Request $instance */
  10900. return $instance->old($key, $default);
  10901. }
  10902. /**
  10903. * Flash the input for the current request to the session.
  10904. *
  10905. * @return void
  10906. * @static
  10907. */
  10908. public static function flash()
  10909. {
  10910. /** @var \Illuminate\Http\Request $instance */
  10911. $instance->flash();
  10912. }
  10913. /**
  10914. * Flash only some of the input to the session.
  10915. *
  10916. * @param array|mixed $keys
  10917. * @return void
  10918. * @static
  10919. */
  10920. public static function flashOnly($keys)
  10921. {
  10922. /** @var \Illuminate\Http\Request $instance */
  10923. $instance->flashOnly($keys);
  10924. }
  10925. /**
  10926. * Flash only some of the input to the session.
  10927. *
  10928. * @param array|mixed $keys
  10929. * @return void
  10930. * @static
  10931. */
  10932. public static function flashExcept($keys)
  10933. {
  10934. /** @var \Illuminate\Http\Request $instance */
  10935. $instance->flashExcept($keys);
  10936. }
  10937. /**
  10938. * Flush all of the old input from the session.
  10939. *
  10940. * @return void
  10941. * @static
  10942. */
  10943. public static function flush()
  10944. {
  10945. /** @var \Illuminate\Http\Request $instance */
  10946. $instance->flush();
  10947. }
  10948. /**
  10949. * Retrieve a server variable from the request.
  10950. *
  10951. * @param string|null $key
  10952. * @param string|array|null $default
  10953. * @return string|array|null
  10954. * @static
  10955. */
  10956. public static function server($key = null, $default = null)
  10957. {
  10958. /** @var \Illuminate\Http\Request $instance */
  10959. return $instance->server($key, $default);
  10960. }
  10961. /**
  10962. * Determine if a header is set on the request.
  10963. *
  10964. * @param string $key
  10965. * @return bool
  10966. * @static
  10967. */
  10968. public static function hasHeader($key)
  10969. {
  10970. /** @var \Illuminate\Http\Request $instance */
  10971. return $instance->hasHeader($key);
  10972. }
  10973. /**
  10974. * Retrieve a header from the request.
  10975. *
  10976. * @param string|null $key
  10977. * @param string|array|null $default
  10978. * @return string|array|null
  10979. * @static
  10980. */
  10981. public static function header($key = null, $default = null)
  10982. {
  10983. /** @var \Illuminate\Http\Request $instance */
  10984. return $instance->header($key, $default);
  10985. }
  10986. /**
  10987. * Get the bearer token from the request headers.
  10988. *
  10989. * @return string|null
  10990. * @static
  10991. */
  10992. public static function bearerToken()
  10993. {
  10994. /** @var \Illuminate\Http\Request $instance */
  10995. return $instance->bearerToken();
  10996. }
  10997. /**
  10998. * Determine if the request contains a given input item key.
  10999. *
  11000. * @param string|array $key
  11001. * @return bool
  11002. * @static
  11003. */
  11004. public static function exists($key)
  11005. {
  11006. /** @var \Illuminate\Http\Request $instance */
  11007. return $instance->exists($key);
  11008. }
  11009. /**
  11010. * Determine if the request contains a given input item key.
  11011. *
  11012. * @param string|array $key
  11013. * @return bool
  11014. * @static
  11015. */
  11016. public static function has($key)
  11017. {
  11018. /** @var \Illuminate\Http\Request $instance */
  11019. return $instance->has($key);
  11020. }
  11021. /**
  11022. * Determine if the request contains any of the given inputs.
  11023. *
  11024. * @param string|array $keys
  11025. * @return bool
  11026. * @static
  11027. */
  11028. public static function hasAny($keys)
  11029. {
  11030. /** @var \Illuminate\Http\Request $instance */
  11031. return $instance->hasAny($keys);
  11032. }
  11033. /**
  11034. * Apply the callback if the request contains the given input item key.
  11035. *
  11036. * @param string $key
  11037. * @param callable $callback
  11038. * @param callable|null $default
  11039. * @return $this|mixed
  11040. * @static
  11041. */
  11042. public static function whenHas($key, $callback, $default = null)
  11043. {
  11044. /** @var \Illuminate\Http\Request $instance */
  11045. return $instance->whenHas($key, $callback, $default);
  11046. }
  11047. /**
  11048. * Determine if the request contains a non-empty value for an input item.
  11049. *
  11050. * @param string|array $key
  11051. * @return bool
  11052. * @static
  11053. */
  11054. public static function filled($key)
  11055. {
  11056. /** @var \Illuminate\Http\Request $instance */
  11057. return $instance->filled($key);
  11058. }
  11059. /**
  11060. * Determine if the request contains an empty value for an input item.
  11061. *
  11062. * @param string|array $key
  11063. * @return bool
  11064. * @static
  11065. */
  11066. public static function isNotFilled($key)
  11067. {
  11068. /** @var \Illuminate\Http\Request $instance */
  11069. return $instance->isNotFilled($key);
  11070. }
  11071. /**
  11072. * Determine if the request contains a non-empty value for any of the given inputs.
  11073. *
  11074. * @param string|array $keys
  11075. * @return bool
  11076. * @static
  11077. */
  11078. public static function anyFilled($keys)
  11079. {
  11080. /** @var \Illuminate\Http\Request $instance */
  11081. return $instance->anyFilled($keys);
  11082. }
  11083. /**
  11084. * Apply the callback if the request contains a non-empty value for the given input item key.
  11085. *
  11086. * @param string $key
  11087. * @param callable $callback
  11088. * @param callable|null $default
  11089. * @return $this|mixed
  11090. * @static
  11091. */
  11092. public static function whenFilled($key, $callback, $default = null)
  11093. {
  11094. /** @var \Illuminate\Http\Request $instance */
  11095. return $instance->whenFilled($key, $callback, $default);
  11096. }
  11097. /**
  11098. * Determine if the request is missing a given input item key.
  11099. *
  11100. * @param string|array $key
  11101. * @return bool
  11102. * @static
  11103. */
  11104. public static function missing($key)
  11105. {
  11106. /** @var \Illuminate\Http\Request $instance */
  11107. return $instance->missing($key);
  11108. }
  11109. /**
  11110. * Get the keys for all of the input and files.
  11111. *
  11112. * @return array
  11113. * @static
  11114. */
  11115. public static function keys()
  11116. {
  11117. /** @var \Illuminate\Http\Request $instance */
  11118. return $instance->keys();
  11119. }
  11120. /**
  11121. * Get all of the input and files for the request.
  11122. *
  11123. * @param array|mixed|null $keys
  11124. * @return array
  11125. * @static
  11126. */
  11127. public static function all($keys = null)
  11128. {
  11129. /** @var \Illuminate\Http\Request $instance */
  11130. return $instance->all($keys);
  11131. }
  11132. /**
  11133. * Retrieve an input item from the request.
  11134. *
  11135. * @param string|null $key
  11136. * @param mixed $default
  11137. * @return mixed
  11138. * @static
  11139. */
  11140. public static function input($key = null, $default = null)
  11141. {
  11142. /** @var \Illuminate\Http\Request $instance */
  11143. return $instance->input($key, $default);
  11144. }
  11145. /**
  11146. * Retrieve input as a boolean value.
  11147. *
  11148. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  11149. *
  11150. * @param string|null $key
  11151. * @param bool $default
  11152. * @return bool
  11153. * @static
  11154. */
  11155. public static function boolean($key = null, $default = false)
  11156. {
  11157. /** @var \Illuminate\Http\Request $instance */
  11158. return $instance->boolean($key, $default);
  11159. }
  11160. /**
  11161. * Retrieve input from the request as a Carbon instance.
  11162. *
  11163. * @param string $key
  11164. * @param string|null $format
  11165. * @param string|null $tz
  11166. * @return \Illuminate\Support\Carbon|null
  11167. * @static
  11168. */
  11169. public static function date($key, $format = null, $tz = null)
  11170. {
  11171. /** @var \Illuminate\Http\Request $instance */
  11172. return $instance->date($key, $format, $tz);
  11173. }
  11174. /**
  11175. * Retrieve input from the request as a collection.
  11176. *
  11177. * @param array|string|null $key
  11178. * @return \Illuminate\Support\Collection
  11179. * @static
  11180. */
  11181. public static function collect($key = null)
  11182. {
  11183. /** @var \Illuminate\Http\Request $instance */
  11184. return $instance->collect($key);
  11185. }
  11186. /**
  11187. * Get a subset containing the provided keys with values from the input data.
  11188. *
  11189. * @param array|mixed $keys
  11190. * @return array
  11191. * @static
  11192. */
  11193. public static function only($keys)
  11194. {
  11195. /** @var \Illuminate\Http\Request $instance */
  11196. return $instance->only($keys);
  11197. }
  11198. /**
  11199. * Get all of the input except for a specified array of items.
  11200. *
  11201. * @param array|mixed $keys
  11202. * @return array
  11203. * @static
  11204. */
  11205. public static function except($keys)
  11206. {
  11207. /** @var \Illuminate\Http\Request $instance */
  11208. return $instance->except($keys);
  11209. }
  11210. /**
  11211. * Retrieve a query string item from the request.
  11212. *
  11213. * @param string|null $key
  11214. * @param string|array|null $default
  11215. * @return string|array|null
  11216. * @static
  11217. */
  11218. public static function query($key = null, $default = null)
  11219. {
  11220. /** @var \Illuminate\Http\Request $instance */
  11221. return $instance->query($key, $default);
  11222. }
  11223. /**
  11224. * Retrieve a request payload item from the request.
  11225. *
  11226. * @param string|null $key
  11227. * @param string|array|null $default
  11228. * @return string|array|null
  11229. * @static
  11230. */
  11231. public static function post($key = null, $default = null)
  11232. {
  11233. /** @var \Illuminate\Http\Request $instance */
  11234. return $instance->post($key, $default);
  11235. }
  11236. /**
  11237. * Determine if a cookie is set on the request.
  11238. *
  11239. * @param string $key
  11240. * @return bool
  11241. * @static
  11242. */
  11243. public static function hasCookie($key)
  11244. {
  11245. /** @var \Illuminate\Http\Request $instance */
  11246. return $instance->hasCookie($key);
  11247. }
  11248. /**
  11249. * Retrieve a cookie from the request.
  11250. *
  11251. * @param string|null $key
  11252. * @param string|array|null $default
  11253. * @return string|array|null
  11254. * @static
  11255. */
  11256. public static function cookie($key = null, $default = null)
  11257. {
  11258. /** @var \Illuminate\Http\Request $instance */
  11259. return $instance->cookie($key, $default);
  11260. }
  11261. /**
  11262. * Get an array of all of the files on the request.
  11263. *
  11264. * @return array
  11265. * @static
  11266. */
  11267. public static function allFiles()
  11268. {
  11269. /** @var \Illuminate\Http\Request $instance */
  11270. return $instance->allFiles();
  11271. }
  11272. /**
  11273. * Determine if the uploaded data contains a file.
  11274. *
  11275. * @param string $key
  11276. * @return bool
  11277. * @static
  11278. */
  11279. public static function hasFile($key)
  11280. {
  11281. /** @var \Illuminate\Http\Request $instance */
  11282. return $instance->hasFile($key);
  11283. }
  11284. /**
  11285. * Retrieve a file from the request.
  11286. *
  11287. * @param string|null $key
  11288. * @param mixed $default
  11289. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  11290. * @static
  11291. */
  11292. public static function file($key = null, $default = null)
  11293. {
  11294. /** @var \Illuminate\Http\Request $instance */
  11295. return $instance->file($key, $default);
  11296. }
  11297. /**
  11298. * Dump the request items and end the script.
  11299. *
  11300. * @param mixed $keys
  11301. * @return void
  11302. * @static
  11303. */
  11304. public static function dd(...$keys)
  11305. {
  11306. /** @var \Illuminate\Http\Request $instance */
  11307. $instance->dd(...$keys);
  11308. }
  11309. /**
  11310. * Dump the items.
  11311. *
  11312. * @param mixed $keys
  11313. * @return \Illuminate\Http\Request
  11314. * @static
  11315. */
  11316. public static function dump($keys = [])
  11317. {
  11318. /** @var \Illuminate\Http\Request $instance */
  11319. return $instance->dump($keys);
  11320. }
  11321. /**
  11322. * Register a custom macro.
  11323. *
  11324. * @param string $name
  11325. * @param object|callable $macro
  11326. * @return void
  11327. * @static
  11328. */
  11329. public static function macro($name, $macro)
  11330. {
  11331. \Illuminate\Http\Request::macro($name, $macro);
  11332. }
  11333. /**
  11334. * Mix another object into the class.
  11335. *
  11336. * @param object $mixin
  11337. * @param bool $replace
  11338. * @return void
  11339. * @throws \ReflectionException
  11340. * @static
  11341. */
  11342. public static function mixin($mixin, $replace = true)
  11343. {
  11344. \Illuminate\Http\Request::mixin($mixin, $replace);
  11345. }
  11346. /**
  11347. * Checks if macro is registered.
  11348. *
  11349. * @param string $name
  11350. * @return bool
  11351. * @static
  11352. */
  11353. public static function hasMacro($name)
  11354. {
  11355. return \Illuminate\Http\Request::hasMacro($name);
  11356. }
  11357. /**
  11358. * Flush the existing macros.
  11359. *
  11360. * @return void
  11361. * @static
  11362. */
  11363. public static function flushMacros()
  11364. {
  11365. \Illuminate\Http\Request::flushMacros();
  11366. }
  11367. /**
  11368. *
  11369. *
  11370. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11371. * @param array $rules
  11372. * @param mixed $params
  11373. * @static
  11374. */
  11375. public static function validate($rules, ...$params)
  11376. {
  11377. return \Illuminate\Http\Request::validate($rules, ...$params);
  11378. }
  11379. /**
  11380. *
  11381. *
  11382. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11383. * @param string $errorBag
  11384. * @param array $rules
  11385. * @param mixed $params
  11386. * @static
  11387. */
  11388. public static function validateWithBag($errorBag, $rules, ...$params)
  11389. {
  11390. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  11391. }
  11392. /**
  11393. *
  11394. *
  11395. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11396. * @param mixed $absolute
  11397. * @static
  11398. */
  11399. public static function hasValidSignature($absolute = true)
  11400. {
  11401. return \Illuminate\Http\Request::hasValidSignature($absolute);
  11402. }
  11403. /**
  11404. *
  11405. *
  11406. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11407. * @static
  11408. */
  11409. public static function hasValidRelativeSignature()
  11410. {
  11411. return \Illuminate\Http\Request::hasValidRelativeSignature();
  11412. }
  11413. }
  11414. /**
  11415. *
  11416. *
  11417. * @see \Illuminate\Contracts\Routing\ResponseFactory
  11418. */
  11419. class Response {
  11420. /**
  11421. * Create a new response instance.
  11422. *
  11423. * @param mixed $content
  11424. * @param int $status
  11425. * @param array $headers
  11426. * @return \Illuminate\Http\Response
  11427. * @static
  11428. */
  11429. public static function make($content = '', $status = 200, $headers = [])
  11430. {
  11431. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11432. return $instance->make($content, $status, $headers);
  11433. }
  11434. /**
  11435. * Create a new "no content" response.
  11436. *
  11437. * @param int $status
  11438. * @param array $headers
  11439. * @return \Illuminate\Http\Response
  11440. * @static
  11441. */
  11442. public static function noContent($status = 204, $headers = [])
  11443. {
  11444. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11445. return $instance->noContent($status, $headers);
  11446. }
  11447. /**
  11448. * Create a new response for a given view.
  11449. *
  11450. * @param string|array $view
  11451. * @param array $data
  11452. * @param int $status
  11453. * @param array $headers
  11454. * @return \Illuminate\Http\Response
  11455. * @static
  11456. */
  11457. public static function view($view, $data = [], $status = 200, $headers = [])
  11458. {
  11459. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11460. return $instance->view($view, $data, $status, $headers);
  11461. }
  11462. /**
  11463. * Create a new JSON response instance.
  11464. *
  11465. * @param mixed $data
  11466. * @param int $status
  11467. * @param array $headers
  11468. * @param int $options
  11469. * @return \Illuminate\Http\JsonResponse
  11470. * @static
  11471. */
  11472. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  11473. {
  11474. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11475. return $instance->json($data, $status, $headers, $options);
  11476. }
  11477. /**
  11478. * Create a new JSONP response instance.
  11479. *
  11480. * @param string $callback
  11481. * @param mixed $data
  11482. * @param int $status
  11483. * @param array $headers
  11484. * @param int $options
  11485. * @return \Illuminate\Http\JsonResponse
  11486. * @static
  11487. */
  11488. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  11489. {
  11490. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11491. return $instance->jsonp($callback, $data, $status, $headers, $options);
  11492. }
  11493. /**
  11494. * Create a new streamed response instance.
  11495. *
  11496. * @param \Closure $callback
  11497. * @param int $status
  11498. * @param array $headers
  11499. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11500. * @static
  11501. */
  11502. public static function stream($callback, $status = 200, $headers = [])
  11503. {
  11504. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11505. return $instance->stream($callback, $status, $headers);
  11506. }
  11507. /**
  11508. * Create a new streamed response instance as a file download.
  11509. *
  11510. * @param \Closure $callback
  11511. * @param string|null $name
  11512. * @param array $headers
  11513. * @param string|null $disposition
  11514. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11515. * @static
  11516. */
  11517. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  11518. {
  11519. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11520. return $instance->streamDownload($callback, $name, $headers, $disposition);
  11521. }
  11522. /**
  11523. * Create a new file download response.
  11524. *
  11525. * @param \SplFileInfo|string $file
  11526. * @param string|null $name
  11527. * @param array $headers
  11528. * @param string|null $disposition
  11529. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11530. * @static
  11531. */
  11532. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  11533. {
  11534. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11535. return $instance->download($file, $name, $headers, $disposition);
  11536. }
  11537. /**
  11538. * Return the raw contents of a binary file.
  11539. *
  11540. * @param \SplFileInfo|string $file
  11541. * @param array $headers
  11542. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11543. * @static
  11544. */
  11545. public static function file($file, $headers = [])
  11546. {
  11547. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11548. return $instance->file($file, $headers);
  11549. }
  11550. /**
  11551. * Create a new redirect response to the given path.
  11552. *
  11553. * @param string $path
  11554. * @param int $status
  11555. * @param array $headers
  11556. * @param bool|null $secure
  11557. * @return \Illuminate\Http\RedirectResponse
  11558. * @static
  11559. */
  11560. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  11561. {
  11562. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11563. return $instance->redirectTo($path, $status, $headers, $secure);
  11564. }
  11565. /**
  11566. * Create a new redirect response to a named route.
  11567. *
  11568. * @param string $route
  11569. * @param mixed $parameters
  11570. * @param int $status
  11571. * @param array $headers
  11572. * @return \Illuminate\Http\RedirectResponse
  11573. * @static
  11574. */
  11575. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  11576. {
  11577. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11578. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  11579. }
  11580. /**
  11581. * Create a new redirect response to a controller action.
  11582. *
  11583. * @param string $action
  11584. * @param mixed $parameters
  11585. * @param int $status
  11586. * @param array $headers
  11587. * @return \Illuminate\Http\RedirectResponse
  11588. * @static
  11589. */
  11590. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  11591. {
  11592. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11593. return $instance->redirectToAction($action, $parameters, $status, $headers);
  11594. }
  11595. /**
  11596. * Create a new redirect response, while putting the current URL in the session.
  11597. *
  11598. * @param string $path
  11599. * @param int $status
  11600. * @param array $headers
  11601. * @param bool|null $secure
  11602. * @return \Illuminate\Http\RedirectResponse
  11603. * @static
  11604. */
  11605. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  11606. {
  11607. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11608. return $instance->redirectGuest($path, $status, $headers, $secure);
  11609. }
  11610. /**
  11611. * Create a new redirect response to the previously intended location.
  11612. *
  11613. * @param string $default
  11614. * @param int $status
  11615. * @param array $headers
  11616. * @param bool|null $secure
  11617. * @return \Illuminate\Http\RedirectResponse
  11618. * @static
  11619. */
  11620. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  11621. {
  11622. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11623. return $instance->redirectToIntended($default, $status, $headers, $secure);
  11624. }
  11625. /**
  11626. * Register a custom macro.
  11627. *
  11628. * @param string $name
  11629. * @param object|callable $macro
  11630. * @return void
  11631. * @static
  11632. */
  11633. public static function macro($name, $macro)
  11634. {
  11635. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  11636. }
  11637. /**
  11638. * Mix another object into the class.
  11639. *
  11640. * @param object $mixin
  11641. * @param bool $replace
  11642. * @return void
  11643. * @throws \ReflectionException
  11644. * @static
  11645. */
  11646. public static function mixin($mixin, $replace = true)
  11647. {
  11648. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  11649. }
  11650. /**
  11651. * Checks if macro is registered.
  11652. *
  11653. * @param string $name
  11654. * @return bool
  11655. * @static
  11656. */
  11657. public static function hasMacro($name)
  11658. {
  11659. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  11660. }
  11661. /**
  11662. * Flush the existing macros.
  11663. *
  11664. * @return void
  11665. * @static
  11666. */
  11667. public static function flushMacros()
  11668. {
  11669. \Illuminate\Routing\ResponseFactory::flushMacros();
  11670. }
  11671. }
  11672. /**
  11673. *
  11674. *
  11675. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  11676. * @method static \Illuminate\Routing\RouteRegistrar controller(string $controller)
  11677. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  11678. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  11679. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  11680. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  11681. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  11682. * @method static \Illuminate\Routing\RouteRegistrar scopeBindings()
  11683. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  11684. * @see \Illuminate\Routing\Router
  11685. */
  11686. class Route {
  11687. /**
  11688. * Register a new GET route with the router.
  11689. *
  11690. * @param string $uri
  11691. * @param array|string|callable|null $action
  11692. * @return \Illuminate\Routing\Route
  11693. * @static
  11694. */
  11695. public static function get($uri, $action = null)
  11696. {
  11697. /** @var \Illuminate\Routing\Router $instance */
  11698. return $instance->get($uri, $action);
  11699. }
  11700. /**
  11701. * Register a new POST route with the router.
  11702. *
  11703. * @param string $uri
  11704. * @param array|string|callable|null $action
  11705. * @return \Illuminate\Routing\Route
  11706. * @static
  11707. */
  11708. public static function post($uri, $action = null)
  11709. {
  11710. /** @var \Illuminate\Routing\Router $instance */
  11711. return $instance->post($uri, $action);
  11712. }
  11713. /**
  11714. * Register a new PUT route with the router.
  11715. *
  11716. * @param string $uri
  11717. * @param array|string|callable|null $action
  11718. * @return \Illuminate\Routing\Route
  11719. * @static
  11720. */
  11721. public static function put($uri, $action = null)
  11722. {
  11723. /** @var \Illuminate\Routing\Router $instance */
  11724. return $instance->put($uri, $action);
  11725. }
  11726. /**
  11727. * Register a new PATCH route with the router.
  11728. *
  11729. * @param string $uri
  11730. * @param array|string|callable|null $action
  11731. * @return \Illuminate\Routing\Route
  11732. * @static
  11733. */
  11734. public static function patch($uri, $action = null)
  11735. {
  11736. /** @var \Illuminate\Routing\Router $instance */
  11737. return $instance->patch($uri, $action);
  11738. }
  11739. /**
  11740. * Register a new DELETE route with the router.
  11741. *
  11742. * @param string $uri
  11743. * @param array|string|callable|null $action
  11744. * @return \Illuminate\Routing\Route
  11745. * @static
  11746. */
  11747. public static function delete($uri, $action = null)
  11748. {
  11749. /** @var \Illuminate\Routing\Router $instance */
  11750. return $instance->delete($uri, $action);
  11751. }
  11752. /**
  11753. * Register a new OPTIONS route with the router.
  11754. *
  11755. * @param string $uri
  11756. * @param array|string|callable|null $action
  11757. * @return \Illuminate\Routing\Route
  11758. * @static
  11759. */
  11760. public static function options($uri, $action = null)
  11761. {
  11762. /** @var \Illuminate\Routing\Router $instance */
  11763. return $instance->options($uri, $action);
  11764. }
  11765. /**
  11766. * Register a new route responding to all verbs.
  11767. *
  11768. * @param string $uri
  11769. * @param array|string|callable|null $action
  11770. * @return \Illuminate\Routing\Route
  11771. * @static
  11772. */
  11773. public static function any($uri, $action = null)
  11774. {
  11775. /** @var \Illuminate\Routing\Router $instance */
  11776. return $instance->any($uri, $action);
  11777. }
  11778. /**
  11779. * Register a new Fallback route with the router.
  11780. *
  11781. * @param array|string|callable|null $action
  11782. * @return \Illuminate\Routing\Route
  11783. * @static
  11784. */
  11785. public static function fallback($action)
  11786. {
  11787. /** @var \Illuminate\Routing\Router $instance */
  11788. return $instance->fallback($action);
  11789. }
  11790. /**
  11791. * Create a redirect from one URI to another.
  11792. *
  11793. * @param string $uri
  11794. * @param string $destination
  11795. * @param int $status
  11796. * @return \Illuminate\Routing\Route
  11797. * @static
  11798. */
  11799. public static function redirect($uri, $destination, $status = 302)
  11800. {
  11801. /** @var \Illuminate\Routing\Router $instance */
  11802. return $instance->redirect($uri, $destination, $status);
  11803. }
  11804. /**
  11805. * Create a permanent redirect from one URI to another.
  11806. *
  11807. * @param string $uri
  11808. * @param string $destination
  11809. * @return \Illuminate\Routing\Route
  11810. * @static
  11811. */
  11812. public static function permanentRedirect($uri, $destination)
  11813. {
  11814. /** @var \Illuminate\Routing\Router $instance */
  11815. return $instance->permanentRedirect($uri, $destination);
  11816. }
  11817. /**
  11818. * Register a new route that returns a view.
  11819. *
  11820. * @param string $uri
  11821. * @param string $view
  11822. * @param array $data
  11823. * @param int|array $status
  11824. * @param array $headers
  11825. * @return \Illuminate\Routing\Route
  11826. * @static
  11827. */
  11828. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  11829. {
  11830. /** @var \Illuminate\Routing\Router $instance */
  11831. return $instance->view($uri, $view, $data, $status, $headers);
  11832. }
  11833. /**
  11834. * Register a new route with the given verbs.
  11835. *
  11836. * @param array|string $methods
  11837. * @param string $uri
  11838. * @param array|string|callable|null $action
  11839. * @return \Illuminate\Routing\Route
  11840. * @static
  11841. */
  11842. public static function match($methods, $uri, $action = null)
  11843. {
  11844. /** @var \Illuminate\Routing\Router $instance */
  11845. return $instance->match($methods, $uri, $action);
  11846. }
  11847. /**
  11848. * Register an array of resource controllers.
  11849. *
  11850. * @param array $resources
  11851. * @param array $options
  11852. * @return void
  11853. * @static
  11854. */
  11855. public static function resources($resources, $options = [])
  11856. {
  11857. /** @var \Illuminate\Routing\Router $instance */
  11858. $instance->resources($resources, $options);
  11859. }
  11860. /**
  11861. * Route a resource to a controller.
  11862. *
  11863. * @param string $name
  11864. * @param string $controller
  11865. * @param array $options
  11866. * @return \Illuminate\Routing\PendingResourceRegistration
  11867. * @static
  11868. */
  11869. public static function resource($name, $controller, $options = [])
  11870. {
  11871. /** @var \Illuminate\Routing\Router $instance */
  11872. return $instance->resource($name, $controller, $options);
  11873. }
  11874. /**
  11875. * Register an array of API resource controllers.
  11876. *
  11877. * @param array $resources
  11878. * @param array $options
  11879. * @return void
  11880. * @static
  11881. */
  11882. public static function apiResources($resources, $options = [])
  11883. {
  11884. /** @var \Illuminate\Routing\Router $instance */
  11885. $instance->apiResources($resources, $options);
  11886. }
  11887. /**
  11888. * Route an API resource to a controller.
  11889. *
  11890. * @param string $name
  11891. * @param string $controller
  11892. * @param array $options
  11893. * @return \Illuminate\Routing\PendingResourceRegistration
  11894. * @static
  11895. */
  11896. public static function apiResource($name, $controller, $options = [])
  11897. {
  11898. /** @var \Illuminate\Routing\Router $instance */
  11899. return $instance->apiResource($name, $controller, $options);
  11900. }
  11901. /**
  11902. * Create a route group with shared attributes.
  11903. *
  11904. * @param array $attributes
  11905. * @param \Closure|string $routes
  11906. * @return void
  11907. * @static
  11908. */
  11909. public static function group($attributes, $routes)
  11910. {
  11911. /** @var \Illuminate\Routing\Router $instance */
  11912. $instance->group($attributes, $routes);
  11913. }
  11914. /**
  11915. * Merge the given array with the last group stack.
  11916. *
  11917. * @param array $new
  11918. * @param bool $prependExistingPrefix
  11919. * @return array
  11920. * @static
  11921. */
  11922. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  11923. {
  11924. /** @var \Illuminate\Routing\Router $instance */
  11925. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  11926. }
  11927. /**
  11928. * Get the prefix from the last group on the stack.
  11929. *
  11930. * @return string
  11931. * @static
  11932. */
  11933. public static function getLastGroupPrefix()
  11934. {
  11935. /** @var \Illuminate\Routing\Router $instance */
  11936. return $instance->getLastGroupPrefix();
  11937. }
  11938. /**
  11939. * Add a route to the underlying route collection.
  11940. *
  11941. * @param array|string $methods
  11942. * @param string $uri
  11943. * @param array|string|callable|null $action
  11944. * @return \Illuminate\Routing\Route
  11945. * @static
  11946. */
  11947. public static function addRoute($methods, $uri, $action)
  11948. {
  11949. /** @var \Illuminate\Routing\Router $instance */
  11950. return $instance->addRoute($methods, $uri, $action);
  11951. }
  11952. /**
  11953. * Create a new Route object.
  11954. *
  11955. * @param array|string $methods
  11956. * @param string $uri
  11957. * @param mixed $action
  11958. * @return \Illuminate\Routing\Route
  11959. * @static
  11960. */
  11961. public static function newRoute($methods, $uri, $action)
  11962. {
  11963. /** @var \Illuminate\Routing\Router $instance */
  11964. return $instance->newRoute($methods, $uri, $action);
  11965. }
  11966. /**
  11967. * Return the response returned by the given route.
  11968. *
  11969. * @param string $name
  11970. * @return \Symfony\Component\HttpFoundation\Response
  11971. * @static
  11972. */
  11973. public static function respondWithRoute($name)
  11974. {
  11975. /** @var \Illuminate\Routing\Router $instance */
  11976. return $instance->respondWithRoute($name);
  11977. }
  11978. /**
  11979. * Dispatch the request to the application.
  11980. *
  11981. * @param \Illuminate\Http\Request $request
  11982. * @return \Symfony\Component\HttpFoundation\Response
  11983. * @static
  11984. */
  11985. public static function dispatch($request)
  11986. {
  11987. /** @var \Illuminate\Routing\Router $instance */
  11988. return $instance->dispatch($request);
  11989. }
  11990. /**
  11991. * Dispatch the request to a route and return the response.
  11992. *
  11993. * @param \Illuminate\Http\Request $request
  11994. * @return \Symfony\Component\HttpFoundation\Response
  11995. * @static
  11996. */
  11997. public static function dispatchToRoute($request)
  11998. {
  11999. /** @var \Illuminate\Routing\Router $instance */
  12000. return $instance->dispatchToRoute($request);
  12001. }
  12002. /**
  12003. * Gather the middleware for the given route with resolved class names.
  12004. *
  12005. * @param \Illuminate\Routing\Route $route
  12006. * @return array
  12007. * @static
  12008. */
  12009. public static function gatherRouteMiddleware($route)
  12010. {
  12011. /** @var \Illuminate\Routing\Router $instance */
  12012. return $instance->gatherRouteMiddleware($route);
  12013. }
  12014. /**
  12015. * Create a response instance from the given value.
  12016. *
  12017. * @param \Symfony\Component\HttpFoundation\Request $request
  12018. * @param mixed $response
  12019. * @return \Symfony\Component\HttpFoundation\Response
  12020. * @static
  12021. */
  12022. public static function prepareResponse($request, $response)
  12023. {
  12024. /** @var \Illuminate\Routing\Router $instance */
  12025. return $instance->prepareResponse($request, $response);
  12026. }
  12027. /**
  12028. * Static version of prepareResponse.
  12029. *
  12030. * @param \Symfony\Component\HttpFoundation\Request $request
  12031. * @param mixed $response
  12032. * @return \Symfony\Component\HttpFoundation\Response
  12033. * @static
  12034. */
  12035. public static function toResponse($request, $response)
  12036. {
  12037. return \Illuminate\Routing\Router::toResponse($request, $response);
  12038. }
  12039. /**
  12040. * Substitute the route bindings onto the route.
  12041. *
  12042. * @param \Illuminate\Routing\Route $route
  12043. * @return \Illuminate\Routing\Route
  12044. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  12045. * @static
  12046. */
  12047. public static function substituteBindings($route)
  12048. {
  12049. /** @var \Illuminate\Routing\Router $instance */
  12050. return $instance->substituteBindings($route);
  12051. }
  12052. /**
  12053. * Substitute the implicit Eloquent model bindings for the route.
  12054. *
  12055. * @param \Illuminate\Routing\Route $route
  12056. * @return void
  12057. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  12058. * @static
  12059. */
  12060. public static function substituteImplicitBindings($route)
  12061. {
  12062. /** @var \Illuminate\Routing\Router $instance */
  12063. $instance->substituteImplicitBindings($route);
  12064. }
  12065. /**
  12066. * Register a route matched event listener.
  12067. *
  12068. * @param string|callable $callback
  12069. * @return void
  12070. * @static
  12071. */
  12072. public static function matched($callback)
  12073. {
  12074. /** @var \Illuminate\Routing\Router $instance */
  12075. $instance->matched($callback);
  12076. }
  12077. /**
  12078. * Get all of the defined middleware short-hand names.
  12079. *
  12080. * @return array
  12081. * @static
  12082. */
  12083. public static function getMiddleware()
  12084. {
  12085. /** @var \Illuminate\Routing\Router $instance */
  12086. return $instance->getMiddleware();
  12087. }
  12088. /**
  12089. * Register a short-hand name for a middleware.
  12090. *
  12091. * @param string $name
  12092. * @param string $class
  12093. * @return \Illuminate\Routing\Router
  12094. * @static
  12095. */
  12096. public static function aliasMiddleware($name, $class)
  12097. {
  12098. /** @var \Illuminate\Routing\Router $instance */
  12099. return $instance->aliasMiddleware($name, $class);
  12100. }
  12101. /**
  12102. * Check if a middlewareGroup with the given name exists.
  12103. *
  12104. * @param string $name
  12105. * @return bool
  12106. * @static
  12107. */
  12108. public static function hasMiddlewareGroup($name)
  12109. {
  12110. /** @var \Illuminate\Routing\Router $instance */
  12111. return $instance->hasMiddlewareGroup($name);
  12112. }
  12113. /**
  12114. * Get all of the defined middleware groups.
  12115. *
  12116. * @return array
  12117. * @static
  12118. */
  12119. public static function getMiddlewareGroups()
  12120. {
  12121. /** @var \Illuminate\Routing\Router $instance */
  12122. return $instance->getMiddlewareGroups();
  12123. }
  12124. /**
  12125. * Register a group of middleware.
  12126. *
  12127. * @param string $name
  12128. * @param array $middleware
  12129. * @return \Illuminate\Routing\Router
  12130. * @static
  12131. */
  12132. public static function middlewareGroup($name, $middleware)
  12133. {
  12134. /** @var \Illuminate\Routing\Router $instance */
  12135. return $instance->middlewareGroup($name, $middleware);
  12136. }
  12137. /**
  12138. * Add a middleware to the beginning of a middleware group.
  12139. *
  12140. * If the middleware is already in the group, it will not be added again.
  12141. *
  12142. * @param string $group
  12143. * @param string $middleware
  12144. * @return \Illuminate\Routing\Router
  12145. * @static
  12146. */
  12147. public static function prependMiddlewareToGroup($group, $middleware)
  12148. {
  12149. /** @var \Illuminate\Routing\Router $instance */
  12150. return $instance->prependMiddlewareToGroup($group, $middleware);
  12151. }
  12152. /**
  12153. * Add a middleware to the end of a middleware group.
  12154. *
  12155. * If the middleware is already in the group, it will not be added again.
  12156. *
  12157. * @param string $group
  12158. * @param string $middleware
  12159. * @return \Illuminate\Routing\Router
  12160. * @static
  12161. */
  12162. public static function pushMiddlewareToGroup($group, $middleware)
  12163. {
  12164. /** @var \Illuminate\Routing\Router $instance */
  12165. return $instance->pushMiddlewareToGroup($group, $middleware);
  12166. }
  12167. /**
  12168. * Flush the router's middleware groups.
  12169. *
  12170. * @return \Illuminate\Routing\Router
  12171. * @static
  12172. */
  12173. public static function flushMiddlewareGroups()
  12174. {
  12175. /** @var \Illuminate\Routing\Router $instance */
  12176. return $instance->flushMiddlewareGroups();
  12177. }
  12178. /**
  12179. * Add a new route parameter binder.
  12180. *
  12181. * @param string $key
  12182. * @param string|callable $binder
  12183. * @return void
  12184. * @static
  12185. */
  12186. public static function bind($key, $binder)
  12187. {
  12188. /** @var \Illuminate\Routing\Router $instance */
  12189. $instance->bind($key, $binder);
  12190. }
  12191. /**
  12192. * Register a model binder for a wildcard.
  12193. *
  12194. * @param string $key
  12195. * @param string $class
  12196. * @param \Closure|null $callback
  12197. * @return void
  12198. * @static
  12199. */
  12200. public static function model($key, $class, $callback = null)
  12201. {
  12202. /** @var \Illuminate\Routing\Router $instance */
  12203. $instance->model($key, $class, $callback);
  12204. }
  12205. /**
  12206. * Get the binding callback for a given binding.
  12207. *
  12208. * @param string $key
  12209. * @return \Closure|null
  12210. * @static
  12211. */
  12212. public static function getBindingCallback($key)
  12213. {
  12214. /** @var \Illuminate\Routing\Router $instance */
  12215. return $instance->getBindingCallback($key);
  12216. }
  12217. /**
  12218. * Get the global "where" patterns.
  12219. *
  12220. * @return array
  12221. * @static
  12222. */
  12223. public static function getPatterns()
  12224. {
  12225. /** @var \Illuminate\Routing\Router $instance */
  12226. return $instance->getPatterns();
  12227. }
  12228. /**
  12229. * Set a global where pattern on all routes.
  12230. *
  12231. * @param string $key
  12232. * @param string $pattern
  12233. * @return void
  12234. * @static
  12235. */
  12236. public static function pattern($key, $pattern)
  12237. {
  12238. /** @var \Illuminate\Routing\Router $instance */
  12239. $instance->pattern($key, $pattern);
  12240. }
  12241. /**
  12242. * Set a group of global where patterns on all routes.
  12243. *
  12244. * @param array $patterns
  12245. * @return void
  12246. * @static
  12247. */
  12248. public static function patterns($patterns)
  12249. {
  12250. /** @var \Illuminate\Routing\Router $instance */
  12251. $instance->patterns($patterns);
  12252. }
  12253. /**
  12254. * Determine if the router currently has a group stack.
  12255. *
  12256. * @return bool
  12257. * @static
  12258. */
  12259. public static function hasGroupStack()
  12260. {
  12261. /** @var \Illuminate\Routing\Router $instance */
  12262. return $instance->hasGroupStack();
  12263. }
  12264. /**
  12265. * Get the current group stack for the router.
  12266. *
  12267. * @return array
  12268. * @static
  12269. */
  12270. public static function getGroupStack()
  12271. {
  12272. /** @var \Illuminate\Routing\Router $instance */
  12273. return $instance->getGroupStack();
  12274. }
  12275. /**
  12276. * Get a route parameter for the current route.
  12277. *
  12278. * @param string $key
  12279. * @param string|null $default
  12280. * @return mixed
  12281. * @static
  12282. */
  12283. public static function input($key, $default = null)
  12284. {
  12285. /** @var \Illuminate\Routing\Router $instance */
  12286. return $instance->input($key, $default);
  12287. }
  12288. /**
  12289. * Get the request currently being dispatched.
  12290. *
  12291. * @return \Illuminate\Http\Request
  12292. * @static
  12293. */
  12294. public static function getCurrentRequest()
  12295. {
  12296. /** @var \Illuminate\Routing\Router $instance */
  12297. return $instance->getCurrentRequest();
  12298. }
  12299. /**
  12300. * Get the currently dispatched route instance.
  12301. *
  12302. * @return \Illuminate\Routing\Route|null
  12303. * @static
  12304. */
  12305. public static function getCurrentRoute()
  12306. {
  12307. /** @var \Illuminate\Routing\Router $instance */
  12308. return $instance->getCurrentRoute();
  12309. }
  12310. /**
  12311. * Get the currently dispatched route instance.
  12312. *
  12313. * @return \Illuminate\Routing\Route|null
  12314. * @static
  12315. */
  12316. public static function current()
  12317. {
  12318. /** @var \Illuminate\Routing\Router $instance */
  12319. return $instance->current();
  12320. }
  12321. /**
  12322. * Check if a route with the given name exists.
  12323. *
  12324. * @param string $name
  12325. * @return bool
  12326. * @static
  12327. */
  12328. public static function has($name)
  12329. {
  12330. /** @var \Illuminate\Routing\Router $instance */
  12331. return $instance->has($name);
  12332. }
  12333. /**
  12334. * Get the current route name.
  12335. *
  12336. * @return string|null
  12337. * @static
  12338. */
  12339. public static function currentRouteName()
  12340. {
  12341. /** @var \Illuminate\Routing\Router $instance */
  12342. return $instance->currentRouteName();
  12343. }
  12344. /**
  12345. * Alias for the "currentRouteNamed" method.
  12346. *
  12347. * @param mixed $patterns
  12348. * @return bool
  12349. * @static
  12350. */
  12351. public static function is(...$patterns)
  12352. {
  12353. /** @var \Illuminate\Routing\Router $instance */
  12354. return $instance->is(...$patterns);
  12355. }
  12356. /**
  12357. * Determine if the current route matches a pattern.
  12358. *
  12359. * @param mixed $patterns
  12360. * @return bool
  12361. * @static
  12362. */
  12363. public static function currentRouteNamed(...$patterns)
  12364. {
  12365. /** @var \Illuminate\Routing\Router $instance */
  12366. return $instance->currentRouteNamed(...$patterns);
  12367. }
  12368. /**
  12369. * Get the current route action.
  12370. *
  12371. * @return string|null
  12372. * @static
  12373. */
  12374. public static function currentRouteAction()
  12375. {
  12376. /** @var \Illuminate\Routing\Router $instance */
  12377. return $instance->currentRouteAction();
  12378. }
  12379. /**
  12380. * Alias for the "currentRouteUses" method.
  12381. *
  12382. * @param array $patterns
  12383. * @return bool
  12384. * @static
  12385. */
  12386. public static function uses(...$patterns)
  12387. {
  12388. /** @var \Illuminate\Routing\Router $instance */
  12389. return $instance->uses(...$patterns);
  12390. }
  12391. /**
  12392. * Determine if the current route action matches a given action.
  12393. *
  12394. * @param string $action
  12395. * @return bool
  12396. * @static
  12397. */
  12398. public static function currentRouteUses($action)
  12399. {
  12400. /** @var \Illuminate\Routing\Router $instance */
  12401. return $instance->currentRouteUses($action);
  12402. }
  12403. /**
  12404. * Set the unmapped global resource parameters to singular.
  12405. *
  12406. * @param bool $singular
  12407. * @return void
  12408. * @static
  12409. */
  12410. public static function singularResourceParameters($singular = true)
  12411. {
  12412. /** @var \Illuminate\Routing\Router $instance */
  12413. $instance->singularResourceParameters($singular);
  12414. }
  12415. /**
  12416. * Set the global resource parameter mapping.
  12417. *
  12418. * @param array $parameters
  12419. * @return void
  12420. * @static
  12421. */
  12422. public static function resourceParameters($parameters = [])
  12423. {
  12424. /** @var \Illuminate\Routing\Router $instance */
  12425. $instance->resourceParameters($parameters);
  12426. }
  12427. /**
  12428. * Get or set the verbs used in the resource URIs.
  12429. *
  12430. * @param array $verbs
  12431. * @return array|null
  12432. * @static
  12433. */
  12434. public static function resourceVerbs($verbs = [])
  12435. {
  12436. /** @var \Illuminate\Routing\Router $instance */
  12437. return $instance->resourceVerbs($verbs);
  12438. }
  12439. /**
  12440. * Get the underlying route collection.
  12441. *
  12442. * @return \Illuminate\Routing\RouteCollectionInterface
  12443. * @static
  12444. */
  12445. public static function getRoutes()
  12446. {
  12447. /** @var \Illuminate\Routing\Router $instance */
  12448. return $instance->getRoutes();
  12449. }
  12450. /**
  12451. * Set the route collection instance.
  12452. *
  12453. * @param \Illuminate\Routing\RouteCollection $routes
  12454. * @return void
  12455. * @static
  12456. */
  12457. public static function setRoutes($routes)
  12458. {
  12459. /** @var \Illuminate\Routing\Router $instance */
  12460. $instance->setRoutes($routes);
  12461. }
  12462. /**
  12463. * Set the compiled route collection instance.
  12464. *
  12465. * @param array $routes
  12466. * @return void
  12467. * @static
  12468. */
  12469. public static function setCompiledRoutes($routes)
  12470. {
  12471. /** @var \Illuminate\Routing\Router $instance */
  12472. $instance->setCompiledRoutes($routes);
  12473. }
  12474. /**
  12475. * Remove any duplicate middleware from the given array.
  12476. *
  12477. * @param array $middleware
  12478. * @return array
  12479. * @static
  12480. */
  12481. public static function uniqueMiddleware($middleware)
  12482. {
  12483. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  12484. }
  12485. /**
  12486. * Set the container instance used by the router.
  12487. *
  12488. * @param \Illuminate\Container\Container $container
  12489. * @return \Illuminate\Routing\Router
  12490. * @static
  12491. */
  12492. public static function setContainer($container)
  12493. {
  12494. /** @var \Illuminate\Routing\Router $instance */
  12495. return $instance->setContainer($container);
  12496. }
  12497. /**
  12498. * Register a custom macro.
  12499. *
  12500. * @param string $name
  12501. * @param object|callable $macro
  12502. * @return void
  12503. * @static
  12504. */
  12505. public static function macro($name, $macro)
  12506. {
  12507. \Illuminate\Routing\Router::macro($name, $macro);
  12508. }
  12509. /**
  12510. * Mix another object into the class.
  12511. *
  12512. * @param object $mixin
  12513. * @param bool $replace
  12514. * @return void
  12515. * @throws \ReflectionException
  12516. * @static
  12517. */
  12518. public static function mixin($mixin, $replace = true)
  12519. {
  12520. \Illuminate\Routing\Router::mixin($mixin, $replace);
  12521. }
  12522. /**
  12523. * Checks if macro is registered.
  12524. *
  12525. * @param string $name
  12526. * @return bool
  12527. * @static
  12528. */
  12529. public static function hasMacro($name)
  12530. {
  12531. return \Illuminate\Routing\Router::hasMacro($name);
  12532. }
  12533. /**
  12534. * Flush the existing macros.
  12535. *
  12536. * @return void
  12537. * @static
  12538. */
  12539. public static function flushMacros()
  12540. {
  12541. \Illuminate\Routing\Router::flushMacros();
  12542. }
  12543. /**
  12544. * Dynamically handle calls to the class.
  12545. *
  12546. * @param string $method
  12547. * @param array $parameters
  12548. * @return mixed
  12549. * @throws \BadMethodCallException
  12550. * @static
  12551. */
  12552. public static function macroCall($method, $parameters)
  12553. {
  12554. /** @var \Illuminate\Routing\Router $instance */
  12555. return $instance->macroCall($method, $parameters);
  12556. }
  12557. }
  12558. /**
  12559. *
  12560. *
  12561. * @see \Illuminate\Database\Schema\Builder
  12562. */
  12563. class Schema {
  12564. /**
  12565. * Create a database in the schema.
  12566. *
  12567. * @param string $name
  12568. * @return bool
  12569. * @static
  12570. */
  12571. public static function createDatabase($name)
  12572. {
  12573. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12574. return $instance->createDatabase($name);
  12575. }
  12576. /**
  12577. * Drop a database from the schema if the database exists.
  12578. *
  12579. * @param string $name
  12580. * @return bool
  12581. * @static
  12582. */
  12583. public static function dropDatabaseIfExists($name)
  12584. {
  12585. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12586. return $instance->dropDatabaseIfExists($name);
  12587. }
  12588. /**
  12589. * Determine if the given table exists.
  12590. *
  12591. * @param string $table
  12592. * @return bool
  12593. * @static
  12594. */
  12595. public static function hasTable($table)
  12596. {
  12597. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12598. return $instance->hasTable($table);
  12599. }
  12600. /**
  12601. * Get the column listing for a given table.
  12602. *
  12603. * @param string $table
  12604. * @return array
  12605. * @static
  12606. */
  12607. public static function getColumnListing($table)
  12608. {
  12609. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12610. return $instance->getColumnListing($table);
  12611. }
  12612. /**
  12613. * Drop all tables from the database.
  12614. *
  12615. * @return void
  12616. * @static
  12617. */
  12618. public static function dropAllTables()
  12619. {
  12620. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12621. $instance->dropAllTables();
  12622. }
  12623. /**
  12624. * Drop all views from the database.
  12625. *
  12626. * @return void
  12627. * @static
  12628. */
  12629. public static function dropAllViews()
  12630. {
  12631. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12632. $instance->dropAllViews();
  12633. }
  12634. /**
  12635. * Get all of the table names for the database.
  12636. *
  12637. * @return array
  12638. * @static
  12639. */
  12640. public static function getAllTables()
  12641. {
  12642. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12643. return $instance->getAllTables();
  12644. }
  12645. /**
  12646. * Get all of the view names for the database.
  12647. *
  12648. * @return array
  12649. * @static
  12650. */
  12651. public static function getAllViews()
  12652. {
  12653. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12654. return $instance->getAllViews();
  12655. }
  12656. /**
  12657. * Set the default string length for migrations.
  12658. *
  12659. * @param int $length
  12660. * @return void
  12661. * @static
  12662. */
  12663. public static function defaultStringLength($length)
  12664. { //Method inherited from \Illuminate\Database\Schema\Builder
  12665. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  12666. }
  12667. /**
  12668. * Set the default morph key type for migrations.
  12669. *
  12670. * @param string $type
  12671. * @return void
  12672. * @throws \InvalidArgumentException
  12673. * @static
  12674. */
  12675. public static function defaultMorphKeyType($type)
  12676. { //Method inherited from \Illuminate\Database\Schema\Builder
  12677. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  12678. }
  12679. /**
  12680. * Set the default morph key type for migrations to UUIDs.
  12681. *
  12682. * @return void
  12683. * @static
  12684. */
  12685. public static function morphUsingUuids()
  12686. { //Method inherited from \Illuminate\Database\Schema\Builder
  12687. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  12688. }
  12689. /**
  12690. * Determine if the given table has a given column.
  12691. *
  12692. * @param string $table
  12693. * @param string $column
  12694. * @return bool
  12695. * @static
  12696. */
  12697. public static function hasColumn($table, $column)
  12698. { //Method inherited from \Illuminate\Database\Schema\Builder
  12699. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12700. return $instance->hasColumn($table, $column);
  12701. }
  12702. /**
  12703. * Determine if the given table has given columns.
  12704. *
  12705. * @param string $table
  12706. * @param array $columns
  12707. * @return bool
  12708. * @static
  12709. */
  12710. public static function hasColumns($table, $columns)
  12711. { //Method inherited from \Illuminate\Database\Schema\Builder
  12712. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12713. return $instance->hasColumns($table, $columns);
  12714. }
  12715. /**
  12716. * Get the data type for the given column name.
  12717. *
  12718. * @param string $table
  12719. * @param string $column
  12720. * @return string
  12721. * @static
  12722. */
  12723. public static function getColumnType($table, $column)
  12724. { //Method inherited from \Illuminate\Database\Schema\Builder
  12725. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12726. return $instance->getColumnType($table, $column);
  12727. }
  12728. /**
  12729. * Modify a table on the schema.
  12730. *
  12731. * @param string $table
  12732. * @param \Closure $callback
  12733. * @return void
  12734. * @static
  12735. */
  12736. public static function table($table, $callback)
  12737. { //Method inherited from \Illuminate\Database\Schema\Builder
  12738. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12739. $instance->table($table, $callback);
  12740. }
  12741. /**
  12742. * Create a new table on the schema.
  12743. *
  12744. * @param string $table
  12745. * @param \Closure $callback
  12746. * @return void
  12747. * @static
  12748. */
  12749. public static function create($table, $callback)
  12750. { //Method inherited from \Illuminate\Database\Schema\Builder
  12751. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12752. $instance->create($table, $callback);
  12753. }
  12754. /**
  12755. * Drop a table from the schema.
  12756. *
  12757. * @param string $table
  12758. * @return void
  12759. * @static
  12760. */
  12761. public static function drop($table)
  12762. { //Method inherited from \Illuminate\Database\Schema\Builder
  12763. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12764. $instance->drop($table);
  12765. }
  12766. /**
  12767. * Drop a table from the schema if it exists.
  12768. *
  12769. * @param string $table
  12770. * @return void
  12771. * @static
  12772. */
  12773. public static function dropIfExists($table)
  12774. { //Method inherited from \Illuminate\Database\Schema\Builder
  12775. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12776. $instance->dropIfExists($table);
  12777. }
  12778. /**
  12779. * Drop columns from a table schema.
  12780. *
  12781. * @param string $table
  12782. * @param string|array $columns
  12783. * @return void
  12784. * @static
  12785. */
  12786. public static function dropColumns($table, $columns)
  12787. { //Method inherited from \Illuminate\Database\Schema\Builder
  12788. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12789. $instance->dropColumns($table, $columns);
  12790. }
  12791. /**
  12792. * Drop all types from the database.
  12793. *
  12794. * @return void
  12795. * @throws \LogicException
  12796. * @static
  12797. */
  12798. public static function dropAllTypes()
  12799. { //Method inherited from \Illuminate\Database\Schema\Builder
  12800. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12801. $instance->dropAllTypes();
  12802. }
  12803. /**
  12804. * Rename a table on the schema.
  12805. *
  12806. * @param string $from
  12807. * @param string $to
  12808. * @return void
  12809. * @static
  12810. */
  12811. public static function rename($from, $to)
  12812. { //Method inherited from \Illuminate\Database\Schema\Builder
  12813. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12814. $instance->rename($from, $to);
  12815. }
  12816. /**
  12817. * Enable foreign key constraints.
  12818. *
  12819. * @return bool
  12820. * @static
  12821. */
  12822. public static function enableForeignKeyConstraints()
  12823. { //Method inherited from \Illuminate\Database\Schema\Builder
  12824. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12825. return $instance->enableForeignKeyConstraints();
  12826. }
  12827. /**
  12828. * Disable foreign key constraints.
  12829. *
  12830. * @return bool
  12831. * @static
  12832. */
  12833. public static function disableForeignKeyConstraints()
  12834. { //Method inherited from \Illuminate\Database\Schema\Builder
  12835. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12836. return $instance->disableForeignKeyConstraints();
  12837. }
  12838. /**
  12839. * Register a custom Doctrine mapping type.
  12840. *
  12841. * @param string $class
  12842. * @param string $name
  12843. * @param string $type
  12844. * @return void
  12845. * @static
  12846. */
  12847. public static function registerCustomDoctrineType($class, $name, $type)
  12848. { //Method inherited from \Illuminate\Database\Schema\Builder
  12849. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12850. $instance->registerCustomDoctrineType($class, $name, $type);
  12851. }
  12852. /**
  12853. * Get the database connection instance.
  12854. *
  12855. * @return \Illuminate\Database\Connection
  12856. * @static
  12857. */
  12858. public static function getConnection()
  12859. { //Method inherited from \Illuminate\Database\Schema\Builder
  12860. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12861. return $instance->getConnection();
  12862. }
  12863. /**
  12864. * Set the database connection instance.
  12865. *
  12866. * @param \Illuminate\Database\Connection $connection
  12867. * @return \Illuminate\Database\Schema\MySqlBuilder
  12868. * @static
  12869. */
  12870. public static function setConnection($connection)
  12871. { //Method inherited from \Illuminate\Database\Schema\Builder
  12872. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12873. return $instance->setConnection($connection);
  12874. }
  12875. /**
  12876. * Set the Schema Blueprint resolver callback.
  12877. *
  12878. * @param \Closure $resolver
  12879. * @return void
  12880. * @static
  12881. */
  12882. public static function blueprintResolver($resolver)
  12883. { //Method inherited from \Illuminate\Database\Schema\Builder
  12884. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12885. $instance->blueprintResolver($resolver);
  12886. }
  12887. }
  12888. /**
  12889. *
  12890. *
  12891. * @see \Illuminate\Session\SessionManager
  12892. * @see \Illuminate\Session\Store
  12893. */
  12894. class Session {
  12895. /**
  12896. * Determine if requests for the same session should wait for each to finish before executing.
  12897. *
  12898. * @return bool
  12899. * @static
  12900. */
  12901. public static function shouldBlock()
  12902. {
  12903. /** @var \Illuminate\Session\SessionManager $instance */
  12904. return $instance->shouldBlock();
  12905. }
  12906. /**
  12907. * Get the name of the cache store / driver that should be used to acquire session locks.
  12908. *
  12909. * @return string|null
  12910. * @static
  12911. */
  12912. public static function blockDriver()
  12913. {
  12914. /** @var \Illuminate\Session\SessionManager $instance */
  12915. return $instance->blockDriver();
  12916. }
  12917. /**
  12918. * Get the session configuration.
  12919. *
  12920. * @return array
  12921. * @static
  12922. */
  12923. public static function getSessionConfig()
  12924. {
  12925. /** @var \Illuminate\Session\SessionManager $instance */
  12926. return $instance->getSessionConfig();
  12927. }
  12928. /**
  12929. * Get the default session driver name.
  12930. *
  12931. * @return string
  12932. * @static
  12933. */
  12934. public static function getDefaultDriver()
  12935. {
  12936. /** @var \Illuminate\Session\SessionManager $instance */
  12937. return $instance->getDefaultDriver();
  12938. }
  12939. /**
  12940. * Set the default session driver name.
  12941. *
  12942. * @param string $name
  12943. * @return void
  12944. * @static
  12945. */
  12946. public static function setDefaultDriver($name)
  12947. {
  12948. /** @var \Illuminate\Session\SessionManager $instance */
  12949. $instance->setDefaultDriver($name);
  12950. }
  12951. /**
  12952. * Get a driver instance.
  12953. *
  12954. * @param string|null $driver
  12955. * @return mixed
  12956. * @throws \InvalidArgumentException
  12957. * @static
  12958. */
  12959. public static function driver($driver = null)
  12960. { //Method inherited from \Illuminate\Support\Manager
  12961. /** @var \Illuminate\Session\SessionManager $instance */
  12962. return $instance->driver($driver);
  12963. }
  12964. /**
  12965. * Register a custom driver creator Closure.
  12966. *
  12967. * @param string $driver
  12968. * @param \Closure $callback
  12969. * @return \Illuminate\Session\SessionManager
  12970. * @static
  12971. */
  12972. public static function extend($driver, $callback)
  12973. { //Method inherited from \Illuminate\Support\Manager
  12974. /** @var \Illuminate\Session\SessionManager $instance */
  12975. return $instance->extend($driver, $callback);
  12976. }
  12977. /**
  12978. * Get all of the created "drivers".
  12979. *
  12980. * @return array
  12981. * @static
  12982. */
  12983. public static function getDrivers()
  12984. { //Method inherited from \Illuminate\Support\Manager
  12985. /** @var \Illuminate\Session\SessionManager $instance */
  12986. return $instance->getDrivers();
  12987. }
  12988. /**
  12989. * Get the container instance used by the manager.
  12990. *
  12991. * @return \Illuminate\Contracts\Container\Container
  12992. * @static
  12993. */
  12994. public static function getContainer()
  12995. { //Method inherited from \Illuminate\Support\Manager
  12996. /** @var \Illuminate\Session\SessionManager $instance */
  12997. return $instance->getContainer();
  12998. }
  12999. /**
  13000. * Set the container instance used by the manager.
  13001. *
  13002. * @param \Illuminate\Contracts\Container\Container $container
  13003. * @return \Illuminate\Session\SessionManager
  13004. * @static
  13005. */
  13006. public static function setContainer($container)
  13007. { //Method inherited from \Illuminate\Support\Manager
  13008. /** @var \Illuminate\Session\SessionManager $instance */
  13009. return $instance->setContainer($container);
  13010. }
  13011. /**
  13012. * Forget all of the resolved driver instances.
  13013. *
  13014. * @return \Illuminate\Session\SessionManager
  13015. * @static
  13016. */
  13017. public static function forgetDrivers()
  13018. { //Method inherited from \Illuminate\Support\Manager
  13019. /** @var \Illuminate\Session\SessionManager $instance */
  13020. return $instance->forgetDrivers();
  13021. }
  13022. /**
  13023. * Start the session, reading the data from a handler.
  13024. *
  13025. * @return bool
  13026. * @static
  13027. */
  13028. public static function start()
  13029. {
  13030. /** @var \Illuminate\Session\Store $instance */
  13031. return $instance->start();
  13032. }
  13033. /**
  13034. * Save the session data to storage.
  13035. *
  13036. * @return void
  13037. * @static
  13038. */
  13039. public static function save()
  13040. {
  13041. /** @var \Illuminate\Session\Store $instance */
  13042. $instance->save();
  13043. }
  13044. /**
  13045. * Age the flash data for the session.
  13046. *
  13047. * @return void
  13048. * @static
  13049. */
  13050. public static function ageFlashData()
  13051. {
  13052. /** @var \Illuminate\Session\Store $instance */
  13053. $instance->ageFlashData();
  13054. }
  13055. /**
  13056. * Get all of the session data.
  13057. *
  13058. * @return array
  13059. * @static
  13060. */
  13061. public static function all()
  13062. {
  13063. /** @var \Illuminate\Session\Store $instance */
  13064. return $instance->all();
  13065. }
  13066. /**
  13067. * Get a subset of the session data.
  13068. *
  13069. * @param array $keys
  13070. * @return array
  13071. * @static
  13072. */
  13073. public static function only($keys)
  13074. {
  13075. /** @var \Illuminate\Session\Store $instance */
  13076. return $instance->only($keys);
  13077. }
  13078. /**
  13079. * Checks if a key exists.
  13080. *
  13081. * @param string|array $key
  13082. * @return bool
  13083. * @static
  13084. */
  13085. public static function exists($key)
  13086. {
  13087. /** @var \Illuminate\Session\Store $instance */
  13088. return $instance->exists($key);
  13089. }
  13090. /**
  13091. * Determine if the given key is missing from the session data.
  13092. *
  13093. * @param string|array $key
  13094. * @return bool
  13095. * @static
  13096. */
  13097. public static function missing($key)
  13098. {
  13099. /** @var \Illuminate\Session\Store $instance */
  13100. return $instance->missing($key);
  13101. }
  13102. /**
  13103. * Checks if a key is present and not null.
  13104. *
  13105. * @param string|array $key
  13106. * @return bool
  13107. * @static
  13108. */
  13109. public static function has($key)
  13110. {
  13111. /** @var \Illuminate\Session\Store $instance */
  13112. return $instance->has($key);
  13113. }
  13114. /**
  13115. * Get an item from the session.
  13116. *
  13117. * @param string $key
  13118. * @param mixed $default
  13119. * @return mixed
  13120. * @static
  13121. */
  13122. public static function get($key, $default = null)
  13123. {
  13124. /** @var \Illuminate\Session\Store $instance */
  13125. return $instance->get($key, $default);
  13126. }
  13127. /**
  13128. * Get the value of a given key and then forget it.
  13129. *
  13130. * @param string $key
  13131. * @param mixed $default
  13132. * @return mixed
  13133. * @static
  13134. */
  13135. public static function pull($key, $default = null)
  13136. {
  13137. /** @var \Illuminate\Session\Store $instance */
  13138. return $instance->pull($key, $default);
  13139. }
  13140. /**
  13141. * Determine if the session contains old input.
  13142. *
  13143. * @param string|null $key
  13144. * @return bool
  13145. * @static
  13146. */
  13147. public static function hasOldInput($key = null)
  13148. {
  13149. /** @var \Illuminate\Session\Store $instance */
  13150. return $instance->hasOldInput($key);
  13151. }
  13152. /**
  13153. * Get the requested item from the flashed input array.
  13154. *
  13155. * @param string|null $key
  13156. * @param mixed $default
  13157. * @return mixed
  13158. * @static
  13159. */
  13160. public static function getOldInput($key = null, $default = null)
  13161. {
  13162. /** @var \Illuminate\Session\Store $instance */
  13163. return $instance->getOldInput($key, $default);
  13164. }
  13165. /**
  13166. * Replace the given session attributes entirely.
  13167. *
  13168. * @param array $attributes
  13169. * @return void
  13170. * @static
  13171. */
  13172. public static function replace($attributes)
  13173. {
  13174. /** @var \Illuminate\Session\Store $instance */
  13175. $instance->replace($attributes);
  13176. }
  13177. /**
  13178. * Put a key / value pair or array of key / value pairs in the session.
  13179. *
  13180. * @param string|array $key
  13181. * @param mixed $value
  13182. * @return void
  13183. * @static
  13184. */
  13185. public static function put($key, $value = null)
  13186. {
  13187. /** @var \Illuminate\Session\Store $instance */
  13188. $instance->put($key, $value);
  13189. }
  13190. /**
  13191. * Get an item from the session, or store the default value.
  13192. *
  13193. * @param string $key
  13194. * @param \Closure $callback
  13195. * @return mixed
  13196. * @static
  13197. */
  13198. public static function remember($key, $callback)
  13199. {
  13200. /** @var \Illuminate\Session\Store $instance */
  13201. return $instance->remember($key, $callback);
  13202. }
  13203. /**
  13204. * Push a value onto a session array.
  13205. *
  13206. * @param string $key
  13207. * @param mixed $value
  13208. * @return void
  13209. * @static
  13210. */
  13211. public static function push($key, $value)
  13212. {
  13213. /** @var \Illuminate\Session\Store $instance */
  13214. $instance->push($key, $value);
  13215. }
  13216. /**
  13217. * Increment the value of an item in the session.
  13218. *
  13219. * @param string $key
  13220. * @param int $amount
  13221. * @return mixed
  13222. * @static
  13223. */
  13224. public static function increment($key, $amount = 1)
  13225. {
  13226. /** @var \Illuminate\Session\Store $instance */
  13227. return $instance->increment($key, $amount);
  13228. }
  13229. /**
  13230. * Decrement the value of an item in the session.
  13231. *
  13232. * @param string $key
  13233. * @param int $amount
  13234. * @return int
  13235. * @static
  13236. */
  13237. public static function decrement($key, $amount = 1)
  13238. {
  13239. /** @var \Illuminate\Session\Store $instance */
  13240. return $instance->decrement($key, $amount);
  13241. }
  13242. /**
  13243. * Flash a key / value pair to the session.
  13244. *
  13245. * @param string $key
  13246. * @param mixed $value
  13247. * @return void
  13248. * @static
  13249. */
  13250. public static function flash($key, $value = true)
  13251. {
  13252. /** @var \Illuminate\Session\Store $instance */
  13253. $instance->flash($key, $value);
  13254. }
  13255. /**
  13256. * Flash a key / value pair to the session for immediate use.
  13257. *
  13258. * @param string $key
  13259. * @param mixed $value
  13260. * @return void
  13261. * @static
  13262. */
  13263. public static function now($key, $value)
  13264. {
  13265. /** @var \Illuminate\Session\Store $instance */
  13266. $instance->now($key, $value);
  13267. }
  13268. /**
  13269. * Reflash all of the session flash data.
  13270. *
  13271. * @return void
  13272. * @static
  13273. */
  13274. public static function reflash()
  13275. {
  13276. /** @var \Illuminate\Session\Store $instance */
  13277. $instance->reflash();
  13278. }
  13279. /**
  13280. * Reflash a subset of the current flash data.
  13281. *
  13282. * @param array|mixed $keys
  13283. * @return void
  13284. * @static
  13285. */
  13286. public static function keep($keys = null)
  13287. {
  13288. /** @var \Illuminate\Session\Store $instance */
  13289. $instance->keep($keys);
  13290. }
  13291. /**
  13292. * Flash an input array to the session.
  13293. *
  13294. * @param array $value
  13295. * @return void
  13296. * @static
  13297. */
  13298. public static function flashInput($value)
  13299. {
  13300. /** @var \Illuminate\Session\Store $instance */
  13301. $instance->flashInput($value);
  13302. }
  13303. /**
  13304. * Remove an item from the session, returning its value.
  13305. *
  13306. * @param string $key
  13307. * @return mixed
  13308. * @static
  13309. */
  13310. public static function remove($key)
  13311. {
  13312. /** @var \Illuminate\Session\Store $instance */
  13313. return $instance->remove($key);
  13314. }
  13315. /**
  13316. * Remove one or many items from the session.
  13317. *
  13318. * @param string|array $keys
  13319. * @return void
  13320. * @static
  13321. */
  13322. public static function forget($keys)
  13323. {
  13324. /** @var \Illuminate\Session\Store $instance */
  13325. $instance->forget($keys);
  13326. }
  13327. /**
  13328. * Remove all of the items from the session.
  13329. *
  13330. * @return void
  13331. * @static
  13332. */
  13333. public static function flush()
  13334. {
  13335. /** @var \Illuminate\Session\Store $instance */
  13336. $instance->flush();
  13337. }
  13338. /**
  13339. * Flush the session data and regenerate the ID.
  13340. *
  13341. * @return bool
  13342. * @static
  13343. */
  13344. public static function invalidate()
  13345. {
  13346. /** @var \Illuminate\Session\Store $instance */
  13347. return $instance->invalidate();
  13348. }
  13349. /**
  13350. * Generate a new session identifier.
  13351. *
  13352. * @param bool $destroy
  13353. * @return bool
  13354. * @static
  13355. */
  13356. public static function regenerate($destroy = false)
  13357. {
  13358. /** @var \Illuminate\Session\Store $instance */
  13359. return $instance->regenerate($destroy);
  13360. }
  13361. /**
  13362. * Generate a new session ID for the session.
  13363. *
  13364. * @param bool $destroy
  13365. * @return bool
  13366. * @static
  13367. */
  13368. public static function migrate($destroy = false)
  13369. {
  13370. /** @var \Illuminate\Session\Store $instance */
  13371. return $instance->migrate($destroy);
  13372. }
  13373. /**
  13374. * Determine if the session has been started.
  13375. *
  13376. * @return bool
  13377. * @static
  13378. */
  13379. public static function isStarted()
  13380. {
  13381. /** @var \Illuminate\Session\Store $instance */
  13382. return $instance->isStarted();
  13383. }
  13384. /**
  13385. * Get the name of the session.
  13386. *
  13387. * @return string
  13388. * @static
  13389. */
  13390. public static function getName()
  13391. {
  13392. /** @var \Illuminate\Session\Store $instance */
  13393. return $instance->getName();
  13394. }
  13395. /**
  13396. * Set the name of the session.
  13397. *
  13398. * @param string $name
  13399. * @return void
  13400. * @static
  13401. */
  13402. public static function setName($name)
  13403. {
  13404. /** @var \Illuminate\Session\Store $instance */
  13405. $instance->setName($name);
  13406. }
  13407. /**
  13408. * Get the current session ID.
  13409. *
  13410. * @return string
  13411. * @static
  13412. */
  13413. public static function getId()
  13414. {
  13415. /** @var \Illuminate\Session\Store $instance */
  13416. return $instance->getId();
  13417. }
  13418. /**
  13419. * Set the session ID.
  13420. *
  13421. * @param string $id
  13422. * @return void
  13423. * @static
  13424. */
  13425. public static function setId($id)
  13426. {
  13427. /** @var \Illuminate\Session\Store $instance */
  13428. $instance->setId($id);
  13429. }
  13430. /**
  13431. * Determine if this is a valid session ID.
  13432. *
  13433. * @param string $id
  13434. * @return bool
  13435. * @static
  13436. */
  13437. public static function isValidId($id)
  13438. {
  13439. /** @var \Illuminate\Session\Store $instance */
  13440. return $instance->isValidId($id);
  13441. }
  13442. /**
  13443. * Set the existence of the session on the handler if applicable.
  13444. *
  13445. * @param bool $value
  13446. * @return void
  13447. * @static
  13448. */
  13449. public static function setExists($value)
  13450. {
  13451. /** @var \Illuminate\Session\Store $instance */
  13452. $instance->setExists($value);
  13453. }
  13454. /**
  13455. * Get the CSRF token value.
  13456. *
  13457. * @return string
  13458. * @static
  13459. */
  13460. public static function token()
  13461. {
  13462. /** @var \Illuminate\Session\Store $instance */
  13463. return $instance->token();
  13464. }
  13465. /**
  13466. * Regenerate the CSRF token value.
  13467. *
  13468. * @return void
  13469. * @static
  13470. */
  13471. public static function regenerateToken()
  13472. {
  13473. /** @var \Illuminate\Session\Store $instance */
  13474. $instance->regenerateToken();
  13475. }
  13476. /**
  13477. * Get the previous URL from the session.
  13478. *
  13479. * @return string|null
  13480. * @static
  13481. */
  13482. public static function previousUrl()
  13483. {
  13484. /** @var \Illuminate\Session\Store $instance */
  13485. return $instance->previousUrl();
  13486. }
  13487. /**
  13488. * Set the "previous" URL in the session.
  13489. *
  13490. * @param string $url
  13491. * @return void
  13492. * @static
  13493. */
  13494. public static function setPreviousUrl($url)
  13495. {
  13496. /** @var \Illuminate\Session\Store $instance */
  13497. $instance->setPreviousUrl($url);
  13498. }
  13499. /**
  13500. * Specify that the user has confirmed their password.
  13501. *
  13502. * @return void
  13503. * @static
  13504. */
  13505. public static function passwordConfirmed()
  13506. {
  13507. /** @var \Illuminate\Session\Store $instance */
  13508. $instance->passwordConfirmed();
  13509. }
  13510. /**
  13511. * Get the underlying session handler implementation.
  13512. *
  13513. * @return \SessionHandlerInterface
  13514. * @static
  13515. */
  13516. public static function getHandler()
  13517. {
  13518. /** @var \Illuminate\Session\Store $instance */
  13519. return $instance->getHandler();
  13520. }
  13521. /**
  13522. * Determine if the session handler needs a request.
  13523. *
  13524. * @return bool
  13525. * @static
  13526. */
  13527. public static function handlerNeedsRequest()
  13528. {
  13529. /** @var \Illuminate\Session\Store $instance */
  13530. return $instance->handlerNeedsRequest();
  13531. }
  13532. /**
  13533. * Set the request on the handler instance.
  13534. *
  13535. * @param \Illuminate\Http\Request $request
  13536. * @return void
  13537. * @static
  13538. */
  13539. public static function setRequestOnHandler($request)
  13540. {
  13541. /** @var \Illuminate\Session\Store $instance */
  13542. $instance->setRequestOnHandler($request);
  13543. }
  13544. }
  13545. /**
  13546. *
  13547. *
  13548. * @see \Illuminate\Filesystem\FilesystemManager
  13549. */
  13550. class Storage {
  13551. /**
  13552. * Get a filesystem instance.
  13553. *
  13554. * @param string|null $name
  13555. * @return \Illuminate\Filesystem\FilesystemAdapter
  13556. * @static
  13557. */
  13558. public static function drive($name = null)
  13559. {
  13560. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13561. return $instance->drive($name);
  13562. }
  13563. /**
  13564. * Get a filesystem instance.
  13565. *
  13566. * @param string|null $name
  13567. * @return \Illuminate\Filesystem\FilesystemAdapter
  13568. * @static
  13569. */
  13570. public static function disk($name = null)
  13571. {
  13572. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13573. return $instance->disk($name);
  13574. }
  13575. /**
  13576. * Get a default cloud filesystem instance.
  13577. *
  13578. * @return \Illuminate\Filesystem\FilesystemAdapter
  13579. * @static
  13580. */
  13581. public static function cloud()
  13582. {
  13583. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13584. return $instance->cloud();
  13585. }
  13586. /**
  13587. * Build an on-demand disk.
  13588. *
  13589. * @param string|array $config
  13590. * @return \Illuminate\Filesystem\FilesystemAdapter
  13591. * @static
  13592. */
  13593. public static function build($config)
  13594. {
  13595. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13596. return $instance->build($config);
  13597. }
  13598. /**
  13599. * Create an instance of the local driver.
  13600. *
  13601. * @param array $config
  13602. * @return \Illuminate\Filesystem\FilesystemAdapter
  13603. * @static
  13604. */
  13605. public static function createLocalDriver($config)
  13606. {
  13607. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13608. return $instance->createLocalDriver($config);
  13609. }
  13610. /**
  13611. * Create an instance of the ftp driver.
  13612. *
  13613. * @param array $config
  13614. * @return \Illuminate\Filesystem\FilesystemAdapter
  13615. * @static
  13616. */
  13617. public static function createFtpDriver($config)
  13618. {
  13619. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13620. return $instance->createFtpDriver($config);
  13621. }
  13622. /**
  13623. * Create an instance of the sftp driver.
  13624. *
  13625. * @param array $config
  13626. * @return \Illuminate\Filesystem\FilesystemAdapter
  13627. * @static
  13628. */
  13629. public static function createSftpDriver($config)
  13630. {
  13631. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13632. return $instance->createSftpDriver($config);
  13633. }
  13634. /**
  13635. * Create an instance of the Amazon S3 driver.
  13636. *
  13637. * @param array $config
  13638. * @return \Illuminate\Contracts\Filesystem\Cloud
  13639. * @static
  13640. */
  13641. public static function createS3Driver($config)
  13642. {
  13643. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13644. return $instance->createS3Driver($config);
  13645. }
  13646. /**
  13647. * Set the given disk instance.
  13648. *
  13649. * @param string $name
  13650. * @param mixed $disk
  13651. * @return \Illuminate\Filesystem\FilesystemManager
  13652. * @static
  13653. */
  13654. public static function set($name, $disk)
  13655. {
  13656. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13657. return $instance->set($name, $disk);
  13658. }
  13659. /**
  13660. * Get the default driver name.
  13661. *
  13662. * @return string
  13663. * @static
  13664. */
  13665. public static function getDefaultDriver()
  13666. {
  13667. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13668. return $instance->getDefaultDriver();
  13669. }
  13670. /**
  13671. * Get the default cloud driver name.
  13672. *
  13673. * @return string
  13674. * @static
  13675. */
  13676. public static function getDefaultCloudDriver()
  13677. {
  13678. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13679. return $instance->getDefaultCloudDriver();
  13680. }
  13681. /**
  13682. * Unset the given disk instances.
  13683. *
  13684. * @param array|string $disk
  13685. * @return \Illuminate\Filesystem\FilesystemManager
  13686. * @static
  13687. */
  13688. public static function forgetDisk($disk)
  13689. {
  13690. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13691. return $instance->forgetDisk($disk);
  13692. }
  13693. /**
  13694. * Disconnect the given disk and remove from local cache.
  13695. *
  13696. * @param string|null $name
  13697. * @return void
  13698. * @static
  13699. */
  13700. public static function purge($name = null)
  13701. {
  13702. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13703. $instance->purge($name);
  13704. }
  13705. /**
  13706. * Register a custom driver creator Closure.
  13707. *
  13708. * @param string $driver
  13709. * @param \Closure $callback
  13710. * @return \Illuminate\Filesystem\FilesystemManager
  13711. * @static
  13712. */
  13713. public static function extend($driver, $callback)
  13714. {
  13715. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13716. return $instance->extend($driver, $callback);
  13717. }
  13718. /**
  13719. * Set the application instance used by the manager.
  13720. *
  13721. * @param \Illuminate\Contracts\Foundation\Application $app
  13722. * @return \Illuminate\Filesystem\FilesystemManager
  13723. * @static
  13724. */
  13725. public static function setApplication($app)
  13726. {
  13727. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13728. return $instance->setApplication($app);
  13729. }
  13730. /**
  13731. * Assert that the given file exists.
  13732. *
  13733. * @param string|array $path
  13734. * @param string|null $content
  13735. * @return \Illuminate\Filesystem\FilesystemAdapter
  13736. * @static
  13737. */
  13738. public static function assertExists($path, $content = null)
  13739. {
  13740. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13741. return $instance->assertExists($path, $content);
  13742. }
  13743. /**
  13744. * Assert that the given file does not exist.
  13745. *
  13746. * @param string|array $path
  13747. * @return \Illuminate\Filesystem\FilesystemAdapter
  13748. * @static
  13749. */
  13750. public static function assertMissing($path)
  13751. {
  13752. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13753. return $instance->assertMissing($path);
  13754. }
  13755. /**
  13756. * Determine if a file exists.
  13757. *
  13758. * @param string $path
  13759. * @return bool
  13760. * @static
  13761. */
  13762. public static function exists($path)
  13763. {
  13764. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13765. return $instance->exists($path);
  13766. }
  13767. /**
  13768. * Determine if a file or directory is missing.
  13769. *
  13770. * @param string $path
  13771. * @return bool
  13772. * @static
  13773. */
  13774. public static function missing($path)
  13775. {
  13776. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13777. return $instance->missing($path);
  13778. }
  13779. /**
  13780. * Get the full path for the file at the given "short" path.
  13781. *
  13782. * @param string $path
  13783. * @return string
  13784. * @static
  13785. */
  13786. public static function path($path)
  13787. {
  13788. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13789. return $instance->path($path);
  13790. }
  13791. /**
  13792. * Get the contents of a file.
  13793. *
  13794. * @param string $path
  13795. * @return string
  13796. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13797. * @static
  13798. */
  13799. public static function get($path)
  13800. {
  13801. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13802. return $instance->get($path);
  13803. }
  13804. /**
  13805. * Create a streamed response for a given file.
  13806. *
  13807. * @param string $path
  13808. * @param string|null $name
  13809. * @param array|null $headers
  13810. * @param string|null $disposition
  13811. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13812. * @static
  13813. */
  13814. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  13815. {
  13816. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13817. return $instance->response($path, $name, $headers, $disposition);
  13818. }
  13819. /**
  13820. * Create a streamed download response for a given file.
  13821. *
  13822. * @param string $path
  13823. * @param string|null $name
  13824. * @param array|null $headers
  13825. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13826. * @static
  13827. */
  13828. public static function download($path, $name = null, $headers = [])
  13829. {
  13830. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13831. return $instance->download($path, $name, $headers);
  13832. }
  13833. /**
  13834. * Write the contents of a file.
  13835. *
  13836. * @param string $path
  13837. * @param \Psr\Http\Message\StreamInterface|\Illuminate\Http\File|\Illuminate\Http\UploadedFile|string|resource $contents
  13838. * @param mixed $options
  13839. * @return bool
  13840. * @static
  13841. */
  13842. public static function put($path, $contents, $options = [])
  13843. {
  13844. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13845. return $instance->put($path, $contents, $options);
  13846. }
  13847. /**
  13848. * Store the uploaded file on the disk.
  13849. *
  13850. * @param string $path
  13851. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13852. * @param mixed $options
  13853. * @return string|false
  13854. * @static
  13855. */
  13856. public static function putFile($path, $file, $options = [])
  13857. {
  13858. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13859. return $instance->putFile($path, $file, $options);
  13860. }
  13861. /**
  13862. * Store the uploaded file on the disk with a given name.
  13863. *
  13864. * @param string $path
  13865. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13866. * @param string $name
  13867. * @param mixed $options
  13868. * @return string|false
  13869. * @static
  13870. */
  13871. public static function putFileAs($path, $file, $name, $options = [])
  13872. {
  13873. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13874. return $instance->putFileAs($path, $file, $name, $options);
  13875. }
  13876. /**
  13877. * Get the visibility for the given path.
  13878. *
  13879. * @param string $path
  13880. * @return string
  13881. * @static
  13882. */
  13883. public static function getVisibility($path)
  13884. {
  13885. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13886. return $instance->getVisibility($path);
  13887. }
  13888. /**
  13889. * Set the visibility for the given path.
  13890. *
  13891. * @param string $path
  13892. * @param string $visibility
  13893. * @return bool
  13894. * @static
  13895. */
  13896. public static function setVisibility($path, $visibility)
  13897. {
  13898. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13899. return $instance->setVisibility($path, $visibility);
  13900. }
  13901. /**
  13902. * Prepend to a file.
  13903. *
  13904. * @param string $path
  13905. * @param string $data
  13906. * @param string $separator
  13907. * @return bool
  13908. * @static
  13909. */
  13910. public static function prepend($path, $data, $separator = '
  13911. ')
  13912. {
  13913. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13914. return $instance->prepend($path, $data, $separator);
  13915. }
  13916. /**
  13917. * Append to a file.
  13918. *
  13919. * @param string $path
  13920. * @param string $data
  13921. * @param string $separator
  13922. * @return bool
  13923. * @static
  13924. */
  13925. public static function append($path, $data, $separator = '
  13926. ')
  13927. {
  13928. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13929. return $instance->append($path, $data, $separator);
  13930. }
  13931. /**
  13932. * Delete the file at a given path.
  13933. *
  13934. * @param string|array $paths
  13935. * @return bool
  13936. * @static
  13937. */
  13938. public static function delete($paths)
  13939. {
  13940. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13941. return $instance->delete($paths);
  13942. }
  13943. /**
  13944. * Copy a file to a new location.
  13945. *
  13946. * @param string $from
  13947. * @param string $to
  13948. * @return bool
  13949. * @static
  13950. */
  13951. public static function copy($from, $to)
  13952. {
  13953. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13954. return $instance->copy($from, $to);
  13955. }
  13956. /**
  13957. * Move a file to a new location.
  13958. *
  13959. * @param string $from
  13960. * @param string $to
  13961. * @return bool
  13962. * @static
  13963. */
  13964. public static function move($from, $to)
  13965. {
  13966. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13967. return $instance->move($from, $to);
  13968. }
  13969. /**
  13970. * Get the file size of a given file.
  13971. *
  13972. * @param string $path
  13973. * @return int
  13974. * @static
  13975. */
  13976. public static function size($path)
  13977. {
  13978. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13979. return $instance->size($path);
  13980. }
  13981. /**
  13982. * Get the mime-type of a given file.
  13983. *
  13984. * @param string $path
  13985. * @return string|false
  13986. * @static
  13987. */
  13988. public static function mimeType($path)
  13989. {
  13990. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13991. return $instance->mimeType($path);
  13992. }
  13993. /**
  13994. * Get the file's last modification time.
  13995. *
  13996. * @param string $path
  13997. * @return int
  13998. * @static
  13999. */
  14000. public static function lastModified($path)
  14001. {
  14002. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14003. return $instance->lastModified($path);
  14004. }
  14005. /**
  14006. * Get the URL for the file at the given path.
  14007. *
  14008. * @param string $path
  14009. * @return string
  14010. * @throws \RuntimeException
  14011. * @static
  14012. */
  14013. public static function url($path)
  14014. {
  14015. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14016. return $instance->url($path);
  14017. }
  14018. /**
  14019. * Get a resource to read the file.
  14020. *
  14021. * @param string $path
  14022. * @return resource|null The path resource or null on failure.
  14023. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  14024. * @static
  14025. */
  14026. public static function readStream($path)
  14027. {
  14028. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14029. return $instance->readStream($path);
  14030. }
  14031. /**
  14032. * Write a new file using a stream.
  14033. *
  14034. * @param string $path
  14035. * @param resource $resource
  14036. * @param array $options
  14037. * @return bool
  14038. * @throws \InvalidArgumentException If $resource is not a file handle.
  14039. * @throws \Illuminate\Contracts\Filesystem\FileExistsException
  14040. * @static
  14041. */
  14042. public static function writeStream($path, $resource, $options = [])
  14043. {
  14044. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14045. return $instance->writeStream($path, $resource, $options);
  14046. }
  14047. /**
  14048. * Get a temporary URL for the file at the given path.
  14049. *
  14050. * @param string $path
  14051. * @param \DateTimeInterface $expiration
  14052. * @param array $options
  14053. * @return string
  14054. * @throws \RuntimeException
  14055. * @static
  14056. */
  14057. public static function temporaryUrl($path, $expiration, $options = [])
  14058. {
  14059. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14060. return $instance->temporaryUrl($path, $expiration, $options);
  14061. }
  14062. /**
  14063. * Get a temporary URL for the file at the given path.
  14064. *
  14065. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  14066. * @param string $path
  14067. * @param \DateTimeInterface $expiration
  14068. * @param array $options
  14069. * @return string
  14070. * @static
  14071. */
  14072. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  14073. {
  14074. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14075. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  14076. }
  14077. /**
  14078. * Get an array of all files in a directory.
  14079. *
  14080. * @param string|null $directory
  14081. * @param bool $recursive
  14082. * @return array
  14083. * @static
  14084. */
  14085. public static function files($directory = null, $recursive = false)
  14086. {
  14087. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14088. return $instance->files($directory, $recursive);
  14089. }
  14090. /**
  14091. * Get all of the files from the given directory (recursive).
  14092. *
  14093. * @param string|null $directory
  14094. * @return array
  14095. * @static
  14096. */
  14097. public static function allFiles($directory = null)
  14098. {
  14099. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14100. return $instance->allFiles($directory);
  14101. }
  14102. /**
  14103. * Get all of the directories within a given directory.
  14104. *
  14105. * @param string|null $directory
  14106. * @param bool $recursive
  14107. * @return array
  14108. * @static
  14109. */
  14110. public static function directories($directory = null, $recursive = false)
  14111. {
  14112. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14113. return $instance->directories($directory, $recursive);
  14114. }
  14115. /**
  14116. * Get all (recursive) of the directories within a given directory.
  14117. *
  14118. * @param string|null $directory
  14119. * @return array
  14120. * @static
  14121. */
  14122. public static function allDirectories($directory = null)
  14123. {
  14124. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14125. return $instance->allDirectories($directory);
  14126. }
  14127. /**
  14128. * Create a directory.
  14129. *
  14130. * @param string $path
  14131. * @return bool
  14132. * @static
  14133. */
  14134. public static function makeDirectory($path)
  14135. {
  14136. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14137. return $instance->makeDirectory($path);
  14138. }
  14139. /**
  14140. * Recursively delete a directory.
  14141. *
  14142. * @param string $directory
  14143. * @return bool
  14144. * @static
  14145. */
  14146. public static function deleteDirectory($directory)
  14147. {
  14148. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14149. return $instance->deleteDirectory($directory);
  14150. }
  14151. /**
  14152. * Flush the Flysystem cache.
  14153. *
  14154. * @return void
  14155. * @static
  14156. */
  14157. public static function flushCache()
  14158. {
  14159. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14160. $instance->flushCache();
  14161. }
  14162. /**
  14163. * Get the Flysystem driver.
  14164. *
  14165. * @return \League\Flysystem\FilesystemInterface
  14166. * @static
  14167. */
  14168. public static function getDriver()
  14169. {
  14170. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14171. return $instance->getDriver();
  14172. }
  14173. /**
  14174. * Define a custom temporary URL builder callback.
  14175. *
  14176. * @param \Closure $callback
  14177. * @return void
  14178. * @static
  14179. */
  14180. public static function buildTemporaryUrlsUsing($callback)
  14181. {
  14182. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14183. $instance->buildTemporaryUrlsUsing($callback);
  14184. }
  14185. /**
  14186. * Register a custom macro.
  14187. *
  14188. * @param string $name
  14189. * @param object|callable $macro
  14190. * @return void
  14191. * @static
  14192. */
  14193. public static function macro($name, $macro)
  14194. {
  14195. \Illuminate\Filesystem\FilesystemAdapter::macro($name, $macro);
  14196. }
  14197. /**
  14198. * Mix another object into the class.
  14199. *
  14200. * @param object $mixin
  14201. * @param bool $replace
  14202. * @return void
  14203. * @throws \ReflectionException
  14204. * @static
  14205. */
  14206. public static function mixin($mixin, $replace = true)
  14207. {
  14208. \Illuminate\Filesystem\FilesystemAdapter::mixin($mixin, $replace);
  14209. }
  14210. /**
  14211. * Checks if macro is registered.
  14212. *
  14213. * @param string $name
  14214. * @return bool
  14215. * @static
  14216. */
  14217. public static function hasMacro($name)
  14218. {
  14219. return \Illuminate\Filesystem\FilesystemAdapter::hasMacro($name);
  14220. }
  14221. /**
  14222. * Flush the existing macros.
  14223. *
  14224. * @return void
  14225. * @static
  14226. */
  14227. public static function flushMacros()
  14228. {
  14229. \Illuminate\Filesystem\FilesystemAdapter::flushMacros();
  14230. }
  14231. /**
  14232. * Dynamically handle calls to the class.
  14233. *
  14234. * @param string $method
  14235. * @param array $parameters
  14236. * @return mixed
  14237. * @throws \BadMethodCallException
  14238. * @static
  14239. */
  14240. public static function macroCall($method, $parameters)
  14241. {
  14242. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  14243. return $instance->macroCall($method, $parameters);
  14244. }
  14245. }
  14246. /**
  14247. *
  14248. *
  14249. * @see \Illuminate\Routing\UrlGenerator
  14250. */
  14251. class URL {
  14252. /**
  14253. * Get the full URL for the current request.
  14254. *
  14255. * @return string
  14256. * @static
  14257. */
  14258. public static function full()
  14259. {
  14260. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14261. return $instance->full();
  14262. }
  14263. /**
  14264. * Get the current URL for the request.
  14265. *
  14266. * @return string
  14267. * @static
  14268. */
  14269. public static function current()
  14270. {
  14271. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14272. return $instance->current();
  14273. }
  14274. /**
  14275. * Get the URL for the previous request.
  14276. *
  14277. * @param mixed $fallback
  14278. * @return string
  14279. * @static
  14280. */
  14281. public static function previous($fallback = false)
  14282. {
  14283. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14284. return $instance->previous($fallback);
  14285. }
  14286. /**
  14287. * Generate an absolute URL to the given path.
  14288. *
  14289. * @param string $path
  14290. * @param mixed $extra
  14291. * @param bool|null $secure
  14292. * @return string
  14293. * @static
  14294. */
  14295. public static function to($path, $extra = [], $secure = null)
  14296. {
  14297. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14298. return $instance->to($path, $extra, $secure);
  14299. }
  14300. /**
  14301. * Generate a secure, absolute URL to the given path.
  14302. *
  14303. * @param string $path
  14304. * @param array $parameters
  14305. * @return string
  14306. * @static
  14307. */
  14308. public static function secure($path, $parameters = [])
  14309. {
  14310. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14311. return $instance->secure($path, $parameters);
  14312. }
  14313. /**
  14314. * Generate the URL to an application asset.
  14315. *
  14316. * @param string $path
  14317. * @param bool|null $secure
  14318. * @return string
  14319. * @static
  14320. */
  14321. public static function asset($path, $secure = null)
  14322. {
  14323. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14324. return $instance->asset($path, $secure);
  14325. }
  14326. /**
  14327. * Generate the URL to a secure asset.
  14328. *
  14329. * @param string $path
  14330. * @return string
  14331. * @static
  14332. */
  14333. public static function secureAsset($path)
  14334. {
  14335. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14336. return $instance->secureAsset($path);
  14337. }
  14338. /**
  14339. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  14340. *
  14341. * @param string $root
  14342. * @param string $path
  14343. * @param bool|null $secure
  14344. * @return string
  14345. * @static
  14346. */
  14347. public static function assetFrom($root, $path, $secure = null)
  14348. {
  14349. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14350. return $instance->assetFrom($root, $path, $secure);
  14351. }
  14352. /**
  14353. * Get the default scheme for a raw URL.
  14354. *
  14355. * @param bool|null $secure
  14356. * @return string
  14357. * @static
  14358. */
  14359. public static function formatScheme($secure = null)
  14360. {
  14361. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14362. return $instance->formatScheme($secure);
  14363. }
  14364. /**
  14365. * Create a signed route URL for a named route.
  14366. *
  14367. * @param string $name
  14368. * @param mixed $parameters
  14369. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  14370. * @param bool $absolute
  14371. * @return string
  14372. * @throws \InvalidArgumentException
  14373. * @static
  14374. */
  14375. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  14376. {
  14377. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14378. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  14379. }
  14380. /**
  14381. * Create a temporary signed route URL for a named route.
  14382. *
  14383. * @param string $name
  14384. * @param \DateTimeInterface|\DateInterval|int $expiration
  14385. * @param array $parameters
  14386. * @param bool $absolute
  14387. * @return string
  14388. * @static
  14389. */
  14390. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  14391. {
  14392. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14393. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  14394. }
  14395. /**
  14396. * Determine if the given request has a valid signature.
  14397. *
  14398. * @param \Illuminate\Http\Request $request
  14399. * @param bool $absolute
  14400. * @return bool
  14401. * @static
  14402. */
  14403. public static function hasValidSignature($request, $absolute = true)
  14404. {
  14405. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14406. return $instance->hasValidSignature($request, $absolute);
  14407. }
  14408. /**
  14409. * Determine if the given request has a valid signature for a relative URL.
  14410. *
  14411. * @param \Illuminate\Http\Request $request
  14412. * @return bool
  14413. * @static
  14414. */
  14415. public static function hasValidRelativeSignature($request)
  14416. {
  14417. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14418. return $instance->hasValidRelativeSignature($request);
  14419. }
  14420. /**
  14421. * Determine if the signature from the given request matches the URL.
  14422. *
  14423. * @param \Illuminate\Http\Request $request
  14424. * @param bool $absolute
  14425. * @return bool
  14426. * @static
  14427. */
  14428. public static function hasCorrectSignature($request, $absolute = true)
  14429. {
  14430. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14431. return $instance->hasCorrectSignature($request, $absolute);
  14432. }
  14433. /**
  14434. * Determine if the expires timestamp from the given request is not from the past.
  14435. *
  14436. * @param \Illuminate\Http\Request $request
  14437. * @return bool
  14438. * @static
  14439. */
  14440. public static function signatureHasNotExpired($request)
  14441. {
  14442. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14443. return $instance->signatureHasNotExpired($request);
  14444. }
  14445. /**
  14446. * Get the URL to a named route.
  14447. *
  14448. * @param string $name
  14449. * @param mixed $parameters
  14450. * @param bool $absolute
  14451. * @return string
  14452. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  14453. * @static
  14454. */
  14455. public static function route($name, $parameters = [], $absolute = true)
  14456. {
  14457. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14458. return $instance->route($name, $parameters, $absolute);
  14459. }
  14460. /**
  14461. * Get the URL for a given route instance.
  14462. *
  14463. * @param \Illuminate\Routing\Route $route
  14464. * @param mixed $parameters
  14465. * @param bool $absolute
  14466. * @return string
  14467. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  14468. * @static
  14469. */
  14470. public static function toRoute($route, $parameters, $absolute)
  14471. {
  14472. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14473. return $instance->toRoute($route, $parameters, $absolute);
  14474. }
  14475. /**
  14476. * Get the URL to a controller action.
  14477. *
  14478. * @param string|array $action
  14479. * @param mixed $parameters
  14480. * @param bool $absolute
  14481. * @return string
  14482. * @throws \InvalidArgumentException
  14483. * @static
  14484. */
  14485. public static function action($action, $parameters = [], $absolute = true)
  14486. {
  14487. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14488. return $instance->action($action, $parameters, $absolute);
  14489. }
  14490. /**
  14491. * Format the array of URL parameters.
  14492. *
  14493. * @param mixed|array $parameters
  14494. * @return array
  14495. * @static
  14496. */
  14497. public static function formatParameters($parameters)
  14498. {
  14499. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14500. return $instance->formatParameters($parameters);
  14501. }
  14502. /**
  14503. * Get the base URL for the request.
  14504. *
  14505. * @param string $scheme
  14506. * @param string|null $root
  14507. * @return string
  14508. * @static
  14509. */
  14510. public static function formatRoot($scheme, $root = null)
  14511. {
  14512. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14513. return $instance->formatRoot($scheme, $root);
  14514. }
  14515. /**
  14516. * Format the given URL segments into a single URL.
  14517. *
  14518. * @param string $root
  14519. * @param string $path
  14520. * @param \Illuminate\Routing\Route|null $route
  14521. * @return string
  14522. * @static
  14523. */
  14524. public static function format($root, $path, $route = null)
  14525. {
  14526. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14527. return $instance->format($root, $path, $route);
  14528. }
  14529. /**
  14530. * Determine if the given path is a valid URL.
  14531. *
  14532. * @param string $path
  14533. * @return bool
  14534. * @static
  14535. */
  14536. public static function isValidUrl($path)
  14537. {
  14538. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14539. return $instance->isValidUrl($path);
  14540. }
  14541. /**
  14542. * Set the default named parameters used by the URL generator.
  14543. *
  14544. * @param array $defaults
  14545. * @return void
  14546. * @static
  14547. */
  14548. public static function defaults($defaults)
  14549. {
  14550. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14551. $instance->defaults($defaults);
  14552. }
  14553. /**
  14554. * Get the default named parameters used by the URL generator.
  14555. *
  14556. * @return array
  14557. * @static
  14558. */
  14559. public static function getDefaultParameters()
  14560. {
  14561. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14562. return $instance->getDefaultParameters();
  14563. }
  14564. /**
  14565. * Force the scheme for URLs.
  14566. *
  14567. * @param string|null $scheme
  14568. * @return void
  14569. * @static
  14570. */
  14571. public static function forceScheme($scheme)
  14572. {
  14573. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14574. $instance->forceScheme($scheme);
  14575. }
  14576. /**
  14577. * Set the forced root URL.
  14578. *
  14579. * @param string|null $root
  14580. * @return void
  14581. * @static
  14582. */
  14583. public static function forceRootUrl($root)
  14584. {
  14585. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14586. $instance->forceRootUrl($root);
  14587. }
  14588. /**
  14589. * Set a callback to be used to format the host of generated URLs.
  14590. *
  14591. * @param \Closure $callback
  14592. * @return \Illuminate\Routing\UrlGenerator
  14593. * @static
  14594. */
  14595. public static function formatHostUsing($callback)
  14596. {
  14597. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14598. return $instance->formatHostUsing($callback);
  14599. }
  14600. /**
  14601. * Set a callback to be used to format the path of generated URLs.
  14602. *
  14603. * @param \Closure $callback
  14604. * @return \Illuminate\Routing\UrlGenerator
  14605. * @static
  14606. */
  14607. public static function formatPathUsing($callback)
  14608. {
  14609. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14610. return $instance->formatPathUsing($callback);
  14611. }
  14612. /**
  14613. * Get the path formatter being used by the URL generator.
  14614. *
  14615. * @return \Closure
  14616. * @static
  14617. */
  14618. public static function pathFormatter()
  14619. {
  14620. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14621. return $instance->pathFormatter();
  14622. }
  14623. /**
  14624. * Get the request instance.
  14625. *
  14626. * @return \Illuminate\Http\Request
  14627. * @static
  14628. */
  14629. public static function getRequest()
  14630. {
  14631. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14632. return $instance->getRequest();
  14633. }
  14634. /**
  14635. * Set the current request instance.
  14636. *
  14637. * @param \Illuminate\Http\Request $request
  14638. * @return void
  14639. * @static
  14640. */
  14641. public static function setRequest($request)
  14642. {
  14643. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14644. $instance->setRequest($request);
  14645. }
  14646. /**
  14647. * Set the route collection.
  14648. *
  14649. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  14650. * @return \Illuminate\Routing\UrlGenerator
  14651. * @static
  14652. */
  14653. public static function setRoutes($routes)
  14654. {
  14655. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14656. return $instance->setRoutes($routes);
  14657. }
  14658. /**
  14659. * Set the session resolver for the generator.
  14660. *
  14661. * @param callable $sessionResolver
  14662. * @return \Illuminate\Routing\UrlGenerator
  14663. * @static
  14664. */
  14665. public static function setSessionResolver($sessionResolver)
  14666. {
  14667. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14668. return $instance->setSessionResolver($sessionResolver);
  14669. }
  14670. /**
  14671. * Set the encryption key resolver.
  14672. *
  14673. * @param callable $keyResolver
  14674. * @return \Illuminate\Routing\UrlGenerator
  14675. * @static
  14676. */
  14677. public static function setKeyResolver($keyResolver)
  14678. {
  14679. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14680. return $instance->setKeyResolver($keyResolver);
  14681. }
  14682. /**
  14683. * Set the root controller namespace.
  14684. *
  14685. * @param string $rootNamespace
  14686. * @return \Illuminate\Routing\UrlGenerator
  14687. * @static
  14688. */
  14689. public static function setRootControllerNamespace($rootNamespace)
  14690. {
  14691. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14692. return $instance->setRootControllerNamespace($rootNamespace);
  14693. }
  14694. /**
  14695. * Register a custom macro.
  14696. *
  14697. * @param string $name
  14698. * @param object|callable $macro
  14699. * @return void
  14700. * @static
  14701. */
  14702. public static function macro($name, $macro)
  14703. {
  14704. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  14705. }
  14706. /**
  14707. * Mix another object into the class.
  14708. *
  14709. * @param object $mixin
  14710. * @param bool $replace
  14711. * @return void
  14712. * @throws \ReflectionException
  14713. * @static
  14714. */
  14715. public static function mixin($mixin, $replace = true)
  14716. {
  14717. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  14718. }
  14719. /**
  14720. * Checks if macro is registered.
  14721. *
  14722. * @param string $name
  14723. * @return bool
  14724. * @static
  14725. */
  14726. public static function hasMacro($name)
  14727. {
  14728. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  14729. }
  14730. /**
  14731. * Flush the existing macros.
  14732. *
  14733. * @return void
  14734. * @static
  14735. */
  14736. public static function flushMacros()
  14737. {
  14738. \Illuminate\Routing\UrlGenerator::flushMacros();
  14739. }
  14740. }
  14741. /**
  14742. *
  14743. *
  14744. * @see \Illuminate\Validation\Factory
  14745. */
  14746. class Validator {
  14747. /**
  14748. * Create a new Validator instance.
  14749. *
  14750. * @param array $data
  14751. * @param array $rules
  14752. * @param array $messages
  14753. * @param array $customAttributes
  14754. * @return \Illuminate\Validation\Validator
  14755. * @static
  14756. */
  14757. public static function make($data, $rules, $messages = [], $customAttributes = [])
  14758. {
  14759. /** @var \Illuminate\Validation\Factory $instance */
  14760. return $instance->make($data, $rules, $messages, $customAttributes);
  14761. }
  14762. /**
  14763. * Validate the given data against the provided rules.
  14764. *
  14765. * @param array $data
  14766. * @param array $rules
  14767. * @param array $messages
  14768. * @param array $customAttributes
  14769. * @return array
  14770. * @throws \Illuminate\Validation\ValidationException
  14771. * @static
  14772. */
  14773. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  14774. {
  14775. /** @var \Illuminate\Validation\Factory $instance */
  14776. return $instance->validate($data, $rules, $messages, $customAttributes);
  14777. }
  14778. /**
  14779. * Register a custom validator extension.
  14780. *
  14781. * @param string $rule
  14782. * @param \Closure|string $extension
  14783. * @param string|null $message
  14784. * @return void
  14785. * @static
  14786. */
  14787. public static function extend($rule, $extension, $message = null)
  14788. {
  14789. /** @var \Illuminate\Validation\Factory $instance */
  14790. $instance->extend($rule, $extension, $message);
  14791. }
  14792. /**
  14793. * Register a custom implicit validator extension.
  14794. *
  14795. * @param string $rule
  14796. * @param \Closure|string $extension
  14797. * @param string|null $message
  14798. * @return void
  14799. * @static
  14800. */
  14801. public static function extendImplicit($rule, $extension, $message = null)
  14802. {
  14803. /** @var \Illuminate\Validation\Factory $instance */
  14804. $instance->extendImplicit($rule, $extension, $message);
  14805. }
  14806. /**
  14807. * Register a custom dependent validator extension.
  14808. *
  14809. * @param string $rule
  14810. * @param \Closure|string $extension
  14811. * @param string|null $message
  14812. * @return void
  14813. * @static
  14814. */
  14815. public static function extendDependent($rule, $extension, $message = null)
  14816. {
  14817. /** @var \Illuminate\Validation\Factory $instance */
  14818. $instance->extendDependent($rule, $extension, $message);
  14819. }
  14820. /**
  14821. * Register a custom validator message replacer.
  14822. *
  14823. * @param string $rule
  14824. * @param \Closure|string $replacer
  14825. * @return void
  14826. * @static
  14827. */
  14828. public static function replacer($rule, $replacer)
  14829. {
  14830. /** @var \Illuminate\Validation\Factory $instance */
  14831. $instance->replacer($rule, $replacer);
  14832. }
  14833. /**
  14834. * Indicate that unvalidated array keys should be excluded, even if the parent array was validated.
  14835. *
  14836. * @return void
  14837. * @static
  14838. */
  14839. public static function excludeUnvalidatedArrayKeys()
  14840. {
  14841. /** @var \Illuminate\Validation\Factory $instance */
  14842. $instance->excludeUnvalidatedArrayKeys();
  14843. }
  14844. /**
  14845. * Set the Validator instance resolver.
  14846. *
  14847. * @param \Closure $resolver
  14848. * @return void
  14849. * @static
  14850. */
  14851. public static function resolver($resolver)
  14852. {
  14853. /** @var \Illuminate\Validation\Factory $instance */
  14854. $instance->resolver($resolver);
  14855. }
  14856. /**
  14857. * Get the Translator implementation.
  14858. *
  14859. * @return \Illuminate\Contracts\Translation\Translator
  14860. * @static
  14861. */
  14862. public static function getTranslator()
  14863. {
  14864. /** @var \Illuminate\Validation\Factory $instance */
  14865. return $instance->getTranslator();
  14866. }
  14867. /**
  14868. * Get the Presence Verifier implementation.
  14869. *
  14870. * @return \Illuminate\Validation\PresenceVerifierInterface
  14871. * @static
  14872. */
  14873. public static function getPresenceVerifier()
  14874. {
  14875. /** @var \Illuminate\Validation\Factory $instance */
  14876. return $instance->getPresenceVerifier();
  14877. }
  14878. /**
  14879. * Set the Presence Verifier implementation.
  14880. *
  14881. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  14882. * @return void
  14883. * @static
  14884. */
  14885. public static function setPresenceVerifier($presenceVerifier)
  14886. {
  14887. /** @var \Illuminate\Validation\Factory $instance */
  14888. $instance->setPresenceVerifier($presenceVerifier);
  14889. }
  14890. /**
  14891. * Get the container instance used by the validation factory.
  14892. *
  14893. * @return \Illuminate\Contracts\Container\Container
  14894. * @static
  14895. */
  14896. public static function getContainer()
  14897. {
  14898. /** @var \Illuminate\Validation\Factory $instance */
  14899. return $instance->getContainer();
  14900. }
  14901. /**
  14902. * Set the container instance used by the validation factory.
  14903. *
  14904. * @param \Illuminate\Contracts\Container\Container $container
  14905. * @return \Illuminate\Validation\Factory
  14906. * @static
  14907. */
  14908. public static function setContainer($container)
  14909. {
  14910. /** @var \Illuminate\Validation\Factory $instance */
  14911. return $instance->setContainer($container);
  14912. }
  14913. }
  14914. /**
  14915. *
  14916. *
  14917. * @see \Illuminate\View\Factory
  14918. */
  14919. class View {
  14920. /**
  14921. * Get the evaluated view contents for the given view.
  14922. *
  14923. * @param string $path
  14924. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14925. * @param array $mergeData
  14926. * @return \Illuminate\Contracts\View\View
  14927. * @static
  14928. */
  14929. public static function file($path, $data = [], $mergeData = [])
  14930. {
  14931. /** @var \Illuminate\View\Factory $instance */
  14932. return $instance->file($path, $data, $mergeData);
  14933. }
  14934. /**
  14935. * Get the evaluated view contents for the given view.
  14936. *
  14937. * @param string $view
  14938. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14939. * @param array $mergeData
  14940. * @return \Illuminate\Contracts\View\View
  14941. * @static
  14942. */
  14943. public static function make($view, $data = [], $mergeData = [])
  14944. {
  14945. /** @var \Illuminate\View\Factory $instance */
  14946. return $instance->make($view, $data, $mergeData);
  14947. }
  14948. /**
  14949. * Get the first view that actually exists from the given list.
  14950. *
  14951. * @param array $views
  14952. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14953. * @param array $mergeData
  14954. * @return \Illuminate\Contracts\View\View
  14955. * @throws \InvalidArgumentException
  14956. * @static
  14957. */
  14958. public static function first($views, $data = [], $mergeData = [])
  14959. {
  14960. /** @var \Illuminate\View\Factory $instance */
  14961. return $instance->first($views, $data, $mergeData);
  14962. }
  14963. /**
  14964. * Get the rendered content of the view based on a given condition.
  14965. *
  14966. * @param bool $condition
  14967. * @param string $view
  14968. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14969. * @param array $mergeData
  14970. * @return string
  14971. * @static
  14972. */
  14973. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  14974. {
  14975. /** @var \Illuminate\View\Factory $instance */
  14976. return $instance->renderWhen($condition, $view, $data, $mergeData);
  14977. }
  14978. /**
  14979. * Get the rendered content of the view based on the negation of a given condition.
  14980. *
  14981. * @param bool $condition
  14982. * @param string $view
  14983. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14984. * @param array $mergeData
  14985. * @return string
  14986. * @static
  14987. */
  14988. public static function renderUnless($condition, $view, $data = [], $mergeData = [])
  14989. {
  14990. /** @var \Illuminate\View\Factory $instance */
  14991. return $instance->renderUnless($condition, $view, $data, $mergeData);
  14992. }
  14993. /**
  14994. * Get the rendered contents of a partial from a loop.
  14995. *
  14996. * @param string $view
  14997. * @param array $data
  14998. * @param string $iterator
  14999. * @param string $empty
  15000. * @return string
  15001. * @static
  15002. */
  15003. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  15004. {
  15005. /** @var \Illuminate\View\Factory $instance */
  15006. return $instance->renderEach($view, $data, $iterator, $empty);
  15007. }
  15008. /**
  15009. * Determine if a given view exists.
  15010. *
  15011. * @param string $view
  15012. * @return bool
  15013. * @static
  15014. */
  15015. public static function exists($view)
  15016. {
  15017. /** @var \Illuminate\View\Factory $instance */
  15018. return $instance->exists($view);
  15019. }
  15020. /**
  15021. * Get the appropriate view engine for the given path.
  15022. *
  15023. * @param string $path
  15024. * @return \Illuminate\Contracts\View\Engine
  15025. * @throws \InvalidArgumentException
  15026. * @static
  15027. */
  15028. public static function getEngineFromPath($path)
  15029. {
  15030. /** @var \Illuminate\View\Factory $instance */
  15031. return $instance->getEngineFromPath($path);
  15032. }
  15033. /**
  15034. * Add a piece of shared data to the environment.
  15035. *
  15036. * @param array|string $key
  15037. * @param mixed|null $value
  15038. * @return mixed
  15039. * @static
  15040. */
  15041. public static function share($key, $value = null)
  15042. {
  15043. /** @var \Illuminate\View\Factory $instance */
  15044. return $instance->share($key, $value);
  15045. }
  15046. /**
  15047. * Increment the rendering counter.
  15048. *
  15049. * @return void
  15050. * @static
  15051. */
  15052. public static function incrementRender()
  15053. {
  15054. /** @var \Illuminate\View\Factory $instance */
  15055. $instance->incrementRender();
  15056. }
  15057. /**
  15058. * Decrement the rendering counter.
  15059. *
  15060. * @return void
  15061. * @static
  15062. */
  15063. public static function decrementRender()
  15064. {
  15065. /** @var \Illuminate\View\Factory $instance */
  15066. $instance->decrementRender();
  15067. }
  15068. /**
  15069. * Check if there are no active render operations.
  15070. *
  15071. * @return bool
  15072. * @static
  15073. */
  15074. public static function doneRendering()
  15075. {
  15076. /** @var \Illuminate\View\Factory $instance */
  15077. return $instance->doneRendering();
  15078. }
  15079. /**
  15080. * Determine if the given once token has been rendered.
  15081. *
  15082. * @param string $id
  15083. * @return bool
  15084. * @static
  15085. */
  15086. public static function hasRenderedOnce($id)
  15087. {
  15088. /** @var \Illuminate\View\Factory $instance */
  15089. return $instance->hasRenderedOnce($id);
  15090. }
  15091. /**
  15092. * Mark the given once token as having been rendered.
  15093. *
  15094. * @param string $id
  15095. * @return void
  15096. * @static
  15097. */
  15098. public static function markAsRenderedOnce($id)
  15099. {
  15100. /** @var \Illuminate\View\Factory $instance */
  15101. $instance->markAsRenderedOnce($id);
  15102. }
  15103. /**
  15104. * Add a location to the array of view locations.
  15105. *
  15106. * @param string $location
  15107. * @return void
  15108. * @static
  15109. */
  15110. public static function addLocation($location)
  15111. {
  15112. /** @var \Illuminate\View\Factory $instance */
  15113. $instance->addLocation($location);
  15114. }
  15115. /**
  15116. * Add a new namespace to the loader.
  15117. *
  15118. * @param string $namespace
  15119. * @param string|array $hints
  15120. * @return \Illuminate\View\Factory
  15121. * @static
  15122. */
  15123. public static function addNamespace($namespace, $hints)
  15124. {
  15125. /** @var \Illuminate\View\Factory $instance */
  15126. return $instance->addNamespace($namespace, $hints);
  15127. }
  15128. /**
  15129. * Prepend a new namespace to the loader.
  15130. *
  15131. * @param string $namespace
  15132. * @param string|array $hints
  15133. * @return \Illuminate\View\Factory
  15134. * @static
  15135. */
  15136. public static function prependNamespace($namespace, $hints)
  15137. {
  15138. /** @var \Illuminate\View\Factory $instance */
  15139. return $instance->prependNamespace($namespace, $hints);
  15140. }
  15141. /**
  15142. * Replace the namespace hints for the given namespace.
  15143. *
  15144. * @param string $namespace
  15145. * @param string|array $hints
  15146. * @return \Illuminate\View\Factory
  15147. * @static
  15148. */
  15149. public static function replaceNamespace($namespace, $hints)
  15150. {
  15151. /** @var \Illuminate\View\Factory $instance */
  15152. return $instance->replaceNamespace($namespace, $hints);
  15153. }
  15154. /**
  15155. * Register a valid view extension and its engine.
  15156. *
  15157. * @param string $extension
  15158. * @param string $engine
  15159. * @param \Closure|null $resolver
  15160. * @return void
  15161. * @static
  15162. */
  15163. public static function addExtension($extension, $engine, $resolver = null)
  15164. {
  15165. /** @var \Illuminate\View\Factory $instance */
  15166. $instance->addExtension($extension, $engine, $resolver);
  15167. }
  15168. /**
  15169. * Flush all of the factory state like sections and stacks.
  15170. *
  15171. * @return void
  15172. * @static
  15173. */
  15174. public static function flushState()
  15175. {
  15176. /** @var \Illuminate\View\Factory $instance */
  15177. $instance->flushState();
  15178. }
  15179. /**
  15180. * Flush all of the section contents if done rendering.
  15181. *
  15182. * @return void
  15183. * @static
  15184. */
  15185. public static function flushStateIfDoneRendering()
  15186. {
  15187. /** @var \Illuminate\View\Factory $instance */
  15188. $instance->flushStateIfDoneRendering();
  15189. }
  15190. /**
  15191. * Get the extension to engine bindings.
  15192. *
  15193. * @return array
  15194. * @static
  15195. */
  15196. public static function getExtensions()
  15197. {
  15198. /** @var \Illuminate\View\Factory $instance */
  15199. return $instance->getExtensions();
  15200. }
  15201. /**
  15202. * Get the engine resolver instance.
  15203. *
  15204. * @return \Illuminate\View\Engines\EngineResolver
  15205. * @static
  15206. */
  15207. public static function getEngineResolver()
  15208. {
  15209. /** @var \Illuminate\View\Factory $instance */
  15210. return $instance->getEngineResolver();
  15211. }
  15212. /**
  15213. * Get the view finder instance.
  15214. *
  15215. * @return \Illuminate\View\ViewFinderInterface
  15216. * @static
  15217. */
  15218. public static function getFinder()
  15219. {
  15220. /** @var \Illuminate\View\Factory $instance */
  15221. return $instance->getFinder();
  15222. }
  15223. /**
  15224. * Set the view finder instance.
  15225. *
  15226. * @param \Illuminate\View\ViewFinderInterface $finder
  15227. * @return void
  15228. * @static
  15229. */
  15230. public static function setFinder($finder)
  15231. {
  15232. /** @var \Illuminate\View\Factory $instance */
  15233. $instance->setFinder($finder);
  15234. }
  15235. /**
  15236. * Flush the cache of views located by the finder.
  15237. *
  15238. * @return void
  15239. * @static
  15240. */
  15241. public static function flushFinderCache()
  15242. {
  15243. /** @var \Illuminate\View\Factory $instance */
  15244. $instance->flushFinderCache();
  15245. }
  15246. /**
  15247. * Get the event dispatcher instance.
  15248. *
  15249. * @return \Illuminate\Contracts\Events\Dispatcher
  15250. * @static
  15251. */
  15252. public static function getDispatcher()
  15253. {
  15254. /** @var \Illuminate\View\Factory $instance */
  15255. return $instance->getDispatcher();
  15256. }
  15257. /**
  15258. * Set the event dispatcher instance.
  15259. *
  15260. * @param \Illuminate\Contracts\Events\Dispatcher $events
  15261. * @return void
  15262. * @static
  15263. */
  15264. public static function setDispatcher($events)
  15265. {
  15266. /** @var \Illuminate\View\Factory $instance */
  15267. $instance->setDispatcher($events);
  15268. }
  15269. /**
  15270. * Get the IoC container instance.
  15271. *
  15272. * @return \Illuminate\Contracts\Container\Container
  15273. * @static
  15274. */
  15275. public static function getContainer()
  15276. {
  15277. /** @var \Illuminate\View\Factory $instance */
  15278. return $instance->getContainer();
  15279. }
  15280. /**
  15281. * Set the IoC container instance.
  15282. *
  15283. * @param \Illuminate\Contracts\Container\Container $container
  15284. * @return void
  15285. * @static
  15286. */
  15287. public static function setContainer($container)
  15288. {
  15289. /** @var \Illuminate\View\Factory $instance */
  15290. $instance->setContainer($container);
  15291. }
  15292. /**
  15293. * Get an item from the shared data.
  15294. *
  15295. * @param string $key
  15296. * @param mixed $default
  15297. * @return mixed
  15298. * @static
  15299. */
  15300. public static function shared($key, $default = null)
  15301. {
  15302. /** @var \Illuminate\View\Factory $instance */
  15303. return $instance->shared($key, $default);
  15304. }
  15305. /**
  15306. * Get all of the shared data for the environment.
  15307. *
  15308. * @return array
  15309. * @static
  15310. */
  15311. public static function getShared()
  15312. {
  15313. /** @var \Illuminate\View\Factory $instance */
  15314. return $instance->getShared();
  15315. }
  15316. /**
  15317. * Register a custom macro.
  15318. *
  15319. * @param string $name
  15320. * @param object|callable $macro
  15321. * @return void
  15322. * @static
  15323. */
  15324. public static function macro($name, $macro)
  15325. {
  15326. \Illuminate\View\Factory::macro($name, $macro);
  15327. }
  15328. /**
  15329. * Mix another object into the class.
  15330. *
  15331. * @param object $mixin
  15332. * @param bool $replace
  15333. * @return void
  15334. * @throws \ReflectionException
  15335. * @static
  15336. */
  15337. public static function mixin($mixin, $replace = true)
  15338. {
  15339. \Illuminate\View\Factory::mixin($mixin, $replace);
  15340. }
  15341. /**
  15342. * Checks if macro is registered.
  15343. *
  15344. * @param string $name
  15345. * @return bool
  15346. * @static
  15347. */
  15348. public static function hasMacro($name)
  15349. {
  15350. return \Illuminate\View\Factory::hasMacro($name);
  15351. }
  15352. /**
  15353. * Flush the existing macros.
  15354. *
  15355. * @return void
  15356. * @static
  15357. */
  15358. public static function flushMacros()
  15359. {
  15360. \Illuminate\View\Factory::flushMacros();
  15361. }
  15362. /**
  15363. * Start a component rendering process.
  15364. *
  15365. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  15366. * @param array $data
  15367. * @return void
  15368. * @static
  15369. */
  15370. public static function startComponent($view, $data = [])
  15371. {
  15372. /** @var \Illuminate\View\Factory $instance */
  15373. $instance->startComponent($view, $data);
  15374. }
  15375. /**
  15376. * Get the first view that actually exists from the given list, and start a component.
  15377. *
  15378. * @param array $names
  15379. * @param array $data
  15380. * @return void
  15381. * @static
  15382. */
  15383. public static function startComponentFirst($names, $data = [])
  15384. {
  15385. /** @var \Illuminate\View\Factory $instance */
  15386. $instance->startComponentFirst($names, $data);
  15387. }
  15388. /**
  15389. * Render the current component.
  15390. *
  15391. * @return string
  15392. * @static
  15393. */
  15394. public static function renderComponent()
  15395. {
  15396. /** @var \Illuminate\View\Factory $instance */
  15397. return $instance->renderComponent();
  15398. }
  15399. /**
  15400. * Get an item from the component data that exists above the current component.
  15401. *
  15402. * @param string $key
  15403. * @param mixed $default
  15404. * @return mixed|null
  15405. * @static
  15406. */
  15407. public static function getConsumableComponentData($key, $default = null)
  15408. {
  15409. /** @var \Illuminate\View\Factory $instance */
  15410. return $instance->getConsumableComponentData($key, $default);
  15411. }
  15412. /**
  15413. * Start the slot rendering process.
  15414. *
  15415. * @param string $name
  15416. * @param string|null $content
  15417. * @param array $attributes
  15418. * @return void
  15419. * @static
  15420. */
  15421. public static function slot($name, $content = null, $attributes = [])
  15422. {
  15423. /** @var \Illuminate\View\Factory $instance */
  15424. $instance->slot($name, $content, $attributes);
  15425. }
  15426. /**
  15427. * Save the slot content for rendering.
  15428. *
  15429. * @return void
  15430. * @static
  15431. */
  15432. public static function endSlot()
  15433. {
  15434. /** @var \Illuminate\View\Factory $instance */
  15435. $instance->endSlot();
  15436. }
  15437. /**
  15438. * Register a view creator event.
  15439. *
  15440. * @param array|string $views
  15441. * @param \Closure|string $callback
  15442. * @return array
  15443. * @static
  15444. */
  15445. public static function creator($views, $callback)
  15446. {
  15447. /** @var \Illuminate\View\Factory $instance */
  15448. return $instance->creator($views, $callback);
  15449. }
  15450. /**
  15451. * Register multiple view composers via an array.
  15452. *
  15453. * @param array $composers
  15454. * @return array
  15455. * @static
  15456. */
  15457. public static function composers($composers)
  15458. {
  15459. /** @var \Illuminate\View\Factory $instance */
  15460. return $instance->composers($composers);
  15461. }
  15462. /**
  15463. * Register a view composer event.
  15464. *
  15465. * @param array|string $views
  15466. * @param \Closure|string $callback
  15467. * @return array
  15468. * @static
  15469. */
  15470. public static function composer($views, $callback)
  15471. {
  15472. /** @var \Illuminate\View\Factory $instance */
  15473. return $instance->composer($views, $callback);
  15474. }
  15475. /**
  15476. * Call the composer for a given view.
  15477. *
  15478. * @param \Illuminate\Contracts\View\View $view
  15479. * @return void
  15480. * @static
  15481. */
  15482. public static function callComposer($view)
  15483. {
  15484. /** @var \Illuminate\View\Factory $instance */
  15485. $instance->callComposer($view);
  15486. }
  15487. /**
  15488. * Call the creator for a given view.
  15489. *
  15490. * @param \Illuminate\Contracts\View\View $view
  15491. * @return void
  15492. * @static
  15493. */
  15494. public static function callCreator($view)
  15495. {
  15496. /** @var \Illuminate\View\Factory $instance */
  15497. $instance->callCreator($view);
  15498. }
  15499. /**
  15500. * Start injecting content into a section.
  15501. *
  15502. * @param string $section
  15503. * @param string|null $content
  15504. * @return void
  15505. * @static
  15506. */
  15507. public static function startSection($section, $content = null)
  15508. {
  15509. /** @var \Illuminate\View\Factory $instance */
  15510. $instance->startSection($section, $content);
  15511. }
  15512. /**
  15513. * Inject inline content into a section.
  15514. *
  15515. * @param string $section
  15516. * @param string $content
  15517. * @return void
  15518. * @static
  15519. */
  15520. public static function inject($section, $content)
  15521. {
  15522. /** @var \Illuminate\View\Factory $instance */
  15523. $instance->inject($section, $content);
  15524. }
  15525. /**
  15526. * Stop injecting content into a section and return its contents.
  15527. *
  15528. * @return string
  15529. * @static
  15530. */
  15531. public static function yieldSection()
  15532. {
  15533. /** @var \Illuminate\View\Factory $instance */
  15534. return $instance->yieldSection();
  15535. }
  15536. /**
  15537. * Stop injecting content into a section.
  15538. *
  15539. * @param bool $overwrite
  15540. * @return string
  15541. * @throws \InvalidArgumentException
  15542. * @static
  15543. */
  15544. public static function stopSection($overwrite = false)
  15545. {
  15546. /** @var \Illuminate\View\Factory $instance */
  15547. return $instance->stopSection($overwrite);
  15548. }
  15549. /**
  15550. * Stop injecting content into a section and append it.
  15551. *
  15552. * @return string
  15553. * @throws \InvalidArgumentException
  15554. * @static
  15555. */
  15556. public static function appendSection()
  15557. {
  15558. /** @var \Illuminate\View\Factory $instance */
  15559. return $instance->appendSection();
  15560. }
  15561. /**
  15562. * Get the string contents of a section.
  15563. *
  15564. * @param string $section
  15565. * @param string $default
  15566. * @return string
  15567. * @static
  15568. */
  15569. public static function yieldContent($section, $default = '')
  15570. {
  15571. /** @var \Illuminate\View\Factory $instance */
  15572. return $instance->yieldContent($section, $default);
  15573. }
  15574. /**
  15575. * Get the parent placeholder for the current request.
  15576. *
  15577. * @param string $section
  15578. * @return string
  15579. * @static
  15580. */
  15581. public static function parentPlaceholder($section = '')
  15582. {
  15583. return \Illuminate\View\Factory::parentPlaceholder($section);
  15584. }
  15585. /**
  15586. * Check if section exists.
  15587. *
  15588. * @param string $name
  15589. * @return bool
  15590. * @static
  15591. */
  15592. public static function hasSection($name)
  15593. {
  15594. /** @var \Illuminate\View\Factory $instance */
  15595. return $instance->hasSection($name);
  15596. }
  15597. /**
  15598. * Check if section does not exist.
  15599. *
  15600. * @param string $name
  15601. * @return bool
  15602. * @static
  15603. */
  15604. public static function sectionMissing($name)
  15605. {
  15606. /** @var \Illuminate\View\Factory $instance */
  15607. return $instance->sectionMissing($name);
  15608. }
  15609. /**
  15610. * Get the contents of a section.
  15611. *
  15612. * @param string $name
  15613. * @param string|null $default
  15614. * @return mixed
  15615. * @static
  15616. */
  15617. public static function getSection($name, $default = null)
  15618. {
  15619. /** @var \Illuminate\View\Factory $instance */
  15620. return $instance->getSection($name, $default);
  15621. }
  15622. /**
  15623. * Get the entire array of sections.
  15624. *
  15625. * @return array
  15626. * @static
  15627. */
  15628. public static function getSections()
  15629. {
  15630. /** @var \Illuminate\View\Factory $instance */
  15631. return $instance->getSections();
  15632. }
  15633. /**
  15634. * Flush all of the sections.
  15635. *
  15636. * @return void
  15637. * @static
  15638. */
  15639. public static function flushSections()
  15640. {
  15641. /** @var \Illuminate\View\Factory $instance */
  15642. $instance->flushSections();
  15643. }
  15644. /**
  15645. * Add new loop to the stack.
  15646. *
  15647. * @param \Countable|array $data
  15648. * @return void
  15649. * @static
  15650. */
  15651. public static function addLoop($data)
  15652. {
  15653. /** @var \Illuminate\View\Factory $instance */
  15654. $instance->addLoop($data);
  15655. }
  15656. /**
  15657. * Increment the top loop's indices.
  15658. *
  15659. * @return void
  15660. * @static
  15661. */
  15662. public static function incrementLoopIndices()
  15663. {
  15664. /** @var \Illuminate\View\Factory $instance */
  15665. $instance->incrementLoopIndices();
  15666. }
  15667. /**
  15668. * Pop a loop from the top of the loop stack.
  15669. *
  15670. * @return void
  15671. * @static
  15672. */
  15673. public static function popLoop()
  15674. {
  15675. /** @var \Illuminate\View\Factory $instance */
  15676. $instance->popLoop();
  15677. }
  15678. /**
  15679. * Get an instance of the last loop in the stack.
  15680. *
  15681. * @return \stdClass|null
  15682. * @static
  15683. */
  15684. public static function getLastLoop()
  15685. {
  15686. /** @var \Illuminate\View\Factory $instance */
  15687. return $instance->getLastLoop();
  15688. }
  15689. /**
  15690. * Get the entire loop stack.
  15691. *
  15692. * @return array
  15693. * @static
  15694. */
  15695. public static function getLoopStack()
  15696. {
  15697. /** @var \Illuminate\View\Factory $instance */
  15698. return $instance->getLoopStack();
  15699. }
  15700. /**
  15701. * Start injecting content into a push section.
  15702. *
  15703. * @param string $section
  15704. * @param string $content
  15705. * @return void
  15706. * @static
  15707. */
  15708. public static function startPush($section, $content = '')
  15709. {
  15710. /** @var \Illuminate\View\Factory $instance */
  15711. $instance->startPush($section, $content);
  15712. }
  15713. /**
  15714. * Stop injecting content into a push section.
  15715. *
  15716. * @return string
  15717. * @throws \InvalidArgumentException
  15718. * @static
  15719. */
  15720. public static function stopPush()
  15721. {
  15722. /** @var \Illuminate\View\Factory $instance */
  15723. return $instance->stopPush();
  15724. }
  15725. /**
  15726. * Start prepending content into a push section.
  15727. *
  15728. * @param string $section
  15729. * @param string $content
  15730. * @return void
  15731. * @static
  15732. */
  15733. public static function startPrepend($section, $content = '')
  15734. {
  15735. /** @var \Illuminate\View\Factory $instance */
  15736. $instance->startPrepend($section, $content);
  15737. }
  15738. /**
  15739. * Stop prepending content into a push section.
  15740. *
  15741. * @return string
  15742. * @throws \InvalidArgumentException
  15743. * @static
  15744. */
  15745. public static function stopPrepend()
  15746. {
  15747. /** @var \Illuminate\View\Factory $instance */
  15748. return $instance->stopPrepend();
  15749. }
  15750. /**
  15751. * Get the string contents of a push section.
  15752. *
  15753. * @param string $section
  15754. * @param string $default
  15755. * @return string
  15756. * @static
  15757. */
  15758. public static function yieldPushContent($section, $default = '')
  15759. {
  15760. /** @var \Illuminate\View\Factory $instance */
  15761. return $instance->yieldPushContent($section, $default);
  15762. }
  15763. /**
  15764. * Flush all of the stacks.
  15765. *
  15766. * @return void
  15767. * @static
  15768. */
  15769. public static function flushStacks()
  15770. {
  15771. /** @var \Illuminate\View\Factory $instance */
  15772. $instance->flushStacks();
  15773. }
  15774. /**
  15775. * Start a translation block.
  15776. *
  15777. * @param array $replacements
  15778. * @return void
  15779. * @static
  15780. */
  15781. public static function startTranslation($replacements = [])
  15782. {
  15783. /** @var \Illuminate\View\Factory $instance */
  15784. $instance->startTranslation($replacements);
  15785. }
  15786. /**
  15787. * Render the current translation.
  15788. *
  15789. * @return string
  15790. * @static
  15791. */
  15792. public static function renderTranslation()
  15793. {
  15794. /** @var \Illuminate\View\Factory $instance */
  15795. return $instance->renderTranslation();
  15796. }
  15797. }
  15798. }
  15799. namespace Illuminate\Support {
  15800. /**
  15801. *
  15802. *
  15803. */
  15804. class Arr {
  15805. }
  15806. /**
  15807. *
  15808. *
  15809. */
  15810. class Str {
  15811. /**
  15812. *
  15813. *
  15814. * @see \Baijunyao\LaravelSupport\Str::isFalse()
  15815. * @param mixed $false
  15816. * @return bool
  15817. * @static
  15818. */
  15819. public static function isFalse($false)
  15820. {
  15821. return \Illuminate\Support\Str::isFalse($false);
  15822. }
  15823. /**
  15824. *
  15825. *
  15826. * @see \Baijunyao\LaravelSupport\Str::isJsonArray()
  15827. * @param mixed $json
  15828. * @return bool
  15829. * @static
  15830. */
  15831. public static function isJsonArray($json)
  15832. {
  15833. return \Illuminate\Support\Str::isJsonArray($json);
  15834. }
  15835. /**
  15836. *
  15837. *
  15838. * @see \Baijunyao\LaravelSupport\Str::isJsonObject()
  15839. * @param mixed $json
  15840. * @return bool
  15841. * @static
  15842. */
  15843. public static function isJsonObject($json)
  15844. {
  15845. return \Illuminate\Support\Str::isJsonObject($json);
  15846. }
  15847. /**
  15848. *
  15849. *
  15850. * @see \Baijunyao\LaravelSupport\Str::isNull()
  15851. * @param mixed $null
  15852. * @return bool
  15853. * @static
  15854. */
  15855. public static function isNull($null)
  15856. {
  15857. return \Illuminate\Support\Str::isNull($null);
  15858. }
  15859. /**
  15860. *
  15861. *
  15862. * @see \Baijunyao\LaravelSupport\Str::isTrue()
  15863. * @param mixed $true
  15864. * @return bool
  15865. * @static
  15866. */
  15867. public static function isTrue($true)
  15868. {
  15869. return \Illuminate\Support\Str::isTrue($true);
  15870. }
  15871. }
  15872. /**
  15873. *
  15874. *
  15875. */
  15876. class Collection {
  15877. /**
  15878. *
  15879. *
  15880. * @see \App\Models\Article::all()
  15881. * @static
  15882. */
  15883. public static function searchable()
  15884. {
  15885. return \Illuminate\Support\Collection::searchable();
  15886. }
  15887. /**
  15888. *
  15889. *
  15890. * @see \App\Models\Article::all()
  15891. * @static
  15892. */
  15893. public static function unsearchable()
  15894. {
  15895. return \Illuminate\Support\Collection::unsearchable();
  15896. }
  15897. }
  15898. }
  15899. namespace Intervention\Image\Facades {
  15900. /**
  15901. *
  15902. *
  15903. */
  15904. class Image {
  15905. /**
  15906. * Overrides configuration settings
  15907. *
  15908. * @param array $config
  15909. * @return self
  15910. * @static
  15911. */
  15912. public static function configure($config = [])
  15913. {
  15914. /** @var \Intervention\Image\ImageManager $instance */
  15915. return $instance->configure($config);
  15916. }
  15917. /**
  15918. * Initiates an Image instance from different input types
  15919. *
  15920. * @param mixed $data
  15921. * @return \Intervention\Image\Image
  15922. * @static
  15923. */
  15924. public static function make($data)
  15925. {
  15926. /** @var \Intervention\Image\ImageManager $instance */
  15927. return $instance->make($data);
  15928. }
  15929. /**
  15930. * Creates an empty image canvas
  15931. *
  15932. * @param int $width
  15933. * @param int $height
  15934. * @param mixed $background
  15935. * @return \Intervention\Image\Image
  15936. * @static
  15937. */
  15938. public static function canvas($width, $height, $background = null)
  15939. {
  15940. /** @var \Intervention\Image\ImageManager $instance */
  15941. return $instance->canvas($width, $height, $background);
  15942. }
  15943. /**
  15944. * Create new cached image and run callback
  15945. * (requires additional package intervention/imagecache)
  15946. *
  15947. * @param \Closure $callback
  15948. * @param int $lifetime
  15949. * @param boolean $returnObj
  15950. * @return \Image
  15951. * @static
  15952. */
  15953. public static function cache($callback, $lifetime = null, $returnObj = false)
  15954. {
  15955. /** @var \Intervention\Image\ImageManager $instance */
  15956. return $instance->cache($callback, $lifetime, $returnObj);
  15957. }
  15958. }
  15959. }
  15960. namespace Laravel\Socialite\Facades {
  15961. /**
  15962. *
  15963. *
  15964. * @see \Laravel\Socialite\SocialiteManager
  15965. */
  15966. class Socialite {
  15967. /**
  15968. * Get a driver instance.
  15969. *
  15970. * @param string $driver
  15971. * @return mixed
  15972. * @static
  15973. */
  15974. public static function with($driver)
  15975. {
  15976. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15977. return $instance->with($driver);
  15978. }
  15979. /**
  15980. * Build an OAuth 2 provider instance.
  15981. *
  15982. * @param string $provider
  15983. * @param array $config
  15984. * @return \Laravel\Socialite\Two\AbstractProvider
  15985. * @static
  15986. */
  15987. public static function buildProvider($provider, $config)
  15988. {
  15989. /** @var \Laravel\Socialite\SocialiteManager $instance */
  15990. return $instance->buildProvider($provider, $config);
  15991. }
  15992. /**
  15993. * Format the server configuration.
  15994. *
  15995. * @param array $config
  15996. * @return array
  15997. * @static
  15998. */
  15999. public static function formatConfig($config)
  16000. {
  16001. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16002. return $instance->formatConfig($config);
  16003. }
  16004. /**
  16005. * Forget all of the resolved driver instances.
  16006. *
  16007. * @return \Laravel\Socialite\SocialiteManager
  16008. * @static
  16009. */
  16010. public static function forgetDrivers()
  16011. {
  16012. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16013. return $instance->forgetDrivers();
  16014. }
  16015. /**
  16016. * Set the container instance used by the manager.
  16017. *
  16018. * @param \Illuminate\Contracts\Container\Container $container
  16019. * @return \Laravel\Socialite\SocialiteManager
  16020. * @static
  16021. */
  16022. public static function setContainer($container)
  16023. {
  16024. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16025. return $instance->setContainer($container);
  16026. }
  16027. /**
  16028. * Get the default driver name.
  16029. *
  16030. * @return string
  16031. * @throws \InvalidArgumentException
  16032. * @static
  16033. */
  16034. public static function getDefaultDriver()
  16035. {
  16036. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16037. return $instance->getDefaultDriver();
  16038. }
  16039. /**
  16040. * Get a driver instance.
  16041. *
  16042. * @param string|null $driver
  16043. * @return mixed
  16044. * @throws \InvalidArgumentException
  16045. * @static
  16046. */
  16047. public static function driver($driver = null)
  16048. { //Method inherited from \Illuminate\Support\Manager
  16049. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16050. return $instance->driver($driver);
  16051. }
  16052. /**
  16053. * Register a custom driver creator Closure.
  16054. *
  16055. * @param string $driver
  16056. * @param \Closure $callback
  16057. * @return \Laravel\Socialite\SocialiteManager
  16058. * @static
  16059. */
  16060. public static function extend($driver, $callback)
  16061. { //Method inherited from \Illuminate\Support\Manager
  16062. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16063. return $instance->extend($driver, $callback);
  16064. }
  16065. /**
  16066. * Get all of the created "drivers".
  16067. *
  16068. * @return array
  16069. * @static
  16070. */
  16071. public static function getDrivers()
  16072. { //Method inherited from \Illuminate\Support\Manager
  16073. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16074. return $instance->getDrivers();
  16075. }
  16076. /**
  16077. * Get the container instance used by the manager.
  16078. *
  16079. * @return \Illuminate\Contracts\Container\Container
  16080. * @static
  16081. */
  16082. public static function getContainer()
  16083. { //Method inherited from \Illuminate\Support\Manager
  16084. /** @var \Laravel\Socialite\SocialiteManager $instance */
  16085. return $instance->getContainer();
  16086. }
  16087. }
  16088. }
  16089. namespace GrahamCampbell\Markdown\Facades {
  16090. /**
  16091. * This is the markdown facade class.
  16092. *
  16093. * @author Graham Campbell <hello@gjcampbell.co.uk>
  16094. */
  16095. class Markdown {
  16096. /**
  16097. *
  16098. *
  16099. * @static
  16100. */
  16101. public static function getEnvironment()
  16102. { //Method inherited from \League\CommonMark\MarkdownConverter
  16103. /** @var \League\CommonMark\CommonMarkConverter $instance */
  16104. return $instance->getEnvironment();
  16105. }
  16106. /**
  16107. * Converts CommonMark to HTML.
  16108. *
  16109. * @param string $commonMark
  16110. * @throws \RuntimeException
  16111. * @return string
  16112. * @api
  16113. * @static
  16114. */
  16115. public static function convertToHtml($commonMark)
  16116. { //Method inherited from \League\CommonMark\Converter
  16117. /** @var \League\CommonMark\CommonMarkConverter $instance */
  16118. return $instance->convertToHtml($commonMark);
  16119. }
  16120. }
  16121. }
  16122. namespace DaveJamesMiller\Breadcrumbs\Facades {
  16123. /**
  16124. * Breadcrumbs facade - allows easy access to the Manager instance.
  16125. *
  16126. * @method static array getCurrentRoute()
  16127. * @mixin \Illuminate\Support\Traits\Macroable
  16128. * @see BreadcrumbsManager
  16129. */
  16130. class Breadcrumbs {
  16131. /**
  16132. * Register a breadcrumb-generating callback for a page.
  16133. *
  16134. * @param string $name The name of the page.
  16135. * @param callable $callback The callback, which should accept a Generator instance as the first parameter and may
  16136. * accept additional parameters.
  16137. * @return void
  16138. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\DuplicateBreadcrumbException If the given name has already been
  16139. * used.
  16140. * @static
  16141. */
  16142. public static function for($name, $callback)
  16143. {
  16144. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16145. $instance->for($name, $callback);
  16146. }
  16147. /**
  16148. * Register a breadcrumb-generating callback for a page.
  16149. *
  16150. * For backwards-compatibility with v5.0.0 and below.
  16151. *
  16152. * @param string $name The name of the page.
  16153. * @param callable $callback The callback, which should accept a Generator instance as the first parameter and may
  16154. * accept additional parameters.
  16155. * @return void
  16156. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\DuplicateBreadcrumbException If the given name has already been
  16157. * used.
  16158. * @see self::for()
  16159. * @static
  16160. */
  16161. public static function register($name, $callback)
  16162. {
  16163. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16164. $instance->register($name, $callback);
  16165. }
  16166. /**
  16167. * Register a closure to call before generating breadcrumbs for the current page.
  16168. *
  16169. * For example, this can be used to always prepend the homepage without needing to manually add it to each page.
  16170. *
  16171. * @param callable $callback The callback, which should accept a Generator instance as the first and only parameter.
  16172. * @return void
  16173. * @static
  16174. */
  16175. public static function before($callback)
  16176. {
  16177. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16178. $instance->before($callback);
  16179. }
  16180. /**
  16181. * Register a closure to call after generating breadcrumbs for the current page.
  16182. *
  16183. * For example, this can be used to append the current page number when using pagination.
  16184. *
  16185. * @param callable $callback The callback, which should accept a Generator instance as the first and only parameter.
  16186. * @return void
  16187. * @static
  16188. */
  16189. public static function after($callback)
  16190. {
  16191. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16192. $instance->after($callback);
  16193. }
  16194. /**
  16195. * Check if a breadcrumb with the given name exists.
  16196. *
  16197. * If no name is given, defaults to the current route name.
  16198. *
  16199. * @param string|null $name The page name.
  16200. * @return bool Whether there is a registered callback with that name.
  16201. * @static
  16202. */
  16203. public static function exists($name = null)
  16204. {
  16205. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16206. return $instance->exists($name);
  16207. }
  16208. /**
  16209. * Generate a set of breadcrumbs for a page.
  16210. *
  16211. * @param string|null $name The name of the current page.
  16212. * @param mixed $params The parameters to pass to the closure for the current page.
  16213. * @return \Illuminate\Support\Collection The generated breadcrumbs.
  16214. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route
  16215. * doesn't have an associated name.
  16216. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names
  16217. * are) not registered.
  16218. * @static
  16219. */
  16220. public static function generate($name = null, ...$params)
  16221. {
  16222. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16223. return $instance->generate($name, ...$params);
  16224. }
  16225. /**
  16226. * Render breadcrumbs for a page with the specified view.
  16227. *
  16228. * @param string $view The name of the view to render.
  16229. * @param string|null $name The name of the current page.
  16230. * @param mixed $params The parameters to pass to the closure for the current page.
  16231. * @return \Illuminate\Support\HtmlString The generated HTML.
  16232. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  16233. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route doesn't have an associated name.
  16234. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\ViewNotSetException if no view has been set.
  16235. * @static
  16236. */
  16237. public static function view($view, $name = null, ...$params)
  16238. {
  16239. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16240. return $instance->view($view, $name, ...$params);
  16241. }
  16242. /**
  16243. * Render breadcrumbs for a page with the default view.
  16244. *
  16245. * @param string|null $name The name of the current page.
  16246. * @param mixed $params The parameters to pass to the closure for the current page.
  16247. * @return \Illuminate\Support\HtmlString The generated HTML.
  16248. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  16249. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if no name is given and the current route doesn't have an associated name.
  16250. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\ViewNotSetException if no view has been set.
  16251. * @static
  16252. */
  16253. public static function render($name = null, ...$params)
  16254. {
  16255. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16256. return $instance->render($name, ...$params);
  16257. }
  16258. /**
  16259. * Get the last breadcrumb for the current page.
  16260. *
  16261. * Optionally pass a
  16262. *
  16263. * @return \stdClass|null The breadcrumb for the current page.
  16264. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\UnnamedRouteException if the current route doesn't have an associated name.
  16265. * @throws \DaveJamesMiller\Breadcrumbs\Exceptions\InvalidBreadcrumbException if the name is (or any ancestor names are) not registered.
  16266. * @static
  16267. */
  16268. public static function current()
  16269. {
  16270. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16271. return $instance->current();
  16272. }
  16273. /**
  16274. * Set the current route name and parameters to use when calling render() or generate() with no parameters.
  16275. *
  16276. * @param string $name The name of the current page.
  16277. * @param mixed $params The parameters to pass to the closure for the current page.
  16278. * @return void
  16279. * @static
  16280. */
  16281. public static function setCurrentRoute($name, ...$params)
  16282. {
  16283. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16284. $instance->setCurrentRoute($name, ...$params);
  16285. }
  16286. /**
  16287. * Clear the previously set route name and parameters to use when calling render() or generate() with no parameters.
  16288. *
  16289. * Next time it will revert to the default behaviour of using the current route from Laravel.
  16290. *
  16291. * @return void
  16292. * @static
  16293. */
  16294. public static function clearCurrentRoute()
  16295. {
  16296. /** @var \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager $instance */
  16297. $instance->clearCurrentRoute();
  16298. }
  16299. /**
  16300. * Register a custom macro.
  16301. *
  16302. * @param string $name
  16303. * @param object|callable $macro
  16304. * @return void
  16305. * @static
  16306. */
  16307. public static function macro($name, $macro)
  16308. {
  16309. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::macro($name, $macro);
  16310. }
  16311. /**
  16312. * Mix another object into the class.
  16313. *
  16314. * @param object $mixin
  16315. * @param bool $replace
  16316. * @return void
  16317. * @throws \ReflectionException
  16318. * @static
  16319. */
  16320. public static function mixin($mixin, $replace = true)
  16321. {
  16322. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::mixin($mixin, $replace);
  16323. }
  16324. /**
  16325. * Checks if macro is registered.
  16326. *
  16327. * @param string $name
  16328. * @return bool
  16329. * @static
  16330. */
  16331. public static function hasMacro($name)
  16332. {
  16333. return \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::hasMacro($name);
  16334. }
  16335. /**
  16336. * Flush the existing macros.
  16337. *
  16338. * @return void
  16339. * @static
  16340. */
  16341. public static function flushMacros()
  16342. {
  16343. \DaveJamesMiller\Breadcrumbs\BreadcrumbsManager::flushMacros();
  16344. }
  16345. }
  16346. }
  16347. namespace Facade\Ignition\Facades {
  16348. /**
  16349. * Class Flare.
  16350. *
  16351. * @see \Facade\FlareClient\Flare
  16352. */
  16353. class Flare {
  16354. /**
  16355. *
  16356. *
  16357. * @static
  16358. */
  16359. public static function register($apiKey, $apiSecret = null, $contextDetector = null, $container = null)
  16360. {
  16361. return \Facade\FlareClient\Flare::register($apiKey, $apiSecret, $contextDetector, $container);
  16362. }
  16363. /**
  16364. *
  16365. *
  16366. * @static
  16367. */
  16368. public static function determineVersionUsing($determineVersionCallable)
  16369. {
  16370. /** @var \Facade\FlareClient\Flare $instance */
  16371. return $instance->determineVersionUsing($determineVersionCallable);
  16372. }
  16373. /**
  16374. *
  16375. *
  16376. * @static
  16377. */
  16378. public static function reportErrorLevels($reportErrorLevels)
  16379. {
  16380. /** @var \Facade\FlareClient\Flare $instance */
  16381. return $instance->reportErrorLevels($reportErrorLevels);
  16382. }
  16383. /**
  16384. *
  16385. *
  16386. * @static
  16387. */
  16388. public static function filterExceptionsUsing($filterExceptionsCallable)
  16389. {
  16390. /** @var \Facade\FlareClient\Flare $instance */
  16391. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  16392. }
  16393. /**
  16394. *
  16395. *
  16396. * @return null|string
  16397. * @static
  16398. */
  16399. public static function version()
  16400. {
  16401. /** @var \Facade\FlareClient\Flare $instance */
  16402. return $instance->version();
  16403. }
  16404. /**
  16405. *
  16406. *
  16407. * @static
  16408. */
  16409. public static function getMiddleware()
  16410. {
  16411. /** @var \Facade\FlareClient\Flare $instance */
  16412. return $instance->getMiddleware();
  16413. }
  16414. /**
  16415. *
  16416. *
  16417. * @static
  16418. */
  16419. public static function registerFlareHandlers()
  16420. {
  16421. /** @var \Facade\FlareClient\Flare $instance */
  16422. return $instance->registerFlareHandlers();
  16423. }
  16424. /**
  16425. *
  16426. *
  16427. * @static
  16428. */
  16429. public static function registerExceptionHandler()
  16430. {
  16431. /** @var \Facade\FlareClient\Flare $instance */
  16432. return $instance->registerExceptionHandler();
  16433. }
  16434. /**
  16435. *
  16436. *
  16437. * @static
  16438. */
  16439. public static function registerErrorHandler()
  16440. {
  16441. /** @var \Facade\FlareClient\Flare $instance */
  16442. return $instance->registerErrorHandler();
  16443. }
  16444. /**
  16445. *
  16446. *
  16447. * @static
  16448. */
  16449. public static function registerMiddleware($callable)
  16450. {
  16451. /** @var \Facade\FlareClient\Flare $instance */
  16452. return $instance->registerMiddleware($callable);
  16453. }
  16454. /**
  16455. *
  16456. *
  16457. * @static
  16458. */
  16459. public static function getMiddlewares()
  16460. {
  16461. /** @var \Facade\FlareClient\Flare $instance */
  16462. return $instance->getMiddlewares();
  16463. }
  16464. /**
  16465. *
  16466. *
  16467. * @static
  16468. */
  16469. public static function glow($name, $messageLevel = 'info', $metaData = [])
  16470. {
  16471. /** @var \Facade\FlareClient\Flare $instance */
  16472. return $instance->glow($name, $messageLevel, $metaData);
  16473. }
  16474. /**
  16475. *
  16476. *
  16477. * @static
  16478. */
  16479. public static function handleException($throwable)
  16480. {
  16481. /** @var \Facade\FlareClient\Flare $instance */
  16482. return $instance->handleException($throwable);
  16483. }
  16484. /**
  16485. *
  16486. *
  16487. * @static
  16488. */
  16489. public static function handleError($code, $message, $file = '', $line = 0)
  16490. {
  16491. /** @var \Facade\FlareClient\Flare $instance */
  16492. return $instance->handleError($code, $message, $file, $line);
  16493. }
  16494. /**
  16495. *
  16496. *
  16497. * @static
  16498. */
  16499. public static function applicationPath($applicationPath)
  16500. {
  16501. /** @var \Facade\FlareClient\Flare $instance */
  16502. return $instance->applicationPath($applicationPath);
  16503. }
  16504. /**
  16505. *
  16506. *
  16507. * @static
  16508. */
  16509. public static function report($throwable, $callback = null)
  16510. {
  16511. /** @var \Facade\FlareClient\Flare $instance */
  16512. return $instance->report($throwable, $callback);
  16513. }
  16514. /**
  16515. *
  16516. *
  16517. * @static
  16518. */
  16519. public static function reportMessage($message, $logLevel, $callback = null)
  16520. {
  16521. /** @var \Facade\FlareClient\Flare $instance */
  16522. return $instance->reportMessage($message, $logLevel, $callback);
  16523. }
  16524. /**
  16525. *
  16526. *
  16527. * @static
  16528. */
  16529. public static function sendTestReport($throwable)
  16530. {
  16531. /** @var \Facade\FlareClient\Flare $instance */
  16532. return $instance->sendTestReport($throwable);
  16533. }
  16534. /**
  16535. *
  16536. *
  16537. * @static
  16538. */
  16539. public static function reset()
  16540. {
  16541. /** @var \Facade\FlareClient\Flare $instance */
  16542. return $instance->reset();
  16543. }
  16544. /**
  16545. *
  16546. *
  16547. * @static
  16548. */
  16549. public static function anonymizeIp()
  16550. {
  16551. /** @var \Facade\FlareClient\Flare $instance */
  16552. return $instance->anonymizeIp();
  16553. }
  16554. /**
  16555. *
  16556. *
  16557. * @static
  16558. */
  16559. public static function censorRequestBodyFields($fieldNames)
  16560. {
  16561. /** @var \Facade\FlareClient\Flare $instance */
  16562. return $instance->censorRequestBodyFields($fieldNames);
  16563. }
  16564. /**
  16565. *
  16566. *
  16567. * @static
  16568. */
  16569. public static function createReport($throwable)
  16570. {
  16571. /** @var \Facade\FlareClient\Flare $instance */
  16572. return $instance->createReport($throwable);
  16573. }
  16574. /**
  16575. *
  16576. *
  16577. * @static
  16578. */
  16579. public static function createReportFromMessage($message, $logLevel)
  16580. {
  16581. /** @var \Facade\FlareClient\Flare $instance */
  16582. return $instance->createReportFromMessage($message, $logLevel);
  16583. }
  16584. /**
  16585. *
  16586. *
  16587. * @static
  16588. */
  16589. public static function stage($stage)
  16590. {
  16591. /** @var \Facade\FlareClient\Flare $instance */
  16592. return $instance->stage($stage);
  16593. }
  16594. /**
  16595. *
  16596. *
  16597. * @static
  16598. */
  16599. public static function messageLevel($messageLevel)
  16600. {
  16601. /** @var \Facade\FlareClient\Flare $instance */
  16602. return $instance->messageLevel($messageLevel);
  16603. }
  16604. /**
  16605. *
  16606. *
  16607. * @static
  16608. */
  16609. public static function getGroup($groupName = 'context', $default = [])
  16610. {
  16611. /** @var \Facade\FlareClient\Flare $instance */
  16612. return $instance->getGroup($groupName, $default);
  16613. }
  16614. /**
  16615. *
  16616. *
  16617. * @static
  16618. */
  16619. public static function context($key, $value)
  16620. {
  16621. /** @var \Facade\FlareClient\Flare $instance */
  16622. return $instance->context($key, $value);
  16623. }
  16624. /**
  16625. *
  16626. *
  16627. * @static
  16628. */
  16629. public static function group($groupName, $properties)
  16630. {
  16631. /** @var \Facade\FlareClient\Flare $instance */
  16632. return $instance->group($groupName, $properties);
  16633. }
  16634. }
  16635. }
  16636. namespace Jenssegers\Agent\Facades {
  16637. /**
  16638. *
  16639. *
  16640. */
  16641. class Agent {
  16642. /**
  16643. * Get all detection rules. These rules include the additional
  16644. * platforms and browsers and utilities.
  16645. *
  16646. * @return array
  16647. * @static
  16648. */
  16649. public static function getDetectionRulesExtended()
  16650. {
  16651. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  16652. }
  16653. /**
  16654. *
  16655. *
  16656. * @static
  16657. */
  16658. public static function getRules()
  16659. {
  16660. /** @var \Jenssegers\Agent\Agent $instance */
  16661. return $instance->getRules();
  16662. }
  16663. /**
  16664. *
  16665. *
  16666. * @return \Jaybizzle\CrawlerDetect\CrawlerDetect
  16667. * @static
  16668. */
  16669. public static function getCrawlerDetect()
  16670. {
  16671. /** @var \Jenssegers\Agent\Agent $instance */
  16672. return $instance->getCrawlerDetect();
  16673. }
  16674. /**
  16675. *
  16676. *
  16677. * @static
  16678. */
  16679. public static function getBrowsers()
  16680. {
  16681. return \Jenssegers\Agent\Agent::getBrowsers();
  16682. }
  16683. /**
  16684. *
  16685. *
  16686. * @static
  16687. */
  16688. public static function getOperatingSystems()
  16689. {
  16690. return \Jenssegers\Agent\Agent::getOperatingSystems();
  16691. }
  16692. /**
  16693. *
  16694. *
  16695. * @static
  16696. */
  16697. public static function getPlatforms()
  16698. {
  16699. return \Jenssegers\Agent\Agent::getPlatforms();
  16700. }
  16701. /**
  16702. *
  16703. *
  16704. * @static
  16705. */
  16706. public static function getDesktopDevices()
  16707. {
  16708. return \Jenssegers\Agent\Agent::getDesktopDevices();
  16709. }
  16710. /**
  16711. *
  16712. *
  16713. * @static
  16714. */
  16715. public static function getProperties()
  16716. {
  16717. return \Jenssegers\Agent\Agent::getProperties();
  16718. }
  16719. /**
  16720. * Get accept languages.
  16721. *
  16722. * @param string $acceptLanguage
  16723. * @return array
  16724. * @static
  16725. */
  16726. public static function languages($acceptLanguage = null)
  16727. {
  16728. /** @var \Jenssegers\Agent\Agent $instance */
  16729. return $instance->languages($acceptLanguage);
  16730. }
  16731. /**
  16732. * Get the browser name.
  16733. *
  16734. * @param string|null $userAgent
  16735. * @return string|bool
  16736. * @static
  16737. */
  16738. public static function browser($userAgent = null)
  16739. {
  16740. /** @var \Jenssegers\Agent\Agent $instance */
  16741. return $instance->browser($userAgent);
  16742. }
  16743. /**
  16744. * Get the platform name.
  16745. *
  16746. * @param string|null $userAgent
  16747. * @return string|bool
  16748. * @static
  16749. */
  16750. public static function platform($userAgent = null)
  16751. {
  16752. /** @var \Jenssegers\Agent\Agent $instance */
  16753. return $instance->platform($userAgent);
  16754. }
  16755. /**
  16756. * Get the device name.
  16757. *
  16758. * @param string|null $userAgent
  16759. * @return string|bool
  16760. * @static
  16761. */
  16762. public static function device($userAgent = null)
  16763. {
  16764. /** @var \Jenssegers\Agent\Agent $instance */
  16765. return $instance->device($userAgent);
  16766. }
  16767. /**
  16768. * Check if the device is a desktop computer.
  16769. *
  16770. * @param string|null $userAgent deprecated
  16771. * @param array $httpHeaders deprecated
  16772. * @return bool
  16773. * @static
  16774. */
  16775. public static function isDesktop($userAgent = null, $httpHeaders = null)
  16776. {
  16777. /** @var \Jenssegers\Agent\Agent $instance */
  16778. return $instance->isDesktop($userAgent, $httpHeaders);
  16779. }
  16780. /**
  16781. * Check if the device is a mobile phone.
  16782. *
  16783. * @param string|null $userAgent deprecated
  16784. * @param array $httpHeaders deprecated
  16785. * @return bool
  16786. * @static
  16787. */
  16788. public static function isPhone($userAgent = null, $httpHeaders = null)
  16789. {
  16790. /** @var \Jenssegers\Agent\Agent $instance */
  16791. return $instance->isPhone($userAgent, $httpHeaders);
  16792. }
  16793. /**
  16794. * Get the robot name.
  16795. *
  16796. * @param string|null $userAgent
  16797. * @return string|bool
  16798. * @static
  16799. */
  16800. public static function robot($userAgent = null)
  16801. {
  16802. /** @var \Jenssegers\Agent\Agent $instance */
  16803. return $instance->robot($userAgent);
  16804. }
  16805. /**
  16806. * Check if device is a robot.
  16807. *
  16808. * @param string|null $userAgent
  16809. * @return bool
  16810. * @static
  16811. */
  16812. public static function isRobot($userAgent = null)
  16813. {
  16814. /** @var \Jenssegers\Agent\Agent $instance */
  16815. return $instance->isRobot($userAgent);
  16816. }
  16817. /**
  16818. * Get the device type
  16819. *
  16820. * @param null $userAgent
  16821. * @param null $httpHeaders
  16822. * @return string
  16823. * @static
  16824. */
  16825. public static function deviceType($userAgent = null, $httpHeaders = null)
  16826. {
  16827. /** @var \Jenssegers\Agent\Agent $instance */
  16828. return $instance->deviceType($userAgent, $httpHeaders);
  16829. }
  16830. /**
  16831. *
  16832. *
  16833. * @static
  16834. */
  16835. public static function version($propertyName, $type = 'text')
  16836. {
  16837. /** @var \Jenssegers\Agent\Agent $instance */
  16838. return $instance->version($propertyName, $type);
  16839. }
  16840. /**
  16841. * Get the current script version.
  16842. *
  16843. * This is useful for the demo.php file,
  16844. * so people can check on what version they are testing
  16845. * for mobile devices.
  16846. *
  16847. * @return string The version number in semantic version format.
  16848. * @static
  16849. */
  16850. public static function getScriptVersion()
  16851. { //Method inherited from \Mobile_Detect
  16852. return \Jenssegers\Agent\Agent::getScriptVersion();
  16853. }
  16854. /**
  16855. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  16856. *
  16857. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  16858. * the headers. The default null is left for backwards compatibility.
  16859. * @static
  16860. */
  16861. public static function setHttpHeaders($httpHeaders = null)
  16862. { //Method inherited from \Mobile_Detect
  16863. /** @var \Jenssegers\Agent\Agent $instance */
  16864. return $instance->setHttpHeaders($httpHeaders);
  16865. }
  16866. /**
  16867. * Retrieves the HTTP headers.
  16868. *
  16869. * @return array
  16870. * @static
  16871. */
  16872. public static function getHttpHeaders()
  16873. { //Method inherited from \Mobile_Detect
  16874. /** @var \Jenssegers\Agent\Agent $instance */
  16875. return $instance->getHttpHeaders();
  16876. }
  16877. /**
  16878. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  16879. *
  16880. * Simply null is returned.
  16881. *
  16882. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  16883. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  16884. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  16885. * @return string|null The value of the header.
  16886. * @static
  16887. */
  16888. public static function getHttpHeader($header)
  16889. { //Method inherited from \Mobile_Detect
  16890. /** @var \Jenssegers\Agent\Agent $instance */
  16891. return $instance->getHttpHeader($header);
  16892. }
  16893. /**
  16894. *
  16895. *
  16896. * @static
  16897. */
  16898. public static function getMobileHeaders()
  16899. { //Method inherited from \Mobile_Detect
  16900. /** @var \Jenssegers\Agent\Agent $instance */
  16901. return $instance->getMobileHeaders();
  16902. }
  16903. /**
  16904. * Get all possible HTTP headers that
  16905. * can contain the User-Agent string.
  16906. *
  16907. * @return array List of HTTP headers.
  16908. * @static
  16909. */
  16910. public static function getUaHttpHeaders()
  16911. { //Method inherited from \Mobile_Detect
  16912. /** @var \Jenssegers\Agent\Agent $instance */
  16913. return $instance->getUaHttpHeaders();
  16914. }
  16915. /**
  16916. * Set CloudFront headers
  16917. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  16918. *
  16919. * @param array $cfHeaders List of HTTP headers
  16920. * @return boolean If there were CloudFront headers to be set
  16921. * @static
  16922. */
  16923. public static function setCfHeaders($cfHeaders = null)
  16924. { //Method inherited from \Mobile_Detect
  16925. /** @var \Jenssegers\Agent\Agent $instance */
  16926. return $instance->setCfHeaders($cfHeaders);
  16927. }
  16928. /**
  16929. * Retrieves the cloudfront headers.
  16930. *
  16931. * @return array
  16932. * @static
  16933. */
  16934. public static function getCfHeaders()
  16935. { //Method inherited from \Mobile_Detect
  16936. /** @var \Jenssegers\Agent\Agent $instance */
  16937. return $instance->getCfHeaders();
  16938. }
  16939. /**
  16940. * Set the User-Agent to be used.
  16941. *
  16942. * @param string $userAgent The user agent string to set.
  16943. * @return string|null
  16944. * @static
  16945. */
  16946. public static function setUserAgent($userAgent = null)
  16947. { //Method inherited from \Mobile_Detect
  16948. /** @var \Jenssegers\Agent\Agent $instance */
  16949. return $instance->setUserAgent($userAgent);
  16950. }
  16951. /**
  16952. * Retrieve the User-Agent.
  16953. *
  16954. * @return string|null The user agent if it's set.
  16955. * @static
  16956. */
  16957. public static function getUserAgent()
  16958. { //Method inherited from \Mobile_Detect
  16959. /** @var \Jenssegers\Agent\Agent $instance */
  16960. return $instance->getUserAgent();
  16961. }
  16962. /**
  16963. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  16964. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  16965. *
  16966. * @deprecated since version 2.6.9
  16967. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  16968. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  16969. * @static
  16970. */
  16971. public static function setDetectionType($type = null)
  16972. { //Method inherited from \Mobile_Detect
  16973. /** @var \Jenssegers\Agent\Agent $instance */
  16974. return $instance->setDetectionType($type);
  16975. }
  16976. /**
  16977. *
  16978. *
  16979. * @static
  16980. */
  16981. public static function getMatchingRegex()
  16982. { //Method inherited from \Mobile_Detect
  16983. /** @var \Jenssegers\Agent\Agent $instance */
  16984. return $instance->getMatchingRegex();
  16985. }
  16986. /**
  16987. *
  16988. *
  16989. * @static
  16990. */
  16991. public static function getMatchesArray()
  16992. { //Method inherited from \Mobile_Detect
  16993. /** @var \Jenssegers\Agent\Agent $instance */
  16994. return $instance->getMatchesArray();
  16995. }
  16996. /**
  16997. * Retrieve the list of known phone devices.
  16998. *
  16999. * @return array List of phone devices.
  17000. * @static
  17001. */
  17002. public static function getPhoneDevices()
  17003. { //Method inherited from \Mobile_Detect
  17004. return \Jenssegers\Agent\Agent::getPhoneDevices();
  17005. }
  17006. /**
  17007. * Retrieve the list of known tablet devices.
  17008. *
  17009. * @return array List of tablet devices.
  17010. * @static
  17011. */
  17012. public static function getTabletDevices()
  17013. { //Method inherited from \Mobile_Detect
  17014. return \Jenssegers\Agent\Agent::getTabletDevices();
  17015. }
  17016. /**
  17017. * Alias for getBrowsers() method.
  17018. *
  17019. * @return array List of user agents.
  17020. * @static
  17021. */
  17022. public static function getUserAgents()
  17023. { //Method inherited from \Mobile_Detect
  17024. return \Jenssegers\Agent\Agent::getUserAgents();
  17025. }
  17026. /**
  17027. * Retrieve the list of known utilities.
  17028. *
  17029. * @return array List of utilities.
  17030. * @static
  17031. */
  17032. public static function getUtilities()
  17033. { //Method inherited from \Mobile_Detect
  17034. return \Jenssegers\Agent\Agent::getUtilities();
  17035. }
  17036. /**
  17037. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  17038. *
  17039. * @deprecated since version 2.6.9
  17040. * @return array All the rules (but not extended).
  17041. * @static
  17042. */
  17043. public static function getMobileDetectionRules()
  17044. { //Method inherited from \Mobile_Detect
  17045. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  17046. }
  17047. /**
  17048. * Method gets the mobile detection rules + utilities.
  17049. *
  17050. * The reason this is separate is because utilities rules
  17051. * don't necessary imply mobile. This method is used inside
  17052. * the new $detect->is('stuff') method.
  17053. *
  17054. * @deprecated since version 2.6.9
  17055. * @return array All the rules + extended.
  17056. * @static
  17057. */
  17058. public static function getMobileDetectionRulesExtended()
  17059. { //Method inherited from \Mobile_Detect
  17060. /** @var \Jenssegers\Agent\Agent $instance */
  17061. return $instance->getMobileDetectionRulesExtended();
  17062. }
  17063. /**
  17064. * Check the HTTP headers for signs of mobile.
  17065. *
  17066. * This is the fastest mobile check possible; it's used
  17067. * inside isMobile() method.
  17068. *
  17069. * @return bool
  17070. * @static
  17071. */
  17072. public static function checkHttpHeadersForMobile()
  17073. { //Method inherited from \Mobile_Detect
  17074. /** @var \Jenssegers\Agent\Agent $instance */
  17075. return $instance->checkHttpHeadersForMobile();
  17076. }
  17077. /**
  17078. * Check if the device is mobile.
  17079. *
  17080. * Returns true if any type of mobile device detected, including special ones
  17081. *
  17082. * @param null $userAgent deprecated
  17083. * @param null $httpHeaders deprecated
  17084. * @return bool
  17085. * @static
  17086. */
  17087. public static function isMobile($userAgent = null, $httpHeaders = null)
  17088. { //Method inherited from \Mobile_Detect
  17089. /** @var \Jenssegers\Agent\Agent $instance */
  17090. return $instance->isMobile($userAgent, $httpHeaders);
  17091. }
  17092. /**
  17093. * Check if the device is a tablet.
  17094. *
  17095. * Return true if any type of tablet device is detected.
  17096. *
  17097. * @param string $userAgent deprecated
  17098. * @param array $httpHeaders deprecated
  17099. * @return bool
  17100. * @static
  17101. */
  17102. public static function isTablet($userAgent = null, $httpHeaders = null)
  17103. { //Method inherited from \Mobile_Detect
  17104. /** @var \Jenssegers\Agent\Agent $instance */
  17105. return $instance->isTablet($userAgent, $httpHeaders);
  17106. }
  17107. /**
  17108. * This method checks for a certain property in the
  17109. * userAgent.
  17110. *
  17111. * @todo : The httpHeaders part is not yet used.
  17112. * @param string $key
  17113. * @param string $userAgent deprecated
  17114. * @param string $httpHeaders deprecated
  17115. * @return bool|int|null
  17116. * @static
  17117. */
  17118. public static function is($key, $userAgent = null, $httpHeaders = null)
  17119. { //Method inherited from \Mobile_Detect
  17120. /** @var \Jenssegers\Agent\Agent $instance */
  17121. return $instance->is($key, $userAgent, $httpHeaders);
  17122. }
  17123. /**
  17124. * Some detection rules are relative (not standard),
  17125. * because of the diversity of devices, vendors and
  17126. * their conventions in representing the User-Agent or
  17127. * the HTTP headers.
  17128. *
  17129. * This method will be used to check custom regexes against
  17130. * the User-Agent string.
  17131. *
  17132. * @param $regex
  17133. * @param string $userAgent
  17134. * @return bool
  17135. * @todo : search in the HTTP headers too.
  17136. * @static
  17137. */
  17138. public static function match($regex, $userAgent = null)
  17139. { //Method inherited from \Mobile_Detect
  17140. /** @var \Jenssegers\Agent\Agent $instance */
  17141. return $instance->match($regex, $userAgent);
  17142. }
  17143. /**
  17144. * Prepare the version number.
  17145. *
  17146. * @todo Remove the error supression from str_replace() call.
  17147. * @param string $ver The string version, like "2.6.21.2152";
  17148. * @return float
  17149. * @static
  17150. */
  17151. public static function prepareVersionNo($ver)
  17152. { //Method inherited from \Mobile_Detect
  17153. /** @var \Jenssegers\Agent\Agent $instance */
  17154. return $instance->prepareVersionNo($ver);
  17155. }
  17156. /**
  17157. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  17158. *
  17159. * @return string One of the self::MOBILE_GRADE_* constants.
  17160. * @static
  17161. */
  17162. public static function mobileGrade()
  17163. { //Method inherited from \Mobile_Detect
  17164. /** @var \Jenssegers\Agent\Agent $instance */
  17165. return $instance->mobileGrade();
  17166. }
  17167. }
  17168. }
  17169. namespace Laravelium\Feed {
  17170. /**
  17171. * Feed generator class for laravel-feed package.
  17172. *
  17173. * @author Rumen Damyanov <r@alfamatter.com>
  17174. * @version 7.0.1
  17175. * @link https://laravelium.com
  17176. * @license http://opensource.org/licenses/mit-license.php MIT License
  17177. */
  17178. class Feed {
  17179. }
  17180. }
  17181. namespace Mews\Purifier\Facades {
  17182. /**
  17183. *
  17184. *
  17185. * @see \Mews\Purifier
  17186. */
  17187. class Purifier {
  17188. /**
  17189. *
  17190. *
  17191. * @param $dirty
  17192. * @param null $config
  17193. * @param \Closure|null $postCreateConfigHook
  17194. * @return mixed
  17195. * @static
  17196. */
  17197. public static function clean($dirty, $config = null, $postCreateConfigHook = null)
  17198. {
  17199. /** @var \Mews\Purifier\Purifier $instance */
  17200. return $instance->clean($dirty, $config, $postCreateConfigHook);
  17201. }
  17202. /**
  17203. * Get HTMLPurifier instance.
  17204. *
  17205. * @return \HTMLPurifier
  17206. * @static
  17207. */
  17208. public static function getInstance()
  17209. {
  17210. /** @var \Mews\Purifier\Purifier $instance */
  17211. return $instance->getInstance();
  17212. }
  17213. }
  17214. }
  17215. namespace Sentry\Laravel {
  17216. /**
  17217. *
  17218. *
  17219. * @see \Sentry\State\HubInterface
  17220. */
  17221. class Facade {
  17222. /**
  17223. * Gets the client bound to the top of the stack.
  17224. *
  17225. * @static
  17226. */
  17227. public static function getClient()
  17228. {
  17229. /** @var \Sentry\State\Hub $instance */
  17230. return $instance->getClient();
  17231. }
  17232. /**
  17233. * Gets the ID of the last captured event.
  17234. *
  17235. * @static
  17236. */
  17237. public static function getLastEventId()
  17238. {
  17239. /** @var \Sentry\State\Hub $instance */
  17240. return $instance->getLastEventId();
  17241. }
  17242. /**
  17243. * Creates a new scope to store context information that will be layered on
  17244. * top of the current one. It is isolated, i.e. all breadcrumbs and context
  17245. * information added to this scope will be removed once the scope ends. Be
  17246. * sure to always remove this scope with {@see Hub::popScope} when the
  17247. * operation finishes or throws.
  17248. *
  17249. * @static
  17250. */
  17251. public static function pushScope()
  17252. {
  17253. /** @var \Sentry\State\Hub $instance */
  17254. return $instance->pushScope();
  17255. }
  17256. /**
  17257. * Removes a previously pushed scope from the stack. This restores the state
  17258. * before the scope was pushed. All breadcrumbs and context information added
  17259. * since the last call to {@see Hub::pushScope} are discarded.
  17260. *
  17261. * @static
  17262. */
  17263. public static function popScope()
  17264. {
  17265. /** @var \Sentry\State\Hub $instance */
  17266. return $instance->popScope();
  17267. }
  17268. /**
  17269. * Creates a new scope with and executes the given operation within. The scope
  17270. * is automatically removed once the operation finishes or throws.
  17271. *
  17272. * @param callable $callback The callback to be executed
  17273. * @static
  17274. */
  17275. public static function withScope($callback)
  17276. {
  17277. /** @var \Sentry\State\Hub $instance */
  17278. return $instance->withScope($callback);
  17279. }
  17280. /**
  17281. * Calls the given callback passing to it the current scope so that any
  17282. * operation can be run within its context.
  17283. *
  17284. * @param callable $callback The callback to be executed
  17285. * @static
  17286. */
  17287. public static function configureScope($callback)
  17288. {
  17289. /** @var \Sentry\State\Hub $instance */
  17290. return $instance->configureScope($callback);
  17291. }
  17292. /**
  17293. * Binds the given client to the current scope.
  17294. *
  17295. * @param \Sentry\ClientInterface $client The client
  17296. * @static
  17297. */
  17298. public static function bindClient($client)
  17299. {
  17300. /** @var \Sentry\State\Hub $instance */
  17301. return $instance->bindClient($client);
  17302. }
  17303. /**
  17304. * Captures a message event and sends it to Sentry.
  17305. *
  17306. * @param string $message The message
  17307. * @param \Sentry\Severity|null $level The severity level of the message
  17308. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  17309. * @static
  17310. */
  17311. public static function captureMessage($message, $level = null, $hint = null)
  17312. {
  17313. /** @var \Sentry\State\Hub $instance */
  17314. return $instance->captureMessage($message, $level, $hint);
  17315. }
  17316. /**
  17317. * Captures an exception event and sends it to Sentry.
  17318. *
  17319. * @param \Throwable $exception The exception
  17320. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  17321. * @static
  17322. */
  17323. public static function captureException($exception, $hint = null)
  17324. {
  17325. /** @var \Sentry\State\Hub $instance */
  17326. return $instance->captureException($exception, $hint);
  17327. }
  17328. /**
  17329. * Captures a new event using the provided data.
  17330. *
  17331. * @param \Event $event The event being captured
  17332. * @param \Sentry\EventHint|null $hint May contain additional information about the event
  17333. * @static
  17334. */
  17335. public static function captureEvent($event, $hint = null)
  17336. {
  17337. /** @var \Sentry\State\Hub $instance */
  17338. return $instance->captureEvent($event, $hint);
  17339. }
  17340. /**
  17341. * Captures an event that logs the last occurred error.
  17342. *
  17343. * @param \Sentry\EventHint|null $hint Object that can contain additional information about the event
  17344. * @static
  17345. */
  17346. public static function captureLastError($hint = null)
  17347. {
  17348. /** @var \Sentry\State\Hub $instance */
  17349. return $instance->captureLastError($hint);
  17350. }
  17351. /**
  17352. * Records a new breadcrumb which will be attached to future events. They
  17353. * will be added to subsequent events to provide more context on user's
  17354. * actions prior to an error or crash.
  17355. *
  17356. * @param \Sentry\Breadcrumb $breadcrumb The breadcrumb to record
  17357. * @return bool Whether the breadcrumb was actually added to the current scope
  17358. * @static
  17359. */
  17360. public static function addBreadcrumb($breadcrumb)
  17361. {
  17362. /** @var \Sentry\State\Hub $instance */
  17363. return $instance->addBreadcrumb($breadcrumb);
  17364. }
  17365. /**
  17366. * Gets the integration whose FQCN matches the given one if it's available on the current client.
  17367. *
  17368. * @param string $className The FQCN of the integration
  17369. * @psalm-template T of IntegrationInterface
  17370. * @psalm-param class-string<T> $className
  17371. * @psalm-return T|null
  17372. * @static
  17373. */
  17374. public static function getIntegration($className)
  17375. {
  17376. /** @var \Sentry\State\Hub $instance */
  17377. return $instance->getIntegration($className);
  17378. }
  17379. /**
  17380. * Starts a new `Transaction` and returns it. This is the entry point to manual
  17381. * tracing instrumentation.
  17382. *
  17383. * A tree structure can be built by adding child spans to the transaction, and
  17384. * child spans to other spans. To start a new child span within the transaction
  17385. * or any span, call the respective `startChild()` method.
  17386. *
  17387. * Every child span must be finished before the transaction is finished,
  17388. * otherwise the unfinished spans are discarded.
  17389. *
  17390. * The transaction must be finished with a call to its `finish()` method, at
  17391. * which point the transaction with all its finished child spans will be sent to
  17392. * Sentry.
  17393. *
  17394. * @param \Sentry\State\array<string, mixed> $customSamplingContext Additional context that will be passed to the {@see SamplingContext}
  17395. * @param \Sentry\Tracing\TransactionContext $context Properties of the new transaction
  17396. * @param \Sentry\State\array<string, mixed> $customSamplingContext Additional context that will be passed to the {@see SamplingContext}
  17397. * @static
  17398. */
  17399. public static function startTransaction($context, $customSamplingContext = [])
  17400. {
  17401. /** @var \Sentry\State\Hub $instance */
  17402. return $instance->startTransaction($context, $customSamplingContext);
  17403. }
  17404. /**
  17405. * Returns the transaction that is on the Hub.
  17406. *
  17407. * @static
  17408. */
  17409. public static function getTransaction()
  17410. {
  17411. /** @var \Sentry\State\Hub $instance */
  17412. return $instance->getTransaction();
  17413. }
  17414. /**
  17415. * Sets the span on the Hub.
  17416. *
  17417. * @param \Sentry\Tracing\Span|null $span The span
  17418. * @static
  17419. */
  17420. public static function setSpan($span)
  17421. {
  17422. /** @var \Sentry\State\Hub $instance */
  17423. return $instance->setSpan($span);
  17424. }
  17425. /**
  17426. * Returns the span that is on the Hub.
  17427. *
  17428. * @static
  17429. */
  17430. public static function getSpan()
  17431. {
  17432. /** @var \Sentry\State\Hub $instance */
  17433. return $instance->getSpan();
  17434. }
  17435. }
  17436. }
  17437. namespace Illuminate\Http {
  17438. /**
  17439. *
  17440. *
  17441. */
  17442. class Request {
  17443. /**
  17444. *
  17445. *
  17446. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  17447. * @param array $rules
  17448. * @param mixed $params
  17449. * @static
  17450. */
  17451. public static function validate($rules, ...$params)
  17452. {
  17453. return \Illuminate\Http\Request::validate($rules, ...$params);
  17454. }
  17455. /**
  17456. *
  17457. *
  17458. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  17459. * @param string $errorBag
  17460. * @param array $rules
  17461. * @param mixed $params
  17462. * @static
  17463. */
  17464. public static function validateWithBag($errorBag, $rules, ...$params)
  17465. {
  17466. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  17467. }
  17468. /**
  17469. *
  17470. *
  17471. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17472. * @param mixed $absolute
  17473. * @static
  17474. */
  17475. public static function hasValidSignature($absolute = true)
  17476. {
  17477. return \Illuminate\Http\Request::hasValidSignature($absolute);
  17478. }
  17479. /**
  17480. *
  17481. *
  17482. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  17483. * @static
  17484. */
  17485. public static function hasValidRelativeSignature()
  17486. {
  17487. return \Illuminate\Http\Request::hasValidRelativeSignature();
  17488. }
  17489. }
  17490. }
  17491. namespace Illuminate\Database\Schema {
  17492. /**
  17493. *
  17494. *
  17495. */
  17496. class Blueprint {
  17497. /**
  17498. *
  17499. *
  17500. * @see \Kalnoy\Nestedset\NestedSetServiceProvider::register()
  17501. * @static
  17502. */
  17503. public static function nestedSet()
  17504. {
  17505. return \Illuminate\Database\Schema\Blueprint::nestedSet();
  17506. }
  17507. /**
  17508. *
  17509. *
  17510. * @see \Kalnoy\Nestedset\NestedSetServiceProvider::register()
  17511. * @static
  17512. */
  17513. public static function dropNestedSet()
  17514. {
  17515. return \Illuminate\Database\Schema\Blueprint::dropNestedSet();
  17516. }
  17517. }
  17518. }
  17519. namespace {
  17520. class App extends \Illuminate\Support\Facades\App {}
  17521. class Arr extends \Illuminate\Support\Arr {}
  17522. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  17523. class Auth extends \Illuminate\Support\Facades\Auth {}
  17524. class Blade extends \Illuminate\Support\Facades\Blade {}
  17525. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  17526. class Bus extends \Illuminate\Support\Facades\Bus {}
  17527. class Cache extends \Illuminate\Support\Facades\Cache {}
  17528. class Config extends \Illuminate\Support\Facades\Config {}
  17529. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  17530. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  17531. class DB extends \Illuminate\Support\Facades\DB {}
  17532. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  17533. /**
  17534. * Create and return an un-saved model instance.
  17535. *
  17536. * @param array $attributes
  17537. * @return \Illuminate\Database\Eloquent\Model|static
  17538. * @static
  17539. */
  17540. public static function make($attributes = [])
  17541. {
  17542. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17543. return $instance->make($attributes);
  17544. }
  17545. /**
  17546. * Register a new global scope.
  17547. *
  17548. * @param string $identifier
  17549. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  17550. * @return \Illuminate\Database\Eloquent\Builder|static
  17551. * @static
  17552. */
  17553. public static function withGlobalScope($identifier, $scope)
  17554. {
  17555. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17556. return $instance->withGlobalScope($identifier, $scope);
  17557. }
  17558. /**
  17559. * Remove a registered global scope.
  17560. *
  17561. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  17562. * @return \Illuminate\Database\Eloquent\Builder|static
  17563. * @static
  17564. */
  17565. public static function withoutGlobalScope($scope)
  17566. {
  17567. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17568. return $instance->withoutGlobalScope($scope);
  17569. }
  17570. /**
  17571. * Remove all or passed registered global scopes.
  17572. *
  17573. * @param array|null $scopes
  17574. * @return \Illuminate\Database\Eloquent\Builder|static
  17575. * @static
  17576. */
  17577. public static function withoutGlobalScopes($scopes = null)
  17578. {
  17579. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17580. return $instance->withoutGlobalScopes($scopes);
  17581. }
  17582. /**
  17583. * Get an array of global scopes that were removed from the query.
  17584. *
  17585. * @return array
  17586. * @static
  17587. */
  17588. public static function removedScopes()
  17589. {
  17590. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17591. return $instance->removedScopes();
  17592. }
  17593. /**
  17594. * Add a where clause on the primary key to the query.
  17595. *
  17596. * @param mixed $id
  17597. * @return \Illuminate\Database\Eloquent\Builder|static
  17598. * @static
  17599. */
  17600. public static function whereKey($id)
  17601. {
  17602. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17603. return $instance->whereKey($id);
  17604. }
  17605. /**
  17606. * Add a where clause on the primary key to the query.
  17607. *
  17608. * @param mixed $id
  17609. * @return \Illuminate\Database\Eloquent\Builder|static
  17610. * @static
  17611. */
  17612. public static function whereKeyNot($id)
  17613. {
  17614. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17615. return $instance->whereKeyNot($id);
  17616. }
  17617. /**
  17618. * Add a basic where clause to the query.
  17619. *
  17620. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17621. * @param mixed $operator
  17622. * @param mixed $value
  17623. * @param string $boolean
  17624. * @return \Illuminate\Database\Eloquent\Builder|static
  17625. * @static
  17626. */
  17627. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  17628. {
  17629. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17630. return $instance->where($column, $operator, $value, $boolean);
  17631. }
  17632. /**
  17633. * Add a basic where clause to the query, and return the first result.
  17634. *
  17635. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  17636. * @param mixed $operator
  17637. * @param mixed $value
  17638. * @param string $boolean
  17639. * @return \Illuminate\Database\Eloquent\Model|static|null
  17640. * @static
  17641. */
  17642. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  17643. {
  17644. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17645. return $instance->firstWhere($column, $operator, $value, $boolean);
  17646. }
  17647. /**
  17648. * Add an "or where" clause to the query.
  17649. *
  17650. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  17651. * @param mixed $operator
  17652. * @param mixed $value
  17653. * @return \Illuminate\Database\Eloquent\Builder|static
  17654. * @static
  17655. */
  17656. public static function orWhere($column, $operator = null, $value = null)
  17657. {
  17658. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17659. return $instance->orWhere($column, $operator, $value);
  17660. }
  17661. /**
  17662. * Add an "order by" clause for a timestamp to the query.
  17663. *
  17664. * @param string|\Illuminate\Database\Query\Expression $column
  17665. * @return \Illuminate\Database\Eloquent\Builder|static
  17666. * @static
  17667. */
  17668. public static function latest($column = null)
  17669. {
  17670. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17671. return $instance->latest($column);
  17672. }
  17673. /**
  17674. * Add an "order by" clause for a timestamp to the query.
  17675. *
  17676. * @param string|\Illuminate\Database\Query\Expression $column
  17677. * @return \Illuminate\Database\Eloquent\Builder|static
  17678. * @static
  17679. */
  17680. public static function oldest($column = null)
  17681. {
  17682. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17683. return $instance->oldest($column);
  17684. }
  17685. /**
  17686. * Create a collection of models from plain arrays.
  17687. *
  17688. * @param array $items
  17689. * @return \Illuminate\Database\Eloquent\Collection
  17690. * @static
  17691. */
  17692. public static function hydrate($items)
  17693. {
  17694. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17695. return $instance->hydrate($items);
  17696. }
  17697. /**
  17698. * Create a collection of models from a raw query.
  17699. *
  17700. * @param string $query
  17701. * @param array $bindings
  17702. * @return \Illuminate\Database\Eloquent\Collection
  17703. * @static
  17704. */
  17705. public static function fromQuery($query, $bindings = [])
  17706. {
  17707. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17708. return $instance->fromQuery($query, $bindings);
  17709. }
  17710. /**
  17711. * Find a model by its primary key.
  17712. *
  17713. * @param mixed $id
  17714. * @param array $columns
  17715. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  17716. * @static
  17717. */
  17718. public static function find($id, $columns = [])
  17719. {
  17720. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17721. return $instance->find($id, $columns);
  17722. }
  17723. /**
  17724. * Find multiple models by their primary keys.
  17725. *
  17726. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  17727. * @param array $columns
  17728. * @return \Illuminate\Database\Eloquent\Collection
  17729. * @static
  17730. */
  17731. public static function findMany($ids, $columns = [])
  17732. {
  17733. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17734. return $instance->findMany($ids, $columns);
  17735. }
  17736. /**
  17737. * Find a model by its primary key or throw an exception.
  17738. *
  17739. * @param mixed $id
  17740. * @param array $columns
  17741. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  17742. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  17743. * @static
  17744. */
  17745. public static function findOrFail($id, $columns = [])
  17746. {
  17747. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17748. return $instance->findOrFail($id, $columns);
  17749. }
  17750. /**
  17751. * Find a model by its primary key or return fresh model instance.
  17752. *
  17753. * @param mixed $id
  17754. * @param array $columns
  17755. * @return \Illuminate\Database\Eloquent\Model|static
  17756. * @static
  17757. */
  17758. public static function findOrNew($id, $columns = [])
  17759. {
  17760. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17761. return $instance->findOrNew($id, $columns);
  17762. }
  17763. /**
  17764. * Get the first record matching the attributes or instantiate it.
  17765. *
  17766. * @param array $attributes
  17767. * @param array $values
  17768. * @return \Illuminate\Database\Eloquent\Model|static
  17769. * @static
  17770. */
  17771. public static function firstOrNew($attributes = [], $values = [])
  17772. {
  17773. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17774. return $instance->firstOrNew($attributes, $values);
  17775. }
  17776. /**
  17777. * Get the first record matching the attributes or create it.
  17778. *
  17779. * @param array $attributes
  17780. * @param array $values
  17781. * @return \Illuminate\Database\Eloquent\Model|static
  17782. * @static
  17783. */
  17784. public static function firstOrCreate($attributes = [], $values = [])
  17785. {
  17786. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17787. return $instance->firstOrCreate($attributes, $values);
  17788. }
  17789. /**
  17790. * Create or update a record matching the attributes, and fill it with values.
  17791. *
  17792. * @param array $attributes
  17793. * @param array $values
  17794. * @return \Illuminate\Database\Eloquent\Model|static
  17795. * @static
  17796. */
  17797. public static function updateOrCreate($attributes, $values = [])
  17798. {
  17799. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17800. return $instance->updateOrCreate($attributes, $values);
  17801. }
  17802. /**
  17803. * Execute the query and get the first result or throw an exception.
  17804. *
  17805. * @param array $columns
  17806. * @return \Illuminate\Database\Eloquent\Model|static
  17807. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  17808. * @static
  17809. */
  17810. public static function firstOrFail($columns = [])
  17811. {
  17812. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17813. return $instance->firstOrFail($columns);
  17814. }
  17815. /**
  17816. * Execute the query and get the first result or call a callback.
  17817. *
  17818. * @param \Closure|array $columns
  17819. * @param \Closure|null $callback
  17820. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  17821. * @static
  17822. */
  17823. public static function firstOr($columns = [], $callback = null)
  17824. {
  17825. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17826. return $instance->firstOr($columns, $callback);
  17827. }
  17828. /**
  17829. * Execute the query and get the first result if it's the sole matching record.
  17830. *
  17831. * @param array|string $columns
  17832. * @return \Illuminate\Database\Eloquent\Model
  17833. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  17834. * @throws \Illuminate\Database\MultipleRecordsFoundException
  17835. * @static
  17836. */
  17837. public static function sole($columns = [])
  17838. {
  17839. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17840. return $instance->sole($columns);
  17841. }
  17842. /**
  17843. * Get a single column's value from the first result of a query.
  17844. *
  17845. * @param string|\Illuminate\Database\Query\Expression $column
  17846. * @return mixed
  17847. * @static
  17848. */
  17849. public static function value($column)
  17850. {
  17851. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17852. return $instance->value($column);
  17853. }
  17854. /**
  17855. * Get a single column's value from the first result of the query or throw an exception.
  17856. *
  17857. * @param string|\Illuminate\Database\Query\Expression $column
  17858. * @return mixed
  17859. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  17860. * @static
  17861. */
  17862. public static function valueOrFail($column)
  17863. {
  17864. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17865. return $instance->valueOrFail($column);
  17866. }
  17867. /**
  17868. * Execute the query as a "select" statement.
  17869. *
  17870. * @param array|string $columns
  17871. * @return \Illuminate\Database\Eloquent\Collection|static[]
  17872. * @static
  17873. */
  17874. public static function get($columns = [])
  17875. {
  17876. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17877. return $instance->get($columns);
  17878. }
  17879. /**
  17880. * Get the hydrated models without eager loading.
  17881. *
  17882. * @param array|string $columns
  17883. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  17884. * @static
  17885. */
  17886. public static function getModels($columns = [])
  17887. {
  17888. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17889. return $instance->getModels($columns);
  17890. }
  17891. /**
  17892. * Eager load the relationships for the models.
  17893. *
  17894. * @param array $models
  17895. * @return array
  17896. * @static
  17897. */
  17898. public static function eagerLoadRelations($models)
  17899. {
  17900. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17901. return $instance->eagerLoadRelations($models);
  17902. }
  17903. /**
  17904. * Get a lazy collection for the given query.
  17905. *
  17906. * @return \Illuminate\Support\LazyCollection
  17907. * @static
  17908. */
  17909. public static function cursor()
  17910. {
  17911. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17912. return $instance->cursor();
  17913. }
  17914. /**
  17915. * Get an array with the values of a given column.
  17916. *
  17917. * @param string|\Illuminate\Database\Query\Expression $column
  17918. * @param string|null $key
  17919. * @return \Illuminate\Support\Collection
  17920. * @static
  17921. */
  17922. public static function pluck($column, $key = null)
  17923. {
  17924. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17925. return $instance->pluck($column, $key);
  17926. }
  17927. /**
  17928. * Paginate the given query.
  17929. *
  17930. * @param int|null $perPage
  17931. * @param array $columns
  17932. * @param string $pageName
  17933. * @param int|null $page
  17934. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  17935. * @throws \InvalidArgumentException
  17936. * @static
  17937. */
  17938. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  17939. {
  17940. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17941. return $instance->paginate($perPage, $columns, $pageName, $page);
  17942. }
  17943. /**
  17944. * Paginate the given query into a simple paginator.
  17945. *
  17946. * @param int|null $perPage
  17947. * @param array $columns
  17948. * @param string $pageName
  17949. * @param int|null $page
  17950. * @return \Illuminate\Contracts\Pagination\Paginator
  17951. * @static
  17952. */
  17953. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  17954. {
  17955. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17956. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  17957. }
  17958. /**
  17959. * Paginate the given query into a cursor paginator.
  17960. *
  17961. * @param int|null $perPage
  17962. * @param array $columns
  17963. * @param string $cursorName
  17964. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  17965. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  17966. * @static
  17967. */
  17968. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  17969. {
  17970. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17971. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  17972. }
  17973. /**
  17974. * Save a new model and return the instance.
  17975. *
  17976. * @param array $attributes
  17977. * @return \Illuminate\Database\Eloquent\Model|$this
  17978. * @static
  17979. */
  17980. public static function create($attributes = [])
  17981. {
  17982. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17983. return $instance->create($attributes);
  17984. }
  17985. /**
  17986. * Save a new model and return the instance. Allow mass-assignment.
  17987. *
  17988. * @param array $attributes
  17989. * @return \Illuminate\Database\Eloquent\Model|$this
  17990. * @static
  17991. */
  17992. public static function forceCreate($attributes)
  17993. {
  17994. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17995. return $instance->forceCreate($attributes);
  17996. }
  17997. /**
  17998. * Insert new records or update the existing ones.
  17999. *
  18000. * @param array $values
  18001. * @param array|string $uniqueBy
  18002. * @param array|null $update
  18003. * @return int
  18004. * @static
  18005. */
  18006. public static function upsert($values, $uniqueBy, $update = null)
  18007. {
  18008. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18009. return $instance->upsert($values, $uniqueBy, $update);
  18010. }
  18011. /**
  18012. * Register a replacement for the default delete function.
  18013. *
  18014. * @param \Closure $callback
  18015. * @return void
  18016. * @static
  18017. */
  18018. public static function onDelete($callback)
  18019. {
  18020. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18021. $instance->onDelete($callback);
  18022. }
  18023. /**
  18024. * Call the given local model scopes.
  18025. *
  18026. * @param array|string $scopes
  18027. * @return static|mixed
  18028. * @static
  18029. */
  18030. public static function scopes($scopes)
  18031. {
  18032. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18033. return $instance->scopes($scopes);
  18034. }
  18035. /**
  18036. * Apply the scopes to the Eloquent builder instance and return it.
  18037. *
  18038. * @return static
  18039. * @static
  18040. */
  18041. public static function applyScopes()
  18042. {
  18043. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18044. return $instance->applyScopes();
  18045. }
  18046. /**
  18047. * Prevent the specified relations from being eager loaded.
  18048. *
  18049. * @param mixed $relations
  18050. * @return \Illuminate\Database\Eloquent\Builder|static
  18051. * @static
  18052. */
  18053. public static function without($relations)
  18054. {
  18055. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18056. return $instance->without($relations);
  18057. }
  18058. /**
  18059. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  18060. *
  18061. * @param mixed $relations
  18062. * @return \Illuminate\Database\Eloquent\Builder|static
  18063. * @static
  18064. */
  18065. public static function withOnly($relations)
  18066. {
  18067. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18068. return $instance->withOnly($relations);
  18069. }
  18070. /**
  18071. * Create a new instance of the model being queried.
  18072. *
  18073. * @param array $attributes
  18074. * @return \Illuminate\Database\Eloquent\Model|static
  18075. * @static
  18076. */
  18077. public static function newModelInstance($attributes = [])
  18078. {
  18079. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18080. return $instance->newModelInstance($attributes);
  18081. }
  18082. /**
  18083. * Apply query-time casts to the model instance.
  18084. *
  18085. * @param array $casts
  18086. * @return \Illuminate\Database\Eloquent\Builder|static
  18087. * @static
  18088. */
  18089. public static function withCasts($casts)
  18090. {
  18091. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18092. return $instance->withCasts($casts);
  18093. }
  18094. /**
  18095. * Get the underlying query builder instance.
  18096. *
  18097. * @return \Illuminate\Database\Query\Builder
  18098. * @static
  18099. */
  18100. public static function getQuery()
  18101. {
  18102. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18103. return $instance->getQuery();
  18104. }
  18105. /**
  18106. * Set the underlying query builder instance.
  18107. *
  18108. * @param \Illuminate\Database\Query\Builder $query
  18109. * @return \Illuminate\Database\Eloquent\Builder|static
  18110. * @static
  18111. */
  18112. public static function setQuery($query)
  18113. {
  18114. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18115. return $instance->setQuery($query);
  18116. }
  18117. /**
  18118. * Get a base query builder instance.
  18119. *
  18120. * @return \Illuminate\Database\Query\Builder
  18121. * @static
  18122. */
  18123. public static function toBase()
  18124. {
  18125. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18126. return $instance->toBase();
  18127. }
  18128. /**
  18129. * Get the relationships being eagerly loaded.
  18130. *
  18131. * @return array
  18132. * @static
  18133. */
  18134. public static function getEagerLoads()
  18135. {
  18136. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18137. return $instance->getEagerLoads();
  18138. }
  18139. /**
  18140. * Set the relationships being eagerly loaded.
  18141. *
  18142. * @param array $eagerLoad
  18143. * @return \Illuminate\Database\Eloquent\Builder|static
  18144. * @static
  18145. */
  18146. public static function setEagerLoads($eagerLoad)
  18147. {
  18148. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18149. return $instance->setEagerLoads($eagerLoad);
  18150. }
  18151. /**
  18152. * Get the model instance being queried.
  18153. *
  18154. * @return \Illuminate\Database\Eloquent\Model|static
  18155. * @static
  18156. */
  18157. public static function getModel()
  18158. {
  18159. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18160. return $instance->getModel();
  18161. }
  18162. /**
  18163. * Set a model instance for the model being queried.
  18164. *
  18165. * @param \Illuminate\Database\Eloquent\Model $model
  18166. * @return \Illuminate\Database\Eloquent\Builder|static
  18167. * @static
  18168. */
  18169. public static function setModel($model)
  18170. {
  18171. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18172. return $instance->setModel($model);
  18173. }
  18174. /**
  18175. * Get the given macro by name.
  18176. *
  18177. * @param string $name
  18178. * @return \Closure
  18179. * @static
  18180. */
  18181. public static function getMacro($name)
  18182. {
  18183. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18184. return $instance->getMacro($name);
  18185. }
  18186. /**
  18187. * Checks if a macro is registered.
  18188. *
  18189. * @param string $name
  18190. * @return bool
  18191. * @static
  18192. */
  18193. public static function hasMacro($name)
  18194. {
  18195. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18196. return $instance->hasMacro($name);
  18197. }
  18198. /**
  18199. * Get the given global macro by name.
  18200. *
  18201. * @param string $name
  18202. * @return \Closure
  18203. * @static
  18204. */
  18205. public static function getGlobalMacro($name)
  18206. {
  18207. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  18208. }
  18209. /**
  18210. * Checks if a global macro is registered.
  18211. *
  18212. * @param string $name
  18213. * @return bool
  18214. * @static
  18215. */
  18216. public static function hasGlobalMacro($name)
  18217. {
  18218. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  18219. }
  18220. /**
  18221. * Clone the Eloquent query builder.
  18222. *
  18223. * @return static
  18224. * @static
  18225. */
  18226. public static function clone()
  18227. {
  18228. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18229. return $instance->clone();
  18230. }
  18231. /**
  18232. * Add a relationship count / exists condition to the query.
  18233. *
  18234. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  18235. * @param string $operator
  18236. * @param int $count
  18237. * @param string $boolean
  18238. * @param \Closure|null $callback
  18239. * @return \Illuminate\Database\Eloquent\Builder|static
  18240. * @throws \RuntimeException
  18241. * @static
  18242. */
  18243. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18244. {
  18245. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18246. return $instance->has($relation, $operator, $count, $boolean, $callback);
  18247. }
  18248. /**
  18249. * Add a relationship count / exists condition to the query with an "or".
  18250. *
  18251. * @param string $relation
  18252. * @param string $operator
  18253. * @param int $count
  18254. * @return \Illuminate\Database\Eloquent\Builder|static
  18255. * @static
  18256. */
  18257. public static function orHas($relation, $operator = '>=', $count = 1)
  18258. {
  18259. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18260. return $instance->orHas($relation, $operator, $count);
  18261. }
  18262. /**
  18263. * Add a relationship count / exists condition to the query.
  18264. *
  18265. * @param string $relation
  18266. * @param string $boolean
  18267. * @param \Closure|null $callback
  18268. * @return \Illuminate\Database\Eloquent\Builder|static
  18269. * @static
  18270. */
  18271. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  18272. {
  18273. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18274. return $instance->doesntHave($relation, $boolean, $callback);
  18275. }
  18276. /**
  18277. * Add a relationship count / exists condition to the query with an "or".
  18278. *
  18279. * @param string $relation
  18280. * @return \Illuminate\Database\Eloquent\Builder|static
  18281. * @static
  18282. */
  18283. public static function orDoesntHave($relation)
  18284. {
  18285. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18286. return $instance->orDoesntHave($relation);
  18287. }
  18288. /**
  18289. * Add a relationship count / exists condition to the query with where clauses.
  18290. *
  18291. * @param string $relation
  18292. * @param \Closure|null $callback
  18293. * @param string $operator
  18294. * @param int $count
  18295. * @return \Illuminate\Database\Eloquent\Builder|static
  18296. * @static
  18297. */
  18298. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18299. {
  18300. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18301. return $instance->whereHas($relation, $callback, $operator, $count);
  18302. }
  18303. /**
  18304. * Add a relationship count / exists condition to the query with where clauses and an "or".
  18305. *
  18306. * @param string $relation
  18307. * @param \Closure|null $callback
  18308. * @param string $operator
  18309. * @param int $count
  18310. * @return \Illuminate\Database\Eloquent\Builder|static
  18311. * @static
  18312. */
  18313. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  18314. {
  18315. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18316. return $instance->orWhereHas($relation, $callback, $operator, $count);
  18317. }
  18318. /**
  18319. * Add a relationship count / exists condition to the query with where clauses.
  18320. *
  18321. * @param string $relation
  18322. * @param \Closure|null $callback
  18323. * @return \Illuminate\Database\Eloquent\Builder|static
  18324. * @static
  18325. */
  18326. public static function whereDoesntHave($relation, $callback = null)
  18327. {
  18328. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18329. return $instance->whereDoesntHave($relation, $callback);
  18330. }
  18331. /**
  18332. * Add a relationship count / exists condition to the query with where clauses and an "or".
  18333. *
  18334. * @param string $relation
  18335. * @param \Closure|null $callback
  18336. * @return \Illuminate\Database\Eloquent\Builder|static
  18337. * @static
  18338. */
  18339. public static function orWhereDoesntHave($relation, $callback = null)
  18340. {
  18341. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18342. return $instance->orWhereDoesntHave($relation, $callback);
  18343. }
  18344. /**
  18345. * Add a polymorphic relationship count / exists condition to the query.
  18346. *
  18347. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18348. * @param string|array $types
  18349. * @param string $operator
  18350. * @param int $count
  18351. * @param string $boolean
  18352. * @param \Closure|null $callback
  18353. * @return \Illuminate\Database\Eloquent\Builder|static
  18354. * @static
  18355. */
  18356. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  18357. {
  18358. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18359. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  18360. }
  18361. /**
  18362. * Add a polymorphic relationship count / exists condition to the query with an "or".
  18363. *
  18364. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18365. * @param string|array $types
  18366. * @param string $operator
  18367. * @param int $count
  18368. * @return \Illuminate\Database\Eloquent\Builder|static
  18369. * @static
  18370. */
  18371. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  18372. {
  18373. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18374. return $instance->orHasMorph($relation, $types, $operator, $count);
  18375. }
  18376. /**
  18377. * Add a polymorphic relationship count / exists condition to the query.
  18378. *
  18379. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18380. * @param string|array $types
  18381. * @param string $boolean
  18382. * @param \Closure|null $callback
  18383. * @return \Illuminate\Database\Eloquent\Builder|static
  18384. * @static
  18385. */
  18386. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  18387. {
  18388. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18389. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  18390. }
  18391. /**
  18392. * Add a polymorphic relationship count / exists condition to the query with an "or".
  18393. *
  18394. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18395. * @param string|array $types
  18396. * @return \Illuminate\Database\Eloquent\Builder|static
  18397. * @static
  18398. */
  18399. public static function orDoesntHaveMorph($relation, $types)
  18400. {
  18401. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18402. return $instance->orDoesntHaveMorph($relation, $types);
  18403. }
  18404. /**
  18405. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  18406. *
  18407. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18408. * @param string|array $types
  18409. * @param \Closure|null $callback
  18410. * @param string $operator
  18411. * @param int $count
  18412. * @return \Illuminate\Database\Eloquent\Builder|static
  18413. * @static
  18414. */
  18415. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  18416. {
  18417. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18418. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  18419. }
  18420. /**
  18421. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  18422. *
  18423. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18424. * @param string|array $types
  18425. * @param \Closure|null $callback
  18426. * @param string $operator
  18427. * @param int $count
  18428. * @return \Illuminate\Database\Eloquent\Builder|static
  18429. * @static
  18430. */
  18431. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  18432. {
  18433. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18434. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  18435. }
  18436. /**
  18437. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  18438. *
  18439. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18440. * @param string|array $types
  18441. * @param \Closure|null $callback
  18442. * @return \Illuminate\Database\Eloquent\Builder|static
  18443. * @static
  18444. */
  18445. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  18446. {
  18447. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18448. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  18449. }
  18450. /**
  18451. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  18452. *
  18453. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18454. * @param string|array $types
  18455. * @param \Closure|null $callback
  18456. * @return \Illuminate\Database\Eloquent\Builder|static
  18457. * @static
  18458. */
  18459. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  18460. {
  18461. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18462. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  18463. }
  18464. /**
  18465. * Add a basic where clause to a relationship query.
  18466. *
  18467. * @param string $relation
  18468. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18469. * @param mixed $operator
  18470. * @param mixed $value
  18471. * @return \Illuminate\Database\Eloquent\Builder|static
  18472. * @static
  18473. */
  18474. public static function whereRelation($relation, $column, $operator = null, $value = null)
  18475. {
  18476. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18477. return $instance->whereRelation($relation, $column, $operator, $value);
  18478. }
  18479. /**
  18480. * Add an "or where" clause to a relationship query.
  18481. *
  18482. * @param string $relation
  18483. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18484. * @param mixed $operator
  18485. * @param mixed $value
  18486. * @return \Illuminate\Database\Eloquent\Builder|static
  18487. * @static
  18488. */
  18489. public static function orWhereRelation($relation, $column, $operator = null, $value = null)
  18490. {
  18491. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18492. return $instance->orWhereRelation($relation, $column, $operator, $value);
  18493. }
  18494. /**
  18495. * Add a polymorphic relationship condition to the query with a where clause.
  18496. *
  18497. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18498. * @param string|array $types
  18499. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18500. * @param mixed $operator
  18501. * @param mixed $value
  18502. * @return \Illuminate\Database\Eloquent\Builder|static
  18503. * @static
  18504. */
  18505. public static function whereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  18506. {
  18507. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18508. return $instance->whereMorphRelation($relation, $types, $column, $operator, $value);
  18509. }
  18510. /**
  18511. * Add a polymorphic relationship condition to the query with an "or where" clause.
  18512. *
  18513. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18514. * @param string|array $types
  18515. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  18516. * @param mixed $operator
  18517. * @param mixed $value
  18518. * @return \Illuminate\Database\Eloquent\Builder|static
  18519. * @static
  18520. */
  18521. public static function orWhereMorphRelation($relation, $types, $column, $operator = null, $value = null)
  18522. {
  18523. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18524. return $instance->orWhereMorphRelation($relation, $types, $column, $operator, $value);
  18525. }
  18526. /**
  18527. * Add a morph-to relationship condition to the query.
  18528. *
  18529. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18530. * @param \Illuminate\Database\Eloquent\Model|string $model
  18531. * @return \Illuminate\Database\Eloquent\Builder|static
  18532. * @static
  18533. */
  18534. public static function whereMorphedTo($relation, $model, $boolean = 'and')
  18535. {
  18536. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18537. return $instance->whereMorphedTo($relation, $model, $boolean);
  18538. }
  18539. /**
  18540. * Add a morph-to relationship condition to the query with an "or where" clause.
  18541. *
  18542. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  18543. * @param \Illuminate\Database\Eloquent\Model|string $model
  18544. * @return \Illuminate\Database\Eloquent\Builder|static
  18545. * @static
  18546. */
  18547. public static function orWhereMorphedTo($relation, $model)
  18548. {
  18549. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18550. return $instance->orWhereMorphedTo($relation, $model);
  18551. }
  18552. /**
  18553. * Add a "belongs to" relationship where clause to the query.
  18554. *
  18555. * @param \Illuminate\Database\Eloquent\Model $related
  18556. * @param string $relationship
  18557. * @param string $boolean
  18558. * @return \Illuminate\Database\Eloquent\Builder|static
  18559. * @throws \RuntimeException
  18560. * @static
  18561. */
  18562. public static function whereBelongsTo($related, $relationshipName = null, $boolean = 'and')
  18563. {
  18564. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18565. return $instance->whereBelongsTo($related, $relationshipName, $boolean);
  18566. }
  18567. /**
  18568. * Add an "BelongsTo" relationship with an "or where" clause to the query.
  18569. *
  18570. * @param \Illuminate\Database\Eloquent\Model $related
  18571. * @param string $relationship
  18572. * @return \Illuminate\Database\Eloquent\Builder|static
  18573. * @throws \RuntimeException
  18574. * @static
  18575. */
  18576. public static function orWhereBelongsTo($related, $relationshipName = null)
  18577. {
  18578. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18579. return $instance->orWhereBelongsTo($related, $relationshipName);
  18580. }
  18581. /**
  18582. * Add subselect queries to include an aggregate value for a relationship.
  18583. *
  18584. * @param mixed $relations
  18585. * @param string $column
  18586. * @param string $function
  18587. * @return \Illuminate\Database\Eloquent\Builder|static
  18588. * @static
  18589. */
  18590. public static function withAggregate($relations, $column, $function = null)
  18591. {
  18592. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18593. return $instance->withAggregate($relations, $column, $function);
  18594. }
  18595. /**
  18596. * Add subselect queries to count the relations.
  18597. *
  18598. * @param mixed $relations
  18599. * @return \Illuminate\Database\Eloquent\Builder|static
  18600. * @static
  18601. */
  18602. public static function withCount($relations)
  18603. {
  18604. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18605. return $instance->withCount($relations);
  18606. }
  18607. /**
  18608. * Add subselect queries to include the max of the relation's column.
  18609. *
  18610. * @param string|array $relation
  18611. * @param string $column
  18612. * @return \Illuminate\Database\Eloquent\Builder|static
  18613. * @static
  18614. */
  18615. public static function withMax($relation, $column)
  18616. {
  18617. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18618. return $instance->withMax($relation, $column);
  18619. }
  18620. /**
  18621. * Add subselect queries to include the min of the relation's column.
  18622. *
  18623. * @param string|array $relation
  18624. * @param string $column
  18625. * @return \Illuminate\Database\Eloquent\Builder|static
  18626. * @static
  18627. */
  18628. public static function withMin($relation, $column)
  18629. {
  18630. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18631. return $instance->withMin($relation, $column);
  18632. }
  18633. /**
  18634. * Add subselect queries to include the sum of the relation's column.
  18635. *
  18636. * @param string|array $relation
  18637. * @param string $column
  18638. * @return \Illuminate\Database\Eloquent\Builder|static
  18639. * @static
  18640. */
  18641. public static function withSum($relation, $column)
  18642. {
  18643. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18644. return $instance->withSum($relation, $column);
  18645. }
  18646. /**
  18647. * Add subselect queries to include the average of the relation's column.
  18648. *
  18649. * @param string|array $relation
  18650. * @param string $column
  18651. * @return \Illuminate\Database\Eloquent\Builder|static
  18652. * @static
  18653. */
  18654. public static function withAvg($relation, $column)
  18655. {
  18656. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18657. return $instance->withAvg($relation, $column);
  18658. }
  18659. /**
  18660. * Add subselect queries to include the existence of related models.
  18661. *
  18662. * @param string|array $relation
  18663. * @return \Illuminate\Database\Eloquent\Builder|static
  18664. * @static
  18665. */
  18666. public static function withExists($relation)
  18667. {
  18668. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18669. return $instance->withExists($relation);
  18670. }
  18671. /**
  18672. * Merge the where constraints from another query to the current query.
  18673. *
  18674. * @param \Illuminate\Database\Eloquent\Builder $from
  18675. * @return \Illuminate\Database\Eloquent\Builder|static
  18676. * @static
  18677. */
  18678. public static function mergeConstraintsFrom($from)
  18679. {
  18680. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18681. return $instance->mergeConstraintsFrom($from);
  18682. }
  18683. /**
  18684. * Chunk the results of the query.
  18685. *
  18686. * @param int $count
  18687. * @param callable $callback
  18688. * @return bool
  18689. * @static
  18690. */
  18691. public static function chunk($count, $callback)
  18692. {
  18693. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18694. return $instance->chunk($count, $callback);
  18695. }
  18696. /**
  18697. * Run a map over each item while chunking.
  18698. *
  18699. * @param callable $callback
  18700. * @param int $count
  18701. * @return \Illuminate\Support\Collection
  18702. * @static
  18703. */
  18704. public static function chunkMap($callback, $count = 1000)
  18705. {
  18706. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18707. return $instance->chunkMap($callback, $count);
  18708. }
  18709. /**
  18710. * Execute a callback over each item while chunking.
  18711. *
  18712. * @param callable $callback
  18713. * @param int $count
  18714. * @return bool
  18715. * @throws \RuntimeException
  18716. * @static
  18717. */
  18718. public static function each($callback, $count = 1000)
  18719. {
  18720. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18721. return $instance->each($callback, $count);
  18722. }
  18723. /**
  18724. * Chunk the results of a query by comparing IDs.
  18725. *
  18726. * @param int $count
  18727. * @param callable $callback
  18728. * @param string|null $column
  18729. * @param string|null $alias
  18730. * @return bool
  18731. * @static
  18732. */
  18733. public static function chunkById($count, $callback, $column = null, $alias = null)
  18734. {
  18735. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18736. return $instance->chunkById($count, $callback, $column, $alias);
  18737. }
  18738. /**
  18739. * Execute a callback over each item while chunking by ID.
  18740. *
  18741. * @param callable $callback
  18742. * @param int $count
  18743. * @param string|null $column
  18744. * @param string|null $alias
  18745. * @return bool
  18746. * @static
  18747. */
  18748. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  18749. {
  18750. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18751. return $instance->eachById($callback, $count, $column, $alias);
  18752. }
  18753. /**
  18754. * Query lazily, by chunks of the given size.
  18755. *
  18756. * @param int $chunkSize
  18757. * @return \Illuminate\Support\LazyCollection
  18758. * @throws \InvalidArgumentException
  18759. * @static
  18760. */
  18761. public static function lazy($chunkSize = 1000)
  18762. {
  18763. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18764. return $instance->lazy($chunkSize);
  18765. }
  18766. /**
  18767. * Query lazily, by chunking the results of a query by comparing IDs.
  18768. *
  18769. * @param int $chunkSize
  18770. * @param string|null $column
  18771. * @param string|null $alias
  18772. * @return \Illuminate\Support\LazyCollection
  18773. * @throws \InvalidArgumentException
  18774. * @static
  18775. */
  18776. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  18777. {
  18778. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18779. return $instance->lazyById($chunkSize, $column, $alias);
  18780. }
  18781. /**
  18782. * Query lazily, by chunking the results of a query by comparing IDs in descending order.
  18783. *
  18784. * @param int $chunkSize
  18785. * @param string|null $column
  18786. * @param string|null $alias
  18787. * @return \Illuminate\Support\LazyCollection
  18788. * @throws \InvalidArgumentException
  18789. * @static
  18790. */
  18791. public static function lazyByIdDesc($chunkSize = 1000, $column = null, $alias = null)
  18792. {
  18793. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18794. return $instance->lazyByIdDesc($chunkSize, $column, $alias);
  18795. }
  18796. /**
  18797. * Execute the query and get the first result.
  18798. *
  18799. * @param array|string $columns
  18800. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  18801. * @static
  18802. */
  18803. public static function first($columns = [])
  18804. {
  18805. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18806. return $instance->first($columns);
  18807. }
  18808. /**
  18809. * Execute the query and get the first result if it's the sole matching record.
  18810. *
  18811. * @param array|string $columns
  18812. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  18813. * @throws \Illuminate\Database\RecordsNotFoundException
  18814. * @throws \Illuminate\Database\MultipleRecordsFoundException
  18815. * @static
  18816. */
  18817. public static function baseSole($columns = [])
  18818. {
  18819. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18820. return $instance->baseSole($columns);
  18821. }
  18822. /**
  18823. * Pass the query to a given callback.
  18824. *
  18825. * @param callable $callback
  18826. * @return $this|mixed
  18827. * @static
  18828. */
  18829. public static function tap($callback)
  18830. {
  18831. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18832. return $instance->tap($callback);
  18833. }
  18834. /**
  18835. * Apply the callback if the given "value" is truthy.
  18836. *
  18837. * @param mixed $value
  18838. * @param callable $callback
  18839. * @param callable|null $default
  18840. * @return $this|mixed
  18841. * @static
  18842. */
  18843. public static function when($value, $callback, $default = null)
  18844. {
  18845. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18846. return $instance->when($value, $callback, $default);
  18847. }
  18848. /**
  18849. * Apply the callback if the given "value" is falsy.
  18850. *
  18851. * @param mixed $value
  18852. * @param callable $callback
  18853. * @param callable|null $default
  18854. * @return $this|mixed
  18855. * @static
  18856. */
  18857. public static function unless($value, $callback, $default = null)
  18858. {
  18859. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  18860. return $instance->unless($value, $callback, $default);
  18861. }
  18862. /**
  18863. * Set the columns to be selected.
  18864. *
  18865. * @param array|mixed $columns
  18866. * @return \Illuminate\Database\Query\Builder
  18867. * @static
  18868. */
  18869. public static function select($columns = [])
  18870. {
  18871. /** @var \Illuminate\Database\Query\Builder $instance */
  18872. return $instance->select($columns);
  18873. }
  18874. /**
  18875. * Add a subselect expression to the query.
  18876. *
  18877. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  18878. * @param string $as
  18879. * @return \Illuminate\Database\Query\Builder
  18880. * @throws \InvalidArgumentException
  18881. * @static
  18882. */
  18883. public static function selectSub($query, $as)
  18884. {
  18885. /** @var \Illuminate\Database\Query\Builder $instance */
  18886. return $instance->selectSub($query, $as);
  18887. }
  18888. /**
  18889. * Add a new "raw" select expression to the query.
  18890. *
  18891. * @param string $expression
  18892. * @param array $bindings
  18893. * @return \Illuminate\Database\Query\Builder
  18894. * @static
  18895. */
  18896. public static function selectRaw($expression, $bindings = [])
  18897. {
  18898. /** @var \Illuminate\Database\Query\Builder $instance */
  18899. return $instance->selectRaw($expression, $bindings);
  18900. }
  18901. /**
  18902. * Makes "from" fetch from a subquery.
  18903. *
  18904. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  18905. * @param string $as
  18906. * @return \Illuminate\Database\Query\Builder
  18907. * @throws \InvalidArgumentException
  18908. * @static
  18909. */
  18910. public static function fromSub($query, $as)
  18911. {
  18912. /** @var \Illuminate\Database\Query\Builder $instance */
  18913. return $instance->fromSub($query, $as);
  18914. }
  18915. /**
  18916. * Add a raw from clause to the query.
  18917. *
  18918. * @param string $expression
  18919. * @param mixed $bindings
  18920. * @return \Illuminate\Database\Query\Builder
  18921. * @static
  18922. */
  18923. public static function fromRaw($expression, $bindings = [])
  18924. {
  18925. /** @var \Illuminate\Database\Query\Builder $instance */
  18926. return $instance->fromRaw($expression, $bindings);
  18927. }
  18928. /**
  18929. * Add a new select column to the query.
  18930. *
  18931. * @param array|mixed $column
  18932. * @return \Illuminate\Database\Query\Builder
  18933. * @static
  18934. */
  18935. public static function addSelect($column)
  18936. {
  18937. /** @var \Illuminate\Database\Query\Builder $instance */
  18938. return $instance->addSelect($column);
  18939. }
  18940. /**
  18941. * Force the query to only return distinct results.
  18942. *
  18943. * @param mixed $distinct
  18944. * @return \Illuminate\Database\Query\Builder
  18945. * @static
  18946. */
  18947. public static function distinct()
  18948. {
  18949. /** @var \Illuminate\Database\Query\Builder $instance */
  18950. return $instance->distinct();
  18951. }
  18952. /**
  18953. * Set the table which the query is targeting.
  18954. *
  18955. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  18956. * @param string|null $as
  18957. * @return \Illuminate\Database\Query\Builder
  18958. * @static
  18959. */
  18960. public static function from($table, $as = null)
  18961. {
  18962. /** @var \Illuminate\Database\Query\Builder $instance */
  18963. return $instance->from($table, $as);
  18964. }
  18965. /**
  18966. * Add a join clause to the query.
  18967. *
  18968. * @param string $table
  18969. * @param \Closure|string $first
  18970. * @param string|null $operator
  18971. * @param string|null $second
  18972. * @param string $type
  18973. * @param bool $where
  18974. * @return \Illuminate\Database\Query\Builder
  18975. * @static
  18976. */
  18977. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  18978. {
  18979. /** @var \Illuminate\Database\Query\Builder $instance */
  18980. return $instance->join($table, $first, $operator, $second, $type, $where);
  18981. }
  18982. /**
  18983. * Add a "join where" clause to the query.
  18984. *
  18985. * @param string $table
  18986. * @param \Closure|string $first
  18987. * @param string $operator
  18988. * @param string $second
  18989. * @param string $type
  18990. * @return \Illuminate\Database\Query\Builder
  18991. * @static
  18992. */
  18993. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  18994. {
  18995. /** @var \Illuminate\Database\Query\Builder $instance */
  18996. return $instance->joinWhere($table, $first, $operator, $second, $type);
  18997. }
  18998. /**
  18999. * Add a subquery join clause to the query.
  19000. *
  19001. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19002. * @param string $as
  19003. * @param \Closure|string $first
  19004. * @param string|null $operator
  19005. * @param string|null $second
  19006. * @param string $type
  19007. * @param bool $where
  19008. * @return \Illuminate\Database\Query\Builder
  19009. * @throws \InvalidArgumentException
  19010. * @static
  19011. */
  19012. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  19013. {
  19014. /** @var \Illuminate\Database\Query\Builder $instance */
  19015. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  19016. }
  19017. /**
  19018. * Add a left join to the query.
  19019. *
  19020. * @param string $table
  19021. * @param \Closure|string $first
  19022. * @param string|null $operator
  19023. * @param string|null $second
  19024. * @return \Illuminate\Database\Query\Builder
  19025. * @static
  19026. */
  19027. public static function leftJoin($table, $first, $operator = null, $second = null)
  19028. {
  19029. /** @var \Illuminate\Database\Query\Builder $instance */
  19030. return $instance->leftJoin($table, $first, $operator, $second);
  19031. }
  19032. /**
  19033. * Add a "join where" clause to the query.
  19034. *
  19035. * @param string $table
  19036. * @param \Closure|string $first
  19037. * @param string $operator
  19038. * @param string $second
  19039. * @return \Illuminate\Database\Query\Builder
  19040. * @static
  19041. */
  19042. public static function leftJoinWhere($table, $first, $operator, $second)
  19043. {
  19044. /** @var \Illuminate\Database\Query\Builder $instance */
  19045. return $instance->leftJoinWhere($table, $first, $operator, $second);
  19046. }
  19047. /**
  19048. * Add a subquery left join to the query.
  19049. *
  19050. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19051. * @param string $as
  19052. * @param \Closure|string $first
  19053. * @param string|null $operator
  19054. * @param string|null $second
  19055. * @return \Illuminate\Database\Query\Builder
  19056. * @static
  19057. */
  19058. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  19059. {
  19060. /** @var \Illuminate\Database\Query\Builder $instance */
  19061. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  19062. }
  19063. /**
  19064. * Add a right join to the query.
  19065. *
  19066. * @param string $table
  19067. * @param \Closure|string $first
  19068. * @param string|null $operator
  19069. * @param string|null $second
  19070. * @return \Illuminate\Database\Query\Builder
  19071. * @static
  19072. */
  19073. public static function rightJoin($table, $first, $operator = null, $second = null)
  19074. {
  19075. /** @var \Illuminate\Database\Query\Builder $instance */
  19076. return $instance->rightJoin($table, $first, $operator, $second);
  19077. }
  19078. /**
  19079. * Add a "right join where" clause to the query.
  19080. *
  19081. * @param string $table
  19082. * @param \Closure|string $first
  19083. * @param string $operator
  19084. * @param string $second
  19085. * @return \Illuminate\Database\Query\Builder
  19086. * @static
  19087. */
  19088. public static function rightJoinWhere($table, $first, $operator, $second)
  19089. {
  19090. /** @var \Illuminate\Database\Query\Builder $instance */
  19091. return $instance->rightJoinWhere($table, $first, $operator, $second);
  19092. }
  19093. /**
  19094. * Add a subquery right join to the query.
  19095. *
  19096. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  19097. * @param string $as
  19098. * @param \Closure|string $first
  19099. * @param string|null $operator
  19100. * @param string|null $second
  19101. * @return \Illuminate\Database\Query\Builder
  19102. * @static
  19103. */
  19104. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  19105. {
  19106. /** @var \Illuminate\Database\Query\Builder $instance */
  19107. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  19108. }
  19109. /**
  19110. * Add a "cross join" clause to the query.
  19111. *
  19112. * @param string $table
  19113. * @param \Closure|string|null $first
  19114. * @param string|null $operator
  19115. * @param string|null $second
  19116. * @return \Illuminate\Database\Query\Builder
  19117. * @static
  19118. */
  19119. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  19120. {
  19121. /** @var \Illuminate\Database\Query\Builder $instance */
  19122. return $instance->crossJoin($table, $first, $operator, $second);
  19123. }
  19124. /**
  19125. * Add a subquery cross join to the query.
  19126. *
  19127. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  19128. * @param string $as
  19129. * @return \Illuminate\Database\Query\Builder
  19130. * @static
  19131. */
  19132. public static function crossJoinSub($query, $as)
  19133. {
  19134. /** @var \Illuminate\Database\Query\Builder $instance */
  19135. return $instance->crossJoinSub($query, $as);
  19136. }
  19137. /**
  19138. * Merge an array of where clauses and bindings.
  19139. *
  19140. * @param array $wheres
  19141. * @param array $bindings
  19142. * @return void
  19143. * @static
  19144. */
  19145. public static function mergeWheres($wheres, $bindings)
  19146. {
  19147. /** @var \Illuminate\Database\Query\Builder $instance */
  19148. $instance->mergeWheres($wheres, $bindings);
  19149. }
  19150. /**
  19151. * Prepare the value and operator for a where clause.
  19152. *
  19153. * @param string $value
  19154. * @param string $operator
  19155. * @param bool $useDefault
  19156. * @return array
  19157. * @throws \InvalidArgumentException
  19158. * @static
  19159. */
  19160. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  19161. {
  19162. /** @var \Illuminate\Database\Query\Builder $instance */
  19163. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  19164. }
  19165. /**
  19166. * Add a "where" clause comparing two columns to the query.
  19167. *
  19168. * @param string|array $first
  19169. * @param string|null $operator
  19170. * @param string|null $second
  19171. * @param string|null $boolean
  19172. * @return \Illuminate\Database\Query\Builder
  19173. * @static
  19174. */
  19175. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  19176. {
  19177. /** @var \Illuminate\Database\Query\Builder $instance */
  19178. return $instance->whereColumn($first, $operator, $second, $boolean);
  19179. }
  19180. /**
  19181. * Add an "or where" clause comparing two columns to the query.
  19182. *
  19183. * @param string|array $first
  19184. * @param string|null $operator
  19185. * @param string|null $second
  19186. * @return \Illuminate\Database\Query\Builder
  19187. * @static
  19188. */
  19189. public static function orWhereColumn($first, $operator = null, $second = null)
  19190. {
  19191. /** @var \Illuminate\Database\Query\Builder $instance */
  19192. return $instance->orWhereColumn($first, $operator, $second);
  19193. }
  19194. /**
  19195. * Add a raw where clause to the query.
  19196. *
  19197. * @param string $sql
  19198. * @param mixed $bindings
  19199. * @param string $boolean
  19200. * @return \Illuminate\Database\Query\Builder
  19201. * @static
  19202. */
  19203. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  19204. {
  19205. /** @var \Illuminate\Database\Query\Builder $instance */
  19206. return $instance->whereRaw($sql, $bindings, $boolean);
  19207. }
  19208. /**
  19209. * Add a raw or where clause to the query.
  19210. *
  19211. * @param string $sql
  19212. * @param mixed $bindings
  19213. * @return \Illuminate\Database\Query\Builder
  19214. * @static
  19215. */
  19216. public static function orWhereRaw($sql, $bindings = [])
  19217. {
  19218. /** @var \Illuminate\Database\Query\Builder $instance */
  19219. return $instance->orWhereRaw($sql, $bindings);
  19220. }
  19221. /**
  19222. * Add a "where in" clause to the query.
  19223. *
  19224. * @param string $column
  19225. * @param mixed $values
  19226. * @param string $boolean
  19227. * @param bool $not
  19228. * @return \Illuminate\Database\Query\Builder
  19229. * @static
  19230. */
  19231. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  19232. {
  19233. /** @var \Illuminate\Database\Query\Builder $instance */
  19234. return $instance->whereIn($column, $values, $boolean, $not);
  19235. }
  19236. /**
  19237. * Add an "or where in" clause to the query.
  19238. *
  19239. * @param string $column
  19240. * @param mixed $values
  19241. * @return \Illuminate\Database\Query\Builder
  19242. * @static
  19243. */
  19244. public static function orWhereIn($column, $values)
  19245. {
  19246. /** @var \Illuminate\Database\Query\Builder $instance */
  19247. return $instance->orWhereIn($column, $values);
  19248. }
  19249. /**
  19250. * Add a "where not in" clause to the query.
  19251. *
  19252. * @param string $column
  19253. * @param mixed $values
  19254. * @param string $boolean
  19255. * @return \Illuminate\Database\Query\Builder
  19256. * @static
  19257. */
  19258. public static function whereNotIn($column, $values, $boolean = 'and')
  19259. {
  19260. /** @var \Illuminate\Database\Query\Builder $instance */
  19261. return $instance->whereNotIn($column, $values, $boolean);
  19262. }
  19263. /**
  19264. * Add an "or where not in" clause to the query.
  19265. *
  19266. * @param string $column
  19267. * @param mixed $values
  19268. * @return \Illuminate\Database\Query\Builder
  19269. * @static
  19270. */
  19271. public static function orWhereNotIn($column, $values)
  19272. {
  19273. /** @var \Illuminate\Database\Query\Builder $instance */
  19274. return $instance->orWhereNotIn($column, $values);
  19275. }
  19276. /**
  19277. * Add a "where in raw" clause for integer values to the query.
  19278. *
  19279. * @param string $column
  19280. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19281. * @param string $boolean
  19282. * @param bool $not
  19283. * @return \Illuminate\Database\Query\Builder
  19284. * @static
  19285. */
  19286. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  19287. {
  19288. /** @var \Illuminate\Database\Query\Builder $instance */
  19289. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  19290. }
  19291. /**
  19292. * Add an "or where in raw" clause for integer values to the query.
  19293. *
  19294. * @param string $column
  19295. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19296. * @return \Illuminate\Database\Query\Builder
  19297. * @static
  19298. */
  19299. public static function orWhereIntegerInRaw($column, $values)
  19300. {
  19301. /** @var \Illuminate\Database\Query\Builder $instance */
  19302. return $instance->orWhereIntegerInRaw($column, $values);
  19303. }
  19304. /**
  19305. * Add a "where not in raw" clause for integer values to the query.
  19306. *
  19307. * @param string $column
  19308. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19309. * @param string $boolean
  19310. * @return \Illuminate\Database\Query\Builder
  19311. * @static
  19312. */
  19313. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  19314. {
  19315. /** @var \Illuminate\Database\Query\Builder $instance */
  19316. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  19317. }
  19318. /**
  19319. * Add an "or where not in raw" clause for integer values to the query.
  19320. *
  19321. * @param string $column
  19322. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  19323. * @return \Illuminate\Database\Query\Builder
  19324. * @static
  19325. */
  19326. public static function orWhereIntegerNotInRaw($column, $values)
  19327. {
  19328. /** @var \Illuminate\Database\Query\Builder $instance */
  19329. return $instance->orWhereIntegerNotInRaw($column, $values);
  19330. }
  19331. /**
  19332. * Add a "where null" clause to the query.
  19333. *
  19334. * @param string|array $columns
  19335. * @param string $boolean
  19336. * @param bool $not
  19337. * @return \Illuminate\Database\Query\Builder
  19338. * @static
  19339. */
  19340. public static function whereNull($columns, $boolean = 'and', $not = false)
  19341. {
  19342. /** @var \Illuminate\Database\Query\Builder $instance */
  19343. return $instance->whereNull($columns, $boolean, $not);
  19344. }
  19345. /**
  19346. * Add an "or where null" clause to the query.
  19347. *
  19348. * @param string|array $column
  19349. * @return \Illuminate\Database\Query\Builder
  19350. * @static
  19351. */
  19352. public static function orWhereNull($column)
  19353. {
  19354. /** @var \Illuminate\Database\Query\Builder $instance */
  19355. return $instance->orWhereNull($column);
  19356. }
  19357. /**
  19358. * Add a "where not null" clause to the query.
  19359. *
  19360. * @param string|array $columns
  19361. * @param string $boolean
  19362. * @return \Illuminate\Database\Query\Builder
  19363. * @static
  19364. */
  19365. public static function whereNotNull($columns, $boolean = 'and')
  19366. {
  19367. /** @var \Illuminate\Database\Query\Builder $instance */
  19368. return $instance->whereNotNull($columns, $boolean);
  19369. }
  19370. /**
  19371. * Add a where between statement to the query.
  19372. *
  19373. * @param string|\Illuminate\Database\Query\Expression $column
  19374. * @param array $values
  19375. * @param string $boolean
  19376. * @param bool $not
  19377. * @return \Illuminate\Database\Query\Builder
  19378. * @static
  19379. */
  19380. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  19381. {
  19382. /** @var \Illuminate\Database\Query\Builder $instance */
  19383. return $instance->whereBetween($column, $values, $boolean, $not);
  19384. }
  19385. /**
  19386. * Add a where between statement using columns to the query.
  19387. *
  19388. * @param string $column
  19389. * @param array $values
  19390. * @param string $boolean
  19391. * @param bool $not
  19392. * @return \Illuminate\Database\Query\Builder
  19393. * @static
  19394. */
  19395. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  19396. {
  19397. /** @var \Illuminate\Database\Query\Builder $instance */
  19398. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  19399. }
  19400. /**
  19401. * Add an or where between statement to the query.
  19402. *
  19403. * @param string $column
  19404. * @param array $values
  19405. * @return \Illuminate\Database\Query\Builder
  19406. * @static
  19407. */
  19408. public static function orWhereBetween($column, $values)
  19409. {
  19410. /** @var \Illuminate\Database\Query\Builder $instance */
  19411. return $instance->orWhereBetween($column, $values);
  19412. }
  19413. /**
  19414. * Add an or where between statement using columns to the query.
  19415. *
  19416. * @param string $column
  19417. * @param array $values
  19418. * @return \Illuminate\Database\Query\Builder
  19419. * @static
  19420. */
  19421. public static function orWhereBetweenColumns($column, $values)
  19422. {
  19423. /** @var \Illuminate\Database\Query\Builder $instance */
  19424. return $instance->orWhereBetweenColumns($column, $values);
  19425. }
  19426. /**
  19427. * Add a where not between statement to the query.
  19428. *
  19429. * @param string $column
  19430. * @param array $values
  19431. * @param string $boolean
  19432. * @return \Illuminate\Database\Query\Builder
  19433. * @static
  19434. */
  19435. public static function whereNotBetween($column, $values, $boolean = 'and')
  19436. {
  19437. /** @var \Illuminate\Database\Query\Builder $instance */
  19438. return $instance->whereNotBetween($column, $values, $boolean);
  19439. }
  19440. /**
  19441. * Add a where not between statement using columns to the query.
  19442. *
  19443. * @param string $column
  19444. * @param array $values
  19445. * @param string $boolean
  19446. * @return \Illuminate\Database\Query\Builder
  19447. * @static
  19448. */
  19449. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  19450. {
  19451. /** @var \Illuminate\Database\Query\Builder $instance */
  19452. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  19453. }
  19454. /**
  19455. * Add an or where not between statement to the query.
  19456. *
  19457. * @param string $column
  19458. * @param array $values
  19459. * @return \Illuminate\Database\Query\Builder
  19460. * @static
  19461. */
  19462. public static function orWhereNotBetween($column, $values)
  19463. {
  19464. /** @var \Illuminate\Database\Query\Builder $instance */
  19465. return $instance->orWhereNotBetween($column, $values);
  19466. }
  19467. /**
  19468. * Add an or where not between statement using columns to the query.
  19469. *
  19470. * @param string $column
  19471. * @param array $values
  19472. * @return \Illuminate\Database\Query\Builder
  19473. * @static
  19474. */
  19475. public static function orWhereNotBetweenColumns($column, $values)
  19476. {
  19477. /** @var \Illuminate\Database\Query\Builder $instance */
  19478. return $instance->orWhereNotBetweenColumns($column, $values);
  19479. }
  19480. /**
  19481. * Add an "or where not null" clause to the query.
  19482. *
  19483. * @param string $column
  19484. * @return \Illuminate\Database\Query\Builder
  19485. * @static
  19486. */
  19487. public static function orWhereNotNull($column)
  19488. {
  19489. /** @var \Illuminate\Database\Query\Builder $instance */
  19490. return $instance->orWhereNotNull($column);
  19491. }
  19492. /**
  19493. * Add a "where date" statement to the query.
  19494. *
  19495. * @param \Illuminate\Database\Query\Expression|string $column
  19496. * @param string $operator
  19497. * @param \DateTimeInterface|string|null $value
  19498. * @param string $boolean
  19499. * @return \Illuminate\Database\Query\Builder
  19500. * @static
  19501. */
  19502. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  19503. {
  19504. /** @var \Illuminate\Database\Query\Builder $instance */
  19505. return $instance->whereDate($column, $operator, $value, $boolean);
  19506. }
  19507. /**
  19508. * Add an "or where date" statement to the query.
  19509. *
  19510. * @param string $column
  19511. * @param string $operator
  19512. * @param \DateTimeInterface|string|null $value
  19513. * @return \Illuminate\Database\Query\Builder
  19514. * @static
  19515. */
  19516. public static function orWhereDate($column, $operator, $value = null)
  19517. {
  19518. /** @var \Illuminate\Database\Query\Builder $instance */
  19519. return $instance->orWhereDate($column, $operator, $value);
  19520. }
  19521. /**
  19522. * Add a "where time" statement to the query.
  19523. *
  19524. * @param string $column
  19525. * @param string $operator
  19526. * @param \DateTimeInterface|string|null $value
  19527. * @param string $boolean
  19528. * @return \Illuminate\Database\Query\Builder
  19529. * @static
  19530. */
  19531. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  19532. {
  19533. /** @var \Illuminate\Database\Query\Builder $instance */
  19534. return $instance->whereTime($column, $operator, $value, $boolean);
  19535. }
  19536. /**
  19537. * Add an "or where time" statement to the query.
  19538. *
  19539. * @param string $column
  19540. * @param string $operator
  19541. * @param \DateTimeInterface|string|null $value
  19542. * @return \Illuminate\Database\Query\Builder
  19543. * @static
  19544. */
  19545. public static function orWhereTime($column, $operator, $value = null)
  19546. {
  19547. /** @var \Illuminate\Database\Query\Builder $instance */
  19548. return $instance->orWhereTime($column, $operator, $value);
  19549. }
  19550. /**
  19551. * Add a "where day" statement to the query.
  19552. *
  19553. * @param string $column
  19554. * @param string $operator
  19555. * @param \DateTimeInterface|string|null $value
  19556. * @param string $boolean
  19557. * @return \Illuminate\Database\Query\Builder
  19558. * @static
  19559. */
  19560. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  19561. {
  19562. /** @var \Illuminate\Database\Query\Builder $instance */
  19563. return $instance->whereDay($column, $operator, $value, $boolean);
  19564. }
  19565. /**
  19566. * Add an "or where day" statement to the query.
  19567. *
  19568. * @param string $column
  19569. * @param string $operator
  19570. * @param \DateTimeInterface|string|null $value
  19571. * @return \Illuminate\Database\Query\Builder
  19572. * @static
  19573. */
  19574. public static function orWhereDay($column, $operator, $value = null)
  19575. {
  19576. /** @var \Illuminate\Database\Query\Builder $instance */
  19577. return $instance->orWhereDay($column, $operator, $value);
  19578. }
  19579. /**
  19580. * Add a "where month" statement to the query.
  19581. *
  19582. * @param string $column
  19583. * @param string $operator
  19584. * @param \DateTimeInterface|string|null $value
  19585. * @param string $boolean
  19586. * @return \Illuminate\Database\Query\Builder
  19587. * @static
  19588. */
  19589. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  19590. {
  19591. /** @var \Illuminate\Database\Query\Builder $instance */
  19592. return $instance->whereMonth($column, $operator, $value, $boolean);
  19593. }
  19594. /**
  19595. * Add an "or where month" statement to the query.
  19596. *
  19597. * @param string $column
  19598. * @param string $operator
  19599. * @param \DateTimeInterface|string|null $value
  19600. * @return \Illuminate\Database\Query\Builder
  19601. * @static
  19602. */
  19603. public static function orWhereMonth($column, $operator, $value = null)
  19604. {
  19605. /** @var \Illuminate\Database\Query\Builder $instance */
  19606. return $instance->orWhereMonth($column, $operator, $value);
  19607. }
  19608. /**
  19609. * Add a "where year" statement to the query.
  19610. *
  19611. * @param string $column
  19612. * @param string $operator
  19613. * @param \DateTimeInterface|string|int|null $value
  19614. * @param string $boolean
  19615. * @return \Illuminate\Database\Query\Builder
  19616. * @static
  19617. */
  19618. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  19619. {
  19620. /** @var \Illuminate\Database\Query\Builder $instance */
  19621. return $instance->whereYear($column, $operator, $value, $boolean);
  19622. }
  19623. /**
  19624. * Add an "or where year" statement to the query.
  19625. *
  19626. * @param string $column
  19627. * @param string $operator
  19628. * @param \DateTimeInterface|string|int|null $value
  19629. * @return \Illuminate\Database\Query\Builder
  19630. * @static
  19631. */
  19632. public static function orWhereYear($column, $operator, $value = null)
  19633. {
  19634. /** @var \Illuminate\Database\Query\Builder $instance */
  19635. return $instance->orWhereYear($column, $operator, $value);
  19636. }
  19637. /**
  19638. * Add a nested where statement to the query.
  19639. *
  19640. * @param \Closure $callback
  19641. * @param string $boolean
  19642. * @return \Illuminate\Database\Query\Builder
  19643. * @static
  19644. */
  19645. public static function whereNested($callback, $boolean = 'and')
  19646. {
  19647. /** @var \Illuminate\Database\Query\Builder $instance */
  19648. return $instance->whereNested($callback, $boolean);
  19649. }
  19650. /**
  19651. * Create a new query instance for nested where condition.
  19652. *
  19653. * @return \Illuminate\Database\Query\Builder
  19654. * @static
  19655. */
  19656. public static function forNestedWhere()
  19657. {
  19658. /** @var \Illuminate\Database\Query\Builder $instance */
  19659. return $instance->forNestedWhere();
  19660. }
  19661. /**
  19662. * Add another query builder as a nested where to the query builder.
  19663. *
  19664. * @param \Illuminate\Database\Query\Builder $query
  19665. * @param string $boolean
  19666. * @return \Illuminate\Database\Query\Builder
  19667. * @static
  19668. */
  19669. public static function addNestedWhereQuery($query, $boolean = 'and')
  19670. {
  19671. /** @var \Illuminate\Database\Query\Builder $instance */
  19672. return $instance->addNestedWhereQuery($query, $boolean);
  19673. }
  19674. /**
  19675. * Add an exists clause to the query.
  19676. *
  19677. * @param \Closure $callback
  19678. * @param string $boolean
  19679. * @param bool $not
  19680. * @return \Illuminate\Database\Query\Builder
  19681. * @static
  19682. */
  19683. public static function whereExists($callback, $boolean = 'and', $not = false)
  19684. {
  19685. /** @var \Illuminate\Database\Query\Builder $instance */
  19686. return $instance->whereExists($callback, $boolean, $not);
  19687. }
  19688. /**
  19689. * Add an or exists clause to the query.
  19690. *
  19691. * @param \Closure $callback
  19692. * @param bool $not
  19693. * @return \Illuminate\Database\Query\Builder
  19694. * @static
  19695. */
  19696. public static function orWhereExists($callback, $not = false)
  19697. {
  19698. /** @var \Illuminate\Database\Query\Builder $instance */
  19699. return $instance->orWhereExists($callback, $not);
  19700. }
  19701. /**
  19702. * Add a where not exists clause to the query.
  19703. *
  19704. * @param \Closure $callback
  19705. * @param string $boolean
  19706. * @return \Illuminate\Database\Query\Builder
  19707. * @static
  19708. */
  19709. public static function whereNotExists($callback, $boolean = 'and')
  19710. {
  19711. /** @var \Illuminate\Database\Query\Builder $instance */
  19712. return $instance->whereNotExists($callback, $boolean);
  19713. }
  19714. /**
  19715. * Add a where not exists clause to the query.
  19716. *
  19717. * @param \Closure $callback
  19718. * @return \Illuminate\Database\Query\Builder
  19719. * @static
  19720. */
  19721. public static function orWhereNotExists($callback)
  19722. {
  19723. /** @var \Illuminate\Database\Query\Builder $instance */
  19724. return $instance->orWhereNotExists($callback);
  19725. }
  19726. /**
  19727. * Add an exists clause to the query.
  19728. *
  19729. * @param \Illuminate\Database\Query\Builder $query
  19730. * @param string $boolean
  19731. * @param bool $not
  19732. * @return \Illuminate\Database\Query\Builder
  19733. * @static
  19734. */
  19735. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  19736. {
  19737. /** @var \Illuminate\Database\Query\Builder $instance */
  19738. return $instance->addWhereExistsQuery($query, $boolean, $not);
  19739. }
  19740. /**
  19741. * Adds a where condition using row values.
  19742. *
  19743. * @param array $columns
  19744. * @param string $operator
  19745. * @param array $values
  19746. * @param string $boolean
  19747. * @return \Illuminate\Database\Query\Builder
  19748. * @throws \InvalidArgumentException
  19749. * @static
  19750. */
  19751. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  19752. {
  19753. /** @var \Illuminate\Database\Query\Builder $instance */
  19754. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  19755. }
  19756. /**
  19757. * Adds an or where condition using row values.
  19758. *
  19759. * @param array $columns
  19760. * @param string $operator
  19761. * @param array $values
  19762. * @return \Illuminate\Database\Query\Builder
  19763. * @static
  19764. */
  19765. public static function orWhereRowValues($columns, $operator, $values)
  19766. {
  19767. /** @var \Illuminate\Database\Query\Builder $instance */
  19768. return $instance->orWhereRowValues($columns, $operator, $values);
  19769. }
  19770. /**
  19771. * Add a "where JSON contains" clause to the query.
  19772. *
  19773. * @param string $column
  19774. * @param mixed $value
  19775. * @param string $boolean
  19776. * @param bool $not
  19777. * @return \Illuminate\Database\Query\Builder
  19778. * @static
  19779. */
  19780. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  19781. {
  19782. /** @var \Illuminate\Database\Query\Builder $instance */
  19783. return $instance->whereJsonContains($column, $value, $boolean, $not);
  19784. }
  19785. /**
  19786. * Add an "or where JSON contains" clause to the query.
  19787. *
  19788. * @param string $column
  19789. * @param mixed $value
  19790. * @return \Illuminate\Database\Query\Builder
  19791. * @static
  19792. */
  19793. public static function orWhereJsonContains($column, $value)
  19794. {
  19795. /** @var \Illuminate\Database\Query\Builder $instance */
  19796. return $instance->orWhereJsonContains($column, $value);
  19797. }
  19798. /**
  19799. * Add a "where JSON not contains" clause to the query.
  19800. *
  19801. * @param string $column
  19802. * @param mixed $value
  19803. * @param string $boolean
  19804. * @return \Illuminate\Database\Query\Builder
  19805. * @static
  19806. */
  19807. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  19808. {
  19809. /** @var \Illuminate\Database\Query\Builder $instance */
  19810. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  19811. }
  19812. /**
  19813. * Add an "or where JSON not contains" clause to the query.
  19814. *
  19815. * @param string $column
  19816. * @param mixed $value
  19817. * @return \Illuminate\Database\Query\Builder
  19818. * @static
  19819. */
  19820. public static function orWhereJsonDoesntContain($column, $value)
  19821. {
  19822. /** @var \Illuminate\Database\Query\Builder $instance */
  19823. return $instance->orWhereJsonDoesntContain($column, $value);
  19824. }
  19825. /**
  19826. * Add a "where JSON length" clause to the query.
  19827. *
  19828. * @param string $column
  19829. * @param mixed $operator
  19830. * @param mixed $value
  19831. * @param string $boolean
  19832. * @return \Illuminate\Database\Query\Builder
  19833. * @static
  19834. */
  19835. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  19836. {
  19837. /** @var \Illuminate\Database\Query\Builder $instance */
  19838. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  19839. }
  19840. /**
  19841. * Add an "or where JSON length" clause to the query.
  19842. *
  19843. * @param string $column
  19844. * @param mixed $operator
  19845. * @param mixed $value
  19846. * @return \Illuminate\Database\Query\Builder
  19847. * @static
  19848. */
  19849. public static function orWhereJsonLength($column, $operator, $value = null)
  19850. {
  19851. /** @var \Illuminate\Database\Query\Builder $instance */
  19852. return $instance->orWhereJsonLength($column, $operator, $value);
  19853. }
  19854. /**
  19855. * Handles dynamic "where" clauses to the query.
  19856. *
  19857. * @param string $method
  19858. * @param array $parameters
  19859. * @return \Illuminate\Database\Query\Builder
  19860. * @static
  19861. */
  19862. public static function dynamicWhere($method, $parameters)
  19863. {
  19864. /** @var \Illuminate\Database\Query\Builder $instance */
  19865. return $instance->dynamicWhere($method, $parameters);
  19866. }
  19867. /**
  19868. * Add a "where fulltext" clause to the query.
  19869. *
  19870. * @param string|string[] $columns
  19871. * @param string $value
  19872. * @param string $boolean
  19873. * @return \Illuminate\Database\Query\Builder
  19874. * @static
  19875. */
  19876. public static function whereFullText($columns, $value, $options = [], $boolean = 'and')
  19877. {
  19878. /** @var \Illuminate\Database\Query\Builder $instance */
  19879. return $instance->whereFullText($columns, $value, $options, $boolean);
  19880. }
  19881. /**
  19882. * Add a "or where fulltext" clause to the query.
  19883. *
  19884. * @param string|string[] $columns
  19885. * @param string $value
  19886. * @return \Illuminate\Database\Query\Builder
  19887. * @static
  19888. */
  19889. public static function orWhereFullText($columns, $value, $options = [])
  19890. {
  19891. /** @var \Illuminate\Database\Query\Builder $instance */
  19892. return $instance->orWhereFullText($columns, $value, $options);
  19893. }
  19894. /**
  19895. * Add a "group by" clause to the query.
  19896. *
  19897. * @param array|string $groups
  19898. * @return \Illuminate\Database\Query\Builder
  19899. * @static
  19900. */
  19901. public static function groupBy(...$groups)
  19902. {
  19903. /** @var \Illuminate\Database\Query\Builder $instance */
  19904. return $instance->groupBy(...$groups);
  19905. }
  19906. /**
  19907. * Add a raw groupBy clause to the query.
  19908. *
  19909. * @param string $sql
  19910. * @param array $bindings
  19911. * @return \Illuminate\Database\Query\Builder
  19912. * @static
  19913. */
  19914. public static function groupByRaw($sql, $bindings = [])
  19915. {
  19916. /** @var \Illuminate\Database\Query\Builder $instance */
  19917. return $instance->groupByRaw($sql, $bindings);
  19918. }
  19919. /**
  19920. * Add a "having" clause to the query.
  19921. *
  19922. * @param string $column
  19923. * @param string|null $operator
  19924. * @param string|null $value
  19925. * @param string $boolean
  19926. * @return \Illuminate\Database\Query\Builder
  19927. * @static
  19928. */
  19929. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  19930. {
  19931. /** @var \Illuminate\Database\Query\Builder $instance */
  19932. return $instance->having($column, $operator, $value, $boolean);
  19933. }
  19934. /**
  19935. * Add an "or having" clause to the query.
  19936. *
  19937. * @param string $column
  19938. * @param string|null $operator
  19939. * @param string|null $value
  19940. * @return \Illuminate\Database\Query\Builder
  19941. * @static
  19942. */
  19943. public static function orHaving($column, $operator = null, $value = null)
  19944. {
  19945. /** @var \Illuminate\Database\Query\Builder $instance */
  19946. return $instance->orHaving($column, $operator, $value);
  19947. }
  19948. /**
  19949. * Add a "having between " clause to the query.
  19950. *
  19951. * @param string $column
  19952. * @param array $values
  19953. * @param string $boolean
  19954. * @param bool $not
  19955. * @return \Illuminate\Database\Query\Builder
  19956. * @static
  19957. */
  19958. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  19959. {
  19960. /** @var \Illuminate\Database\Query\Builder $instance */
  19961. return $instance->havingBetween($column, $values, $boolean, $not);
  19962. }
  19963. /**
  19964. * Add a raw having clause to the query.
  19965. *
  19966. * @param string $sql
  19967. * @param array $bindings
  19968. * @param string $boolean
  19969. * @return \Illuminate\Database\Query\Builder
  19970. * @static
  19971. */
  19972. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  19973. {
  19974. /** @var \Illuminate\Database\Query\Builder $instance */
  19975. return $instance->havingRaw($sql, $bindings, $boolean);
  19976. }
  19977. /**
  19978. * Add a raw or having clause to the query.
  19979. *
  19980. * @param string $sql
  19981. * @param array $bindings
  19982. * @return \Illuminate\Database\Query\Builder
  19983. * @static
  19984. */
  19985. public static function orHavingRaw($sql, $bindings = [])
  19986. {
  19987. /** @var \Illuminate\Database\Query\Builder $instance */
  19988. return $instance->orHavingRaw($sql, $bindings);
  19989. }
  19990. /**
  19991. * Add an "order by" clause to the query.
  19992. *
  19993. * @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  19994. * @param string $direction
  19995. * @return \Illuminate\Database\Query\Builder
  19996. * @throws \InvalidArgumentException
  19997. * @static
  19998. */
  19999. public static function orderBy($column, $direction = 'asc')
  20000. {
  20001. /** @var \Illuminate\Database\Query\Builder $instance */
  20002. return $instance->orderBy($column, $direction);
  20003. }
  20004. /**
  20005. * Add a descending "order by" clause to the query.
  20006. *
  20007. * @param \Closure|\Illuminate\Database\Eloquent\Builder|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  20008. * @return \Illuminate\Database\Query\Builder
  20009. * @static
  20010. */
  20011. public static function orderByDesc($column)
  20012. {
  20013. /** @var \Illuminate\Database\Query\Builder $instance */
  20014. return $instance->orderByDesc($column);
  20015. }
  20016. /**
  20017. * Put the query's results in random order.
  20018. *
  20019. * @param string $seed
  20020. * @return \Illuminate\Database\Query\Builder
  20021. * @static
  20022. */
  20023. public static function inRandomOrder($seed = '')
  20024. {
  20025. /** @var \Illuminate\Database\Query\Builder $instance */
  20026. return $instance->inRandomOrder($seed);
  20027. }
  20028. /**
  20029. * Add a raw "order by" clause to the query.
  20030. *
  20031. * @param string $sql
  20032. * @param array $bindings
  20033. * @return \Illuminate\Database\Query\Builder
  20034. * @static
  20035. */
  20036. public static function orderByRaw($sql, $bindings = [])
  20037. {
  20038. /** @var \Illuminate\Database\Query\Builder $instance */
  20039. return $instance->orderByRaw($sql, $bindings);
  20040. }
  20041. /**
  20042. * Alias to set the "offset" value of the query.
  20043. *
  20044. * @param int $value
  20045. * @return \Illuminate\Database\Query\Builder
  20046. * @static
  20047. */
  20048. public static function skip($value)
  20049. {
  20050. /** @var \Illuminate\Database\Query\Builder $instance */
  20051. return $instance->skip($value);
  20052. }
  20053. /**
  20054. * Set the "offset" value of the query.
  20055. *
  20056. * @param int $value
  20057. * @return \Illuminate\Database\Query\Builder
  20058. * @static
  20059. */
  20060. public static function offset($value)
  20061. {
  20062. /** @var \Illuminate\Database\Query\Builder $instance */
  20063. return $instance->offset($value);
  20064. }
  20065. /**
  20066. * Alias to set the "limit" value of the query.
  20067. *
  20068. * @param int $value
  20069. * @return \Illuminate\Database\Query\Builder
  20070. * @static
  20071. */
  20072. public static function take($value)
  20073. {
  20074. /** @var \Illuminate\Database\Query\Builder $instance */
  20075. return $instance->take($value);
  20076. }
  20077. /**
  20078. * Set the "limit" value of the query.
  20079. *
  20080. * @param int $value
  20081. * @return \Illuminate\Database\Query\Builder
  20082. * @static
  20083. */
  20084. public static function limit($value)
  20085. {
  20086. /** @var \Illuminate\Database\Query\Builder $instance */
  20087. return $instance->limit($value);
  20088. }
  20089. /**
  20090. * Set the limit and offset for a given page.
  20091. *
  20092. * @param int $page
  20093. * @param int $perPage
  20094. * @return \Illuminate\Database\Query\Builder
  20095. * @static
  20096. */
  20097. public static function forPage($page, $perPage = 15)
  20098. {
  20099. /** @var \Illuminate\Database\Query\Builder $instance */
  20100. return $instance->forPage($page, $perPage);
  20101. }
  20102. /**
  20103. * Constrain the query to the previous "page" of results before a given ID.
  20104. *
  20105. * @param int $perPage
  20106. * @param int|null $lastId
  20107. * @param string $column
  20108. * @return \Illuminate\Database\Query\Builder
  20109. * @static
  20110. */
  20111. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  20112. {
  20113. /** @var \Illuminate\Database\Query\Builder $instance */
  20114. return $instance->forPageBeforeId($perPage, $lastId, $column);
  20115. }
  20116. /**
  20117. * Constrain the query to the next "page" of results after a given ID.
  20118. *
  20119. * @param int $perPage
  20120. * @param int|null $lastId
  20121. * @param string $column
  20122. * @return \Illuminate\Database\Query\Builder
  20123. * @static
  20124. */
  20125. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  20126. {
  20127. /** @var \Illuminate\Database\Query\Builder $instance */
  20128. return $instance->forPageAfterId($perPage, $lastId, $column);
  20129. }
  20130. /**
  20131. * Remove all existing orders and optionally add a new order.
  20132. *
  20133. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
  20134. * @param string $direction
  20135. * @return \Illuminate\Database\Query\Builder
  20136. * @static
  20137. */
  20138. public static function reorder($column = null, $direction = 'asc')
  20139. {
  20140. /** @var \Illuminate\Database\Query\Builder $instance */
  20141. return $instance->reorder($column, $direction);
  20142. }
  20143. /**
  20144. * Add a union statement to the query.
  20145. *
  20146. * @param \Illuminate\Database\Query\Builder|\Closure $query
  20147. * @param bool $all
  20148. * @return \Illuminate\Database\Query\Builder
  20149. * @static
  20150. */
  20151. public static function union($query, $all = false)
  20152. {
  20153. /** @var \Illuminate\Database\Query\Builder $instance */
  20154. return $instance->union($query, $all);
  20155. }
  20156. /**
  20157. * Add a union all statement to the query.
  20158. *
  20159. * @param \Illuminate\Database\Query\Builder|\Closure $query
  20160. * @return \Illuminate\Database\Query\Builder
  20161. * @static
  20162. */
  20163. public static function unionAll($query)
  20164. {
  20165. /** @var \Illuminate\Database\Query\Builder $instance */
  20166. return $instance->unionAll($query);
  20167. }
  20168. /**
  20169. * Lock the selected rows in the table.
  20170. *
  20171. * @param string|bool $value
  20172. * @return \Illuminate\Database\Query\Builder
  20173. * @static
  20174. */
  20175. public static function lock($value = true)
  20176. {
  20177. /** @var \Illuminate\Database\Query\Builder $instance */
  20178. return $instance->lock($value);
  20179. }
  20180. /**
  20181. * Lock the selected rows in the table for updating.
  20182. *
  20183. * @return \Illuminate\Database\Query\Builder
  20184. * @static
  20185. */
  20186. public static function lockForUpdate()
  20187. {
  20188. /** @var \Illuminate\Database\Query\Builder $instance */
  20189. return $instance->lockForUpdate();
  20190. }
  20191. /**
  20192. * Share lock the selected rows in the table.
  20193. *
  20194. * @return \Illuminate\Database\Query\Builder
  20195. * @static
  20196. */
  20197. public static function sharedLock()
  20198. {
  20199. /** @var \Illuminate\Database\Query\Builder $instance */
  20200. return $instance->sharedLock();
  20201. }
  20202. /**
  20203. * Register a closure to be invoked before the query is executed.
  20204. *
  20205. * @param callable $callback
  20206. * @return \Illuminate\Database\Query\Builder
  20207. * @static
  20208. */
  20209. public static function beforeQuery($callback)
  20210. {
  20211. /** @var \Illuminate\Database\Query\Builder $instance */
  20212. return $instance->beforeQuery($callback);
  20213. }
  20214. /**
  20215. * Invoke the "before query" modification callbacks.
  20216. *
  20217. * @return void
  20218. * @static
  20219. */
  20220. public static function applyBeforeQueryCallbacks()
  20221. {
  20222. /** @var \Illuminate\Database\Query\Builder $instance */
  20223. $instance->applyBeforeQueryCallbacks();
  20224. }
  20225. /**
  20226. * Get the SQL representation of the query.
  20227. *
  20228. * @return string
  20229. * @static
  20230. */
  20231. public static function toSql()
  20232. {
  20233. /** @var \Illuminate\Database\Query\Builder $instance */
  20234. return $instance->toSql();
  20235. }
  20236. /**
  20237. * Get the count of the total records for the paginator.
  20238. *
  20239. * @param array $columns
  20240. * @return int
  20241. * @static
  20242. */
  20243. public static function getCountForPagination($columns = [])
  20244. {
  20245. /** @var \Illuminate\Database\Query\Builder $instance */
  20246. return $instance->getCountForPagination($columns);
  20247. }
  20248. /**
  20249. * Concatenate values of a given column as a string.
  20250. *
  20251. * @param string $column
  20252. * @param string $glue
  20253. * @return string
  20254. * @static
  20255. */
  20256. public static function implode($column, $glue = '')
  20257. {
  20258. /** @var \Illuminate\Database\Query\Builder $instance */
  20259. return $instance->implode($column, $glue);
  20260. }
  20261. /**
  20262. * Determine if any rows exist for the current query.
  20263. *
  20264. * @return bool
  20265. * @static
  20266. */
  20267. public static function exists()
  20268. {
  20269. /** @var \Illuminate\Database\Query\Builder $instance */
  20270. return $instance->exists();
  20271. }
  20272. /**
  20273. * Determine if no rows exist for the current query.
  20274. *
  20275. * @return bool
  20276. * @static
  20277. */
  20278. public static function doesntExist()
  20279. {
  20280. /** @var \Illuminate\Database\Query\Builder $instance */
  20281. return $instance->doesntExist();
  20282. }
  20283. /**
  20284. * Execute the given callback if no rows exist for the current query.
  20285. *
  20286. * @param \Closure $callback
  20287. * @return mixed
  20288. * @static
  20289. */
  20290. public static function existsOr($callback)
  20291. {
  20292. /** @var \Illuminate\Database\Query\Builder $instance */
  20293. return $instance->existsOr($callback);
  20294. }
  20295. /**
  20296. * Execute the given callback if rows exist for the current query.
  20297. *
  20298. * @param \Closure $callback
  20299. * @return mixed
  20300. * @static
  20301. */
  20302. public static function doesntExistOr($callback)
  20303. {
  20304. /** @var \Illuminate\Database\Query\Builder $instance */
  20305. return $instance->doesntExistOr($callback);
  20306. }
  20307. /**
  20308. * Retrieve the "count" result of the query.
  20309. *
  20310. * @param string $columns
  20311. * @return int
  20312. * @static
  20313. */
  20314. public static function count($columns = '*')
  20315. {
  20316. /** @var \Illuminate\Database\Query\Builder $instance */
  20317. return $instance->count($columns);
  20318. }
  20319. /**
  20320. * Retrieve the minimum value of a given column.
  20321. *
  20322. * @param string $column
  20323. * @return mixed
  20324. * @static
  20325. */
  20326. public static function min($column)
  20327. {
  20328. /** @var \Illuminate\Database\Query\Builder $instance */
  20329. return $instance->min($column);
  20330. }
  20331. /**
  20332. * Retrieve the maximum value of a given column.
  20333. *
  20334. * @param string $column
  20335. * @return mixed
  20336. * @static
  20337. */
  20338. public static function max($column)
  20339. {
  20340. /** @var \Illuminate\Database\Query\Builder $instance */
  20341. return $instance->max($column);
  20342. }
  20343. /**
  20344. * Retrieve the sum of the values of a given column.
  20345. *
  20346. * @param string $column
  20347. * @return mixed
  20348. * @static
  20349. */
  20350. public static function sum($column)
  20351. {
  20352. /** @var \Illuminate\Database\Query\Builder $instance */
  20353. return $instance->sum($column);
  20354. }
  20355. /**
  20356. * Retrieve the average of the values of a given column.
  20357. *
  20358. * @param string $column
  20359. * @return mixed
  20360. * @static
  20361. */
  20362. public static function avg($column)
  20363. {
  20364. /** @var \Illuminate\Database\Query\Builder $instance */
  20365. return $instance->avg($column);
  20366. }
  20367. /**
  20368. * Alias for the "avg" method.
  20369. *
  20370. * @param string $column
  20371. * @return mixed
  20372. * @static
  20373. */
  20374. public static function average($column)
  20375. {
  20376. /** @var \Illuminate\Database\Query\Builder $instance */
  20377. return $instance->average($column);
  20378. }
  20379. /**
  20380. * Execute an aggregate function on the database.
  20381. *
  20382. * @param string $function
  20383. * @param array $columns
  20384. * @return mixed
  20385. * @static
  20386. */
  20387. public static function aggregate($function, $columns = [])
  20388. {
  20389. /** @var \Illuminate\Database\Query\Builder $instance */
  20390. return $instance->aggregate($function, $columns);
  20391. }
  20392. /**
  20393. * Execute a numeric aggregate function on the database.
  20394. *
  20395. * @param string $function
  20396. * @param array $columns
  20397. * @return float|int
  20398. * @static
  20399. */
  20400. public static function numericAggregate($function, $columns = [])
  20401. {
  20402. /** @var \Illuminate\Database\Query\Builder $instance */
  20403. return $instance->numericAggregate($function, $columns);
  20404. }
  20405. /**
  20406. * Insert new records into the database.
  20407. *
  20408. * @param array $values
  20409. * @return bool
  20410. * @static
  20411. */
  20412. public static function insert($values)
  20413. {
  20414. /** @var \Illuminate\Database\Query\Builder $instance */
  20415. return $instance->insert($values);
  20416. }
  20417. /**
  20418. * Insert new records into the database while ignoring errors.
  20419. *
  20420. * @param array $values
  20421. * @return int
  20422. * @static
  20423. */
  20424. public static function insertOrIgnore($values)
  20425. {
  20426. /** @var \Illuminate\Database\Query\Builder $instance */
  20427. return $instance->insertOrIgnore($values);
  20428. }
  20429. /**
  20430. * Insert a new record and get the value of the primary key.
  20431. *
  20432. * @param array $values
  20433. * @param string|null $sequence
  20434. * @return int
  20435. * @static
  20436. */
  20437. public static function insertGetId($values, $sequence = null)
  20438. {
  20439. /** @var \Illuminate\Database\Query\Builder $instance */
  20440. return $instance->insertGetId($values, $sequence);
  20441. }
  20442. /**
  20443. * Insert new records into the table using a subquery.
  20444. *
  20445. * @param array $columns
  20446. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  20447. * @return int
  20448. * @static
  20449. */
  20450. public static function insertUsing($columns, $query)
  20451. {
  20452. /** @var \Illuminate\Database\Query\Builder $instance */
  20453. return $instance->insertUsing($columns, $query);
  20454. }
  20455. /**
  20456. * Update records in a PostgreSQL database using the update from syntax.
  20457. *
  20458. * @param array $values
  20459. * @return int
  20460. * @static
  20461. */
  20462. public static function updateFrom($values)
  20463. {
  20464. /** @var \Illuminate\Database\Query\Builder $instance */
  20465. return $instance->updateFrom($values);
  20466. }
  20467. /**
  20468. * Insert or update a record matching the attributes, and fill it with values.
  20469. *
  20470. * @param array $attributes
  20471. * @param array $values
  20472. * @return bool
  20473. * @static
  20474. */
  20475. public static function updateOrInsert($attributes, $values = [])
  20476. {
  20477. /** @var \Illuminate\Database\Query\Builder $instance */
  20478. return $instance->updateOrInsert($attributes, $values);
  20479. }
  20480. /**
  20481. * Run a truncate statement on the table.
  20482. *
  20483. * @return void
  20484. * @static
  20485. */
  20486. public static function truncate()
  20487. {
  20488. /** @var \Illuminate\Database\Query\Builder $instance */
  20489. $instance->truncate();
  20490. }
  20491. /**
  20492. * Create a raw database expression.
  20493. *
  20494. * @param mixed $value
  20495. * @return \Illuminate\Database\Query\Expression
  20496. * @static
  20497. */
  20498. public static function raw($value)
  20499. {
  20500. /** @var \Illuminate\Database\Query\Builder $instance */
  20501. return $instance->raw($value);
  20502. }
  20503. /**
  20504. * Get the current query value bindings in a flattened array.
  20505. *
  20506. * @return array
  20507. * @static
  20508. */
  20509. public static function getBindings()
  20510. {
  20511. /** @var \Illuminate\Database\Query\Builder $instance */
  20512. return $instance->getBindings();
  20513. }
  20514. /**
  20515. * Get the raw array of bindings.
  20516. *
  20517. * @return array
  20518. * @static
  20519. */
  20520. public static function getRawBindings()
  20521. {
  20522. /** @var \Illuminate\Database\Query\Builder $instance */
  20523. return $instance->getRawBindings();
  20524. }
  20525. /**
  20526. * Set the bindings on the query builder.
  20527. *
  20528. * @param array $bindings
  20529. * @param string $type
  20530. * @return \Illuminate\Database\Query\Builder
  20531. * @throws \InvalidArgumentException
  20532. * @static
  20533. */
  20534. public static function setBindings($bindings, $type = 'where')
  20535. {
  20536. /** @var \Illuminate\Database\Query\Builder $instance */
  20537. return $instance->setBindings($bindings, $type);
  20538. }
  20539. /**
  20540. * Add a binding to the query.
  20541. *
  20542. * @param mixed $value
  20543. * @param string $type
  20544. * @return \Illuminate\Database\Query\Builder
  20545. * @throws \InvalidArgumentException
  20546. * @static
  20547. */
  20548. public static function addBinding($value, $type = 'where')
  20549. {
  20550. /** @var \Illuminate\Database\Query\Builder $instance */
  20551. return $instance->addBinding($value, $type);
  20552. }
  20553. /**
  20554. * Cast the given binding value.
  20555. *
  20556. * @param mixed $value
  20557. * @return mixed
  20558. * @static
  20559. */
  20560. public static function castBinding($value)
  20561. {
  20562. /** @var \Illuminate\Database\Query\Builder $instance */
  20563. return $instance->castBinding($value);
  20564. }
  20565. /**
  20566. * Merge an array of bindings into our bindings.
  20567. *
  20568. * @param \Illuminate\Database\Query\Builder $query
  20569. * @return \Illuminate\Database\Query\Builder
  20570. * @static
  20571. */
  20572. public static function mergeBindings($query)
  20573. {
  20574. /** @var \Illuminate\Database\Query\Builder $instance */
  20575. return $instance->mergeBindings($query);
  20576. }
  20577. /**
  20578. * Remove all of the expressions from a list of bindings.
  20579. *
  20580. * @param array $bindings
  20581. * @return array
  20582. * @static
  20583. */
  20584. public static function cleanBindings($bindings)
  20585. {
  20586. /** @var \Illuminate\Database\Query\Builder $instance */
  20587. return $instance->cleanBindings($bindings);
  20588. }
  20589. /**
  20590. * Get the database query processor instance.
  20591. *
  20592. * @return \Illuminate\Database\Query\Processors\Processor
  20593. * @static
  20594. */
  20595. public static function getProcessor()
  20596. {
  20597. /** @var \Illuminate\Database\Query\Builder $instance */
  20598. return $instance->getProcessor();
  20599. }
  20600. /**
  20601. * Get the query grammar instance.
  20602. *
  20603. * @return \Illuminate\Database\Query\Grammars\Grammar
  20604. * @static
  20605. */
  20606. public static function getGrammar()
  20607. {
  20608. /** @var \Illuminate\Database\Query\Builder $instance */
  20609. return $instance->getGrammar();
  20610. }
  20611. /**
  20612. * Use the write pdo for query.
  20613. *
  20614. * @return \Illuminate\Database\Query\Builder
  20615. * @static
  20616. */
  20617. public static function useWritePdo()
  20618. {
  20619. /** @var \Illuminate\Database\Query\Builder $instance */
  20620. return $instance->useWritePdo();
  20621. }
  20622. /**
  20623. * Clone the query without the given properties.
  20624. *
  20625. * @param array $properties
  20626. * @return static
  20627. * @static
  20628. */
  20629. public static function cloneWithout($properties)
  20630. {
  20631. /** @var \Illuminate\Database\Query\Builder $instance */
  20632. return $instance->cloneWithout($properties);
  20633. }
  20634. /**
  20635. * Clone the query without the given bindings.
  20636. *
  20637. * @param array $except
  20638. * @return static
  20639. * @static
  20640. */
  20641. public static function cloneWithoutBindings($except)
  20642. {
  20643. /** @var \Illuminate\Database\Query\Builder $instance */
  20644. return $instance->cloneWithoutBindings($except);
  20645. }
  20646. /**
  20647. * Dump the current SQL and bindings.
  20648. *
  20649. * @return \Illuminate\Database\Query\Builder
  20650. * @static
  20651. */
  20652. public static function dump()
  20653. {
  20654. /** @var \Illuminate\Database\Query\Builder $instance */
  20655. return $instance->dump();
  20656. }
  20657. /**
  20658. * Die and dump the current SQL and bindings.
  20659. *
  20660. * @return \Illuminate\Database\Query\never
  20661. * @static
  20662. */
  20663. public static function dd()
  20664. {
  20665. /** @var \Illuminate\Database\Query\Builder $instance */
  20666. return $instance->dd();
  20667. }
  20668. /**
  20669. * Explains the query.
  20670. *
  20671. * @return \Illuminate\Support\Collection
  20672. * @static
  20673. */
  20674. public static function explain()
  20675. {
  20676. /** @var \Illuminate\Database\Query\Builder $instance */
  20677. return $instance->explain();
  20678. }
  20679. /**
  20680. * Register a custom macro.
  20681. *
  20682. * @param string $name
  20683. * @param object|callable $macro
  20684. * @return void
  20685. * @static
  20686. */
  20687. public static function macro($name, $macro)
  20688. {
  20689. \Illuminate\Database\Query\Builder::macro($name, $macro);
  20690. }
  20691. /**
  20692. * Mix another object into the class.
  20693. *
  20694. * @param object $mixin
  20695. * @param bool $replace
  20696. * @return void
  20697. * @throws \ReflectionException
  20698. * @static
  20699. */
  20700. public static function mixin($mixin, $replace = true)
  20701. {
  20702. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  20703. }
  20704. /**
  20705. * Flush the existing macros.
  20706. *
  20707. * @return void
  20708. * @static
  20709. */
  20710. public static function flushMacros()
  20711. {
  20712. \Illuminate\Database\Query\Builder::flushMacros();
  20713. }
  20714. /**
  20715. * Dynamically handle calls to the class.
  20716. *
  20717. * @param string $method
  20718. * @param array $parameters
  20719. * @return mixed
  20720. * @throws \BadMethodCallException
  20721. * @static
  20722. */
  20723. public static function macroCall($method, $parameters)
  20724. {
  20725. /** @var \Illuminate\Database\Query\Builder $instance */
  20726. return $instance->macroCall($method, $parameters);
  20727. }
  20728. }
  20729. class Event extends \Illuminate\Support\Facades\Event {}
  20730. class File extends \Illuminate\Support\Facades\File {}
  20731. class Gate extends \Illuminate\Support\Facades\Gate {}
  20732. class Hash extends \Illuminate\Support\Facades\Hash {}
  20733. class Http extends \Illuminate\Support\Facades\Http {}
  20734. class Lang extends \Illuminate\Support\Facades\Lang {}
  20735. class Log extends \Illuminate\Support\Facades\Log {}
  20736. class Mail extends \Illuminate\Support\Facades\Mail {}
  20737. class Notification extends \Illuminate\Support\Facades\Notification {}
  20738. class Password extends \Illuminate\Support\Facades\Password {}
  20739. class Queue extends \Illuminate\Support\Facades\Queue {}
  20740. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  20741. class Redis extends \Illuminate\Support\Facades\Redis {}
  20742. class Request extends \Illuminate\Support\Facades\Request {}
  20743. class Response extends \Illuminate\Support\Facades\Response {}
  20744. class Route extends \Illuminate\Support\Facades\Route {}
  20745. class Schema extends \Illuminate\Support\Facades\Schema {}
  20746. class Session extends \Illuminate\Support\Facades\Session {}
  20747. class Storage extends \Illuminate\Support\Facades\Storage {}
  20748. class Str extends \Illuminate\Support\Str {}
  20749. class URL extends \Illuminate\Support\Facades\URL {}
  20750. class Validator extends \Illuminate\Support\Facades\Validator {}
  20751. class View extends \Illuminate\Support\Facades\View {}
  20752. class Image extends \Intervention\Image\Facades\Image {}
  20753. class Socialite extends \Laravel\Socialite\Facades\Socialite {}
  20754. class Markdown extends \GrahamCampbell\Markdown\Facades\Markdown {}
  20755. class Breadcrumbs extends \DaveJamesMiller\Breadcrumbs\Facades\Breadcrumbs {}
  20756. class Flare extends \Facade\Ignition\Facades\Flare {}
  20757. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  20758. class Feed extends \Laravelium\Feed\Feed {}
  20759. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  20760. class Sentry extends \Sentry\Laravel\Facade {}
  20761. }