_ide_helper.php 614 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel, to provide autocomplete information to your IDE
  5. * Generated for Laravel 7.10.3 on 2020-05-09 00:04:59.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  10. * @see https://github.com/barryvdh/laravel-ide-helper
  11. */
  12. namespace Illuminate\Support\Facades {
  13. /**
  14. *
  15. *
  16. * @see \Illuminate\Contracts\Foundation\Application
  17. */
  18. class App {
  19. /**
  20. * Get the version number of the application.
  21. *
  22. * @return string
  23. * @static
  24. */
  25. public static function version()
  26. {
  27. /** @var \Illuminate\Foundation\Application $instance */
  28. return $instance->version();
  29. }
  30. /**
  31. * Run the given array of bootstrap classes.
  32. *
  33. * @param string[] $bootstrappers
  34. * @return void
  35. * @static
  36. */
  37. public static function bootstrapWith($bootstrappers)
  38. {
  39. /** @var \Illuminate\Foundation\Application $instance */
  40. $instance->bootstrapWith($bootstrappers);
  41. }
  42. /**
  43. * Register a callback to run after loading the environment.
  44. *
  45. * @param \Closure $callback
  46. * @return void
  47. * @static
  48. */
  49. public static function afterLoadingEnvironment($callback)
  50. {
  51. /** @var \Illuminate\Foundation\Application $instance */
  52. $instance->afterLoadingEnvironment($callback);
  53. }
  54. /**
  55. * Register a callback to run before a bootstrapper.
  56. *
  57. * @param string $bootstrapper
  58. * @param \Closure $callback
  59. * @return void
  60. * @static
  61. */
  62. public static function beforeBootstrapping($bootstrapper, $callback)
  63. {
  64. /** @var \Illuminate\Foundation\Application $instance */
  65. $instance->beforeBootstrapping($bootstrapper, $callback);
  66. }
  67. /**
  68. * Register a callback to run after a bootstrapper.
  69. *
  70. * @param string $bootstrapper
  71. * @param \Closure $callback
  72. * @return void
  73. * @static
  74. */
  75. public static function afterBootstrapping($bootstrapper, $callback)
  76. {
  77. /** @var \Illuminate\Foundation\Application $instance */
  78. $instance->afterBootstrapping($bootstrapper, $callback);
  79. }
  80. /**
  81. * Determine if the application has been bootstrapped before.
  82. *
  83. * @return bool
  84. * @static
  85. */
  86. public static function hasBeenBootstrapped()
  87. {
  88. /** @var \Illuminate\Foundation\Application $instance */
  89. return $instance->hasBeenBootstrapped();
  90. }
  91. /**
  92. * Set the base path for the application.
  93. *
  94. * @param string $basePath
  95. * @return \Illuminate\Foundation\Application
  96. * @static
  97. */
  98. public static function setBasePath($basePath)
  99. {
  100. /** @var \Illuminate\Foundation\Application $instance */
  101. return $instance->setBasePath($basePath);
  102. }
  103. /**
  104. * Get the path to the application "app" directory.
  105. *
  106. * @param string $path
  107. * @return string
  108. * @static
  109. */
  110. public static function path($path = '')
  111. {
  112. /** @var \Illuminate\Foundation\Application $instance */
  113. return $instance->path($path);
  114. }
  115. /**
  116. * Set the application directory.
  117. *
  118. * @param string $path
  119. * @return \Illuminate\Foundation\Application
  120. * @static
  121. */
  122. public static function useAppPath($path)
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->useAppPath($path);
  126. }
  127. /**
  128. * Get the base path of the Laravel installation.
  129. *
  130. * @param string $path Optionally, a path to append to the base path
  131. * @return string
  132. * @static
  133. */
  134. public static function basePath($path = '')
  135. {
  136. /** @var \Illuminate\Foundation\Application $instance */
  137. return $instance->basePath($path);
  138. }
  139. /**
  140. * Get the path to the bootstrap directory.
  141. *
  142. * @param string $path Optionally, a path to append to the bootstrap path
  143. * @return string
  144. * @static
  145. */
  146. public static function bootstrapPath($path = '')
  147. {
  148. /** @var \Illuminate\Foundation\Application $instance */
  149. return $instance->bootstrapPath($path);
  150. }
  151. /**
  152. * Get the path to the application configuration files.
  153. *
  154. * @param string $path Optionally, a path to append to the config path
  155. * @return string
  156. * @static
  157. */
  158. public static function configPath($path = '')
  159. {
  160. /** @var \Illuminate\Foundation\Application $instance */
  161. return $instance->configPath($path);
  162. }
  163. /**
  164. * Get the path to the database directory.
  165. *
  166. * @param string $path Optionally, a path to append to the database path
  167. * @return string
  168. * @static
  169. */
  170. public static function databasePath($path = '')
  171. {
  172. /** @var \Illuminate\Foundation\Application $instance */
  173. return $instance->databasePath($path);
  174. }
  175. /**
  176. * Set the database directory.
  177. *
  178. * @param string $path
  179. * @return \Illuminate\Foundation\Application
  180. * @static
  181. */
  182. public static function useDatabasePath($path)
  183. {
  184. /** @var \Illuminate\Foundation\Application $instance */
  185. return $instance->useDatabasePath($path);
  186. }
  187. /**
  188. * Get the path to the language files.
  189. *
  190. * @return string
  191. * @static
  192. */
  193. public static function langPath()
  194. {
  195. /** @var \Illuminate\Foundation\Application $instance */
  196. return $instance->langPath();
  197. }
  198. /**
  199. * Get the path to the public / web directory.
  200. *
  201. * @return string
  202. * @static
  203. */
  204. public static function publicPath()
  205. {
  206. /** @var \Illuminate\Foundation\Application $instance */
  207. return $instance->publicPath();
  208. }
  209. /**
  210. * Get the path to the storage directory.
  211. *
  212. * @return string
  213. * @static
  214. */
  215. public static function storagePath()
  216. {
  217. /** @var \Illuminate\Foundation\Application $instance */
  218. return $instance->storagePath();
  219. }
  220. /**
  221. * Set the storage directory.
  222. *
  223. * @param string $path
  224. * @return \Illuminate\Foundation\Application
  225. * @static
  226. */
  227. public static function useStoragePath($path)
  228. {
  229. /** @var \Illuminate\Foundation\Application $instance */
  230. return $instance->useStoragePath($path);
  231. }
  232. /**
  233. * Get the path to the resources directory.
  234. *
  235. * @param string $path
  236. * @return string
  237. * @static
  238. */
  239. public static function resourcePath($path = '')
  240. {
  241. /** @var \Illuminate\Foundation\Application $instance */
  242. return $instance->resourcePath($path);
  243. }
  244. /**
  245. * Get the path to the environment file directory.
  246. *
  247. * @return string
  248. * @static
  249. */
  250. public static function environmentPath()
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->environmentPath();
  254. }
  255. /**
  256. * Set the directory for the environment file.
  257. *
  258. * @param string $path
  259. * @return \Illuminate\Foundation\Application
  260. * @static
  261. */
  262. public static function useEnvironmentPath($path)
  263. {
  264. /** @var \Illuminate\Foundation\Application $instance */
  265. return $instance->useEnvironmentPath($path);
  266. }
  267. /**
  268. * Set the environment file to be loaded during bootstrapping.
  269. *
  270. * @param string $file
  271. * @return \Illuminate\Foundation\Application
  272. * @static
  273. */
  274. public static function loadEnvironmentFrom($file)
  275. {
  276. /** @var \Illuminate\Foundation\Application $instance */
  277. return $instance->loadEnvironmentFrom($file);
  278. }
  279. /**
  280. * Get the environment file the application is using.
  281. *
  282. * @return string
  283. * @static
  284. */
  285. public static function environmentFile()
  286. {
  287. /** @var \Illuminate\Foundation\Application $instance */
  288. return $instance->environmentFile();
  289. }
  290. /**
  291. * Get the fully qualified path to the environment file.
  292. *
  293. * @return string
  294. * @static
  295. */
  296. public static function environmentFilePath()
  297. {
  298. /** @var \Illuminate\Foundation\Application $instance */
  299. return $instance->environmentFilePath();
  300. }
  301. /**
  302. * Get or check the current application environment.
  303. *
  304. * @param string|array $environments
  305. * @return string|bool
  306. * @static
  307. */
  308. public static function environment(...$environments)
  309. {
  310. /** @var \Illuminate\Foundation\Application $instance */
  311. return $instance->environment(...$environments);
  312. }
  313. /**
  314. * Determine if application is in local environment.
  315. *
  316. * @return bool
  317. * @static
  318. */
  319. public static function isLocal()
  320. {
  321. /** @var \Illuminate\Foundation\Application $instance */
  322. return $instance->isLocal();
  323. }
  324. /**
  325. * Determine if application is in production environment.
  326. *
  327. * @return bool
  328. * @static
  329. */
  330. public static function isProduction()
  331. {
  332. /** @var \Illuminate\Foundation\Application $instance */
  333. return $instance->isProduction();
  334. }
  335. /**
  336. * Detect the application's current environment.
  337. *
  338. * @param \Closure $callback
  339. * @return string
  340. * @static
  341. */
  342. public static function detectEnvironment($callback)
  343. {
  344. /** @var \Illuminate\Foundation\Application $instance */
  345. return $instance->detectEnvironment($callback);
  346. }
  347. /**
  348. * Determine if the application is running in the console.
  349. *
  350. * @return bool
  351. * @static
  352. */
  353. public static function runningInConsole()
  354. {
  355. /** @var \Illuminate\Foundation\Application $instance */
  356. return $instance->runningInConsole();
  357. }
  358. /**
  359. * Determine if the application is running unit tests.
  360. *
  361. * @return bool
  362. * @static
  363. */
  364. public static function runningUnitTests()
  365. {
  366. /** @var \Illuminate\Foundation\Application $instance */
  367. return $instance->runningUnitTests();
  368. }
  369. /**
  370. * Register all of the configured providers.
  371. *
  372. * @return void
  373. * @static
  374. */
  375. public static function registerConfiguredProviders()
  376. {
  377. /** @var \Illuminate\Foundation\Application $instance */
  378. $instance->registerConfiguredProviders();
  379. }
  380. /**
  381. * Register a service provider with the application.
  382. *
  383. * @param \Illuminate\Support\ServiceProvider|string $provider
  384. * @param bool $force
  385. * @return \Illuminate\Support\ServiceProvider
  386. * @static
  387. */
  388. public static function register($provider, $force = false)
  389. {
  390. /** @var \Illuminate\Foundation\Application $instance */
  391. return $instance->register($provider, $force);
  392. }
  393. /**
  394. * Get the registered service provider instance if it exists.
  395. *
  396. * @param \Illuminate\Support\ServiceProvider|string $provider
  397. * @return \Illuminate\Support\ServiceProvider|null
  398. * @static
  399. */
  400. public static function getProvider($provider)
  401. {
  402. /** @var \Illuminate\Foundation\Application $instance */
  403. return $instance->getProvider($provider);
  404. }
  405. /**
  406. * Get the registered service provider instances if any exist.
  407. *
  408. * @param \Illuminate\Support\ServiceProvider|string $provider
  409. * @return array
  410. * @static
  411. */
  412. public static function getProviders($provider)
  413. {
  414. /** @var \Illuminate\Foundation\Application $instance */
  415. return $instance->getProviders($provider);
  416. }
  417. /**
  418. * Resolve a service provider instance from the class name.
  419. *
  420. * @param string $provider
  421. * @return \Illuminate\Support\ServiceProvider
  422. * @static
  423. */
  424. public static function resolveProvider($provider)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. return $instance->resolveProvider($provider);
  428. }
  429. /**
  430. * Load and boot all of the remaining deferred providers.
  431. *
  432. * @return void
  433. * @static
  434. */
  435. public static function loadDeferredProviders()
  436. {
  437. /** @var \Illuminate\Foundation\Application $instance */
  438. $instance->loadDeferredProviders();
  439. }
  440. /**
  441. * Load the provider for a deferred service.
  442. *
  443. * @param string $service
  444. * @return void
  445. * @static
  446. */
  447. public static function loadDeferredProvider($service)
  448. {
  449. /** @var \Illuminate\Foundation\Application $instance */
  450. $instance->loadDeferredProvider($service);
  451. }
  452. /**
  453. * Register a deferred provider and service.
  454. *
  455. * @param string $provider
  456. * @param string|null $service
  457. * @return void
  458. * @static
  459. */
  460. public static function registerDeferredProvider($provider, $service = null)
  461. {
  462. /** @var \Illuminate\Foundation\Application $instance */
  463. $instance->registerDeferredProvider($provider, $service);
  464. }
  465. /**
  466. * Resolve the given type from the container.
  467. *
  468. * @param string $abstract
  469. * @param array $parameters
  470. * @return mixed
  471. * @static
  472. */
  473. public static function make($abstract, $parameters = [])
  474. {
  475. /** @var \Illuminate\Foundation\Application $instance */
  476. return $instance->make($abstract, $parameters);
  477. }
  478. /**
  479. * Determine if the given abstract type has been bound.
  480. *
  481. * @param string $abstract
  482. * @return bool
  483. * @static
  484. */
  485. public static function bound($abstract)
  486. {
  487. /** @var \Illuminate\Foundation\Application $instance */
  488. return $instance->bound($abstract);
  489. }
  490. /**
  491. * Determine if the application has booted.
  492. *
  493. * @return bool
  494. * @static
  495. */
  496. public static function isBooted()
  497. {
  498. /** @var \Illuminate\Foundation\Application $instance */
  499. return $instance->isBooted();
  500. }
  501. /**
  502. * Boot the application's service providers.
  503. *
  504. * @return void
  505. * @static
  506. */
  507. public static function boot()
  508. {
  509. /** @var \Illuminate\Foundation\Application $instance */
  510. $instance->boot();
  511. }
  512. /**
  513. * Register a new boot listener.
  514. *
  515. * @param callable $callback
  516. * @return void
  517. * @static
  518. */
  519. public static function booting($callback)
  520. {
  521. /** @var \Illuminate\Foundation\Application $instance */
  522. $instance->booting($callback);
  523. }
  524. /**
  525. * Register a new "booted" listener.
  526. *
  527. * @param callable $callback
  528. * @return void
  529. * @static
  530. */
  531. public static function booted($callback)
  532. {
  533. /** @var \Illuminate\Foundation\Application $instance */
  534. $instance->booted($callback);
  535. }
  536. /**
  537. * {@inheritdoc}
  538. *
  539. * @static
  540. */
  541. public static function handle($request, $type = 1, $catch = true)
  542. {
  543. /** @var \Illuminate\Foundation\Application $instance */
  544. return $instance->handle($request, $type, $catch);
  545. }
  546. /**
  547. * Determine if middleware has been disabled for the application.
  548. *
  549. * @return bool
  550. * @static
  551. */
  552. public static function shouldSkipMiddleware()
  553. {
  554. /** @var \Illuminate\Foundation\Application $instance */
  555. return $instance->shouldSkipMiddleware();
  556. }
  557. /**
  558. * Get the path to the cached services.php file.
  559. *
  560. * @return string
  561. * @static
  562. */
  563. public static function getCachedServicesPath()
  564. {
  565. /** @var \Illuminate\Foundation\Application $instance */
  566. return $instance->getCachedServicesPath();
  567. }
  568. /**
  569. * Get the path to the cached packages.php file.
  570. *
  571. * @return string
  572. * @static
  573. */
  574. public static function getCachedPackagesPath()
  575. {
  576. /** @var \Illuminate\Foundation\Application $instance */
  577. return $instance->getCachedPackagesPath();
  578. }
  579. /**
  580. * Determine if the application configuration is cached.
  581. *
  582. * @return bool
  583. * @static
  584. */
  585. public static function configurationIsCached()
  586. {
  587. /** @var \Illuminate\Foundation\Application $instance */
  588. return $instance->configurationIsCached();
  589. }
  590. /**
  591. * Get the path to the configuration cache file.
  592. *
  593. * @return string
  594. * @static
  595. */
  596. public static function getCachedConfigPath()
  597. {
  598. /** @var \Illuminate\Foundation\Application $instance */
  599. return $instance->getCachedConfigPath();
  600. }
  601. /**
  602. * Determine if the application routes are cached.
  603. *
  604. * @return bool
  605. * @static
  606. */
  607. public static function routesAreCached()
  608. {
  609. /** @var \Illuminate\Foundation\Application $instance */
  610. return $instance->routesAreCached();
  611. }
  612. /**
  613. * Get the path to the routes cache file.
  614. *
  615. * @return string
  616. * @static
  617. */
  618. public static function getCachedRoutesPath()
  619. {
  620. /** @var \Illuminate\Foundation\Application $instance */
  621. return $instance->getCachedRoutesPath();
  622. }
  623. /**
  624. * Determine if the application events are cached.
  625. *
  626. * @return bool
  627. * @static
  628. */
  629. public static function eventsAreCached()
  630. {
  631. /** @var \Illuminate\Foundation\Application $instance */
  632. return $instance->eventsAreCached();
  633. }
  634. /**
  635. * Get the path to the events cache file.
  636. *
  637. * @return string
  638. * @static
  639. */
  640. public static function getCachedEventsPath()
  641. {
  642. /** @var \Illuminate\Foundation\Application $instance */
  643. return $instance->getCachedEventsPath();
  644. }
  645. /**
  646. * Add new prefix to list of absolute path prefixes.
  647. *
  648. * @param string $prefix
  649. * @return \Illuminate\Foundation\Application
  650. * @static
  651. */
  652. public static function addAbsoluteCachePathPrefix($prefix)
  653. {
  654. /** @var \Illuminate\Foundation\Application $instance */
  655. return $instance->addAbsoluteCachePathPrefix($prefix);
  656. }
  657. /**
  658. * Determine if the application is currently down for maintenance.
  659. *
  660. * @return bool
  661. * @static
  662. */
  663. public static function isDownForMaintenance()
  664. {
  665. /** @var \Illuminate\Foundation\Application $instance */
  666. return $instance->isDownForMaintenance();
  667. }
  668. /**
  669. * Throw an HttpException with the given data.
  670. *
  671. * @param int $code
  672. * @param string $message
  673. * @param array $headers
  674. * @return void
  675. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  676. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  677. * @static
  678. */
  679. public static function abort($code, $message = '', $headers = [])
  680. {
  681. /** @var \Illuminate\Foundation\Application $instance */
  682. $instance->abort($code, $message, $headers);
  683. }
  684. /**
  685. * Register a terminating callback with the application.
  686. *
  687. * @param callable|string $callback
  688. * @return \Illuminate\Foundation\Application
  689. * @static
  690. */
  691. public static function terminating($callback)
  692. {
  693. /** @var \Illuminate\Foundation\Application $instance */
  694. return $instance->terminating($callback);
  695. }
  696. /**
  697. * Terminate the application.
  698. *
  699. * @return void
  700. * @static
  701. */
  702. public static function terminate()
  703. {
  704. /** @var \Illuminate\Foundation\Application $instance */
  705. $instance->terminate();
  706. }
  707. /**
  708. * Get the service providers that have been loaded.
  709. *
  710. * @return array
  711. * @static
  712. */
  713. public static function getLoadedProviders()
  714. {
  715. /** @var \Illuminate\Foundation\Application $instance */
  716. return $instance->getLoadedProviders();
  717. }
  718. /**
  719. * Get the application's deferred services.
  720. *
  721. * @return array
  722. * @static
  723. */
  724. public static function getDeferredServices()
  725. {
  726. /** @var \Illuminate\Foundation\Application $instance */
  727. return $instance->getDeferredServices();
  728. }
  729. /**
  730. * Set the application's deferred services.
  731. *
  732. * @param array $services
  733. * @return void
  734. * @static
  735. */
  736. public static function setDeferredServices($services)
  737. {
  738. /** @var \Illuminate\Foundation\Application $instance */
  739. $instance->setDeferredServices($services);
  740. }
  741. /**
  742. * Add an array of services to the application's deferred services.
  743. *
  744. * @param array $services
  745. * @return void
  746. * @static
  747. */
  748. public static function addDeferredServices($services)
  749. {
  750. /** @var \Illuminate\Foundation\Application $instance */
  751. $instance->addDeferredServices($services);
  752. }
  753. /**
  754. * Determine if the given service is a deferred service.
  755. *
  756. * @param string $service
  757. * @return bool
  758. * @static
  759. */
  760. public static function isDeferredService($service)
  761. {
  762. /** @var \Illuminate\Foundation\Application $instance */
  763. return $instance->isDeferredService($service);
  764. }
  765. /**
  766. * Configure the real-time facade namespace.
  767. *
  768. * @param string $namespace
  769. * @return void
  770. * @static
  771. */
  772. public static function provideFacades($namespace)
  773. {
  774. /** @var \Illuminate\Foundation\Application $instance */
  775. $instance->provideFacades($namespace);
  776. }
  777. /**
  778. * Get the current application locale.
  779. *
  780. * @return string
  781. * @static
  782. */
  783. public static function getLocale()
  784. {
  785. /** @var \Illuminate\Foundation\Application $instance */
  786. return $instance->getLocale();
  787. }
  788. /**
  789. * Set the current application locale.
  790. *
  791. * @param string $locale
  792. * @return void
  793. * @static
  794. */
  795. public static function setLocale($locale)
  796. {
  797. /** @var \Illuminate\Foundation\Application $instance */
  798. $instance->setLocale($locale);
  799. }
  800. /**
  801. * Determine if application locale is the given locale.
  802. *
  803. * @param string $locale
  804. * @return bool
  805. * @static
  806. */
  807. public static function isLocale($locale)
  808. {
  809. /** @var \Illuminate\Foundation\Application $instance */
  810. return $instance->isLocale($locale);
  811. }
  812. /**
  813. * Register the core class aliases in the container.
  814. *
  815. * @return void
  816. * @static
  817. */
  818. public static function registerCoreContainerAliases()
  819. {
  820. /** @var \Illuminate\Foundation\Application $instance */
  821. $instance->registerCoreContainerAliases();
  822. }
  823. /**
  824. * Flush the container of all bindings and resolved instances.
  825. *
  826. * @return void
  827. * @static
  828. */
  829. public static function flush()
  830. {
  831. /** @var \Illuminate\Foundation\Application $instance */
  832. $instance->flush();
  833. }
  834. /**
  835. * Get the application namespace.
  836. *
  837. * @return string
  838. * @throws \RuntimeException
  839. * @static
  840. */
  841. public static function getNamespace()
  842. {
  843. /** @var \Illuminate\Foundation\Application $instance */
  844. return $instance->getNamespace();
  845. }
  846. /**
  847. * Define a contextual binding.
  848. *
  849. * @param array|string $concrete
  850. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  851. * @static
  852. */
  853. public static function when($concrete)
  854. {
  855. //Method inherited from \Illuminate\Container\Container
  856. /** @var \Illuminate\Foundation\Application $instance */
  857. return $instance->when($concrete);
  858. }
  859. /**
  860. * Returns true if the container can return an entry for the given identifier.
  861. *
  862. * Returns false otherwise.
  863. *
  864. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  865. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  866. *
  867. * @param string $id Identifier of the entry to look for.
  868. * @return bool
  869. * @static
  870. */
  871. public static function has($id)
  872. {
  873. //Method inherited from \Illuminate\Container\Container
  874. /** @var \Illuminate\Foundation\Application $instance */
  875. return $instance->has($id);
  876. }
  877. /**
  878. * Determine if the given abstract type has been resolved.
  879. *
  880. * @param string $abstract
  881. * @return bool
  882. * @static
  883. */
  884. public static function resolved($abstract)
  885. {
  886. //Method inherited from \Illuminate\Container\Container
  887. /** @var \Illuminate\Foundation\Application $instance */
  888. return $instance->resolved($abstract);
  889. }
  890. /**
  891. * Determine if a given type is shared.
  892. *
  893. * @param string $abstract
  894. * @return bool
  895. * @static
  896. */
  897. public static function isShared($abstract)
  898. {
  899. //Method inherited from \Illuminate\Container\Container
  900. /** @var \Illuminate\Foundation\Application $instance */
  901. return $instance->isShared($abstract);
  902. }
  903. /**
  904. * Determine if a given string is an alias.
  905. *
  906. * @param string $name
  907. * @return bool
  908. * @static
  909. */
  910. public static function isAlias($name)
  911. {
  912. //Method inherited from \Illuminate\Container\Container
  913. /** @var \Illuminate\Foundation\Application $instance */
  914. return $instance->isAlias($name);
  915. }
  916. /**
  917. * Register a binding with the container.
  918. *
  919. * @param string $abstract
  920. * @param \Closure|string|null $concrete
  921. * @param bool $shared
  922. * @return void
  923. * @static
  924. */
  925. public static function bind($abstract, $concrete = null, $shared = false)
  926. {
  927. //Method inherited from \Illuminate\Container\Container
  928. /** @var \Illuminate\Foundation\Application $instance */
  929. $instance->bind($abstract, $concrete, $shared);
  930. }
  931. /**
  932. * Determine if the container has a method binding.
  933. *
  934. * @param string $method
  935. * @return bool
  936. * @static
  937. */
  938. public static function hasMethodBinding($method)
  939. {
  940. //Method inherited from \Illuminate\Container\Container
  941. /** @var \Illuminate\Foundation\Application $instance */
  942. return $instance->hasMethodBinding($method);
  943. }
  944. /**
  945. * Bind a callback to resolve with Container::call.
  946. *
  947. * @param array|string $method
  948. * @param \Closure $callback
  949. * @return void
  950. * @static
  951. */
  952. public static function bindMethod($method, $callback)
  953. {
  954. //Method inherited from \Illuminate\Container\Container
  955. /** @var \Illuminate\Foundation\Application $instance */
  956. $instance->bindMethod($method, $callback);
  957. }
  958. /**
  959. * Get the method binding for the given method.
  960. *
  961. * @param string $method
  962. * @param mixed $instance
  963. * @return mixed
  964. * @static
  965. */
  966. public static function callMethodBinding($method, $instance)
  967. {
  968. //Method inherited from \Illuminate\Container\Container
  969. /** @var \Illuminate\Foundation\Application $instance */
  970. return $instance->callMethodBinding($method, $instance);
  971. }
  972. /**
  973. * Add a contextual binding to the container.
  974. *
  975. * @param string $concrete
  976. * @param string $abstract
  977. * @param \Closure|string $implementation
  978. * @return void
  979. * @static
  980. */
  981. public static function addContextualBinding($concrete, $abstract, $implementation)
  982. {
  983. //Method inherited from \Illuminate\Container\Container
  984. /** @var \Illuminate\Foundation\Application $instance */
  985. $instance->addContextualBinding($concrete, $abstract, $implementation);
  986. }
  987. /**
  988. * Register a binding if it hasn't already been registered.
  989. *
  990. * @param string $abstract
  991. * @param \Closure|string|null $concrete
  992. * @param bool $shared
  993. * @return void
  994. * @static
  995. */
  996. public static function bindIf($abstract, $concrete = null, $shared = false)
  997. {
  998. //Method inherited from \Illuminate\Container\Container
  999. /** @var \Illuminate\Foundation\Application $instance */
  1000. $instance->bindIf($abstract, $concrete, $shared);
  1001. }
  1002. /**
  1003. * Register a shared binding in the container.
  1004. *
  1005. * @param string $abstract
  1006. * @param \Closure|string|null $concrete
  1007. * @return void
  1008. * @static
  1009. */
  1010. public static function singleton($abstract, $concrete = null)
  1011. {
  1012. //Method inherited from \Illuminate\Container\Container
  1013. /** @var \Illuminate\Foundation\Application $instance */
  1014. $instance->singleton($abstract, $concrete);
  1015. }
  1016. /**
  1017. * Register a shared binding if it hasn't already been registered.
  1018. *
  1019. * @param string $abstract
  1020. * @param \Closure|string|null $concrete
  1021. * @return void
  1022. * @static
  1023. */
  1024. public static function singletonIf($abstract, $concrete = null)
  1025. {
  1026. //Method inherited from \Illuminate\Container\Container
  1027. /** @var \Illuminate\Foundation\Application $instance */
  1028. $instance->singletonIf($abstract, $concrete);
  1029. }
  1030. /**
  1031. * "Extend" an abstract type in the container.
  1032. *
  1033. * @param string $abstract
  1034. * @param \Closure $closure
  1035. * @return void
  1036. * @throws \InvalidArgumentException
  1037. * @static
  1038. */
  1039. public static function extend($abstract, $closure)
  1040. {
  1041. //Method inherited from \Illuminate\Container\Container
  1042. /** @var \Illuminate\Foundation\Application $instance */
  1043. $instance->extend($abstract, $closure);
  1044. }
  1045. /**
  1046. * Register an existing instance as shared in the container.
  1047. *
  1048. * @param string $abstract
  1049. * @param mixed $instance
  1050. * @return mixed
  1051. * @static
  1052. */
  1053. public static function instance($abstract, $instance)
  1054. {
  1055. //Method inherited from \Illuminate\Container\Container
  1056. /** @var \Illuminate\Foundation\Application $instance */
  1057. return $instance->instance($abstract, $instance);
  1058. }
  1059. /**
  1060. * Assign a set of tags to a given binding.
  1061. *
  1062. * @param array|string $abstracts
  1063. * @param array|mixed $tags
  1064. * @return void
  1065. * @static
  1066. */
  1067. public static function tag($abstracts, $tags)
  1068. {
  1069. //Method inherited from \Illuminate\Container\Container
  1070. /** @var \Illuminate\Foundation\Application $instance */
  1071. $instance->tag($abstracts, $tags);
  1072. }
  1073. /**
  1074. * Resolve all of the bindings for a given tag.
  1075. *
  1076. * @param string $tag
  1077. * @return \Illuminate\Container\iterable
  1078. * @static
  1079. */
  1080. public static function tagged($tag)
  1081. {
  1082. //Method inherited from \Illuminate\Container\Container
  1083. /** @var \Illuminate\Foundation\Application $instance */
  1084. return $instance->tagged($tag);
  1085. }
  1086. /**
  1087. * Alias a type to a different name.
  1088. *
  1089. * @param string $abstract
  1090. * @param string $alias
  1091. * @return void
  1092. * @throws \LogicException
  1093. * @static
  1094. */
  1095. public static function alias($abstract, $alias)
  1096. {
  1097. //Method inherited from \Illuminate\Container\Container
  1098. /** @var \Illuminate\Foundation\Application $instance */
  1099. $instance->alias($abstract, $alias);
  1100. }
  1101. /**
  1102. * Bind a new callback to an abstract's rebind event.
  1103. *
  1104. * @param string $abstract
  1105. * @param \Closure $callback
  1106. * @return mixed
  1107. * @static
  1108. */
  1109. public static function rebinding($abstract, $callback)
  1110. {
  1111. //Method inherited from \Illuminate\Container\Container
  1112. /** @var \Illuminate\Foundation\Application $instance */
  1113. return $instance->rebinding($abstract, $callback);
  1114. }
  1115. /**
  1116. * Refresh an instance on the given target and method.
  1117. *
  1118. * @param string $abstract
  1119. * @param mixed $target
  1120. * @param string $method
  1121. * @return mixed
  1122. * @static
  1123. */
  1124. public static function refresh($abstract, $target, $method)
  1125. {
  1126. //Method inherited from \Illuminate\Container\Container
  1127. /** @var \Illuminate\Foundation\Application $instance */
  1128. return $instance->refresh($abstract, $target, $method);
  1129. }
  1130. /**
  1131. * Wrap the given closure such that its dependencies will be injected when executed.
  1132. *
  1133. * @param \Closure $callback
  1134. * @param array $parameters
  1135. * @return \Closure
  1136. * @static
  1137. */
  1138. public static function wrap($callback, $parameters = [])
  1139. {
  1140. //Method inherited from \Illuminate\Container\Container
  1141. /** @var \Illuminate\Foundation\Application $instance */
  1142. return $instance->wrap($callback, $parameters);
  1143. }
  1144. /**
  1145. * Call the given Closure / class@method and inject its dependencies.
  1146. *
  1147. * @param callable|string $callback
  1148. * @param \Illuminate\Container\array<string, mixed> $parameters
  1149. * @param string|null $defaultMethod
  1150. * @return mixed
  1151. * @throws \InvalidArgumentException
  1152. * @static
  1153. */
  1154. public static function call($callback, $parameters = [], $defaultMethod = null)
  1155. {
  1156. //Method inherited from \Illuminate\Container\Container
  1157. /** @var \Illuminate\Foundation\Application $instance */
  1158. return $instance->call($callback, $parameters, $defaultMethod);
  1159. }
  1160. /**
  1161. * Get a closure to resolve the given type from the container.
  1162. *
  1163. * @param string $abstract
  1164. * @return \Closure
  1165. * @static
  1166. */
  1167. public static function factory($abstract)
  1168. {
  1169. //Method inherited from \Illuminate\Container\Container
  1170. /** @var \Illuminate\Foundation\Application $instance */
  1171. return $instance->factory($abstract);
  1172. }
  1173. /**
  1174. * An alias function name for make().
  1175. *
  1176. * @param string $abstract
  1177. * @param array $parameters
  1178. * @return mixed
  1179. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1180. * @static
  1181. */
  1182. public static function makeWith($abstract, $parameters = [])
  1183. {
  1184. //Method inherited from \Illuminate\Container\Container
  1185. /** @var \Illuminate\Foundation\Application $instance */
  1186. return $instance->makeWith($abstract, $parameters);
  1187. }
  1188. /**
  1189. * Finds an entry of the container by its identifier and returns it.
  1190. *
  1191. * @param string $id Identifier of the entry to look for.
  1192. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1193. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1194. * @return mixed Entry.
  1195. * @static
  1196. */
  1197. public static function get($id)
  1198. {
  1199. //Method inherited from \Illuminate\Container\Container
  1200. /** @var \Illuminate\Foundation\Application $instance */
  1201. return $instance->get($id);
  1202. }
  1203. /**
  1204. * Instantiate a concrete instance of the given type.
  1205. *
  1206. * @param \Closure|string $concrete
  1207. * @return mixed
  1208. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1209. * @static
  1210. */
  1211. public static function build($concrete)
  1212. {
  1213. //Method inherited from \Illuminate\Container\Container
  1214. /** @var \Illuminate\Foundation\Application $instance */
  1215. return $instance->build($concrete);
  1216. }
  1217. /**
  1218. * Register a new resolving callback.
  1219. *
  1220. * @param \Closure|string $abstract
  1221. * @param \Closure|null $callback
  1222. * @return void
  1223. * @static
  1224. */
  1225. public static function resolving($abstract, $callback = null)
  1226. {
  1227. //Method inherited from \Illuminate\Container\Container
  1228. /** @var \Illuminate\Foundation\Application $instance */
  1229. $instance->resolving($abstract, $callback);
  1230. }
  1231. /**
  1232. * Register a new after resolving callback for all types.
  1233. *
  1234. * @param \Closure|string $abstract
  1235. * @param \Closure|null $callback
  1236. * @return void
  1237. * @static
  1238. */
  1239. public static function afterResolving($abstract, $callback = null)
  1240. {
  1241. //Method inherited from \Illuminate\Container\Container
  1242. /** @var \Illuminate\Foundation\Application $instance */
  1243. $instance->afterResolving($abstract, $callback);
  1244. }
  1245. /**
  1246. * Get the container's bindings.
  1247. *
  1248. * @return array
  1249. * @static
  1250. */
  1251. public static function getBindings()
  1252. {
  1253. //Method inherited from \Illuminate\Container\Container
  1254. /** @var \Illuminate\Foundation\Application $instance */
  1255. return $instance->getBindings();
  1256. }
  1257. /**
  1258. * Get the alias for an abstract if available.
  1259. *
  1260. * @param string $abstract
  1261. * @return string
  1262. * @static
  1263. */
  1264. public static function getAlias($abstract)
  1265. {
  1266. //Method inherited from \Illuminate\Container\Container
  1267. /** @var \Illuminate\Foundation\Application $instance */
  1268. return $instance->getAlias($abstract);
  1269. }
  1270. /**
  1271. * Remove all of the extender callbacks for a given type.
  1272. *
  1273. * @param string $abstract
  1274. * @return void
  1275. * @static
  1276. */
  1277. public static function forgetExtenders($abstract)
  1278. {
  1279. //Method inherited from \Illuminate\Container\Container
  1280. /** @var \Illuminate\Foundation\Application $instance */
  1281. $instance->forgetExtenders($abstract);
  1282. }
  1283. /**
  1284. * Remove a resolved instance from the instance cache.
  1285. *
  1286. * @param string $abstract
  1287. * @return void
  1288. * @static
  1289. */
  1290. public static function forgetInstance($abstract)
  1291. {
  1292. //Method inherited from \Illuminate\Container\Container
  1293. /** @var \Illuminate\Foundation\Application $instance */
  1294. $instance->forgetInstance($abstract);
  1295. }
  1296. /**
  1297. * Clear all of the instances from the container.
  1298. *
  1299. * @return void
  1300. * @static
  1301. */
  1302. public static function forgetInstances()
  1303. {
  1304. //Method inherited from \Illuminate\Container\Container
  1305. /** @var \Illuminate\Foundation\Application $instance */
  1306. $instance->forgetInstances();
  1307. }
  1308. /**
  1309. * Get the globally available instance of the container.
  1310. *
  1311. * @return static
  1312. * @static
  1313. */
  1314. public static function getInstance()
  1315. {
  1316. //Method inherited from \Illuminate\Container\Container
  1317. return \Illuminate\Foundation\Application::getInstance();
  1318. }
  1319. /**
  1320. * Set the shared instance of the container.
  1321. *
  1322. * @param \Illuminate\Contracts\Container\Container|null $container
  1323. * @return \Illuminate\Contracts\Container\Container|static
  1324. * @static
  1325. */
  1326. public static function setInstance($container = null)
  1327. {
  1328. //Method inherited from \Illuminate\Container\Container
  1329. return \Illuminate\Foundation\Application::setInstance($container);
  1330. }
  1331. /**
  1332. * Determine if a given offset exists.
  1333. *
  1334. * @param string $key
  1335. * @return bool
  1336. * @static
  1337. */
  1338. public static function offsetExists($key)
  1339. {
  1340. //Method inherited from \Illuminate\Container\Container
  1341. /** @var \Illuminate\Foundation\Application $instance */
  1342. return $instance->offsetExists($key);
  1343. }
  1344. /**
  1345. * Get the value at a given offset.
  1346. *
  1347. * @param string $key
  1348. * @return mixed
  1349. * @static
  1350. */
  1351. public static function offsetGet($key)
  1352. {
  1353. //Method inherited from \Illuminate\Container\Container
  1354. /** @var \Illuminate\Foundation\Application $instance */
  1355. return $instance->offsetGet($key);
  1356. }
  1357. /**
  1358. * Set the value at a given offset.
  1359. *
  1360. * @param string $key
  1361. * @param mixed $value
  1362. * @return void
  1363. * @static
  1364. */
  1365. public static function offsetSet($key, $value)
  1366. {
  1367. //Method inherited from \Illuminate\Container\Container
  1368. /** @var \Illuminate\Foundation\Application $instance */
  1369. $instance->offsetSet($key, $value);
  1370. }
  1371. /**
  1372. * Unset the value at a given offset.
  1373. *
  1374. * @param string $key
  1375. * @return void
  1376. * @static
  1377. */
  1378. public static function offsetUnset($key)
  1379. {
  1380. //Method inherited from \Illuminate\Container\Container
  1381. /** @var \Illuminate\Foundation\Application $instance */
  1382. $instance->offsetUnset($key);
  1383. }
  1384. }
  1385. /**
  1386. *
  1387. *
  1388. * @see \Illuminate\Contracts\Console\Kernel
  1389. */
  1390. class Artisan {
  1391. /**
  1392. * Run the console application.
  1393. *
  1394. * @param \Symfony\Component\Console\Input\InputInterface $input
  1395. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1396. * @return int
  1397. * @static
  1398. */
  1399. public static function handle($input, $output = null)
  1400. {
  1401. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1402. /** @var \App\Console\Kernel $instance */
  1403. return $instance->handle($input, $output);
  1404. }
  1405. /**
  1406. * Terminate the application.
  1407. *
  1408. * @param \Symfony\Component\Console\Input\InputInterface $input
  1409. * @param int $status
  1410. * @return void
  1411. * @static
  1412. */
  1413. public static function terminate($input, $status)
  1414. {
  1415. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1416. /** @var \App\Console\Kernel $instance */
  1417. $instance->terminate($input, $status);
  1418. }
  1419. /**
  1420. * Register a Closure based command with the application.
  1421. *
  1422. * @param string $signature
  1423. * @param \Closure $callback
  1424. * @return \Illuminate\Foundation\Console\ClosureCommand
  1425. * @static
  1426. */
  1427. public static function command($signature, $callback)
  1428. {
  1429. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1430. /** @var \App\Console\Kernel $instance */
  1431. return $instance->command($signature, $callback);
  1432. }
  1433. /**
  1434. * Register the given command with the console application.
  1435. *
  1436. * @param \Symfony\Component\Console\Command\Command $command
  1437. * @return void
  1438. * @static
  1439. */
  1440. public static function registerCommand($command)
  1441. {
  1442. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1443. /** @var \App\Console\Kernel $instance */
  1444. $instance->registerCommand($command);
  1445. }
  1446. /**
  1447. * Run an Artisan console command by name.
  1448. *
  1449. * @param string $command
  1450. * @param array $parameters
  1451. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1452. * @return int
  1453. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1454. * @static
  1455. */
  1456. public static function call($command, $parameters = [], $outputBuffer = null)
  1457. {
  1458. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1459. /** @var \App\Console\Kernel $instance */
  1460. return $instance->call($command, $parameters, $outputBuffer);
  1461. }
  1462. /**
  1463. * Queue the given console command.
  1464. *
  1465. * @param string $command
  1466. * @param array $parameters
  1467. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1468. * @static
  1469. */
  1470. public static function queue($command, $parameters = [])
  1471. {
  1472. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1473. /** @var \App\Console\Kernel $instance */
  1474. return $instance->queue($command, $parameters);
  1475. }
  1476. /**
  1477. * Get all of the commands registered with the console.
  1478. *
  1479. * @return array
  1480. * @static
  1481. */
  1482. public static function all()
  1483. {
  1484. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1485. /** @var \App\Console\Kernel $instance */
  1486. return $instance->all();
  1487. }
  1488. /**
  1489. * Get the output for the last run command.
  1490. *
  1491. * @return string
  1492. * @static
  1493. */
  1494. public static function output()
  1495. {
  1496. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1497. /** @var \App\Console\Kernel $instance */
  1498. return $instance->output();
  1499. }
  1500. /**
  1501. * Bootstrap the application for artisan commands.
  1502. *
  1503. * @return void
  1504. * @static
  1505. */
  1506. public static function bootstrap()
  1507. {
  1508. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1509. /** @var \App\Console\Kernel $instance */
  1510. $instance->bootstrap();
  1511. }
  1512. /**
  1513. * Set the Artisan application instance.
  1514. *
  1515. * @param \Illuminate\Console\Application $artisan
  1516. * @return void
  1517. * @static
  1518. */
  1519. public static function setArtisan($artisan)
  1520. {
  1521. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1522. /** @var \App\Console\Kernel $instance */
  1523. $instance->setArtisan($artisan);
  1524. }
  1525. }
  1526. /**
  1527. *
  1528. *
  1529. * @see \Illuminate\Auth\AuthManager
  1530. * @see \Illuminate\Contracts\Auth\Factory
  1531. * @see \Illuminate\Contracts\Auth\Guard
  1532. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1533. */
  1534. class Auth {
  1535. /**
  1536. * Attempt to get the guard from the local cache.
  1537. *
  1538. * @param string|null $name
  1539. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1540. * @static
  1541. */
  1542. public static function guard($name = null)
  1543. {
  1544. /** @var \Illuminate\Auth\AuthManager $instance */
  1545. return $instance->guard($name);
  1546. }
  1547. /**
  1548. * Create a session based authentication guard.
  1549. *
  1550. * @param string $name
  1551. * @param array $config
  1552. * @return \Illuminate\Auth\SessionGuard
  1553. * @static
  1554. */
  1555. public static function createSessionDriver($name, $config)
  1556. {
  1557. /** @var \Illuminate\Auth\AuthManager $instance */
  1558. return $instance->createSessionDriver($name, $config);
  1559. }
  1560. /**
  1561. * Create a token based authentication guard.
  1562. *
  1563. * @param string $name
  1564. * @param array $config
  1565. * @return \Illuminate\Auth\TokenGuard
  1566. * @static
  1567. */
  1568. public static function createTokenDriver($name, $config)
  1569. {
  1570. /** @var \Illuminate\Auth\AuthManager $instance */
  1571. return $instance->createTokenDriver($name, $config);
  1572. }
  1573. /**
  1574. * Get the default authentication driver name.
  1575. *
  1576. * @return string
  1577. * @static
  1578. */
  1579. public static function getDefaultDriver()
  1580. {
  1581. /** @var \Illuminate\Auth\AuthManager $instance */
  1582. return $instance->getDefaultDriver();
  1583. }
  1584. /**
  1585. * Set the default guard driver the factory should serve.
  1586. *
  1587. * @param string $name
  1588. * @return void
  1589. * @static
  1590. */
  1591. public static function shouldUse($name)
  1592. {
  1593. /** @var \Illuminate\Auth\AuthManager $instance */
  1594. $instance->shouldUse($name);
  1595. }
  1596. /**
  1597. * Set the default authentication driver name.
  1598. *
  1599. * @param string $name
  1600. * @return void
  1601. * @static
  1602. */
  1603. public static function setDefaultDriver($name)
  1604. {
  1605. /** @var \Illuminate\Auth\AuthManager $instance */
  1606. $instance->setDefaultDriver($name);
  1607. }
  1608. /**
  1609. * Register a new callback based request guard.
  1610. *
  1611. * @param string $driver
  1612. * @param callable $callback
  1613. * @return \Illuminate\Auth\AuthManager
  1614. * @static
  1615. */
  1616. public static function viaRequest($driver, $callback)
  1617. {
  1618. /** @var \Illuminate\Auth\AuthManager $instance */
  1619. return $instance->viaRequest($driver, $callback);
  1620. }
  1621. /**
  1622. * Get the user resolver callback.
  1623. *
  1624. * @return \Closure
  1625. * @static
  1626. */
  1627. public static function userResolver()
  1628. {
  1629. /** @var \Illuminate\Auth\AuthManager $instance */
  1630. return $instance->userResolver();
  1631. }
  1632. /**
  1633. * Set the callback to be used to resolve users.
  1634. *
  1635. * @param \Closure $userResolver
  1636. * @return \Illuminate\Auth\AuthManager
  1637. * @static
  1638. */
  1639. public static function resolveUsersUsing($userResolver)
  1640. {
  1641. /** @var \Illuminate\Auth\AuthManager $instance */
  1642. return $instance->resolveUsersUsing($userResolver);
  1643. }
  1644. /**
  1645. * Register a custom driver creator Closure.
  1646. *
  1647. * @param string $driver
  1648. * @param \Closure $callback
  1649. * @return \Illuminate\Auth\AuthManager
  1650. * @static
  1651. */
  1652. public static function extend($driver, $callback)
  1653. {
  1654. /** @var \Illuminate\Auth\AuthManager $instance */
  1655. return $instance->extend($driver, $callback);
  1656. }
  1657. /**
  1658. * Register a custom provider creator Closure.
  1659. *
  1660. * @param string $name
  1661. * @param \Closure $callback
  1662. * @return \Illuminate\Auth\AuthManager
  1663. * @static
  1664. */
  1665. public static function provider($name, $callback)
  1666. {
  1667. /** @var \Illuminate\Auth\AuthManager $instance */
  1668. return $instance->provider($name, $callback);
  1669. }
  1670. /**
  1671. * Determines if any guards have already been resolved.
  1672. *
  1673. * @return bool
  1674. * @static
  1675. */
  1676. public static function hasResolvedGuards()
  1677. {
  1678. /** @var \Illuminate\Auth\AuthManager $instance */
  1679. return $instance->hasResolvedGuards();
  1680. }
  1681. /**
  1682. * Create the user provider implementation for the driver.
  1683. *
  1684. * @param string|null $provider
  1685. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1686. * @throws \InvalidArgumentException
  1687. * @static
  1688. */
  1689. public static function createUserProvider($provider = null)
  1690. {
  1691. /** @var \Illuminate\Auth\AuthManager $instance */
  1692. return $instance->createUserProvider($provider);
  1693. }
  1694. /**
  1695. * Get the default user provider name.
  1696. *
  1697. * @return string
  1698. * @static
  1699. */
  1700. public static function getDefaultUserProvider()
  1701. {
  1702. /** @var \Illuminate\Auth\AuthManager $instance */
  1703. return $instance->getDefaultUserProvider();
  1704. }
  1705. /**
  1706. * Get the currently authenticated user.
  1707. *
  1708. * @return \App\User|null
  1709. * @static
  1710. */
  1711. public static function user()
  1712. {
  1713. /** @var \Illuminate\Auth\SessionGuard $instance */
  1714. return $instance->user();
  1715. }
  1716. /**
  1717. * Get the ID for the currently authenticated user.
  1718. *
  1719. * @return int|string|null
  1720. * @static
  1721. */
  1722. public static function id()
  1723. {
  1724. /** @var \Illuminate\Auth\SessionGuard $instance */
  1725. return $instance->id();
  1726. }
  1727. /**
  1728. * Log a user into the application without sessions or cookies.
  1729. *
  1730. * @param array $credentials
  1731. * @return bool
  1732. * @static
  1733. */
  1734. public static function once($credentials = [])
  1735. {
  1736. /** @var \Illuminate\Auth\SessionGuard $instance */
  1737. return $instance->once($credentials);
  1738. }
  1739. /**
  1740. * Log the given user ID into the application without sessions or cookies.
  1741. *
  1742. * @param mixed $id
  1743. * @return \App\User|false
  1744. * @static
  1745. */
  1746. public static function onceUsingId($id)
  1747. {
  1748. /** @var \Illuminate\Auth\SessionGuard $instance */
  1749. return $instance->onceUsingId($id);
  1750. }
  1751. /**
  1752. * Validate a user's credentials.
  1753. *
  1754. * @param array $credentials
  1755. * @return bool
  1756. * @static
  1757. */
  1758. public static function validate($credentials = [])
  1759. {
  1760. /** @var \Illuminate\Auth\SessionGuard $instance */
  1761. return $instance->validate($credentials);
  1762. }
  1763. /**
  1764. * Attempt to authenticate using HTTP Basic Auth.
  1765. *
  1766. * @param string $field
  1767. * @param array $extraConditions
  1768. * @return \Symfony\Component\HttpFoundation\Response|null
  1769. * @static
  1770. */
  1771. public static function basic($field = 'email', $extraConditions = [])
  1772. {
  1773. /** @var \Illuminate\Auth\SessionGuard $instance */
  1774. return $instance->basic($field, $extraConditions);
  1775. }
  1776. /**
  1777. * Perform a stateless HTTP Basic login attempt.
  1778. *
  1779. * @param string $field
  1780. * @param array $extraConditions
  1781. * @return \Symfony\Component\HttpFoundation\Response|null
  1782. * @static
  1783. */
  1784. public static function onceBasic($field = 'email', $extraConditions = [])
  1785. {
  1786. /** @var \Illuminate\Auth\SessionGuard $instance */
  1787. return $instance->onceBasic($field, $extraConditions);
  1788. }
  1789. /**
  1790. * Attempt to authenticate a user using the given credentials.
  1791. *
  1792. * @param array $credentials
  1793. * @param bool $remember
  1794. * @return bool
  1795. * @static
  1796. */
  1797. public static function attempt($credentials = [], $remember = false)
  1798. {
  1799. /** @var \Illuminate\Auth\SessionGuard $instance */
  1800. return $instance->attempt($credentials, $remember);
  1801. }
  1802. /**
  1803. * Log the given user ID into the application.
  1804. *
  1805. * @param mixed $id
  1806. * @param bool $remember
  1807. * @return \App\User|false
  1808. * @static
  1809. */
  1810. public static function loginUsingId($id, $remember = false)
  1811. {
  1812. /** @var \Illuminate\Auth\SessionGuard $instance */
  1813. return $instance->loginUsingId($id, $remember);
  1814. }
  1815. /**
  1816. * Log a user into the application.
  1817. *
  1818. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1819. * @param bool $remember
  1820. * @return void
  1821. * @static
  1822. */
  1823. public static function login($user, $remember = false)
  1824. {
  1825. /** @var \Illuminate\Auth\SessionGuard $instance */
  1826. $instance->login($user, $remember);
  1827. }
  1828. /**
  1829. * Log the user out of the application.
  1830. *
  1831. * @return void
  1832. * @static
  1833. */
  1834. public static function logout()
  1835. {
  1836. /** @var \Illuminate\Auth\SessionGuard $instance */
  1837. $instance->logout();
  1838. }
  1839. /**
  1840. * Log the user out of the application on their current device only.
  1841. *
  1842. * @return void
  1843. * @static
  1844. */
  1845. public static function logoutCurrentDevice()
  1846. {
  1847. /** @var \Illuminate\Auth\SessionGuard $instance */
  1848. $instance->logoutCurrentDevice();
  1849. }
  1850. /**
  1851. * Invalidate other sessions for the current user.
  1852. *
  1853. * The application must be using the AuthenticateSession middleware.
  1854. *
  1855. * @param string $password
  1856. * @param string $attribute
  1857. * @return bool|null
  1858. * @static
  1859. */
  1860. public static function logoutOtherDevices($password, $attribute = 'password')
  1861. {
  1862. /** @var \Illuminate\Auth\SessionGuard $instance */
  1863. return $instance->logoutOtherDevices($password, $attribute);
  1864. }
  1865. /**
  1866. * Register an authentication attempt event listener.
  1867. *
  1868. * @param mixed $callback
  1869. * @return void
  1870. * @static
  1871. */
  1872. public static function attempting($callback)
  1873. {
  1874. /** @var \Illuminate\Auth\SessionGuard $instance */
  1875. $instance->attempting($callback);
  1876. }
  1877. /**
  1878. * Get the last user we attempted to authenticate.
  1879. *
  1880. * @return \App\User
  1881. * @static
  1882. */
  1883. public static function getLastAttempted()
  1884. {
  1885. /** @var \Illuminate\Auth\SessionGuard $instance */
  1886. return $instance->getLastAttempted();
  1887. }
  1888. /**
  1889. * Get a unique identifier for the auth session value.
  1890. *
  1891. * @return string
  1892. * @static
  1893. */
  1894. public static function getName()
  1895. {
  1896. /** @var \Illuminate\Auth\SessionGuard $instance */
  1897. return $instance->getName();
  1898. }
  1899. /**
  1900. * Get the name of the cookie used to store the "recaller".
  1901. *
  1902. * @return string
  1903. * @static
  1904. */
  1905. public static function getRecallerName()
  1906. {
  1907. /** @var \Illuminate\Auth\SessionGuard $instance */
  1908. return $instance->getRecallerName();
  1909. }
  1910. /**
  1911. * Determine if the user was authenticated via "remember me" cookie.
  1912. *
  1913. * @return bool
  1914. * @static
  1915. */
  1916. public static function viaRemember()
  1917. {
  1918. /** @var \Illuminate\Auth\SessionGuard $instance */
  1919. return $instance->viaRemember();
  1920. }
  1921. /**
  1922. * Get the cookie creator instance used by the guard.
  1923. *
  1924. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1925. * @throws \RuntimeException
  1926. * @static
  1927. */
  1928. public static function getCookieJar()
  1929. {
  1930. /** @var \Illuminate\Auth\SessionGuard $instance */
  1931. return $instance->getCookieJar();
  1932. }
  1933. /**
  1934. * Set the cookie creator instance used by the guard.
  1935. *
  1936. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1937. * @return void
  1938. * @static
  1939. */
  1940. public static function setCookieJar($cookie)
  1941. {
  1942. /** @var \Illuminate\Auth\SessionGuard $instance */
  1943. $instance->setCookieJar($cookie);
  1944. }
  1945. /**
  1946. * Get the event dispatcher instance.
  1947. *
  1948. * @return \Illuminate\Contracts\Events\Dispatcher
  1949. * @static
  1950. */
  1951. public static function getDispatcher()
  1952. {
  1953. /** @var \Illuminate\Auth\SessionGuard $instance */
  1954. return $instance->getDispatcher();
  1955. }
  1956. /**
  1957. * Set the event dispatcher instance.
  1958. *
  1959. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1960. * @return void
  1961. * @static
  1962. */
  1963. public static function setDispatcher($events)
  1964. {
  1965. /** @var \Illuminate\Auth\SessionGuard $instance */
  1966. $instance->setDispatcher($events);
  1967. }
  1968. /**
  1969. * Get the session store used by the guard.
  1970. *
  1971. * @return \Illuminate\Contracts\Session\Session
  1972. * @static
  1973. */
  1974. public static function getSession()
  1975. {
  1976. /** @var \Illuminate\Auth\SessionGuard $instance */
  1977. return $instance->getSession();
  1978. }
  1979. /**
  1980. * Return the currently cached user.
  1981. *
  1982. * @return \App\User|null
  1983. * @static
  1984. */
  1985. public static function getUser()
  1986. {
  1987. /** @var \Illuminate\Auth\SessionGuard $instance */
  1988. return $instance->getUser();
  1989. }
  1990. /**
  1991. * Set the current user.
  1992. *
  1993. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1994. * @return \Illuminate\Auth\SessionGuard
  1995. * @static
  1996. */
  1997. public static function setUser($user)
  1998. {
  1999. /** @var \Illuminate\Auth\SessionGuard $instance */
  2000. return $instance->setUser($user);
  2001. }
  2002. /**
  2003. * Get the current request instance.
  2004. *
  2005. * @return \Symfony\Component\HttpFoundation\Request
  2006. * @static
  2007. */
  2008. public static function getRequest()
  2009. {
  2010. /** @var \Illuminate\Auth\SessionGuard $instance */
  2011. return $instance->getRequest();
  2012. }
  2013. /**
  2014. * Set the current request instance.
  2015. *
  2016. * @param \Symfony\Component\HttpFoundation\Request $request
  2017. * @return \Illuminate\Auth\SessionGuard
  2018. * @static
  2019. */
  2020. public static function setRequest($request)
  2021. {
  2022. /** @var \Illuminate\Auth\SessionGuard $instance */
  2023. return $instance->setRequest($request);
  2024. }
  2025. /**
  2026. * Determine if current user is authenticated. If not, throw an exception.
  2027. *
  2028. * @return \App\User
  2029. * @throws \Illuminate\Auth\AuthenticationException
  2030. * @static
  2031. */
  2032. public static function authenticate()
  2033. {
  2034. /** @var \Illuminate\Auth\SessionGuard $instance */
  2035. return $instance->authenticate();
  2036. }
  2037. /**
  2038. * Determine if the guard has a user instance.
  2039. *
  2040. * @return bool
  2041. * @static
  2042. */
  2043. public static function hasUser()
  2044. {
  2045. /** @var \Illuminate\Auth\SessionGuard $instance */
  2046. return $instance->hasUser();
  2047. }
  2048. /**
  2049. * Determine if the current user is authenticated.
  2050. *
  2051. * @return bool
  2052. * @static
  2053. */
  2054. public static function check()
  2055. {
  2056. /** @var \Illuminate\Auth\SessionGuard $instance */
  2057. return $instance->check();
  2058. }
  2059. /**
  2060. * Determine if the current user is a guest.
  2061. *
  2062. * @return bool
  2063. * @static
  2064. */
  2065. public static function guest()
  2066. {
  2067. /** @var \Illuminate\Auth\SessionGuard $instance */
  2068. return $instance->guest();
  2069. }
  2070. /**
  2071. * Get the user provider used by the guard.
  2072. *
  2073. * @return \Illuminate\Contracts\Auth\UserProvider
  2074. * @static
  2075. */
  2076. public static function getProvider()
  2077. {
  2078. /** @var \Illuminate\Auth\SessionGuard $instance */
  2079. return $instance->getProvider();
  2080. }
  2081. /**
  2082. * Set the user provider used by the guard.
  2083. *
  2084. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2085. * @return void
  2086. * @static
  2087. */
  2088. public static function setProvider($provider)
  2089. {
  2090. /** @var \Illuminate\Auth\SessionGuard $instance */
  2091. $instance->setProvider($provider);
  2092. }
  2093. /**
  2094. * Register a custom macro.
  2095. *
  2096. * @param string $name
  2097. * @param object|callable $macro
  2098. * @return void
  2099. * @static
  2100. */
  2101. public static function macro($name, $macro)
  2102. {
  2103. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2104. }
  2105. /**
  2106. * Mix another object into the class.
  2107. *
  2108. * @param object $mixin
  2109. * @param bool $replace
  2110. * @return void
  2111. * @throws \ReflectionException
  2112. * @static
  2113. */
  2114. public static function mixin($mixin, $replace = true)
  2115. {
  2116. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2117. }
  2118. /**
  2119. * Checks if macro is registered.
  2120. *
  2121. * @param string $name
  2122. * @return bool
  2123. * @static
  2124. */
  2125. public static function hasMacro($name)
  2126. {
  2127. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2128. }
  2129. }
  2130. /**
  2131. *
  2132. *
  2133. * @see \Illuminate\View\Compilers\BladeCompiler
  2134. */
  2135. class Blade {
  2136. /**
  2137. * Compile the view at the given path.
  2138. *
  2139. * @param string|null $path
  2140. * @return void
  2141. * @static
  2142. */
  2143. public static function compile($path = null)
  2144. {
  2145. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2146. $instance->compile($path);
  2147. }
  2148. /**
  2149. * Get the path currently being compiled.
  2150. *
  2151. * @return string
  2152. * @static
  2153. */
  2154. public static function getPath()
  2155. {
  2156. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2157. return $instance->getPath();
  2158. }
  2159. /**
  2160. * Set the path currently being compiled.
  2161. *
  2162. * @param string $path
  2163. * @return void
  2164. * @static
  2165. */
  2166. public static function setPath($path)
  2167. {
  2168. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2169. $instance->setPath($path);
  2170. }
  2171. /**
  2172. * Compile the given Blade template contents.
  2173. *
  2174. * @param string $value
  2175. * @return string
  2176. * @static
  2177. */
  2178. public static function compileString($value)
  2179. {
  2180. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2181. return $instance->compileString($value);
  2182. }
  2183. /**
  2184. * Strip the parentheses from the given expression.
  2185. *
  2186. * @param string $expression
  2187. * @return string
  2188. * @static
  2189. */
  2190. public static function stripParentheses($expression)
  2191. {
  2192. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2193. return $instance->stripParentheses($expression);
  2194. }
  2195. /**
  2196. * Register a custom Blade compiler.
  2197. *
  2198. * @param callable $compiler
  2199. * @return void
  2200. * @static
  2201. */
  2202. public static function extend($compiler)
  2203. {
  2204. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2205. $instance->extend($compiler);
  2206. }
  2207. /**
  2208. * Get the extensions used by the compiler.
  2209. *
  2210. * @return array
  2211. * @static
  2212. */
  2213. public static function getExtensions()
  2214. {
  2215. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2216. return $instance->getExtensions();
  2217. }
  2218. /**
  2219. * Register an "if" statement directive.
  2220. *
  2221. * @param string $name
  2222. * @param callable $callback
  2223. * @return void
  2224. * @static
  2225. */
  2226. public static function if($name, $callback)
  2227. {
  2228. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2229. $instance->if($name, $callback);
  2230. }
  2231. /**
  2232. * Check the result of a condition.
  2233. *
  2234. * @param string $name
  2235. * @param array $parameters
  2236. * @return bool
  2237. * @static
  2238. */
  2239. public static function check($name, ...$parameters)
  2240. {
  2241. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2242. return $instance->check($name, ...$parameters);
  2243. }
  2244. /**
  2245. * Register a class-based component alias directive.
  2246. *
  2247. * @param string $class
  2248. * @param string|null $alias
  2249. * @param string $prefix
  2250. * @return void
  2251. * @static
  2252. */
  2253. public static function component($class, $alias = null, $prefix = '')
  2254. {
  2255. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2256. $instance->component($class, $alias, $prefix);
  2257. }
  2258. /**
  2259. * Register an array of class-based components.
  2260. *
  2261. * @param array $components
  2262. * @param string $prefix
  2263. * @return void
  2264. * @static
  2265. */
  2266. public static function components($components, $prefix = '')
  2267. {
  2268. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2269. $instance->components($components, $prefix);
  2270. }
  2271. /**
  2272. * Get the registered class component aliases.
  2273. *
  2274. * @return array
  2275. * @static
  2276. */
  2277. public static function getClassComponentAliases()
  2278. {
  2279. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2280. return $instance->getClassComponentAliases();
  2281. }
  2282. /**
  2283. * Register a component alias directive.
  2284. *
  2285. * @param string $path
  2286. * @param string|null $alias
  2287. * @return void
  2288. * @static
  2289. */
  2290. public static function aliasComponent($path, $alias = null)
  2291. {
  2292. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2293. $instance->aliasComponent($path, $alias);
  2294. }
  2295. /**
  2296. * Register an include alias directive.
  2297. *
  2298. * @param string $path
  2299. * @param string|null $alias
  2300. * @return void
  2301. * @static
  2302. */
  2303. public static function include($path, $alias = null)
  2304. {
  2305. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2306. $instance->include($path, $alias);
  2307. }
  2308. /**
  2309. * Register an include alias directive.
  2310. *
  2311. * @param string $path
  2312. * @param string|null $alias
  2313. * @return void
  2314. * @static
  2315. */
  2316. public static function aliasInclude($path, $alias = null)
  2317. {
  2318. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2319. $instance->aliasInclude($path, $alias);
  2320. }
  2321. /**
  2322. * Register a handler for custom directives.
  2323. *
  2324. * @param string $name
  2325. * @param callable $handler
  2326. * @return void
  2327. * @throws \InvalidArgumentException
  2328. * @static
  2329. */
  2330. public static function directive($name, $handler)
  2331. {
  2332. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2333. $instance->directive($name, $handler);
  2334. }
  2335. /**
  2336. * Get the list of custom directives.
  2337. *
  2338. * @return array
  2339. * @static
  2340. */
  2341. public static function getCustomDirectives()
  2342. {
  2343. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2344. return $instance->getCustomDirectives();
  2345. }
  2346. /**
  2347. * Register a new precompiler.
  2348. *
  2349. * @param callable $precompiler
  2350. * @return void
  2351. * @static
  2352. */
  2353. public static function precompiler($precompiler)
  2354. {
  2355. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2356. $instance->precompiler($precompiler);
  2357. }
  2358. /**
  2359. * Set the echo format to be used by the compiler.
  2360. *
  2361. * @param string $format
  2362. * @return void
  2363. * @static
  2364. */
  2365. public static function setEchoFormat($format)
  2366. {
  2367. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2368. $instance->setEchoFormat($format);
  2369. }
  2370. /**
  2371. * Set the "echo" format to double encode entities.
  2372. *
  2373. * @return void
  2374. * @static
  2375. */
  2376. public static function withDoubleEncoding()
  2377. {
  2378. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2379. $instance->withDoubleEncoding();
  2380. }
  2381. /**
  2382. * Set the "echo" format to not double encode entities.
  2383. *
  2384. * @return void
  2385. * @static
  2386. */
  2387. public static function withoutDoubleEncoding()
  2388. {
  2389. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2390. $instance->withoutDoubleEncoding();
  2391. }
  2392. /**
  2393. * Indicate that component tags should not be compiled.
  2394. *
  2395. * @return void
  2396. * @static
  2397. */
  2398. public static function withoutComponentTags()
  2399. {
  2400. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2401. $instance->withoutComponentTags();
  2402. }
  2403. /**
  2404. * Get the path to the compiled version of a view.
  2405. *
  2406. * @param string $path
  2407. * @return string
  2408. * @static
  2409. */
  2410. public static function getCompiledPath($path)
  2411. {
  2412. //Method inherited from \Illuminate\View\Compilers\Compiler
  2413. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2414. return $instance->getCompiledPath($path);
  2415. }
  2416. /**
  2417. * Determine if the view at the given path is expired.
  2418. *
  2419. * @param string $path
  2420. * @return bool
  2421. * @static
  2422. */
  2423. public static function isExpired($path)
  2424. {
  2425. //Method inherited from \Illuminate\View\Compilers\Compiler
  2426. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2427. return $instance->isExpired($path);
  2428. }
  2429. /**
  2430. * Get a new component hash for a component name.
  2431. *
  2432. * @param string $component
  2433. * @return string
  2434. * @static
  2435. */
  2436. public static function newComponentHash($component)
  2437. {
  2438. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2439. }
  2440. /**
  2441. * Compile a class component opening.
  2442. *
  2443. * @param string $component
  2444. * @param string $alias
  2445. * @param string $data
  2446. * @param string $hash
  2447. * @return string
  2448. * @static
  2449. */
  2450. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2451. {
  2452. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2453. }
  2454. /**
  2455. * Compile the end-component statements into valid PHP.
  2456. *
  2457. * @return string
  2458. * @static
  2459. */
  2460. public static function compileEndComponentClass()
  2461. {
  2462. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2463. return $instance->compileEndComponentClass();
  2464. }
  2465. /**
  2466. * Sanitize the given component attribute value.
  2467. *
  2468. * @param mixed $value
  2469. * @return mixed
  2470. * @static
  2471. */
  2472. public static function sanitizeComponentAttribute($value)
  2473. {
  2474. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2475. }
  2476. /**
  2477. * Compile Blade echos into valid PHP.
  2478. *
  2479. * @param string $value
  2480. * @return string
  2481. * @static
  2482. */
  2483. public static function compileEchos($value)
  2484. {
  2485. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2486. return $instance->compileEchos($value);
  2487. }
  2488. }
  2489. /**
  2490. *
  2491. *
  2492. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2493. * @method static mixed auth(\Illuminate\Http\Request $request)
  2494. * @see \Illuminate\Contracts\Broadcasting\Factory
  2495. */
  2496. class Broadcast {
  2497. /**
  2498. * Register the routes for handling broadcast authentication and sockets.
  2499. *
  2500. * @param array|null $attributes
  2501. * @return void
  2502. * @static
  2503. */
  2504. public static function routes($attributes = null)
  2505. {
  2506. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2507. $instance->routes($attributes);
  2508. }
  2509. /**
  2510. * Get the socket ID for the given request.
  2511. *
  2512. * @param \Illuminate\Http\Request|null $request
  2513. * @return string|null
  2514. * @static
  2515. */
  2516. public static function socket($request = null)
  2517. {
  2518. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2519. return $instance->socket($request);
  2520. }
  2521. /**
  2522. * Begin broadcasting an event.
  2523. *
  2524. * @param mixed|null $event
  2525. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2526. * @static
  2527. */
  2528. public static function event($event = null)
  2529. {
  2530. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2531. return $instance->event($event);
  2532. }
  2533. /**
  2534. * Queue the given event for broadcast.
  2535. *
  2536. * @param mixed $event
  2537. * @return void
  2538. * @static
  2539. */
  2540. public static function queue($event)
  2541. {
  2542. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2543. $instance->queue($event);
  2544. }
  2545. /**
  2546. * Get a driver instance.
  2547. *
  2548. * @param string|null $driver
  2549. * @return mixed
  2550. * @static
  2551. */
  2552. public static function connection($driver = null)
  2553. {
  2554. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2555. return $instance->connection($driver);
  2556. }
  2557. /**
  2558. * Get a driver instance.
  2559. *
  2560. * @param string|null $name
  2561. * @return mixed
  2562. * @static
  2563. */
  2564. public static function driver($name = null)
  2565. {
  2566. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2567. return $instance->driver($name);
  2568. }
  2569. /**
  2570. * Get the default driver name.
  2571. *
  2572. * @return string
  2573. * @static
  2574. */
  2575. public static function getDefaultDriver()
  2576. {
  2577. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2578. return $instance->getDefaultDriver();
  2579. }
  2580. /**
  2581. * Set the default driver name.
  2582. *
  2583. * @param string $name
  2584. * @return void
  2585. * @static
  2586. */
  2587. public static function setDefaultDriver($name)
  2588. {
  2589. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2590. $instance->setDefaultDriver($name);
  2591. }
  2592. /**
  2593. * Register a custom driver creator Closure.
  2594. *
  2595. * @param string $driver
  2596. * @param \Closure $callback
  2597. * @return \Illuminate\Broadcasting\BroadcastManager
  2598. * @static
  2599. */
  2600. public static function extend($driver, $callback)
  2601. {
  2602. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2603. return $instance->extend($driver, $callback);
  2604. }
  2605. }
  2606. /**
  2607. *
  2608. *
  2609. * @see \Illuminate\Contracts\Bus\Dispatcher
  2610. */
  2611. class Bus {
  2612. /**
  2613. * Dispatch a command to its appropriate handler.
  2614. *
  2615. * @param mixed $command
  2616. * @return mixed
  2617. * @static
  2618. */
  2619. public static function dispatch($command)
  2620. {
  2621. /** @var \Illuminate\Bus\Dispatcher $instance */
  2622. return $instance->dispatch($command);
  2623. }
  2624. /**
  2625. * Dispatch a command to its appropriate handler in the current process.
  2626. *
  2627. * @param mixed $command
  2628. * @param mixed $handler
  2629. * @return mixed
  2630. * @static
  2631. */
  2632. public static function dispatchNow($command, $handler = null)
  2633. {
  2634. /** @var \Illuminate\Bus\Dispatcher $instance */
  2635. return $instance->dispatchNow($command, $handler);
  2636. }
  2637. /**
  2638. * Determine if the given command has a handler.
  2639. *
  2640. * @param mixed $command
  2641. * @return bool
  2642. * @static
  2643. */
  2644. public static function hasCommandHandler($command)
  2645. {
  2646. /** @var \Illuminate\Bus\Dispatcher $instance */
  2647. return $instance->hasCommandHandler($command);
  2648. }
  2649. /**
  2650. * Retrieve the handler for a command.
  2651. *
  2652. * @param mixed $command
  2653. * @return bool|mixed
  2654. * @static
  2655. */
  2656. public static function getCommandHandler($command)
  2657. {
  2658. /** @var \Illuminate\Bus\Dispatcher $instance */
  2659. return $instance->getCommandHandler($command);
  2660. }
  2661. /**
  2662. * Dispatch a command to its appropriate handler behind a queue.
  2663. *
  2664. * @param mixed $command
  2665. * @return mixed
  2666. * @static
  2667. */
  2668. public static function dispatchToQueue($command)
  2669. {
  2670. /** @var \Illuminate\Bus\Dispatcher $instance */
  2671. return $instance->dispatchToQueue($command);
  2672. }
  2673. /**
  2674. * Dispatch a command to its appropriate handler after the current process.
  2675. *
  2676. * @param mixed $command
  2677. * @param mixed $handler
  2678. * @return void
  2679. * @static
  2680. */
  2681. public static function dispatchAfterResponse($command, $handler = null)
  2682. {
  2683. /** @var \Illuminate\Bus\Dispatcher $instance */
  2684. $instance->dispatchAfterResponse($command, $handler);
  2685. }
  2686. /**
  2687. * Set the pipes through which commands should be piped before dispatching.
  2688. *
  2689. * @param array $pipes
  2690. * @return \Illuminate\Bus\Dispatcher
  2691. * @static
  2692. */
  2693. public static function pipeThrough($pipes)
  2694. {
  2695. /** @var \Illuminate\Bus\Dispatcher $instance */
  2696. return $instance->pipeThrough($pipes);
  2697. }
  2698. /**
  2699. * Map a command to a handler.
  2700. *
  2701. * @param array $map
  2702. * @return \Illuminate\Bus\Dispatcher
  2703. * @static
  2704. */
  2705. public static function map($map)
  2706. {
  2707. /** @var \Illuminate\Bus\Dispatcher $instance */
  2708. return $instance->map($map);
  2709. }
  2710. /**
  2711. * Assert if a job was dispatched based on a truth-test callback.
  2712. *
  2713. * @param string|\Closure $command
  2714. * @param callable|int|null $callback
  2715. * @return void
  2716. * @static
  2717. */
  2718. public static function assertDispatched($command, $callback = null)
  2719. {
  2720. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2721. $instance->assertDispatched($command, $callback);
  2722. }
  2723. /**
  2724. * Assert if a job was pushed a number of times.
  2725. *
  2726. * @param string $command
  2727. * @param int $times
  2728. * @return void
  2729. * @static
  2730. */
  2731. public static function assertDispatchedTimes($command, $times = 1)
  2732. {
  2733. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2734. $instance->assertDispatchedTimes($command, $times);
  2735. }
  2736. /**
  2737. * Determine if a job was dispatched based on a truth-test callback.
  2738. *
  2739. * @param string|\Closure $command
  2740. * @param callable|null $callback
  2741. * @return void
  2742. * @static
  2743. */
  2744. public static function assertNotDispatched($command, $callback = null)
  2745. {
  2746. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2747. $instance->assertNotDispatched($command, $callback);
  2748. }
  2749. /**
  2750. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  2751. *
  2752. * @param string|\Closure $command
  2753. * @param callable|int|null $callback
  2754. * @return void
  2755. * @static
  2756. */
  2757. public static function assertDispatchedAfterResponse($command, $callback = null)
  2758. {
  2759. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2760. $instance->assertDispatchedAfterResponse($command, $callback);
  2761. }
  2762. /**
  2763. * Assert if a job was pushed after the response was sent a number of times.
  2764. *
  2765. * @param string $command
  2766. * @param int $times
  2767. * @return void
  2768. * @static
  2769. */
  2770. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  2771. {
  2772. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2773. $instance->assertDispatchedAfterResponseTimes($command, $times);
  2774. }
  2775. /**
  2776. * Determine if a job was dispatched based on a truth-test callback.
  2777. *
  2778. * @param string|\Closure $command
  2779. * @param callable|null $callback
  2780. * @return void
  2781. * @static
  2782. */
  2783. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  2784. {
  2785. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2786. $instance->assertNotDispatchedAfterResponse($command, $callback);
  2787. }
  2788. /**
  2789. * Get all of the jobs matching a truth-test callback.
  2790. *
  2791. * @param string $command
  2792. * @param callable|null $callback
  2793. * @return \Illuminate\Support\Collection
  2794. * @static
  2795. */
  2796. public static function dispatched($command, $callback = null)
  2797. {
  2798. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2799. return $instance->dispatched($command, $callback);
  2800. }
  2801. /**
  2802. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  2803. *
  2804. * @param string $command
  2805. * @param callable|null $callback
  2806. * @return \Illuminate\Support\Collection
  2807. * @static
  2808. */
  2809. public static function dispatchedAfterResponse($command, $callback = null)
  2810. {
  2811. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2812. return $instance->dispatchedAfterResponse($command, $callback);
  2813. }
  2814. /**
  2815. * Determine if there are any stored commands for a given class.
  2816. *
  2817. * @param string $command
  2818. * @return bool
  2819. * @static
  2820. */
  2821. public static function hasDispatched($command)
  2822. {
  2823. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2824. return $instance->hasDispatched($command);
  2825. }
  2826. /**
  2827. * Determine if there are any stored commands for a given class.
  2828. *
  2829. * @param string $command
  2830. * @return bool
  2831. * @static
  2832. */
  2833. public static function hasDispatchedAfterResponse($command)
  2834. {
  2835. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2836. return $instance->hasDispatchedAfterResponse($command);
  2837. }
  2838. }
  2839. /**
  2840. *
  2841. *
  2842. * @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, mixed $owner = null)
  2843. * @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner)
  2844. * @see \Illuminate\Cache\CacheManager
  2845. * @see \Illuminate\Cache\Repository
  2846. */
  2847. class Cache {
  2848. /**
  2849. * Get a cache store instance by name, wrapped in a repository.
  2850. *
  2851. * @param string|null $name
  2852. * @return \Illuminate\Contracts\Cache\Repository
  2853. * @static
  2854. */
  2855. public static function store($name = null)
  2856. {
  2857. /** @var \Illuminate\Cache\CacheManager $instance */
  2858. return $instance->store($name);
  2859. }
  2860. /**
  2861. * Get a cache driver instance.
  2862. *
  2863. * @param string|null $driver
  2864. * @return \Illuminate\Contracts\Cache\Repository
  2865. * @static
  2866. */
  2867. public static function driver($driver = null)
  2868. {
  2869. /** @var \Illuminate\Cache\CacheManager $instance */
  2870. return $instance->driver($driver);
  2871. }
  2872. /**
  2873. * Create a new cache repository with the given implementation.
  2874. *
  2875. * @param \Illuminate\Contracts\Cache\Store $store
  2876. * @return \Illuminate\Cache\Repository
  2877. * @static
  2878. */
  2879. public static function repository($store)
  2880. {
  2881. /** @var \Illuminate\Cache\CacheManager $instance */
  2882. return $instance->repository($store);
  2883. }
  2884. /**
  2885. * Re-set the event dispatcher on all resolved cache repositories.
  2886. *
  2887. * @return void
  2888. * @static
  2889. */
  2890. public static function refreshEventDispatcher()
  2891. {
  2892. /** @var \Illuminate\Cache\CacheManager $instance */
  2893. $instance->refreshEventDispatcher();
  2894. }
  2895. /**
  2896. * Get the default cache driver name.
  2897. *
  2898. * @return string
  2899. * @static
  2900. */
  2901. public static function getDefaultDriver()
  2902. {
  2903. /** @var \Illuminate\Cache\CacheManager $instance */
  2904. return $instance->getDefaultDriver();
  2905. }
  2906. /**
  2907. * Set the default cache driver name.
  2908. *
  2909. * @param string $name
  2910. * @return void
  2911. * @static
  2912. */
  2913. public static function setDefaultDriver($name)
  2914. {
  2915. /** @var \Illuminate\Cache\CacheManager $instance */
  2916. $instance->setDefaultDriver($name);
  2917. }
  2918. /**
  2919. * Unset the given driver instances.
  2920. *
  2921. * @param array|string|null $name
  2922. * @return \Illuminate\Cache\CacheManager
  2923. * @static
  2924. */
  2925. public static function forgetDriver($name = null)
  2926. {
  2927. /** @var \Illuminate\Cache\CacheManager $instance */
  2928. return $instance->forgetDriver($name);
  2929. }
  2930. /**
  2931. * Register a custom driver creator Closure.
  2932. *
  2933. * @param string $driver
  2934. * @param \Closure $callback
  2935. * @return \Illuminate\Cache\CacheManager
  2936. * @static
  2937. */
  2938. public static function extend($driver, $callback)
  2939. {
  2940. /** @var \Illuminate\Cache\CacheManager $instance */
  2941. return $instance->extend($driver, $callback);
  2942. }
  2943. /**
  2944. * Determine if an item exists in the cache.
  2945. *
  2946. * @param string $key
  2947. * @return bool
  2948. * @static
  2949. */
  2950. public static function has($key)
  2951. {
  2952. /** @var \Illuminate\Cache\Repository $instance */
  2953. return $instance->has($key);
  2954. }
  2955. /**
  2956. * Determine if an item doesn't exist in the cache.
  2957. *
  2958. * @param string $key
  2959. * @return bool
  2960. * @static
  2961. */
  2962. public static function missing($key)
  2963. {
  2964. /** @var \Illuminate\Cache\Repository $instance */
  2965. return $instance->missing($key);
  2966. }
  2967. /**
  2968. * Retrieve an item from the cache by key.
  2969. *
  2970. * @param string $key
  2971. * @param mixed $default
  2972. * @return mixed
  2973. * @static
  2974. */
  2975. public static function get($key, $default = null)
  2976. {
  2977. /** @var \Illuminate\Cache\Repository $instance */
  2978. return $instance->get($key, $default);
  2979. }
  2980. /**
  2981. * Retrieve multiple items from the cache by key.
  2982. *
  2983. * Items not found in the cache will have a null value.
  2984. *
  2985. * @param array $keys
  2986. * @return array
  2987. * @static
  2988. */
  2989. public static function many($keys)
  2990. {
  2991. /** @var \Illuminate\Cache\Repository $instance */
  2992. return $instance->many($keys);
  2993. }
  2994. /**
  2995. * Obtains multiple cache items by their unique keys.
  2996. *
  2997. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2998. * @param mixed $default Default value to return for keys that do not exist.
  2999. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  3000. * @throws \Psr\SimpleCache\InvalidArgumentException
  3001. * MUST be thrown if $keys is neither an array nor a Traversable,
  3002. * or if any of the $keys are not a legal value.
  3003. * @static
  3004. */
  3005. public static function getMultiple($keys, $default = null)
  3006. {
  3007. /** @var \Illuminate\Cache\Repository $instance */
  3008. return $instance->getMultiple($keys, $default);
  3009. }
  3010. /**
  3011. * Retrieve an item from the cache and delete it.
  3012. *
  3013. * @param string $key
  3014. * @param mixed $default
  3015. * @return mixed
  3016. * @static
  3017. */
  3018. public static function pull($key, $default = null)
  3019. {
  3020. /** @var \Illuminate\Cache\Repository $instance */
  3021. return $instance->pull($key, $default);
  3022. }
  3023. /**
  3024. * Store an item in the cache.
  3025. *
  3026. * @param string $key
  3027. * @param mixed $value
  3028. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3029. * @return bool
  3030. * @static
  3031. */
  3032. public static function put($key, $value, $ttl = null)
  3033. {
  3034. /** @var \Illuminate\Cache\Repository $instance */
  3035. return $instance->put($key, $value, $ttl);
  3036. }
  3037. /**
  3038. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3039. *
  3040. * @param string $key The key of the item to store.
  3041. * @param mixed $value The value of the item to store, must be serializable.
  3042. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3043. * the driver supports TTL then the library may set a default value
  3044. * for it or let the driver take care of that.
  3045. * @return bool True on success and false on failure.
  3046. * @throws \Psr\SimpleCache\InvalidArgumentException
  3047. * MUST be thrown if the $key string is not a legal value.
  3048. * @static
  3049. */
  3050. public static function set($key, $value, $ttl = null)
  3051. {
  3052. /** @var \Illuminate\Cache\Repository $instance */
  3053. return $instance->set($key, $value, $ttl);
  3054. }
  3055. /**
  3056. * Store multiple items in the cache for a given number of seconds.
  3057. *
  3058. * @param array $values
  3059. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3060. * @return bool
  3061. * @static
  3062. */
  3063. public static function putMany($values, $ttl = null)
  3064. {
  3065. /** @var \Illuminate\Cache\Repository $instance */
  3066. return $instance->putMany($values, $ttl);
  3067. }
  3068. /**
  3069. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3070. *
  3071. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  3072. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3073. * the driver supports TTL then the library may set a default value
  3074. * for it or let the driver take care of that.
  3075. * @return bool True on success and false on failure.
  3076. * @throws \Psr\SimpleCache\InvalidArgumentException
  3077. * MUST be thrown if $values is neither an array nor a Traversable,
  3078. * or if any of the $values are not a legal value.
  3079. * @static
  3080. */
  3081. public static function setMultiple($values, $ttl = null)
  3082. {
  3083. /** @var \Illuminate\Cache\Repository $instance */
  3084. return $instance->setMultiple($values, $ttl);
  3085. }
  3086. /**
  3087. * Store an item in the cache if the key does not exist.
  3088. *
  3089. * @param string $key
  3090. * @param mixed $value
  3091. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3092. * @return bool
  3093. * @static
  3094. */
  3095. public static function add($key, $value, $ttl = null)
  3096. {
  3097. /** @var \Illuminate\Cache\Repository $instance */
  3098. return $instance->add($key, $value, $ttl);
  3099. }
  3100. /**
  3101. * Increment the value of an item in the cache.
  3102. *
  3103. * @param string $key
  3104. * @param mixed $value
  3105. * @return int|bool
  3106. * @static
  3107. */
  3108. public static function increment($key, $value = 1)
  3109. {
  3110. /** @var \Illuminate\Cache\Repository $instance */
  3111. return $instance->increment($key, $value);
  3112. }
  3113. /**
  3114. * Decrement the value of an item in the cache.
  3115. *
  3116. * @param string $key
  3117. * @param mixed $value
  3118. * @return int|bool
  3119. * @static
  3120. */
  3121. public static function decrement($key, $value = 1)
  3122. {
  3123. /** @var \Illuminate\Cache\Repository $instance */
  3124. return $instance->decrement($key, $value);
  3125. }
  3126. /**
  3127. * Store an item in the cache indefinitely.
  3128. *
  3129. * @param string $key
  3130. * @param mixed $value
  3131. * @return bool
  3132. * @static
  3133. */
  3134. public static function forever($key, $value)
  3135. {
  3136. /** @var \Illuminate\Cache\Repository $instance */
  3137. return $instance->forever($key, $value);
  3138. }
  3139. /**
  3140. * Get an item from the cache, or execute the given Closure and store the result.
  3141. *
  3142. * @param string $key
  3143. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3144. * @param \Closure $callback
  3145. * @return mixed
  3146. * @static
  3147. */
  3148. public static function remember($key, $ttl, $callback)
  3149. {
  3150. /** @var \Illuminate\Cache\Repository $instance */
  3151. return $instance->remember($key, $ttl, $callback);
  3152. }
  3153. /**
  3154. * Get an item from the cache, or execute the given Closure and store the result forever.
  3155. *
  3156. * @param string $key
  3157. * @param \Closure $callback
  3158. * @return mixed
  3159. * @static
  3160. */
  3161. public static function sear($key, $callback)
  3162. {
  3163. /** @var \Illuminate\Cache\Repository $instance */
  3164. return $instance->sear($key, $callback);
  3165. }
  3166. /**
  3167. * Get an item from the cache, or execute the given Closure and store the result forever.
  3168. *
  3169. * @param string $key
  3170. * @param \Closure $callback
  3171. * @return mixed
  3172. * @static
  3173. */
  3174. public static function rememberForever($key, $callback)
  3175. {
  3176. /** @var \Illuminate\Cache\Repository $instance */
  3177. return $instance->rememberForever($key, $callback);
  3178. }
  3179. /**
  3180. * Remove an item from the cache.
  3181. *
  3182. * @param string $key
  3183. * @return bool
  3184. * @static
  3185. */
  3186. public static function forget($key)
  3187. {
  3188. /** @var \Illuminate\Cache\Repository $instance */
  3189. return $instance->forget($key);
  3190. }
  3191. /**
  3192. * Delete an item from the cache by its unique key.
  3193. *
  3194. * @param string $key The unique cache key of the item to delete.
  3195. * @return bool True if the item was successfully removed. False if there was an error.
  3196. * @throws \Psr\SimpleCache\InvalidArgumentException
  3197. * MUST be thrown if the $key string is not a legal value.
  3198. * @static
  3199. */
  3200. public static function delete($key)
  3201. {
  3202. /** @var \Illuminate\Cache\Repository $instance */
  3203. return $instance->delete($key);
  3204. }
  3205. /**
  3206. * Deletes multiple cache items in a single operation.
  3207. *
  3208. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  3209. * @return bool True if the items were successfully removed. False if there was an error.
  3210. * @throws \Psr\SimpleCache\InvalidArgumentException
  3211. * MUST be thrown if $keys is neither an array nor a Traversable,
  3212. * or if any of the $keys are not a legal value.
  3213. * @static
  3214. */
  3215. public static function deleteMultiple($keys)
  3216. {
  3217. /** @var \Illuminate\Cache\Repository $instance */
  3218. return $instance->deleteMultiple($keys);
  3219. }
  3220. /**
  3221. * Wipes clean the entire cache's keys.
  3222. *
  3223. * @return bool True on success and false on failure.
  3224. * @static
  3225. */
  3226. public static function clear()
  3227. {
  3228. /** @var \Illuminate\Cache\Repository $instance */
  3229. return $instance->clear();
  3230. }
  3231. /**
  3232. * Begin executing a new tags operation if the store supports it.
  3233. *
  3234. * @param array|mixed $names
  3235. * @return \Illuminate\Cache\TaggedCache
  3236. * @throws \BadMethodCallException
  3237. * @static
  3238. */
  3239. public static function tags($names)
  3240. {
  3241. /** @var \Illuminate\Cache\Repository $instance */
  3242. return $instance->tags($names);
  3243. }
  3244. /**
  3245. * Get the default cache time.
  3246. *
  3247. * @return int|null
  3248. * @static
  3249. */
  3250. public static function getDefaultCacheTime()
  3251. {
  3252. /** @var \Illuminate\Cache\Repository $instance */
  3253. return $instance->getDefaultCacheTime();
  3254. }
  3255. /**
  3256. * Set the default cache time in seconds.
  3257. *
  3258. * @param int|null $seconds
  3259. * @return \Illuminate\Cache\Repository
  3260. * @static
  3261. */
  3262. public static function setDefaultCacheTime($seconds)
  3263. {
  3264. /** @var \Illuminate\Cache\Repository $instance */
  3265. return $instance->setDefaultCacheTime($seconds);
  3266. }
  3267. /**
  3268. * Get the cache store implementation.
  3269. *
  3270. * @return \Illuminate\Contracts\Cache\Store
  3271. * @static
  3272. */
  3273. public static function getStore()
  3274. {
  3275. /** @var \Illuminate\Cache\Repository $instance */
  3276. return $instance->getStore();
  3277. }
  3278. /**
  3279. * Get the event dispatcher instance.
  3280. *
  3281. * @return \Illuminate\Contracts\Events\Dispatcher
  3282. * @static
  3283. */
  3284. public static function getEventDispatcher()
  3285. {
  3286. /** @var \Illuminate\Cache\Repository $instance */
  3287. return $instance->getEventDispatcher();
  3288. }
  3289. /**
  3290. * Set the event dispatcher instance.
  3291. *
  3292. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3293. * @return void
  3294. * @static
  3295. */
  3296. public static function setEventDispatcher($events)
  3297. {
  3298. /** @var \Illuminate\Cache\Repository $instance */
  3299. $instance->setEventDispatcher($events);
  3300. }
  3301. /**
  3302. * Determine if a cached value exists.
  3303. *
  3304. * @param string $key
  3305. * @return bool
  3306. * @static
  3307. */
  3308. public static function offsetExists($key)
  3309. {
  3310. /** @var \Illuminate\Cache\Repository $instance */
  3311. return $instance->offsetExists($key);
  3312. }
  3313. /**
  3314. * Retrieve an item from the cache by key.
  3315. *
  3316. * @param string $key
  3317. * @return mixed
  3318. * @static
  3319. */
  3320. public static function offsetGet($key)
  3321. {
  3322. /** @var \Illuminate\Cache\Repository $instance */
  3323. return $instance->offsetGet($key);
  3324. }
  3325. /**
  3326. * Store an item in the cache for the default time.
  3327. *
  3328. * @param string $key
  3329. * @param mixed $value
  3330. * @return void
  3331. * @static
  3332. */
  3333. public static function offsetSet($key, $value)
  3334. {
  3335. /** @var \Illuminate\Cache\Repository $instance */
  3336. $instance->offsetSet($key, $value);
  3337. }
  3338. /**
  3339. * Remove an item from the cache.
  3340. *
  3341. * @param string $key
  3342. * @return void
  3343. * @static
  3344. */
  3345. public static function offsetUnset($key)
  3346. {
  3347. /** @var \Illuminate\Cache\Repository $instance */
  3348. $instance->offsetUnset($key);
  3349. }
  3350. /**
  3351. * Register a custom macro.
  3352. *
  3353. * @param string $name
  3354. * @param object|callable $macro
  3355. * @return void
  3356. * @static
  3357. */
  3358. public static function macro($name, $macro)
  3359. {
  3360. \Illuminate\Cache\Repository::macro($name, $macro);
  3361. }
  3362. /**
  3363. * Mix another object into the class.
  3364. *
  3365. * @param object $mixin
  3366. * @param bool $replace
  3367. * @return void
  3368. * @throws \ReflectionException
  3369. * @static
  3370. */
  3371. public static function mixin($mixin, $replace = true)
  3372. {
  3373. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3374. }
  3375. /**
  3376. * Checks if macro is registered.
  3377. *
  3378. * @param string $name
  3379. * @return bool
  3380. * @static
  3381. */
  3382. public static function hasMacro($name)
  3383. {
  3384. return \Illuminate\Cache\Repository::hasMacro($name);
  3385. }
  3386. /**
  3387. * Dynamically handle calls to the class.
  3388. *
  3389. * @param string $method
  3390. * @param array $parameters
  3391. * @return mixed
  3392. * @throws \BadMethodCallException
  3393. * @static
  3394. */
  3395. public static function macroCall($method, $parameters)
  3396. {
  3397. /** @var \Illuminate\Cache\Repository $instance */
  3398. return $instance->macroCall($method, $parameters);
  3399. }
  3400. /**
  3401. * Remove all items from the cache.
  3402. *
  3403. * @return bool
  3404. * @static
  3405. */
  3406. public static function flush()
  3407. {
  3408. /** @var \Illuminate\Cache\FileStore $instance */
  3409. return $instance->flush();
  3410. }
  3411. /**
  3412. * Get the Filesystem instance.
  3413. *
  3414. * @return \Illuminate\Filesystem\Filesystem
  3415. * @static
  3416. */
  3417. public static function getFilesystem()
  3418. {
  3419. /** @var \Illuminate\Cache\FileStore $instance */
  3420. return $instance->getFilesystem();
  3421. }
  3422. /**
  3423. * Get the working directory of the cache.
  3424. *
  3425. * @return string
  3426. * @static
  3427. */
  3428. public static function getDirectory()
  3429. {
  3430. /** @var \Illuminate\Cache\FileStore $instance */
  3431. return $instance->getDirectory();
  3432. }
  3433. /**
  3434. * Get the cache key prefix.
  3435. *
  3436. * @return string
  3437. * @static
  3438. */
  3439. public static function getPrefix()
  3440. {
  3441. /** @var \Illuminate\Cache\FileStore $instance */
  3442. return $instance->getPrefix();
  3443. }
  3444. }
  3445. /**
  3446. *
  3447. *
  3448. * @see \Illuminate\Config\Repository
  3449. */
  3450. class Config {
  3451. /**
  3452. * Determine if the given configuration value exists.
  3453. *
  3454. * @param string $key
  3455. * @return bool
  3456. * @static
  3457. */
  3458. public static function has($key)
  3459. {
  3460. /** @var \Illuminate\Config\Repository $instance */
  3461. return $instance->has($key);
  3462. }
  3463. /**
  3464. * Get the specified configuration value.
  3465. *
  3466. * @param array|string $key
  3467. * @param mixed $default
  3468. * @return mixed
  3469. * @static
  3470. */
  3471. public static function get($key, $default = null)
  3472. {
  3473. /** @var \Illuminate\Config\Repository $instance */
  3474. return $instance->get($key, $default);
  3475. }
  3476. /**
  3477. * Get many configuration values.
  3478. *
  3479. * @param array $keys
  3480. * @return array
  3481. * @static
  3482. */
  3483. public static function getMany($keys)
  3484. {
  3485. /** @var \Illuminate\Config\Repository $instance */
  3486. return $instance->getMany($keys);
  3487. }
  3488. /**
  3489. * Set a given configuration value.
  3490. *
  3491. * @param array|string $key
  3492. * @param mixed $value
  3493. * @return void
  3494. * @static
  3495. */
  3496. public static function set($key, $value = null)
  3497. {
  3498. /** @var \Illuminate\Config\Repository $instance */
  3499. $instance->set($key, $value);
  3500. }
  3501. /**
  3502. * Prepend a value onto an array configuration value.
  3503. *
  3504. * @param string $key
  3505. * @param mixed $value
  3506. * @return void
  3507. * @static
  3508. */
  3509. public static function prepend($key, $value)
  3510. {
  3511. /** @var \Illuminate\Config\Repository $instance */
  3512. $instance->prepend($key, $value);
  3513. }
  3514. /**
  3515. * Push a value onto an array configuration value.
  3516. *
  3517. * @param string $key
  3518. * @param mixed $value
  3519. * @return void
  3520. * @static
  3521. */
  3522. public static function push($key, $value)
  3523. {
  3524. /** @var \Illuminate\Config\Repository $instance */
  3525. $instance->push($key, $value);
  3526. }
  3527. /**
  3528. * Get all of the configuration items for the application.
  3529. *
  3530. * @return array
  3531. * @static
  3532. */
  3533. public static function all()
  3534. {
  3535. /** @var \Illuminate\Config\Repository $instance */
  3536. return $instance->all();
  3537. }
  3538. /**
  3539. * Determine if the given configuration option exists.
  3540. *
  3541. * @param string $key
  3542. * @return bool
  3543. * @static
  3544. */
  3545. public static function offsetExists($key)
  3546. {
  3547. /** @var \Illuminate\Config\Repository $instance */
  3548. return $instance->offsetExists($key);
  3549. }
  3550. /**
  3551. * Get a configuration option.
  3552. *
  3553. * @param string $key
  3554. * @return mixed
  3555. * @static
  3556. */
  3557. public static function offsetGet($key)
  3558. {
  3559. /** @var \Illuminate\Config\Repository $instance */
  3560. return $instance->offsetGet($key);
  3561. }
  3562. /**
  3563. * Set a configuration option.
  3564. *
  3565. * @param string $key
  3566. * @param mixed $value
  3567. * @return void
  3568. * @static
  3569. */
  3570. public static function offsetSet($key, $value)
  3571. {
  3572. /** @var \Illuminate\Config\Repository $instance */
  3573. $instance->offsetSet($key, $value);
  3574. }
  3575. /**
  3576. * Unset a configuration option.
  3577. *
  3578. * @param string $key
  3579. * @return void
  3580. * @static
  3581. */
  3582. public static function offsetUnset($key)
  3583. {
  3584. /** @var \Illuminate\Config\Repository $instance */
  3585. $instance->offsetUnset($key);
  3586. }
  3587. }
  3588. /**
  3589. *
  3590. *
  3591. * @see \Illuminate\Cookie\CookieJar
  3592. */
  3593. class Cookie {
  3594. /**
  3595. * Create a new cookie instance.
  3596. *
  3597. * @param string $name
  3598. * @param string $value
  3599. * @param int $minutes
  3600. * @param string|null $path
  3601. * @param string|null $domain
  3602. * @param bool|null $secure
  3603. * @param bool $httpOnly
  3604. * @param bool $raw
  3605. * @param string|null $sameSite
  3606. * @return \Symfony\Component\HttpFoundation\Cookie
  3607. * @static
  3608. */
  3609. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3610. {
  3611. /** @var \Illuminate\Cookie\CookieJar $instance */
  3612. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3613. }
  3614. /**
  3615. * Create a cookie that lasts "forever" (five years).
  3616. *
  3617. * @param string $name
  3618. * @param string $value
  3619. * @param string|null $path
  3620. * @param string|null $domain
  3621. * @param bool|null $secure
  3622. * @param bool $httpOnly
  3623. * @param bool $raw
  3624. * @param string|null $sameSite
  3625. * @return \Symfony\Component\HttpFoundation\Cookie
  3626. * @static
  3627. */
  3628. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3629. {
  3630. /** @var \Illuminate\Cookie\CookieJar $instance */
  3631. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3632. }
  3633. /**
  3634. * Expire the given cookie.
  3635. *
  3636. * @param string $name
  3637. * @param string|null $path
  3638. * @param string|null $domain
  3639. * @return \Symfony\Component\HttpFoundation\Cookie
  3640. * @static
  3641. */
  3642. public static function forget($name, $path = null, $domain = null)
  3643. {
  3644. /** @var \Illuminate\Cookie\CookieJar $instance */
  3645. return $instance->forget($name, $path, $domain);
  3646. }
  3647. /**
  3648. * Determine if a cookie has been queued.
  3649. *
  3650. * @param string $key
  3651. * @param string|null $path
  3652. * @return bool
  3653. * @static
  3654. */
  3655. public static function hasQueued($key, $path = null)
  3656. {
  3657. /** @var \Illuminate\Cookie\CookieJar $instance */
  3658. return $instance->hasQueued($key, $path);
  3659. }
  3660. /**
  3661. * Get a queued cookie instance.
  3662. *
  3663. * @param string $key
  3664. * @param mixed $default
  3665. * @param string|null $path
  3666. * @return \Symfony\Component\HttpFoundation\Cookie|null
  3667. * @static
  3668. */
  3669. public static function queued($key, $default = null, $path = null)
  3670. {
  3671. /** @var \Illuminate\Cookie\CookieJar $instance */
  3672. return $instance->queued($key, $default, $path);
  3673. }
  3674. /**
  3675. * Queue a cookie to send with the next response.
  3676. *
  3677. * @param array $parameters
  3678. * @return void
  3679. * @static
  3680. */
  3681. public static function queue(...$parameters)
  3682. {
  3683. /** @var \Illuminate\Cookie\CookieJar $instance */
  3684. $instance->queue(...$parameters);
  3685. }
  3686. /**
  3687. * Remove a cookie from the queue.
  3688. *
  3689. * @param string $name
  3690. * @param string|null $path
  3691. * @return void
  3692. * @static
  3693. */
  3694. public static function unqueue($name, $path = null)
  3695. {
  3696. /** @var \Illuminate\Cookie\CookieJar $instance */
  3697. $instance->unqueue($name, $path);
  3698. }
  3699. /**
  3700. * Set the default path and domain for the jar.
  3701. *
  3702. * @param string $path
  3703. * @param string $domain
  3704. * @param bool $secure
  3705. * @param string|null $sameSite
  3706. * @return \Illuminate\Cookie\CookieJar
  3707. * @static
  3708. */
  3709. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3710. {
  3711. /** @var \Illuminate\Cookie\CookieJar $instance */
  3712. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3713. }
  3714. /**
  3715. * Get the cookies which have been queued for the next request.
  3716. *
  3717. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3718. * @static
  3719. */
  3720. public static function getQueuedCookies()
  3721. {
  3722. /** @var \Illuminate\Cookie\CookieJar $instance */
  3723. return $instance->getQueuedCookies();
  3724. }
  3725. /**
  3726. * Register a custom macro.
  3727. *
  3728. * @param string $name
  3729. * @param object|callable $macro
  3730. * @return void
  3731. * @static
  3732. */
  3733. public static function macro($name, $macro)
  3734. {
  3735. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  3736. }
  3737. /**
  3738. * Mix another object into the class.
  3739. *
  3740. * @param object $mixin
  3741. * @param bool $replace
  3742. * @return void
  3743. * @throws \ReflectionException
  3744. * @static
  3745. */
  3746. public static function mixin($mixin, $replace = true)
  3747. {
  3748. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  3749. }
  3750. /**
  3751. * Checks if macro is registered.
  3752. *
  3753. * @param string $name
  3754. * @return bool
  3755. * @static
  3756. */
  3757. public static function hasMacro($name)
  3758. {
  3759. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  3760. }
  3761. }
  3762. /**
  3763. *
  3764. *
  3765. * @see \Illuminate\Encryption\Encrypter
  3766. */
  3767. class Crypt {
  3768. /**
  3769. * Determine if the given key and cipher combination is valid.
  3770. *
  3771. * @param string $key
  3772. * @param string $cipher
  3773. * @return bool
  3774. * @static
  3775. */
  3776. public static function supported($key, $cipher)
  3777. {
  3778. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3779. }
  3780. /**
  3781. * Create a new encryption key for the given cipher.
  3782. *
  3783. * @param string $cipher
  3784. * @return string
  3785. * @static
  3786. */
  3787. public static function generateKey($cipher)
  3788. {
  3789. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3790. }
  3791. /**
  3792. * Encrypt the given value.
  3793. *
  3794. * @param mixed $value
  3795. * @param bool $serialize
  3796. * @return string
  3797. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3798. * @static
  3799. */
  3800. public static function encrypt($value, $serialize = true)
  3801. {
  3802. /** @var \Illuminate\Encryption\Encrypter $instance */
  3803. return $instance->encrypt($value, $serialize);
  3804. }
  3805. /**
  3806. * Encrypt a string without serialization.
  3807. *
  3808. * @param string $value
  3809. * @return string
  3810. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3811. * @static
  3812. */
  3813. public static function encryptString($value)
  3814. {
  3815. /** @var \Illuminate\Encryption\Encrypter $instance */
  3816. return $instance->encryptString($value);
  3817. }
  3818. /**
  3819. * Decrypt the given value.
  3820. *
  3821. * @param string $payload
  3822. * @param bool $unserialize
  3823. * @return mixed
  3824. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3825. * @static
  3826. */
  3827. public static function decrypt($payload, $unserialize = true)
  3828. {
  3829. /** @var \Illuminate\Encryption\Encrypter $instance */
  3830. return $instance->decrypt($payload, $unserialize);
  3831. }
  3832. /**
  3833. * Decrypt the given string without unserialization.
  3834. *
  3835. * @param string $payload
  3836. * @return string
  3837. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3838. * @static
  3839. */
  3840. public static function decryptString($payload)
  3841. {
  3842. /** @var \Illuminate\Encryption\Encrypter $instance */
  3843. return $instance->decryptString($payload);
  3844. }
  3845. /**
  3846. * Get the encryption key.
  3847. *
  3848. * @return string
  3849. * @static
  3850. */
  3851. public static function getKey()
  3852. {
  3853. /** @var \Illuminate\Encryption\Encrypter $instance */
  3854. return $instance->getKey();
  3855. }
  3856. }
  3857. /**
  3858. *
  3859. *
  3860. * @see \Illuminate\Database\DatabaseManager
  3861. * @see \Illuminate\Database\Connection
  3862. */
  3863. class DB {
  3864. /**
  3865. * Get a database connection instance.
  3866. *
  3867. * @param string|null $name
  3868. * @return \Illuminate\Database\Connection
  3869. * @static
  3870. */
  3871. public static function connection($name = null)
  3872. {
  3873. /** @var \Illuminate\Database\DatabaseManager $instance */
  3874. return $instance->connection($name);
  3875. }
  3876. /**
  3877. * Disconnect from the given database and remove from local cache.
  3878. *
  3879. * @param string|null $name
  3880. * @return void
  3881. * @static
  3882. */
  3883. public static function purge($name = null)
  3884. {
  3885. /** @var \Illuminate\Database\DatabaseManager $instance */
  3886. $instance->purge($name);
  3887. }
  3888. /**
  3889. * Disconnect from the given database.
  3890. *
  3891. * @param string|null $name
  3892. * @return void
  3893. * @static
  3894. */
  3895. public static function disconnect($name = null)
  3896. {
  3897. /** @var \Illuminate\Database\DatabaseManager $instance */
  3898. $instance->disconnect($name);
  3899. }
  3900. /**
  3901. * Reconnect to the given database.
  3902. *
  3903. * @param string|null $name
  3904. * @return \Illuminate\Database\Connection
  3905. * @static
  3906. */
  3907. public static function reconnect($name = null)
  3908. {
  3909. /** @var \Illuminate\Database\DatabaseManager $instance */
  3910. return $instance->reconnect($name);
  3911. }
  3912. /**
  3913. * Get the default connection name.
  3914. *
  3915. * @return string
  3916. * @static
  3917. */
  3918. public static function getDefaultConnection()
  3919. {
  3920. /** @var \Illuminate\Database\DatabaseManager $instance */
  3921. return $instance->getDefaultConnection();
  3922. }
  3923. /**
  3924. * Set the default connection name.
  3925. *
  3926. * @param string $name
  3927. * @return void
  3928. * @static
  3929. */
  3930. public static function setDefaultConnection($name)
  3931. {
  3932. /** @var \Illuminate\Database\DatabaseManager $instance */
  3933. $instance->setDefaultConnection($name);
  3934. }
  3935. /**
  3936. * Get all of the support drivers.
  3937. *
  3938. * @return array
  3939. * @static
  3940. */
  3941. public static function supportedDrivers()
  3942. {
  3943. /** @var \Illuminate\Database\DatabaseManager $instance */
  3944. return $instance->supportedDrivers();
  3945. }
  3946. /**
  3947. * Get all of the drivers that are actually available.
  3948. *
  3949. * @return array
  3950. * @static
  3951. */
  3952. public static function availableDrivers()
  3953. {
  3954. /** @var \Illuminate\Database\DatabaseManager $instance */
  3955. return $instance->availableDrivers();
  3956. }
  3957. /**
  3958. * Register an extension connection resolver.
  3959. *
  3960. * @param string $name
  3961. * @param callable $resolver
  3962. * @return void
  3963. * @static
  3964. */
  3965. public static function extend($name, $resolver)
  3966. {
  3967. /** @var \Illuminate\Database\DatabaseManager $instance */
  3968. $instance->extend($name, $resolver);
  3969. }
  3970. /**
  3971. * Return all of the created connections.
  3972. *
  3973. * @return array
  3974. * @static
  3975. */
  3976. public static function getConnections()
  3977. {
  3978. /** @var \Illuminate\Database\DatabaseManager $instance */
  3979. return $instance->getConnections();
  3980. }
  3981. /**
  3982. * Set the database reconnector callback.
  3983. *
  3984. * @param callable $reconnector
  3985. * @return void
  3986. * @static
  3987. */
  3988. public static function setReconnector($reconnector)
  3989. {
  3990. /** @var \Illuminate\Database\DatabaseManager $instance */
  3991. $instance->setReconnector($reconnector);
  3992. }
  3993. /**
  3994. * Get a schema builder instance for the connection.
  3995. *
  3996. * @return \Illuminate\Database\Schema\MySqlBuilder
  3997. * @static
  3998. */
  3999. public static function getSchemaBuilder()
  4000. {
  4001. /** @var \Illuminate\Database\MySqlConnection $instance */
  4002. return $instance->getSchemaBuilder();
  4003. }
  4004. /**
  4005. * Set the query grammar to the default implementation.
  4006. *
  4007. * @return void
  4008. * @static
  4009. */
  4010. public static function useDefaultQueryGrammar()
  4011. {
  4012. //Method inherited from \Illuminate\Database\Connection
  4013. /** @var \Illuminate\Database\MySqlConnection $instance */
  4014. $instance->useDefaultQueryGrammar();
  4015. }
  4016. /**
  4017. * Set the schema grammar to the default implementation.
  4018. *
  4019. * @return void
  4020. * @static
  4021. */
  4022. public static function useDefaultSchemaGrammar()
  4023. {
  4024. //Method inherited from \Illuminate\Database\Connection
  4025. /** @var \Illuminate\Database\MySqlConnection $instance */
  4026. $instance->useDefaultSchemaGrammar();
  4027. }
  4028. /**
  4029. * Set the query post processor to the default implementation.
  4030. *
  4031. * @return void
  4032. * @static
  4033. */
  4034. public static function useDefaultPostProcessor()
  4035. {
  4036. //Method inherited from \Illuminate\Database\Connection
  4037. /** @var \Illuminate\Database\MySqlConnection $instance */
  4038. $instance->useDefaultPostProcessor();
  4039. }
  4040. /**
  4041. * Begin a fluent query against a database table.
  4042. *
  4043. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  4044. * @param string|null $as
  4045. * @return \Illuminate\Database\Query\Builder
  4046. * @static
  4047. */
  4048. public static function table($table, $as = null)
  4049. {
  4050. //Method inherited from \Illuminate\Database\Connection
  4051. /** @var \Illuminate\Database\MySqlConnection $instance */
  4052. return $instance->table($table, $as);
  4053. }
  4054. /**
  4055. * Get a new query builder instance.
  4056. *
  4057. * @return \Illuminate\Database\Query\Builder
  4058. * @static
  4059. */
  4060. public static function query()
  4061. {
  4062. //Method inherited from \Illuminate\Database\Connection
  4063. /** @var \Illuminate\Database\MySqlConnection $instance */
  4064. return $instance->query();
  4065. }
  4066. /**
  4067. * Run a select statement and return a single result.
  4068. *
  4069. * @param string $query
  4070. * @param array $bindings
  4071. * @param bool $useReadPdo
  4072. * @return mixed
  4073. * @static
  4074. */
  4075. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  4076. {
  4077. //Method inherited from \Illuminate\Database\Connection
  4078. /** @var \Illuminate\Database\MySqlConnection $instance */
  4079. return $instance->selectOne($query, $bindings, $useReadPdo);
  4080. }
  4081. /**
  4082. * Run a select statement against the database.
  4083. *
  4084. * @param string $query
  4085. * @param array $bindings
  4086. * @return array
  4087. * @static
  4088. */
  4089. public static function selectFromWriteConnection($query, $bindings = [])
  4090. {
  4091. //Method inherited from \Illuminate\Database\Connection
  4092. /** @var \Illuminate\Database\MySqlConnection $instance */
  4093. return $instance->selectFromWriteConnection($query, $bindings);
  4094. }
  4095. /**
  4096. * Run a select statement against the database.
  4097. *
  4098. * @param string $query
  4099. * @param array $bindings
  4100. * @param bool $useReadPdo
  4101. * @return array
  4102. * @static
  4103. */
  4104. public static function select($query, $bindings = [], $useReadPdo = true)
  4105. {
  4106. //Method inherited from \Illuminate\Database\Connection
  4107. /** @var \Illuminate\Database\MySqlConnection $instance */
  4108. return $instance->select($query, $bindings, $useReadPdo);
  4109. }
  4110. /**
  4111. * Run a select statement against the database and returns a generator.
  4112. *
  4113. * @param string $query
  4114. * @param array $bindings
  4115. * @param bool $useReadPdo
  4116. * @return \Generator
  4117. * @static
  4118. */
  4119. public static function cursor($query, $bindings = [], $useReadPdo = true)
  4120. {
  4121. //Method inherited from \Illuminate\Database\Connection
  4122. /** @var \Illuminate\Database\MySqlConnection $instance */
  4123. return $instance->cursor($query, $bindings, $useReadPdo);
  4124. }
  4125. /**
  4126. * Run an insert statement against the database.
  4127. *
  4128. * @param string $query
  4129. * @param array $bindings
  4130. * @return bool
  4131. * @static
  4132. */
  4133. public static function insert($query, $bindings = [])
  4134. {
  4135. //Method inherited from \Illuminate\Database\Connection
  4136. /** @var \Illuminate\Database\MySqlConnection $instance */
  4137. return $instance->insert($query, $bindings);
  4138. }
  4139. /**
  4140. * Run an update statement against the database.
  4141. *
  4142. * @param string $query
  4143. * @param array $bindings
  4144. * @return int
  4145. * @static
  4146. */
  4147. public static function update($query, $bindings = [])
  4148. {
  4149. //Method inherited from \Illuminate\Database\Connection
  4150. /** @var \Illuminate\Database\MySqlConnection $instance */
  4151. return $instance->update($query, $bindings);
  4152. }
  4153. /**
  4154. * Run a delete statement against the database.
  4155. *
  4156. * @param string $query
  4157. * @param array $bindings
  4158. * @return int
  4159. * @static
  4160. */
  4161. public static function delete($query, $bindings = [])
  4162. {
  4163. //Method inherited from \Illuminate\Database\Connection
  4164. /** @var \Illuminate\Database\MySqlConnection $instance */
  4165. return $instance->delete($query, $bindings);
  4166. }
  4167. /**
  4168. * Execute an SQL statement and return the boolean result.
  4169. *
  4170. * @param string $query
  4171. * @param array $bindings
  4172. * @return bool
  4173. * @static
  4174. */
  4175. public static function statement($query, $bindings = [])
  4176. {
  4177. //Method inherited from \Illuminate\Database\Connection
  4178. /** @var \Illuminate\Database\MySqlConnection $instance */
  4179. return $instance->statement($query, $bindings);
  4180. }
  4181. /**
  4182. * Run an SQL statement and get the number of rows affected.
  4183. *
  4184. * @param string $query
  4185. * @param array $bindings
  4186. * @return int
  4187. * @static
  4188. */
  4189. public static function affectingStatement($query, $bindings = [])
  4190. {
  4191. //Method inherited from \Illuminate\Database\Connection
  4192. /** @var \Illuminate\Database\MySqlConnection $instance */
  4193. return $instance->affectingStatement($query, $bindings);
  4194. }
  4195. /**
  4196. * Run a raw, unprepared query against the PDO connection.
  4197. *
  4198. * @param string $query
  4199. * @return bool
  4200. * @static
  4201. */
  4202. public static function unprepared($query)
  4203. {
  4204. //Method inherited from \Illuminate\Database\Connection
  4205. /** @var \Illuminate\Database\MySqlConnection $instance */
  4206. return $instance->unprepared($query);
  4207. }
  4208. /**
  4209. * Execute the given callback in "dry run" mode.
  4210. *
  4211. * @param \Closure $callback
  4212. * @return array
  4213. * @static
  4214. */
  4215. public static function pretend($callback)
  4216. {
  4217. //Method inherited from \Illuminate\Database\Connection
  4218. /** @var \Illuminate\Database\MySqlConnection $instance */
  4219. return $instance->pretend($callback);
  4220. }
  4221. /**
  4222. * Bind values to their parameters in the given statement.
  4223. *
  4224. * @param \PDOStatement $statement
  4225. * @param array $bindings
  4226. * @return void
  4227. * @static
  4228. */
  4229. public static function bindValues($statement, $bindings)
  4230. {
  4231. //Method inherited from \Illuminate\Database\Connection
  4232. /** @var \Illuminate\Database\MySqlConnection $instance */
  4233. $instance->bindValues($statement, $bindings);
  4234. }
  4235. /**
  4236. * Prepare the query bindings for execution.
  4237. *
  4238. * @param array $bindings
  4239. * @return array
  4240. * @static
  4241. */
  4242. public static function prepareBindings($bindings)
  4243. {
  4244. //Method inherited from \Illuminate\Database\Connection
  4245. /** @var \Illuminate\Database\MySqlConnection $instance */
  4246. return $instance->prepareBindings($bindings);
  4247. }
  4248. /**
  4249. * Log a query in the connection's query log.
  4250. *
  4251. * @param string $query
  4252. * @param array $bindings
  4253. * @param float|null $time
  4254. * @return void
  4255. * @static
  4256. */
  4257. public static function logQuery($query, $bindings, $time = null)
  4258. {
  4259. //Method inherited from \Illuminate\Database\Connection
  4260. /** @var \Illuminate\Database\MySqlConnection $instance */
  4261. $instance->logQuery($query, $bindings, $time);
  4262. }
  4263. /**
  4264. * Register a database query listener with the connection.
  4265. *
  4266. * @param \Closure $callback
  4267. * @return void
  4268. * @static
  4269. */
  4270. public static function listen($callback)
  4271. {
  4272. //Method inherited from \Illuminate\Database\Connection
  4273. /** @var \Illuminate\Database\MySqlConnection $instance */
  4274. $instance->listen($callback);
  4275. }
  4276. /**
  4277. * Get a new raw query expression.
  4278. *
  4279. * @param mixed $value
  4280. * @return \Illuminate\Database\Query\Expression
  4281. * @static
  4282. */
  4283. public static function raw($value)
  4284. {
  4285. //Method inherited from \Illuminate\Database\Connection
  4286. /** @var \Illuminate\Database\MySqlConnection $instance */
  4287. return $instance->raw($value);
  4288. }
  4289. /**
  4290. * Indicate if any records have been modified.
  4291. *
  4292. * @param bool $value
  4293. * @return void
  4294. * @static
  4295. */
  4296. public static function recordsHaveBeenModified($value = true)
  4297. {
  4298. //Method inherited from \Illuminate\Database\Connection
  4299. /** @var \Illuminate\Database\MySqlConnection $instance */
  4300. $instance->recordsHaveBeenModified($value);
  4301. }
  4302. /**
  4303. * Is Doctrine available?
  4304. *
  4305. * @return bool
  4306. * @static
  4307. */
  4308. public static function isDoctrineAvailable()
  4309. {
  4310. //Method inherited from \Illuminate\Database\Connection
  4311. /** @var \Illuminate\Database\MySqlConnection $instance */
  4312. return $instance->isDoctrineAvailable();
  4313. }
  4314. /**
  4315. * Get a Doctrine Schema Column instance.
  4316. *
  4317. * @param string $table
  4318. * @param string $column
  4319. * @return \Doctrine\DBAL\Schema\Column
  4320. * @static
  4321. */
  4322. public static function getDoctrineColumn($table, $column)
  4323. {
  4324. //Method inherited from \Illuminate\Database\Connection
  4325. /** @var \Illuminate\Database\MySqlConnection $instance */
  4326. return $instance->getDoctrineColumn($table, $column);
  4327. }
  4328. /**
  4329. * Get the Doctrine DBAL schema manager for the connection.
  4330. *
  4331. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  4332. * @static
  4333. */
  4334. public static function getDoctrineSchemaManager()
  4335. {
  4336. //Method inherited from \Illuminate\Database\Connection
  4337. /** @var \Illuminate\Database\MySqlConnection $instance */
  4338. return $instance->getDoctrineSchemaManager();
  4339. }
  4340. /**
  4341. * Get the Doctrine DBAL database connection instance.
  4342. *
  4343. * @return \Doctrine\DBAL\Connection
  4344. * @static
  4345. */
  4346. public static function getDoctrineConnection()
  4347. {
  4348. //Method inherited from \Illuminate\Database\Connection
  4349. /** @var \Illuminate\Database\MySqlConnection $instance */
  4350. return $instance->getDoctrineConnection();
  4351. }
  4352. /**
  4353. * Get the current PDO connection.
  4354. *
  4355. * @return \PDO
  4356. * @static
  4357. */
  4358. public static function getPdo()
  4359. {
  4360. //Method inherited from \Illuminate\Database\Connection
  4361. /** @var \Illuminate\Database\MySqlConnection $instance */
  4362. return $instance->getPdo();
  4363. }
  4364. /**
  4365. * Get the current PDO connection parameter without executing any reconnect logic.
  4366. *
  4367. * @return \PDO|\Closure|null
  4368. * @static
  4369. */
  4370. public static function getRawPdo()
  4371. {
  4372. //Method inherited from \Illuminate\Database\Connection
  4373. /** @var \Illuminate\Database\MySqlConnection $instance */
  4374. return $instance->getRawPdo();
  4375. }
  4376. /**
  4377. * Get the current PDO connection used for reading.
  4378. *
  4379. * @return \PDO
  4380. * @static
  4381. */
  4382. public static function getReadPdo()
  4383. {
  4384. //Method inherited from \Illuminate\Database\Connection
  4385. /** @var \Illuminate\Database\MySqlConnection $instance */
  4386. return $instance->getReadPdo();
  4387. }
  4388. /**
  4389. * Get the current read PDO connection parameter without executing any reconnect logic.
  4390. *
  4391. * @return \PDO|\Closure|null
  4392. * @static
  4393. */
  4394. public static function getRawReadPdo()
  4395. {
  4396. //Method inherited from \Illuminate\Database\Connection
  4397. /** @var \Illuminate\Database\MySqlConnection $instance */
  4398. return $instance->getRawReadPdo();
  4399. }
  4400. /**
  4401. * Set the PDO connection.
  4402. *
  4403. * @param \PDO|\Closure|null $pdo
  4404. * @return \Illuminate\Database\MySqlConnection
  4405. * @static
  4406. */
  4407. public static function setPdo($pdo)
  4408. {
  4409. //Method inherited from \Illuminate\Database\Connection
  4410. /** @var \Illuminate\Database\MySqlConnection $instance */
  4411. return $instance->setPdo($pdo);
  4412. }
  4413. /**
  4414. * Set the PDO connection used for reading.
  4415. *
  4416. * @param \PDO|\Closure|null $pdo
  4417. * @return \Illuminate\Database\MySqlConnection
  4418. * @static
  4419. */
  4420. public static function setReadPdo($pdo)
  4421. {
  4422. //Method inherited from \Illuminate\Database\Connection
  4423. /** @var \Illuminate\Database\MySqlConnection $instance */
  4424. return $instance->setReadPdo($pdo);
  4425. }
  4426. /**
  4427. * Get the database connection name.
  4428. *
  4429. * @return string|null
  4430. * @static
  4431. */
  4432. public static function getName()
  4433. {
  4434. //Method inherited from \Illuminate\Database\Connection
  4435. /** @var \Illuminate\Database\MySqlConnection $instance */
  4436. return $instance->getName();
  4437. }
  4438. /**
  4439. * Get an option from the configuration options.
  4440. *
  4441. * @param string|null $option
  4442. * @return mixed
  4443. * @static
  4444. */
  4445. public static function getConfig($option = null)
  4446. {
  4447. //Method inherited from \Illuminate\Database\Connection
  4448. /** @var \Illuminate\Database\MySqlConnection $instance */
  4449. return $instance->getConfig($option);
  4450. }
  4451. /**
  4452. * Get the PDO driver name.
  4453. *
  4454. * @return string
  4455. * @static
  4456. */
  4457. public static function getDriverName()
  4458. {
  4459. //Method inherited from \Illuminate\Database\Connection
  4460. /** @var \Illuminate\Database\MySqlConnection $instance */
  4461. return $instance->getDriverName();
  4462. }
  4463. /**
  4464. * Get the query grammar used by the connection.
  4465. *
  4466. * @return \Illuminate\Database\Query\Grammars\Grammar
  4467. * @static
  4468. */
  4469. public static function getQueryGrammar()
  4470. {
  4471. //Method inherited from \Illuminate\Database\Connection
  4472. /** @var \Illuminate\Database\MySqlConnection $instance */
  4473. return $instance->getQueryGrammar();
  4474. }
  4475. /**
  4476. * Set the query grammar used by the connection.
  4477. *
  4478. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4479. * @return \Illuminate\Database\MySqlConnection
  4480. * @static
  4481. */
  4482. public static function setQueryGrammar($grammar)
  4483. {
  4484. //Method inherited from \Illuminate\Database\Connection
  4485. /** @var \Illuminate\Database\MySqlConnection $instance */
  4486. return $instance->setQueryGrammar($grammar);
  4487. }
  4488. /**
  4489. * Get the schema grammar used by the connection.
  4490. *
  4491. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4492. * @static
  4493. */
  4494. public static function getSchemaGrammar()
  4495. {
  4496. //Method inherited from \Illuminate\Database\Connection
  4497. /** @var \Illuminate\Database\MySqlConnection $instance */
  4498. return $instance->getSchemaGrammar();
  4499. }
  4500. /**
  4501. * Set the schema grammar used by the connection.
  4502. *
  4503. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4504. * @return \Illuminate\Database\MySqlConnection
  4505. * @static
  4506. */
  4507. public static function setSchemaGrammar($grammar)
  4508. {
  4509. //Method inherited from \Illuminate\Database\Connection
  4510. /** @var \Illuminate\Database\MySqlConnection $instance */
  4511. return $instance->setSchemaGrammar($grammar);
  4512. }
  4513. /**
  4514. * Get the query post processor used by the connection.
  4515. *
  4516. * @return \Illuminate\Database\Query\Processors\Processor
  4517. * @static
  4518. */
  4519. public static function getPostProcessor()
  4520. {
  4521. //Method inherited from \Illuminate\Database\Connection
  4522. /** @var \Illuminate\Database\MySqlConnection $instance */
  4523. return $instance->getPostProcessor();
  4524. }
  4525. /**
  4526. * Set the query post processor used by the connection.
  4527. *
  4528. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4529. * @return \Illuminate\Database\MySqlConnection
  4530. * @static
  4531. */
  4532. public static function setPostProcessor($processor)
  4533. {
  4534. //Method inherited from \Illuminate\Database\Connection
  4535. /** @var \Illuminate\Database\MySqlConnection $instance */
  4536. return $instance->setPostProcessor($processor);
  4537. }
  4538. /**
  4539. * Get the event dispatcher used by the connection.
  4540. *
  4541. * @return \Illuminate\Contracts\Events\Dispatcher
  4542. * @static
  4543. */
  4544. public static function getEventDispatcher()
  4545. {
  4546. //Method inherited from \Illuminate\Database\Connection
  4547. /** @var \Illuminate\Database\MySqlConnection $instance */
  4548. return $instance->getEventDispatcher();
  4549. }
  4550. /**
  4551. * Set the event dispatcher instance on the connection.
  4552. *
  4553. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4554. * @return \Illuminate\Database\MySqlConnection
  4555. * @static
  4556. */
  4557. public static function setEventDispatcher($events)
  4558. {
  4559. //Method inherited from \Illuminate\Database\Connection
  4560. /** @var \Illuminate\Database\MySqlConnection $instance */
  4561. return $instance->setEventDispatcher($events);
  4562. }
  4563. /**
  4564. * Unset the event dispatcher for this connection.
  4565. *
  4566. * @return void
  4567. * @static
  4568. */
  4569. public static function unsetEventDispatcher()
  4570. {
  4571. //Method inherited from \Illuminate\Database\Connection
  4572. /** @var \Illuminate\Database\MySqlConnection $instance */
  4573. $instance->unsetEventDispatcher();
  4574. }
  4575. /**
  4576. * Determine if the connection is in a "dry run".
  4577. *
  4578. * @return bool
  4579. * @static
  4580. */
  4581. public static function pretending()
  4582. {
  4583. //Method inherited from \Illuminate\Database\Connection
  4584. /** @var \Illuminate\Database\MySqlConnection $instance */
  4585. return $instance->pretending();
  4586. }
  4587. /**
  4588. * Get the connection query log.
  4589. *
  4590. * @return array
  4591. * @static
  4592. */
  4593. public static function getQueryLog()
  4594. {
  4595. //Method inherited from \Illuminate\Database\Connection
  4596. /** @var \Illuminate\Database\MySqlConnection $instance */
  4597. return $instance->getQueryLog();
  4598. }
  4599. /**
  4600. * Clear the query log.
  4601. *
  4602. * @return void
  4603. * @static
  4604. */
  4605. public static function flushQueryLog()
  4606. {
  4607. //Method inherited from \Illuminate\Database\Connection
  4608. /** @var \Illuminate\Database\MySqlConnection $instance */
  4609. $instance->flushQueryLog();
  4610. }
  4611. /**
  4612. * Enable the query log on the connection.
  4613. *
  4614. * @return void
  4615. * @static
  4616. */
  4617. public static function enableQueryLog()
  4618. {
  4619. //Method inherited from \Illuminate\Database\Connection
  4620. /** @var \Illuminate\Database\MySqlConnection $instance */
  4621. $instance->enableQueryLog();
  4622. }
  4623. /**
  4624. * Disable the query log on the connection.
  4625. *
  4626. * @return void
  4627. * @static
  4628. */
  4629. public static function disableQueryLog()
  4630. {
  4631. //Method inherited from \Illuminate\Database\Connection
  4632. /** @var \Illuminate\Database\MySqlConnection $instance */
  4633. $instance->disableQueryLog();
  4634. }
  4635. /**
  4636. * Determine whether we're logging queries.
  4637. *
  4638. * @return bool
  4639. * @static
  4640. */
  4641. public static function logging()
  4642. {
  4643. //Method inherited from \Illuminate\Database\Connection
  4644. /** @var \Illuminate\Database\MySqlConnection $instance */
  4645. return $instance->logging();
  4646. }
  4647. /**
  4648. * Get the name of the connected database.
  4649. *
  4650. * @return string
  4651. * @static
  4652. */
  4653. public static function getDatabaseName()
  4654. {
  4655. //Method inherited from \Illuminate\Database\Connection
  4656. /** @var \Illuminate\Database\MySqlConnection $instance */
  4657. return $instance->getDatabaseName();
  4658. }
  4659. /**
  4660. * Set the name of the connected database.
  4661. *
  4662. * @param string $database
  4663. * @return \Illuminate\Database\MySqlConnection
  4664. * @static
  4665. */
  4666. public static function setDatabaseName($database)
  4667. {
  4668. //Method inherited from \Illuminate\Database\Connection
  4669. /** @var \Illuminate\Database\MySqlConnection $instance */
  4670. return $instance->setDatabaseName($database);
  4671. }
  4672. /**
  4673. * Get the table prefix for the connection.
  4674. *
  4675. * @return string
  4676. * @static
  4677. */
  4678. public static function getTablePrefix()
  4679. {
  4680. //Method inherited from \Illuminate\Database\Connection
  4681. /** @var \Illuminate\Database\MySqlConnection $instance */
  4682. return $instance->getTablePrefix();
  4683. }
  4684. /**
  4685. * Set the table prefix in use by the connection.
  4686. *
  4687. * @param string $prefix
  4688. * @return \Illuminate\Database\MySqlConnection
  4689. * @static
  4690. */
  4691. public static function setTablePrefix($prefix)
  4692. {
  4693. //Method inherited from \Illuminate\Database\Connection
  4694. /** @var \Illuminate\Database\MySqlConnection $instance */
  4695. return $instance->setTablePrefix($prefix);
  4696. }
  4697. /**
  4698. * Set the table prefix and return the grammar.
  4699. *
  4700. * @param \Illuminate\Database\Grammar $grammar
  4701. * @return \Illuminate\Database\Grammar
  4702. * @static
  4703. */
  4704. public static function withTablePrefix($grammar)
  4705. {
  4706. //Method inherited from \Illuminate\Database\Connection
  4707. /** @var \Illuminate\Database\MySqlConnection $instance */
  4708. return $instance->withTablePrefix($grammar);
  4709. }
  4710. /**
  4711. * Register a connection resolver.
  4712. *
  4713. * @param string $driver
  4714. * @param \Closure $callback
  4715. * @return void
  4716. * @static
  4717. */
  4718. public static function resolverFor($driver, $callback)
  4719. {
  4720. //Method inherited from \Illuminate\Database\Connection
  4721. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4722. }
  4723. /**
  4724. * Get the connection resolver for the given driver.
  4725. *
  4726. * @param string $driver
  4727. * @return mixed
  4728. * @static
  4729. */
  4730. public static function getResolver($driver)
  4731. {
  4732. //Method inherited from \Illuminate\Database\Connection
  4733. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4734. }
  4735. /**
  4736. * Execute a Closure within a transaction.
  4737. *
  4738. * @param \Closure $callback
  4739. * @param int $attempts
  4740. * @return mixed
  4741. * @throws \Throwable
  4742. * @static
  4743. */
  4744. public static function transaction($callback, $attempts = 1)
  4745. {
  4746. //Method inherited from \Illuminate\Database\Connection
  4747. /** @var \Illuminate\Database\MySqlConnection $instance */
  4748. return $instance->transaction($callback, $attempts);
  4749. }
  4750. /**
  4751. * Start a new database transaction.
  4752. *
  4753. * @return void
  4754. * @throws \Throwable
  4755. * @static
  4756. */
  4757. public static function beginTransaction()
  4758. {
  4759. //Method inherited from \Illuminate\Database\Connection
  4760. /** @var \Illuminate\Database\MySqlConnection $instance */
  4761. $instance->beginTransaction();
  4762. }
  4763. /**
  4764. * Commit the active database transaction.
  4765. *
  4766. * @return void
  4767. * @throws \Throwable
  4768. * @static
  4769. */
  4770. public static function commit()
  4771. {
  4772. //Method inherited from \Illuminate\Database\Connection
  4773. /** @var \Illuminate\Database\MySqlConnection $instance */
  4774. $instance->commit();
  4775. }
  4776. /**
  4777. * Rollback the active database transaction.
  4778. *
  4779. * @param int|null $toLevel
  4780. * @return void
  4781. * @throws \Throwable
  4782. * @static
  4783. */
  4784. public static function rollBack($toLevel = null)
  4785. {
  4786. //Method inherited from \Illuminate\Database\Connection
  4787. /** @var \Illuminate\Database\MySqlConnection $instance */
  4788. $instance->rollBack($toLevel);
  4789. }
  4790. /**
  4791. * Get the number of active transactions.
  4792. *
  4793. * @return int
  4794. * @static
  4795. */
  4796. public static function transactionLevel()
  4797. {
  4798. //Method inherited from \Illuminate\Database\Connection
  4799. /** @var \Illuminate\Database\MySqlConnection $instance */
  4800. return $instance->transactionLevel();
  4801. }
  4802. }
  4803. /**
  4804. *
  4805. *
  4806. * @see \Illuminate\Events\Dispatcher
  4807. */
  4808. class Event {
  4809. /**
  4810. * Register an event listener with the dispatcher.
  4811. *
  4812. * @param string|array $events
  4813. * @param \Closure|string $listener
  4814. * @return void
  4815. * @static
  4816. */
  4817. public static function listen($events, $listener)
  4818. {
  4819. /** @var \Illuminate\Events\Dispatcher $instance */
  4820. $instance->listen($events, $listener);
  4821. }
  4822. /**
  4823. * Determine if a given event has listeners.
  4824. *
  4825. * @param string $eventName
  4826. * @return bool
  4827. * @static
  4828. */
  4829. public static function hasListeners($eventName)
  4830. {
  4831. /** @var \Illuminate\Events\Dispatcher $instance */
  4832. return $instance->hasListeners($eventName);
  4833. }
  4834. /**
  4835. * Determine if the given event has any wildcard listeners.
  4836. *
  4837. * @param string $eventName
  4838. * @return bool
  4839. * @static
  4840. */
  4841. public static function hasWildcardListeners($eventName)
  4842. {
  4843. /** @var \Illuminate\Events\Dispatcher $instance */
  4844. return $instance->hasWildcardListeners($eventName);
  4845. }
  4846. /**
  4847. * Register an event and payload to be fired later.
  4848. *
  4849. * @param string $event
  4850. * @param array $payload
  4851. * @return void
  4852. * @static
  4853. */
  4854. public static function push($event, $payload = [])
  4855. {
  4856. /** @var \Illuminate\Events\Dispatcher $instance */
  4857. $instance->push($event, $payload);
  4858. }
  4859. /**
  4860. * Flush a set of pushed events.
  4861. *
  4862. * @param string $event
  4863. * @return void
  4864. * @static
  4865. */
  4866. public static function flush($event)
  4867. {
  4868. /** @var \Illuminate\Events\Dispatcher $instance */
  4869. $instance->flush($event);
  4870. }
  4871. /**
  4872. * Register an event subscriber with the dispatcher.
  4873. *
  4874. * @param object|string $subscriber
  4875. * @return void
  4876. * @static
  4877. */
  4878. public static function subscribe($subscriber)
  4879. {
  4880. /** @var \Illuminate\Events\Dispatcher $instance */
  4881. $instance->subscribe($subscriber);
  4882. }
  4883. /**
  4884. * Fire an event until the first non-null response is returned.
  4885. *
  4886. * @param string|object $event
  4887. * @param mixed $payload
  4888. * @return array|null
  4889. * @static
  4890. */
  4891. public static function until($event, $payload = [])
  4892. {
  4893. /** @var \Illuminate\Events\Dispatcher $instance */
  4894. return $instance->until($event, $payload);
  4895. }
  4896. /**
  4897. * Fire an event and call the listeners.
  4898. *
  4899. * @param string|object $event
  4900. * @param mixed $payload
  4901. * @param bool $halt
  4902. * @return array|null
  4903. * @static
  4904. */
  4905. public static function dispatch($event, $payload = [], $halt = false)
  4906. {
  4907. /** @var \Illuminate\Events\Dispatcher $instance */
  4908. return $instance->dispatch($event, $payload, $halt);
  4909. }
  4910. /**
  4911. * Get all of the listeners for a given event name.
  4912. *
  4913. * @param string $eventName
  4914. * @return array
  4915. * @static
  4916. */
  4917. public static function getListeners($eventName)
  4918. {
  4919. /** @var \Illuminate\Events\Dispatcher $instance */
  4920. return $instance->getListeners($eventName);
  4921. }
  4922. /**
  4923. * Register an event listener with the dispatcher.
  4924. *
  4925. * @param \Closure|string $listener
  4926. * @param bool $wildcard
  4927. * @return \Closure
  4928. * @static
  4929. */
  4930. public static function makeListener($listener, $wildcard = false)
  4931. {
  4932. /** @var \Illuminate\Events\Dispatcher $instance */
  4933. return $instance->makeListener($listener, $wildcard);
  4934. }
  4935. /**
  4936. * Create a class based listener using the IoC container.
  4937. *
  4938. * @param string $listener
  4939. * @param bool $wildcard
  4940. * @return \Closure
  4941. * @static
  4942. */
  4943. public static function createClassListener($listener, $wildcard = false)
  4944. {
  4945. /** @var \Illuminate\Events\Dispatcher $instance */
  4946. return $instance->createClassListener($listener, $wildcard);
  4947. }
  4948. /**
  4949. * Remove a set of listeners from the dispatcher.
  4950. *
  4951. * @param string $event
  4952. * @return void
  4953. * @static
  4954. */
  4955. public static function forget($event)
  4956. {
  4957. /** @var \Illuminate\Events\Dispatcher $instance */
  4958. $instance->forget($event);
  4959. }
  4960. /**
  4961. * Forget all of the pushed listeners.
  4962. *
  4963. * @return void
  4964. * @static
  4965. */
  4966. public static function forgetPushed()
  4967. {
  4968. /** @var \Illuminate\Events\Dispatcher $instance */
  4969. $instance->forgetPushed();
  4970. }
  4971. /**
  4972. * Set the queue resolver implementation.
  4973. *
  4974. * @param callable $resolver
  4975. * @return \Illuminate\Events\Dispatcher
  4976. * @static
  4977. */
  4978. public static function setQueueResolver($resolver)
  4979. {
  4980. /** @var \Illuminate\Events\Dispatcher $instance */
  4981. return $instance->setQueueResolver($resolver);
  4982. }
  4983. /**
  4984. * Register a custom macro.
  4985. *
  4986. * @param string $name
  4987. * @param object|callable $macro
  4988. * @return void
  4989. * @static
  4990. */
  4991. public static function macro($name, $macro)
  4992. {
  4993. \Illuminate\Events\Dispatcher::macro($name, $macro);
  4994. }
  4995. /**
  4996. * Mix another object into the class.
  4997. *
  4998. * @param object $mixin
  4999. * @param bool $replace
  5000. * @return void
  5001. * @throws \ReflectionException
  5002. * @static
  5003. */
  5004. public static function mixin($mixin, $replace = true)
  5005. {
  5006. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  5007. }
  5008. /**
  5009. * Checks if macro is registered.
  5010. *
  5011. * @param string $name
  5012. * @return bool
  5013. * @static
  5014. */
  5015. public static function hasMacro($name)
  5016. {
  5017. return \Illuminate\Events\Dispatcher::hasMacro($name);
  5018. }
  5019. /**
  5020. * Assert if an event was dispatched based on a truth-test callback.
  5021. *
  5022. * @param string|\Closure $event
  5023. * @param callable|int|null $callback
  5024. * @return void
  5025. * @static
  5026. */
  5027. public static function assertDispatched($event, $callback = null)
  5028. {
  5029. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5030. $instance->assertDispatched($event, $callback);
  5031. }
  5032. /**
  5033. * Assert if a event was dispatched a number of times.
  5034. *
  5035. * @param string $event
  5036. * @param int $times
  5037. * @return void
  5038. * @static
  5039. */
  5040. public static function assertDispatchedTimes($event, $times = 1)
  5041. {
  5042. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5043. $instance->assertDispatchedTimes($event, $times);
  5044. }
  5045. /**
  5046. * Determine if an event was dispatched based on a truth-test callback.
  5047. *
  5048. * @param string|\Closure $event
  5049. * @param callable|null $callback
  5050. * @return void
  5051. * @static
  5052. */
  5053. public static function assertNotDispatched($event, $callback = null)
  5054. {
  5055. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5056. $instance->assertNotDispatched($event, $callback);
  5057. }
  5058. /**
  5059. * Get all of the events matching a truth-test callback.
  5060. *
  5061. * @param string $event
  5062. * @param callable|null $callback
  5063. * @return \Illuminate\Support\Collection
  5064. * @static
  5065. */
  5066. public static function dispatched($event, $callback = null)
  5067. {
  5068. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5069. return $instance->dispatched($event, $callback);
  5070. }
  5071. /**
  5072. * Determine if the given event has been dispatched.
  5073. *
  5074. * @param string $event
  5075. * @return bool
  5076. * @static
  5077. */
  5078. public static function hasDispatched($event)
  5079. {
  5080. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5081. return $instance->hasDispatched($event);
  5082. }
  5083. }
  5084. /**
  5085. *
  5086. *
  5087. * @see \Illuminate\Filesystem\Filesystem
  5088. */
  5089. class File {
  5090. /**
  5091. * Determine if a file or directory exists.
  5092. *
  5093. * @param string $path
  5094. * @return bool
  5095. * @static
  5096. */
  5097. public static function exists($path)
  5098. {
  5099. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5100. return $instance->exists($path);
  5101. }
  5102. /**
  5103. * Determine if a file or directory is missing.
  5104. *
  5105. * @param string $path
  5106. * @return bool
  5107. * @static
  5108. */
  5109. public static function missing($path)
  5110. {
  5111. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5112. return $instance->missing($path);
  5113. }
  5114. /**
  5115. * Get the contents of a file.
  5116. *
  5117. * @param string $path
  5118. * @param bool $lock
  5119. * @return string
  5120. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5121. * @static
  5122. */
  5123. public static function get($path, $lock = false)
  5124. {
  5125. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5126. return $instance->get($path, $lock);
  5127. }
  5128. /**
  5129. * Get contents of a file with shared access.
  5130. *
  5131. * @param string $path
  5132. * @return string
  5133. * @static
  5134. */
  5135. public static function sharedGet($path)
  5136. {
  5137. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5138. return $instance->sharedGet($path);
  5139. }
  5140. /**
  5141. * Get the returned value of a file.
  5142. *
  5143. * @param string $path
  5144. * @return mixed
  5145. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5146. * @static
  5147. */
  5148. public static function getRequire($path)
  5149. {
  5150. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5151. return $instance->getRequire($path);
  5152. }
  5153. /**
  5154. * Require the given file once.
  5155. *
  5156. * @param string $file
  5157. * @return mixed
  5158. * @static
  5159. */
  5160. public static function requireOnce($file)
  5161. {
  5162. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5163. return $instance->requireOnce($file);
  5164. }
  5165. /**
  5166. * Get the MD5 hash of the file at the given path.
  5167. *
  5168. * @param string $path
  5169. * @return string
  5170. * @static
  5171. */
  5172. public static function hash($path)
  5173. {
  5174. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5175. return $instance->hash($path);
  5176. }
  5177. /**
  5178. * Write the contents of a file.
  5179. *
  5180. * @param string $path
  5181. * @param string $contents
  5182. * @param bool $lock
  5183. * @return int|bool
  5184. * @static
  5185. */
  5186. public static function put($path, $contents, $lock = false)
  5187. {
  5188. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5189. return $instance->put($path, $contents, $lock);
  5190. }
  5191. /**
  5192. * Write the contents of a file, replacing it atomically if it already exists.
  5193. *
  5194. * @param string $path
  5195. * @param string $content
  5196. * @return void
  5197. * @static
  5198. */
  5199. public static function replace($path, $content)
  5200. {
  5201. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5202. $instance->replace($path, $content);
  5203. }
  5204. /**
  5205. * Prepend to a file.
  5206. *
  5207. * @param string $path
  5208. * @param string $data
  5209. * @return int
  5210. * @static
  5211. */
  5212. public static function prepend($path, $data)
  5213. {
  5214. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5215. return $instance->prepend($path, $data);
  5216. }
  5217. /**
  5218. * Append to a file.
  5219. *
  5220. * @param string $path
  5221. * @param string $data
  5222. * @return int
  5223. * @static
  5224. */
  5225. public static function append($path, $data)
  5226. {
  5227. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5228. return $instance->append($path, $data);
  5229. }
  5230. /**
  5231. * Get or set UNIX mode of a file or directory.
  5232. *
  5233. * @param string $path
  5234. * @param int|null $mode
  5235. * @return mixed
  5236. * @static
  5237. */
  5238. public static function chmod($path, $mode = null)
  5239. {
  5240. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5241. return $instance->chmod($path, $mode);
  5242. }
  5243. /**
  5244. * Delete the file at a given path.
  5245. *
  5246. * @param string|array $paths
  5247. * @return bool
  5248. * @static
  5249. */
  5250. public static function delete($paths)
  5251. {
  5252. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5253. return $instance->delete($paths);
  5254. }
  5255. /**
  5256. * Move a file to a new location.
  5257. *
  5258. * @param string $path
  5259. * @param string $target
  5260. * @return bool
  5261. * @static
  5262. */
  5263. public static function move($path, $target)
  5264. {
  5265. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5266. return $instance->move($path, $target);
  5267. }
  5268. /**
  5269. * Copy a file to a new location.
  5270. *
  5271. * @param string $path
  5272. * @param string $target
  5273. * @return bool
  5274. * @static
  5275. */
  5276. public static function copy($path, $target)
  5277. {
  5278. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5279. return $instance->copy($path, $target);
  5280. }
  5281. /**
  5282. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  5283. *
  5284. * @param string $target
  5285. * @param string $link
  5286. * @return void
  5287. * @static
  5288. */
  5289. public static function link($target, $link)
  5290. {
  5291. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5292. $instance->link($target, $link);
  5293. }
  5294. /**
  5295. * Extract the file name from a file path.
  5296. *
  5297. * @param string $path
  5298. * @return string
  5299. * @static
  5300. */
  5301. public static function name($path)
  5302. {
  5303. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5304. return $instance->name($path);
  5305. }
  5306. /**
  5307. * Extract the trailing name component from a file path.
  5308. *
  5309. * @param string $path
  5310. * @return string
  5311. * @static
  5312. */
  5313. public static function basename($path)
  5314. {
  5315. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5316. return $instance->basename($path);
  5317. }
  5318. /**
  5319. * Extract the parent directory from a file path.
  5320. *
  5321. * @param string $path
  5322. * @return string
  5323. * @static
  5324. */
  5325. public static function dirname($path)
  5326. {
  5327. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5328. return $instance->dirname($path);
  5329. }
  5330. /**
  5331. * Extract the file extension from a file path.
  5332. *
  5333. * @param string $path
  5334. * @return string
  5335. * @static
  5336. */
  5337. public static function extension($path)
  5338. {
  5339. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5340. return $instance->extension($path);
  5341. }
  5342. /**
  5343. * Get the file type of a given file.
  5344. *
  5345. * @param string $path
  5346. * @return string
  5347. * @static
  5348. */
  5349. public static function type($path)
  5350. {
  5351. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5352. return $instance->type($path);
  5353. }
  5354. /**
  5355. * Get the mime-type of a given file.
  5356. *
  5357. * @param string $path
  5358. * @return string|false
  5359. * @static
  5360. */
  5361. public static function mimeType($path)
  5362. {
  5363. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5364. return $instance->mimeType($path);
  5365. }
  5366. /**
  5367. * Get the file size of a given file.
  5368. *
  5369. * @param string $path
  5370. * @return int
  5371. * @static
  5372. */
  5373. public static function size($path)
  5374. {
  5375. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5376. return $instance->size($path);
  5377. }
  5378. /**
  5379. * Get the file's last modification time.
  5380. *
  5381. * @param string $path
  5382. * @return int
  5383. * @static
  5384. */
  5385. public static function lastModified($path)
  5386. {
  5387. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5388. return $instance->lastModified($path);
  5389. }
  5390. /**
  5391. * Determine if the given path is a directory.
  5392. *
  5393. * @param string $directory
  5394. * @return bool
  5395. * @static
  5396. */
  5397. public static function isDirectory($directory)
  5398. {
  5399. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5400. return $instance->isDirectory($directory);
  5401. }
  5402. /**
  5403. * Determine if the given path is readable.
  5404. *
  5405. * @param string $path
  5406. * @return bool
  5407. * @static
  5408. */
  5409. public static function isReadable($path)
  5410. {
  5411. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5412. return $instance->isReadable($path);
  5413. }
  5414. /**
  5415. * Determine if the given path is writable.
  5416. *
  5417. * @param string $path
  5418. * @return bool
  5419. * @static
  5420. */
  5421. public static function isWritable($path)
  5422. {
  5423. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5424. return $instance->isWritable($path);
  5425. }
  5426. /**
  5427. * Determine if the given path is a file.
  5428. *
  5429. * @param string $file
  5430. * @return bool
  5431. * @static
  5432. */
  5433. public static function isFile($file)
  5434. {
  5435. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5436. return $instance->isFile($file);
  5437. }
  5438. /**
  5439. * Find path names matching a given pattern.
  5440. *
  5441. * @param string $pattern
  5442. * @param int $flags
  5443. * @return array
  5444. * @static
  5445. */
  5446. public static function glob($pattern, $flags = 0)
  5447. {
  5448. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5449. return $instance->glob($pattern, $flags);
  5450. }
  5451. /**
  5452. * Get an array of all files in a directory.
  5453. *
  5454. * @param string $directory
  5455. * @param bool $hidden
  5456. * @return \Symfony\Component\Finder\SplFileInfo[]
  5457. * @static
  5458. */
  5459. public static function files($directory, $hidden = false)
  5460. {
  5461. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5462. return $instance->files($directory, $hidden);
  5463. }
  5464. /**
  5465. * Get all of the files from the given directory (recursive).
  5466. *
  5467. * @param string $directory
  5468. * @param bool $hidden
  5469. * @return \Symfony\Component\Finder\SplFileInfo[]
  5470. * @static
  5471. */
  5472. public static function allFiles($directory, $hidden = false)
  5473. {
  5474. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5475. return $instance->allFiles($directory, $hidden);
  5476. }
  5477. /**
  5478. * Get all of the directories within a given directory.
  5479. *
  5480. * @param string $directory
  5481. * @return array
  5482. * @static
  5483. */
  5484. public static function directories($directory)
  5485. {
  5486. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5487. return $instance->directories($directory);
  5488. }
  5489. /**
  5490. * Ensure a directory exists.
  5491. *
  5492. * @param string $path
  5493. * @param int $mode
  5494. * @param bool $recursive
  5495. * @return void
  5496. * @static
  5497. */
  5498. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  5499. {
  5500. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5501. $instance->ensureDirectoryExists($path, $mode, $recursive);
  5502. }
  5503. /**
  5504. * Create a directory.
  5505. *
  5506. * @param string $path
  5507. * @param int $mode
  5508. * @param bool $recursive
  5509. * @param bool $force
  5510. * @return bool
  5511. * @static
  5512. */
  5513. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  5514. {
  5515. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5516. return $instance->makeDirectory($path, $mode, $recursive, $force);
  5517. }
  5518. /**
  5519. * Move a directory.
  5520. *
  5521. * @param string $from
  5522. * @param string $to
  5523. * @param bool $overwrite
  5524. * @return bool
  5525. * @static
  5526. */
  5527. public static function moveDirectory($from, $to, $overwrite = false)
  5528. {
  5529. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5530. return $instance->moveDirectory($from, $to, $overwrite);
  5531. }
  5532. /**
  5533. * Copy a directory from one location to another.
  5534. *
  5535. * @param string $directory
  5536. * @param string $destination
  5537. * @param int|null $options
  5538. * @return bool
  5539. * @static
  5540. */
  5541. public static function copyDirectory($directory, $destination, $options = null)
  5542. {
  5543. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5544. return $instance->copyDirectory($directory, $destination, $options);
  5545. }
  5546. /**
  5547. * Recursively delete a directory.
  5548. *
  5549. * The directory itself may be optionally preserved.
  5550. *
  5551. * @param string $directory
  5552. * @param bool $preserve
  5553. * @return bool
  5554. * @static
  5555. */
  5556. public static function deleteDirectory($directory, $preserve = false)
  5557. {
  5558. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5559. return $instance->deleteDirectory($directory, $preserve);
  5560. }
  5561. /**
  5562. * Remove all of the directories within a given directory.
  5563. *
  5564. * @param string $directory
  5565. * @return bool
  5566. * @static
  5567. */
  5568. public static function deleteDirectories($directory)
  5569. {
  5570. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5571. return $instance->deleteDirectories($directory);
  5572. }
  5573. /**
  5574. * Empty the specified directory of all files and folders.
  5575. *
  5576. * @param string $directory
  5577. * @return bool
  5578. * @static
  5579. */
  5580. public static function cleanDirectory($directory)
  5581. {
  5582. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5583. return $instance->cleanDirectory($directory);
  5584. }
  5585. /**
  5586. * Register a custom macro.
  5587. *
  5588. * @param string $name
  5589. * @param object|callable $macro
  5590. * @return void
  5591. * @static
  5592. */
  5593. public static function macro($name, $macro)
  5594. {
  5595. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5596. }
  5597. /**
  5598. * Mix another object into the class.
  5599. *
  5600. * @param object $mixin
  5601. * @param bool $replace
  5602. * @return void
  5603. * @throws \ReflectionException
  5604. * @static
  5605. */
  5606. public static function mixin($mixin, $replace = true)
  5607. {
  5608. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  5609. }
  5610. /**
  5611. * Checks if macro is registered.
  5612. *
  5613. * @param string $name
  5614. * @return bool
  5615. * @static
  5616. */
  5617. public static function hasMacro($name)
  5618. {
  5619. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5620. }
  5621. }
  5622. /**
  5623. *
  5624. *
  5625. * @see \Illuminate\Contracts\Auth\Access\Gate
  5626. */
  5627. class Gate {
  5628. /**
  5629. * Determine if a given ability has been defined.
  5630. *
  5631. * @param string|array $ability
  5632. * @return bool
  5633. * @static
  5634. */
  5635. public static function has($ability)
  5636. {
  5637. /** @var \Illuminate\Auth\Access\Gate $instance */
  5638. return $instance->has($ability);
  5639. }
  5640. /**
  5641. * Define a new ability.
  5642. *
  5643. * @param string $ability
  5644. * @param callable|string $callback
  5645. * @return \Illuminate\Auth\Access\Gate
  5646. * @throws \InvalidArgumentException
  5647. * @static
  5648. */
  5649. public static function define($ability, $callback)
  5650. {
  5651. /** @var \Illuminate\Auth\Access\Gate $instance */
  5652. return $instance->define($ability, $callback);
  5653. }
  5654. /**
  5655. * Define abilities for a resource.
  5656. *
  5657. * @param string $name
  5658. * @param string $class
  5659. * @param array|null $abilities
  5660. * @return \Illuminate\Auth\Access\Gate
  5661. * @static
  5662. */
  5663. public static function resource($name, $class, $abilities = null)
  5664. {
  5665. /** @var \Illuminate\Auth\Access\Gate $instance */
  5666. return $instance->resource($name, $class, $abilities);
  5667. }
  5668. /**
  5669. * Define a policy class for a given class type.
  5670. *
  5671. * @param string $class
  5672. * @param string $policy
  5673. * @return \Illuminate\Auth\Access\Gate
  5674. * @static
  5675. */
  5676. public static function policy($class, $policy)
  5677. {
  5678. /** @var \Illuminate\Auth\Access\Gate $instance */
  5679. return $instance->policy($class, $policy);
  5680. }
  5681. /**
  5682. * Register a callback to run before all Gate checks.
  5683. *
  5684. * @param callable $callback
  5685. * @return \Illuminate\Auth\Access\Gate
  5686. * @static
  5687. */
  5688. public static function before($callback)
  5689. {
  5690. /** @var \Illuminate\Auth\Access\Gate $instance */
  5691. return $instance->before($callback);
  5692. }
  5693. /**
  5694. * Register a callback to run after all Gate checks.
  5695. *
  5696. * @param callable $callback
  5697. * @return \Illuminate\Auth\Access\Gate
  5698. * @static
  5699. */
  5700. public static function after($callback)
  5701. {
  5702. /** @var \Illuminate\Auth\Access\Gate $instance */
  5703. return $instance->after($callback);
  5704. }
  5705. /**
  5706. * Determine if the given ability should be granted for the current user.
  5707. *
  5708. * @param string $ability
  5709. * @param array|mixed $arguments
  5710. * @return bool
  5711. * @static
  5712. */
  5713. public static function allows($ability, $arguments = [])
  5714. {
  5715. /** @var \Illuminate\Auth\Access\Gate $instance */
  5716. return $instance->allows($ability, $arguments);
  5717. }
  5718. /**
  5719. * Determine if the given ability should be denied for the current user.
  5720. *
  5721. * @param string $ability
  5722. * @param array|mixed $arguments
  5723. * @return bool
  5724. * @static
  5725. */
  5726. public static function denies($ability, $arguments = [])
  5727. {
  5728. /** @var \Illuminate\Auth\Access\Gate $instance */
  5729. return $instance->denies($ability, $arguments);
  5730. }
  5731. /**
  5732. * Determine if all of the given abilities should be granted for the current user.
  5733. *
  5734. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5735. * @param array|mixed $arguments
  5736. * @return bool
  5737. * @static
  5738. */
  5739. public static function check($abilities, $arguments = [])
  5740. {
  5741. /** @var \Illuminate\Auth\Access\Gate $instance */
  5742. return $instance->check($abilities, $arguments);
  5743. }
  5744. /**
  5745. * Determine if any one of the given abilities should be granted for the current user.
  5746. *
  5747. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5748. * @param array|mixed $arguments
  5749. * @return bool
  5750. * @static
  5751. */
  5752. public static function any($abilities, $arguments = [])
  5753. {
  5754. /** @var \Illuminate\Auth\Access\Gate $instance */
  5755. return $instance->any($abilities, $arguments);
  5756. }
  5757. /**
  5758. * Determine if all of the given abilities should be denied for the current user.
  5759. *
  5760. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5761. * @param array|mixed $arguments
  5762. * @return bool
  5763. * @static
  5764. */
  5765. public static function none($abilities, $arguments = [])
  5766. {
  5767. /** @var \Illuminate\Auth\Access\Gate $instance */
  5768. return $instance->none($abilities, $arguments);
  5769. }
  5770. /**
  5771. * Determine if the given ability should be granted for the current user.
  5772. *
  5773. * @param string $ability
  5774. * @param array|mixed $arguments
  5775. * @return \Illuminate\Auth\Access\Response
  5776. * @throws \Illuminate\Auth\Access\AuthorizationException
  5777. * @static
  5778. */
  5779. public static function authorize($ability, $arguments = [])
  5780. {
  5781. /** @var \Illuminate\Auth\Access\Gate $instance */
  5782. return $instance->authorize($ability, $arguments);
  5783. }
  5784. /**
  5785. * Inspect the user for the given ability.
  5786. *
  5787. * @param string $ability
  5788. * @param array|mixed $arguments
  5789. * @return \Illuminate\Auth\Access\Response
  5790. * @static
  5791. */
  5792. public static function inspect($ability, $arguments = [])
  5793. {
  5794. /** @var \Illuminate\Auth\Access\Gate $instance */
  5795. return $instance->inspect($ability, $arguments);
  5796. }
  5797. /**
  5798. * Get the raw result from the authorization callback.
  5799. *
  5800. * @param string $ability
  5801. * @param array|mixed $arguments
  5802. * @return mixed
  5803. * @throws \Illuminate\Auth\Access\AuthorizationException
  5804. * @static
  5805. */
  5806. public static function raw($ability, $arguments = [])
  5807. {
  5808. /** @var \Illuminate\Auth\Access\Gate $instance */
  5809. return $instance->raw($ability, $arguments);
  5810. }
  5811. /**
  5812. * Get a policy instance for a given class.
  5813. *
  5814. * @param object|string $class
  5815. * @return mixed
  5816. * @static
  5817. */
  5818. public static function getPolicyFor($class)
  5819. {
  5820. /** @var \Illuminate\Auth\Access\Gate $instance */
  5821. return $instance->getPolicyFor($class);
  5822. }
  5823. /**
  5824. * Specify a callback to be used to guess policy names.
  5825. *
  5826. * @param callable $callback
  5827. * @return \Illuminate\Auth\Access\Gate
  5828. * @static
  5829. */
  5830. public static function guessPolicyNamesUsing($callback)
  5831. {
  5832. /** @var \Illuminate\Auth\Access\Gate $instance */
  5833. return $instance->guessPolicyNamesUsing($callback);
  5834. }
  5835. /**
  5836. * Build a policy class instance of the given type.
  5837. *
  5838. * @param object|string $class
  5839. * @return mixed
  5840. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  5841. * @static
  5842. */
  5843. public static function resolvePolicy($class)
  5844. {
  5845. /** @var \Illuminate\Auth\Access\Gate $instance */
  5846. return $instance->resolvePolicy($class);
  5847. }
  5848. /**
  5849. * Get a gate instance for the given user.
  5850. *
  5851. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5852. * @return static
  5853. * @static
  5854. */
  5855. public static function forUser($user)
  5856. {
  5857. /** @var \Illuminate\Auth\Access\Gate $instance */
  5858. return $instance->forUser($user);
  5859. }
  5860. /**
  5861. * Get all of the defined abilities.
  5862. *
  5863. * @return array
  5864. * @static
  5865. */
  5866. public static function abilities()
  5867. {
  5868. /** @var \Illuminate\Auth\Access\Gate $instance */
  5869. return $instance->abilities();
  5870. }
  5871. /**
  5872. * Get all of the defined policies.
  5873. *
  5874. * @return array
  5875. * @static
  5876. */
  5877. public static function policies()
  5878. {
  5879. /** @var \Illuminate\Auth\Access\Gate $instance */
  5880. return $instance->policies();
  5881. }
  5882. }
  5883. /**
  5884. *
  5885. *
  5886. * @see \Illuminate\Hashing\HashManager
  5887. */
  5888. class Hash {
  5889. /**
  5890. * Create an instance of the Bcrypt hash Driver.
  5891. *
  5892. * @return \Illuminate\Hashing\BcryptHasher
  5893. * @static
  5894. */
  5895. public static function createBcryptDriver()
  5896. {
  5897. /** @var \Illuminate\Hashing\HashManager $instance */
  5898. return $instance->createBcryptDriver();
  5899. }
  5900. /**
  5901. * Create an instance of the Argon2i hash Driver.
  5902. *
  5903. * @return \Illuminate\Hashing\ArgonHasher
  5904. * @static
  5905. */
  5906. public static function createArgonDriver()
  5907. {
  5908. /** @var \Illuminate\Hashing\HashManager $instance */
  5909. return $instance->createArgonDriver();
  5910. }
  5911. /**
  5912. * Create an instance of the Argon2id hash Driver.
  5913. *
  5914. * @return \Illuminate\Hashing\Argon2IdHasher
  5915. * @static
  5916. */
  5917. public static function createArgon2idDriver()
  5918. {
  5919. /** @var \Illuminate\Hashing\HashManager $instance */
  5920. return $instance->createArgon2idDriver();
  5921. }
  5922. /**
  5923. * Get information about the given hashed value.
  5924. *
  5925. * @param string $hashedValue
  5926. * @return array
  5927. * @static
  5928. */
  5929. public static function info($hashedValue)
  5930. {
  5931. /** @var \Illuminate\Hashing\HashManager $instance */
  5932. return $instance->info($hashedValue);
  5933. }
  5934. /**
  5935. * Hash the given value.
  5936. *
  5937. * @param string $value
  5938. * @param array $options
  5939. * @return string
  5940. * @static
  5941. */
  5942. public static function make($value, $options = [])
  5943. {
  5944. /** @var \Illuminate\Hashing\HashManager $instance */
  5945. return $instance->make($value, $options);
  5946. }
  5947. /**
  5948. * Check the given plain value against a hash.
  5949. *
  5950. * @param string $value
  5951. * @param string $hashedValue
  5952. * @param array $options
  5953. * @return bool
  5954. * @static
  5955. */
  5956. public static function check($value, $hashedValue, $options = [])
  5957. {
  5958. /** @var \Illuminate\Hashing\HashManager $instance */
  5959. return $instance->check($value, $hashedValue, $options);
  5960. }
  5961. /**
  5962. * Check if the given hash has been hashed using the given options.
  5963. *
  5964. * @param string $hashedValue
  5965. * @param array $options
  5966. * @return bool
  5967. * @static
  5968. */
  5969. public static function needsRehash($hashedValue, $options = [])
  5970. {
  5971. /** @var \Illuminate\Hashing\HashManager $instance */
  5972. return $instance->needsRehash($hashedValue, $options);
  5973. }
  5974. /**
  5975. * Get the default driver name.
  5976. *
  5977. * @return string
  5978. * @static
  5979. */
  5980. public static function getDefaultDriver()
  5981. {
  5982. /** @var \Illuminate\Hashing\HashManager $instance */
  5983. return $instance->getDefaultDriver();
  5984. }
  5985. /**
  5986. * Get a driver instance.
  5987. *
  5988. * @param string|null $driver
  5989. * @return mixed
  5990. * @throws \InvalidArgumentException
  5991. * @static
  5992. */
  5993. public static function driver($driver = null)
  5994. {
  5995. //Method inherited from \Illuminate\Support\Manager
  5996. /** @var \Illuminate\Hashing\HashManager $instance */
  5997. return $instance->driver($driver);
  5998. }
  5999. /**
  6000. * Register a custom driver creator Closure.
  6001. *
  6002. * @param string $driver
  6003. * @param \Closure $callback
  6004. * @return \Illuminate\Hashing\HashManager
  6005. * @static
  6006. */
  6007. public static function extend($driver, $callback)
  6008. {
  6009. //Method inherited from \Illuminate\Support\Manager
  6010. /** @var \Illuminate\Hashing\HashManager $instance */
  6011. return $instance->extend($driver, $callback);
  6012. }
  6013. /**
  6014. * Get all of the created "drivers".
  6015. *
  6016. * @return array
  6017. * @static
  6018. */
  6019. public static function getDrivers()
  6020. {
  6021. //Method inherited from \Illuminate\Support\Manager
  6022. /** @var \Illuminate\Hashing\HashManager $instance */
  6023. return $instance->getDrivers();
  6024. }
  6025. }
  6026. /**
  6027. *
  6028. *
  6029. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  6030. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  6031. * @method static \Illuminate\Http\Client\PendingRequest attach(string $name, string $contents, string|null $filename = null, array $headers = [])
  6032. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  6033. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  6034. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  6035. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  6036. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  6037. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleep = 0)
  6038. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  6039. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  6040. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  6041. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  6042. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  6043. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  6044. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  6045. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  6046. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  6047. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  6048. * @method static \Illuminate\Http\Client\Response get(string $url, array $query = [])
  6049. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  6050. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  6051. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  6052. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  6053. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  6054. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  6055. * @see \Illuminate\Http\Client\Factory
  6056. */
  6057. class Http {
  6058. /**
  6059. * Create a new response instance for use during stubbing.
  6060. *
  6061. * @param array|string $body
  6062. * @param int $status
  6063. * @param array $headers
  6064. * @return \GuzzleHttp\Promise\PromiseInterface
  6065. * @static
  6066. */
  6067. public static function response($body = null, $status = 200, $headers = [])
  6068. {
  6069. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  6070. }
  6071. /**
  6072. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  6073. *
  6074. * @param array $responses
  6075. * @return \Illuminate\Http\Client\ResponseSequence
  6076. * @static
  6077. */
  6078. public static function sequence($responses = [])
  6079. {
  6080. /** @var \Illuminate\Http\Client\Factory $instance */
  6081. return $instance->sequence($responses);
  6082. }
  6083. /**
  6084. * Register a stub callable that will intercept requests and be able to return stub responses.
  6085. *
  6086. * @param callable|array $callback
  6087. * @return \Illuminate\Http\Client\Factory
  6088. * @static
  6089. */
  6090. public static function fake($callback = null)
  6091. {
  6092. /** @var \Illuminate\Http\Client\Factory $instance */
  6093. return $instance->fake($callback);
  6094. }
  6095. /**
  6096. * Register a response sequence for the given URL pattern.
  6097. *
  6098. * @param string $url
  6099. * @return \Illuminate\Http\Client\ResponseSequence
  6100. * @static
  6101. */
  6102. public static function fakeSequence($url = '*')
  6103. {
  6104. /** @var \Illuminate\Http\Client\Factory $instance */
  6105. return $instance->fakeSequence($url);
  6106. }
  6107. /**
  6108. * Stub the given URL using the given callback.
  6109. *
  6110. * @param string $url
  6111. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  6112. * @return \Illuminate\Http\Client\Factory
  6113. * @static
  6114. */
  6115. public static function stubUrl($url, $callback)
  6116. {
  6117. /** @var \Illuminate\Http\Client\Factory $instance */
  6118. return $instance->stubUrl($url, $callback);
  6119. }
  6120. /**
  6121. * Record a request response pair.
  6122. *
  6123. * @param \Illuminate\Http\Client\Request $request
  6124. * @param \Illuminate\Http\Client\Response $response
  6125. * @return void
  6126. * @static
  6127. */
  6128. public static function recordRequestResponsePair($request, $response)
  6129. {
  6130. /** @var \Illuminate\Http\Client\Factory $instance */
  6131. $instance->recordRequestResponsePair($request, $response);
  6132. }
  6133. /**
  6134. * Assert that a request / response pair was recorded matching a given truth test.
  6135. *
  6136. * @param callable $callback
  6137. * @return void
  6138. * @static
  6139. */
  6140. public static function assertSent($callback)
  6141. {
  6142. /** @var \Illuminate\Http\Client\Factory $instance */
  6143. $instance->assertSent($callback);
  6144. }
  6145. /**
  6146. * Assert that a request / response pair was not recorded matching a given truth test.
  6147. *
  6148. * @param callable $callback
  6149. * @return void
  6150. * @static
  6151. */
  6152. public static function assertNotSent($callback)
  6153. {
  6154. /** @var \Illuminate\Http\Client\Factory $instance */
  6155. $instance->assertNotSent($callback);
  6156. }
  6157. /**
  6158. * Assert that no request / response pair was recorded.
  6159. *
  6160. * @return void
  6161. * @static
  6162. */
  6163. public static function assertNothingSent()
  6164. {
  6165. /** @var \Illuminate\Http\Client\Factory $instance */
  6166. $instance->assertNothingSent();
  6167. }
  6168. /**
  6169. * Assert how many requests have been recorded.
  6170. *
  6171. * @param $count
  6172. * @return void
  6173. * @static
  6174. */
  6175. public static function assertSentCount($count)
  6176. {
  6177. /** @var \Illuminate\Http\Client\Factory $instance */
  6178. $instance->assertSentCount($count);
  6179. }
  6180. /**
  6181. * Assert that every created response sequence is empty.
  6182. *
  6183. * @return void
  6184. * @static
  6185. */
  6186. public static function assertSequencesAreEmpty()
  6187. {
  6188. /** @var \Illuminate\Http\Client\Factory $instance */
  6189. $instance->assertSequencesAreEmpty();
  6190. }
  6191. /**
  6192. * Get a collection of the request / response pairs matching the given truth test.
  6193. *
  6194. * @param callable $callback
  6195. * @return \Illuminate\Support\Collection
  6196. * @static
  6197. */
  6198. public static function recorded($callback)
  6199. {
  6200. /** @var \Illuminate\Http\Client\Factory $instance */
  6201. return $instance->recorded($callback);
  6202. }
  6203. /**
  6204. * Register a custom macro.
  6205. *
  6206. * @param string $name
  6207. * @param object|callable $macro
  6208. * @return void
  6209. * @static
  6210. */
  6211. public static function macro($name, $macro)
  6212. {
  6213. \Illuminate\Http\Client\Factory::macro($name, $macro);
  6214. }
  6215. /**
  6216. * Mix another object into the class.
  6217. *
  6218. * @param object $mixin
  6219. * @param bool $replace
  6220. * @return void
  6221. * @throws \ReflectionException
  6222. * @static
  6223. */
  6224. public static function mixin($mixin, $replace = true)
  6225. {
  6226. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  6227. }
  6228. /**
  6229. * Checks if macro is registered.
  6230. *
  6231. * @param string $name
  6232. * @return bool
  6233. * @static
  6234. */
  6235. public static function hasMacro($name)
  6236. {
  6237. return \Illuminate\Http\Client\Factory::hasMacro($name);
  6238. }
  6239. /**
  6240. * Dynamically handle calls to the class.
  6241. *
  6242. * @param string $method
  6243. * @param array $parameters
  6244. * @return mixed
  6245. * @throws \BadMethodCallException
  6246. * @static
  6247. */
  6248. public static function macroCall($method, $parameters)
  6249. {
  6250. /** @var \Illuminate\Http\Client\Factory $instance */
  6251. return $instance->macroCall($method, $parameters);
  6252. }
  6253. }
  6254. /**
  6255. *
  6256. *
  6257. * @see \Illuminate\Translation\Translator
  6258. */
  6259. class Lang {
  6260. /**
  6261. * Determine if a translation exists for a given locale.
  6262. *
  6263. * @param string $key
  6264. * @param string|null $locale
  6265. * @return bool
  6266. * @static
  6267. */
  6268. public static function hasForLocale($key, $locale = null)
  6269. {
  6270. /** @var \Illuminate\Translation\Translator $instance */
  6271. return $instance->hasForLocale($key, $locale);
  6272. }
  6273. /**
  6274. * Determine if a translation exists.
  6275. *
  6276. * @param string $key
  6277. * @param string|null $locale
  6278. * @param bool $fallback
  6279. * @return bool
  6280. * @static
  6281. */
  6282. public static function has($key, $locale = null, $fallback = true)
  6283. {
  6284. /** @var \Illuminate\Translation\Translator $instance */
  6285. return $instance->has($key, $locale, $fallback);
  6286. }
  6287. /**
  6288. * Get the translation for the given key.
  6289. *
  6290. * @param string $key
  6291. * @param array $replace
  6292. * @param string|null $locale
  6293. * @param bool $fallback
  6294. * @return string|array
  6295. * @static
  6296. */
  6297. public static function get($key, $replace = [], $locale = null, $fallback = true)
  6298. {
  6299. /** @var \Illuminate\Translation\Translator $instance */
  6300. return $instance->get($key, $replace, $locale, $fallback);
  6301. }
  6302. /**
  6303. * Get a translation according to an integer value.
  6304. *
  6305. * @param string $key
  6306. * @param \Countable|int|array $number
  6307. * @param array $replace
  6308. * @param string|null $locale
  6309. * @return string
  6310. * @static
  6311. */
  6312. public static function choice($key, $number, $replace = [], $locale = null)
  6313. {
  6314. /** @var \Illuminate\Translation\Translator $instance */
  6315. return $instance->choice($key, $number, $replace, $locale);
  6316. }
  6317. /**
  6318. * Add translation lines to the given locale.
  6319. *
  6320. * @param array $lines
  6321. * @param string $locale
  6322. * @param string $namespace
  6323. * @return void
  6324. * @static
  6325. */
  6326. public static function addLines($lines, $locale, $namespace = '*')
  6327. {
  6328. /** @var \Illuminate\Translation\Translator $instance */
  6329. $instance->addLines($lines, $locale, $namespace);
  6330. }
  6331. /**
  6332. * Load the specified language group.
  6333. *
  6334. * @param string $namespace
  6335. * @param string $group
  6336. * @param string $locale
  6337. * @return void
  6338. * @static
  6339. */
  6340. public static function load($namespace, $group, $locale)
  6341. {
  6342. /** @var \Illuminate\Translation\Translator $instance */
  6343. $instance->load($namespace, $group, $locale);
  6344. }
  6345. /**
  6346. * Add a new namespace to the loader.
  6347. *
  6348. * @param string $namespace
  6349. * @param string $hint
  6350. * @return void
  6351. * @static
  6352. */
  6353. public static function addNamespace($namespace, $hint)
  6354. {
  6355. /** @var \Illuminate\Translation\Translator $instance */
  6356. $instance->addNamespace($namespace, $hint);
  6357. }
  6358. /**
  6359. * Add a new JSON path to the loader.
  6360. *
  6361. * @param string $path
  6362. * @return void
  6363. * @static
  6364. */
  6365. public static function addJsonPath($path)
  6366. {
  6367. /** @var \Illuminate\Translation\Translator $instance */
  6368. $instance->addJsonPath($path);
  6369. }
  6370. /**
  6371. * Parse a key into namespace, group, and item.
  6372. *
  6373. * @param string $key
  6374. * @return array
  6375. * @static
  6376. */
  6377. public static function parseKey($key)
  6378. {
  6379. /** @var \Illuminate\Translation\Translator $instance */
  6380. return $instance->parseKey($key);
  6381. }
  6382. /**
  6383. * Get the message selector instance.
  6384. *
  6385. * @return \Illuminate\Translation\MessageSelector
  6386. * @static
  6387. */
  6388. public static function getSelector()
  6389. {
  6390. /** @var \Illuminate\Translation\Translator $instance */
  6391. return $instance->getSelector();
  6392. }
  6393. /**
  6394. * Set the message selector instance.
  6395. *
  6396. * @param \Illuminate\Translation\MessageSelector $selector
  6397. * @return void
  6398. * @static
  6399. */
  6400. public static function setSelector($selector)
  6401. {
  6402. /** @var \Illuminate\Translation\Translator $instance */
  6403. $instance->setSelector($selector);
  6404. }
  6405. /**
  6406. * Get the language line loader implementation.
  6407. *
  6408. * @return \Illuminate\Contracts\Translation\Loader
  6409. * @static
  6410. */
  6411. public static function getLoader()
  6412. {
  6413. /** @var \Illuminate\Translation\Translator $instance */
  6414. return $instance->getLoader();
  6415. }
  6416. /**
  6417. * Get the default locale being used.
  6418. *
  6419. * @return string
  6420. * @static
  6421. */
  6422. public static function locale()
  6423. {
  6424. /** @var \Illuminate\Translation\Translator $instance */
  6425. return $instance->locale();
  6426. }
  6427. /**
  6428. * Get the default locale being used.
  6429. *
  6430. * @return string
  6431. * @static
  6432. */
  6433. public static function getLocale()
  6434. {
  6435. /** @var \Illuminate\Translation\Translator $instance */
  6436. return $instance->getLocale();
  6437. }
  6438. /**
  6439. * Set the default locale.
  6440. *
  6441. * @param string $locale
  6442. * @return void
  6443. * @static
  6444. */
  6445. public static function setLocale($locale)
  6446. {
  6447. /** @var \Illuminate\Translation\Translator $instance */
  6448. $instance->setLocale($locale);
  6449. }
  6450. /**
  6451. * Get the fallback locale being used.
  6452. *
  6453. * @return string
  6454. * @static
  6455. */
  6456. public static function getFallback()
  6457. {
  6458. /** @var \Illuminate\Translation\Translator $instance */
  6459. return $instance->getFallback();
  6460. }
  6461. /**
  6462. * Set the fallback locale being used.
  6463. *
  6464. * @param string $fallback
  6465. * @return void
  6466. * @static
  6467. */
  6468. public static function setFallback($fallback)
  6469. {
  6470. /** @var \Illuminate\Translation\Translator $instance */
  6471. $instance->setFallback($fallback);
  6472. }
  6473. /**
  6474. * Set the loaded translation groups.
  6475. *
  6476. * @param array $loaded
  6477. * @return void
  6478. * @static
  6479. */
  6480. public static function setLoaded($loaded)
  6481. {
  6482. /** @var \Illuminate\Translation\Translator $instance */
  6483. $instance->setLoaded($loaded);
  6484. }
  6485. /**
  6486. * Set the parsed value of a key.
  6487. *
  6488. * @param string $key
  6489. * @param array $parsed
  6490. * @return void
  6491. * @static
  6492. */
  6493. public static function setParsedKey($key, $parsed)
  6494. {
  6495. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  6496. /** @var \Illuminate\Translation\Translator $instance */
  6497. $instance->setParsedKey($key, $parsed);
  6498. }
  6499. /**
  6500. * Register a custom macro.
  6501. *
  6502. * @param string $name
  6503. * @param object|callable $macro
  6504. * @return void
  6505. * @static
  6506. */
  6507. public static function macro($name, $macro)
  6508. {
  6509. \Illuminate\Translation\Translator::macro($name, $macro);
  6510. }
  6511. /**
  6512. * Mix another object into the class.
  6513. *
  6514. * @param object $mixin
  6515. * @param bool $replace
  6516. * @return void
  6517. * @throws \ReflectionException
  6518. * @static
  6519. */
  6520. public static function mixin($mixin, $replace = true)
  6521. {
  6522. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  6523. }
  6524. /**
  6525. * Checks if macro is registered.
  6526. *
  6527. * @param string $name
  6528. * @return bool
  6529. * @static
  6530. */
  6531. public static function hasMacro($name)
  6532. {
  6533. return \Illuminate\Translation\Translator::hasMacro($name);
  6534. }
  6535. }
  6536. /**
  6537. *
  6538. *
  6539. * @see \Illuminate\Log\Logger
  6540. */
  6541. class Log {
  6542. /**
  6543. * Create a new, on-demand aggregate logger instance.
  6544. *
  6545. * @param array $channels
  6546. * @param string|null $channel
  6547. * @return \Psr\Log\LoggerInterface
  6548. * @static
  6549. */
  6550. public static function stack($channels, $channel = null)
  6551. {
  6552. /** @var \Illuminate\Log\LogManager $instance */
  6553. return $instance->stack($channels, $channel);
  6554. }
  6555. /**
  6556. * Get a log channel instance.
  6557. *
  6558. * @param string|null $channel
  6559. * @return \Psr\Log\LoggerInterface
  6560. * @static
  6561. */
  6562. public static function channel($channel = null)
  6563. {
  6564. /** @var \Illuminate\Log\LogManager $instance */
  6565. return $instance->channel($channel);
  6566. }
  6567. /**
  6568. * Get a log driver instance.
  6569. *
  6570. * @param string|null $driver
  6571. * @return \Psr\Log\LoggerInterface
  6572. * @static
  6573. */
  6574. public static function driver($driver = null)
  6575. {
  6576. /** @var \Illuminate\Log\LogManager $instance */
  6577. return $instance->driver($driver);
  6578. }
  6579. /**
  6580. *
  6581. *
  6582. * @return array
  6583. * @static
  6584. */
  6585. public static function getChannels()
  6586. {
  6587. /** @var \Illuminate\Log\LogManager $instance */
  6588. return $instance->getChannels();
  6589. }
  6590. /**
  6591. * Get the default log driver name.
  6592. *
  6593. * @return string
  6594. * @static
  6595. */
  6596. public static function getDefaultDriver()
  6597. {
  6598. /** @var \Illuminate\Log\LogManager $instance */
  6599. return $instance->getDefaultDriver();
  6600. }
  6601. /**
  6602. * Set the default log driver name.
  6603. *
  6604. * @param string $name
  6605. * @return void
  6606. * @static
  6607. */
  6608. public static function setDefaultDriver($name)
  6609. {
  6610. /** @var \Illuminate\Log\LogManager $instance */
  6611. $instance->setDefaultDriver($name);
  6612. }
  6613. /**
  6614. * Register a custom driver creator Closure.
  6615. *
  6616. * @param string $driver
  6617. * @param \Closure $callback
  6618. * @return \Illuminate\Log\LogManager
  6619. * @static
  6620. */
  6621. public static function extend($driver, $callback)
  6622. {
  6623. /** @var \Illuminate\Log\LogManager $instance */
  6624. return $instance->extend($driver, $callback);
  6625. }
  6626. /**
  6627. * Unset the given channel instance.
  6628. *
  6629. * @param string|null $name
  6630. * @return \Illuminate\Log\LogManager
  6631. * @static
  6632. */
  6633. public static function forgetChannel($driver = null)
  6634. {
  6635. /** @var \Illuminate\Log\LogManager $instance */
  6636. return $instance->forgetChannel($driver);
  6637. }
  6638. /**
  6639. * System is unusable.
  6640. *
  6641. * @param string $message
  6642. * @param array $context
  6643. * @return void
  6644. * @static
  6645. */
  6646. public static function emergency($message, $context = [])
  6647. {
  6648. /** @var \Illuminate\Log\LogManager $instance */
  6649. $instance->emergency($message, $context);
  6650. }
  6651. /**
  6652. * Action must be taken immediately.
  6653. *
  6654. * Example: Entire website down, database unavailable, etc. This should
  6655. * trigger the SMS alerts and wake you up.
  6656. *
  6657. * @param string $message
  6658. * @param array $context
  6659. * @return void
  6660. * @static
  6661. */
  6662. public static function alert($message, $context = [])
  6663. {
  6664. /** @var \Illuminate\Log\LogManager $instance */
  6665. $instance->alert($message, $context);
  6666. }
  6667. /**
  6668. * Critical conditions.
  6669. *
  6670. * Example: Application component unavailable, unexpected exception.
  6671. *
  6672. * @param string $message
  6673. * @param array $context
  6674. * @return void
  6675. * @static
  6676. */
  6677. public static function critical($message, $context = [])
  6678. {
  6679. /** @var \Illuminate\Log\LogManager $instance */
  6680. $instance->critical($message, $context);
  6681. }
  6682. /**
  6683. * Runtime errors that do not require immediate action but should typically
  6684. * be logged and monitored.
  6685. *
  6686. * @param string $message
  6687. * @param array $context
  6688. * @return void
  6689. * @static
  6690. */
  6691. public static function error($message, $context = [])
  6692. {
  6693. /** @var \Illuminate\Log\LogManager $instance */
  6694. $instance->error($message, $context);
  6695. }
  6696. /**
  6697. * Exceptional occurrences that are not errors.
  6698. *
  6699. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  6700. * that are not necessarily wrong.
  6701. *
  6702. * @param string $message
  6703. * @param array $context
  6704. * @return void
  6705. * @static
  6706. */
  6707. public static function warning($message, $context = [])
  6708. {
  6709. /** @var \Illuminate\Log\LogManager $instance */
  6710. $instance->warning($message, $context);
  6711. }
  6712. /**
  6713. * Normal but significant events.
  6714. *
  6715. * @param string $message
  6716. * @param array $context
  6717. * @return void
  6718. * @static
  6719. */
  6720. public static function notice($message, $context = [])
  6721. {
  6722. /** @var \Illuminate\Log\LogManager $instance */
  6723. $instance->notice($message, $context);
  6724. }
  6725. /**
  6726. * Interesting events.
  6727. *
  6728. * Example: User logs in, SQL logs.
  6729. *
  6730. * @param string $message
  6731. * @param array $context
  6732. * @return void
  6733. * @static
  6734. */
  6735. public static function info($message, $context = [])
  6736. {
  6737. /** @var \Illuminate\Log\LogManager $instance */
  6738. $instance->info($message, $context);
  6739. }
  6740. /**
  6741. * Detailed debug information.
  6742. *
  6743. * @param string $message
  6744. * @param array $context
  6745. * @return void
  6746. * @static
  6747. */
  6748. public static function debug($message, $context = [])
  6749. {
  6750. /** @var \Illuminate\Log\LogManager $instance */
  6751. $instance->debug($message, $context);
  6752. }
  6753. /**
  6754. * Logs with an arbitrary level.
  6755. *
  6756. * @param mixed $level
  6757. * @param string $message
  6758. * @param array $context
  6759. * @return void
  6760. * @static
  6761. */
  6762. public static function log($level, $message, $context = [])
  6763. {
  6764. /** @var \Illuminate\Log\LogManager $instance */
  6765. $instance->log($level, $message, $context);
  6766. }
  6767. }
  6768. /**
  6769. *
  6770. *
  6771. * @see \Illuminate\Mail\Mailer
  6772. * @see \Illuminate\Support\Testing\Fakes\MailFake
  6773. */
  6774. class Mail {
  6775. /**
  6776. * Get a mailer instance by name.
  6777. *
  6778. * @param string|null $name
  6779. * @return \Illuminate\Mail\Mailer
  6780. * @static
  6781. */
  6782. public static function mailer($name = null)
  6783. {
  6784. /** @var \Illuminate\Mail\MailManager $instance */
  6785. return $instance->mailer($name);
  6786. }
  6787. /**
  6788. * Get a mailer driver instance.
  6789. *
  6790. * @param string|null $driver
  6791. * @return \Illuminate\Mail\Mailer
  6792. * @static
  6793. */
  6794. public static function driver($driver = null)
  6795. {
  6796. /** @var \Illuminate\Mail\MailManager $instance */
  6797. return $instance->driver($driver);
  6798. }
  6799. /**
  6800. * Create a new transport instance.
  6801. *
  6802. * @param array $config
  6803. * @return \Swift_Transport
  6804. * @static
  6805. */
  6806. public static function createTransport($config)
  6807. {
  6808. /** @var \Illuminate\Mail\MailManager $instance */
  6809. return $instance->createTransport($config);
  6810. }
  6811. /**
  6812. * Get the default mail driver name.
  6813. *
  6814. * @return string
  6815. * @static
  6816. */
  6817. public static function getDefaultDriver()
  6818. {
  6819. /** @var \Illuminate\Mail\MailManager $instance */
  6820. return $instance->getDefaultDriver();
  6821. }
  6822. /**
  6823. * Set the default mail driver name.
  6824. *
  6825. * @param string $name
  6826. * @return void
  6827. * @static
  6828. */
  6829. public static function setDefaultDriver($name)
  6830. {
  6831. /** @var \Illuminate\Mail\MailManager $instance */
  6832. $instance->setDefaultDriver($name);
  6833. }
  6834. /**
  6835. * Register a custom transport creator Closure.
  6836. *
  6837. * @param string $driver
  6838. * @param \Closure $callback
  6839. * @return \Illuminate\Mail\MailManager
  6840. * @static
  6841. */
  6842. public static function extend($driver, $callback)
  6843. {
  6844. /** @var \Illuminate\Mail\MailManager $instance */
  6845. return $instance->extend($driver, $callback);
  6846. }
  6847. /**
  6848. * Assert if a mailable was sent based on a truth-test callback.
  6849. *
  6850. * @param string|\Closure $mailable
  6851. * @param callable|int|null $callback
  6852. * @return void
  6853. * @static
  6854. */
  6855. public static function assertSent($mailable, $callback = null)
  6856. {
  6857. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6858. $instance->assertSent($mailable, $callback);
  6859. }
  6860. /**
  6861. * Determine if a mailable was not sent based on a truth-test callback.
  6862. *
  6863. * @param string $mailable
  6864. * @param callable|null $callback
  6865. * @return void
  6866. * @static
  6867. */
  6868. public static function assertNotSent($mailable, $callback = null)
  6869. {
  6870. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6871. $instance->assertNotSent($mailable, $callback);
  6872. }
  6873. /**
  6874. * Assert that no mailables were sent.
  6875. *
  6876. * @return void
  6877. * @static
  6878. */
  6879. public static function assertNothingSent()
  6880. {
  6881. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6882. $instance->assertNothingSent();
  6883. }
  6884. /**
  6885. * Assert if a mailable was queued based on a truth-test callback.
  6886. *
  6887. * @param string|\Closure $mailable
  6888. * @param callable|int|null $callback
  6889. * @return void
  6890. * @static
  6891. */
  6892. public static function assertQueued($mailable, $callback = null)
  6893. {
  6894. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6895. $instance->assertQueued($mailable, $callback);
  6896. }
  6897. /**
  6898. * Determine if a mailable was not queued based on a truth-test callback.
  6899. *
  6900. * @param string $mailable
  6901. * @param callable|null $callback
  6902. * @return void
  6903. * @static
  6904. */
  6905. public static function assertNotQueued($mailable, $callback = null)
  6906. {
  6907. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6908. $instance->assertNotQueued($mailable, $callback);
  6909. }
  6910. /**
  6911. * Assert that no mailables were queued.
  6912. *
  6913. * @return void
  6914. * @static
  6915. */
  6916. public static function assertNothingQueued()
  6917. {
  6918. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6919. $instance->assertNothingQueued();
  6920. }
  6921. /**
  6922. * Get all of the mailables matching a truth-test callback.
  6923. *
  6924. * @param string $mailable
  6925. * @param callable|null $callback
  6926. * @return \Illuminate\Support\Collection
  6927. * @static
  6928. */
  6929. public static function sent($mailable, $callback = null)
  6930. {
  6931. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6932. return $instance->sent($mailable, $callback);
  6933. }
  6934. /**
  6935. * Determine if the given mailable has been sent.
  6936. *
  6937. * @param string $mailable
  6938. * @return bool
  6939. * @static
  6940. */
  6941. public static function hasSent($mailable)
  6942. {
  6943. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6944. return $instance->hasSent($mailable);
  6945. }
  6946. /**
  6947. * Get all of the queued mailables matching a truth-test callback.
  6948. *
  6949. * @param string $mailable
  6950. * @param callable|null $callback
  6951. * @return \Illuminate\Support\Collection
  6952. * @static
  6953. */
  6954. public static function queued($mailable, $callback = null)
  6955. {
  6956. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6957. return $instance->queued($mailable, $callback);
  6958. }
  6959. /**
  6960. * Determine if the given mailable has been queued.
  6961. *
  6962. * @param string $mailable
  6963. * @return bool
  6964. * @static
  6965. */
  6966. public static function hasQueued($mailable)
  6967. {
  6968. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6969. return $instance->hasQueued($mailable);
  6970. }
  6971. /**
  6972. * Begin the process of mailing a mailable class instance.
  6973. *
  6974. * @param mixed $users
  6975. * @return \Illuminate\Mail\PendingMail
  6976. * @static
  6977. */
  6978. public static function to($users)
  6979. {
  6980. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6981. return $instance->to($users);
  6982. }
  6983. /**
  6984. * Begin the process of mailing a mailable class instance.
  6985. *
  6986. * @param mixed $users
  6987. * @return \Illuminate\Mail\PendingMail
  6988. * @static
  6989. */
  6990. public static function bcc($users)
  6991. {
  6992. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6993. return $instance->bcc($users);
  6994. }
  6995. /**
  6996. * Send a new message with only a raw text part.
  6997. *
  6998. * @param string $text
  6999. * @param \Closure|string $callback
  7000. * @return void
  7001. * @static
  7002. */
  7003. public static function raw($text, $callback)
  7004. {
  7005. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7006. $instance->raw($text, $callback);
  7007. }
  7008. /**
  7009. * Send a new message using a view.
  7010. *
  7011. * @param string|array $view
  7012. * @param array $data
  7013. * @param \Closure|string|null $callback
  7014. * @return void
  7015. * @static
  7016. */
  7017. public static function send($view, $data = [], $callback = null)
  7018. {
  7019. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7020. $instance->send($view, $data, $callback);
  7021. }
  7022. /**
  7023. * Queue a new e-mail message for sending.
  7024. *
  7025. * @param string|array $view
  7026. * @param string|null $queue
  7027. * @return mixed
  7028. * @static
  7029. */
  7030. public static function queue($view, $queue = null)
  7031. {
  7032. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7033. return $instance->queue($view, $queue);
  7034. }
  7035. /**
  7036. * Queue a new e-mail message for sending after (n) seconds.
  7037. *
  7038. * @param \DateTimeInterface|\DateInterval|int $delay
  7039. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  7040. * @param string|null $queue
  7041. * @return mixed
  7042. * @static
  7043. */
  7044. public static function later($delay, $view, $queue = null)
  7045. {
  7046. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7047. return $instance->later($delay, $view, $queue);
  7048. }
  7049. /**
  7050. * Get the array of failed recipients.
  7051. *
  7052. * @return array
  7053. * @static
  7054. */
  7055. public static function failures()
  7056. {
  7057. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7058. return $instance->failures();
  7059. }
  7060. }
  7061. /**
  7062. *
  7063. *
  7064. * @see \Illuminate\Notifications\ChannelManager
  7065. */
  7066. class Notification {
  7067. /**
  7068. * Send the given notification to the given notifiable entities.
  7069. *
  7070. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  7071. * @param mixed $notification
  7072. * @return void
  7073. * @static
  7074. */
  7075. public static function send($notifiables, $notification)
  7076. {
  7077. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7078. $instance->send($notifiables, $notification);
  7079. }
  7080. /**
  7081. * Send the given notification immediately.
  7082. *
  7083. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  7084. * @param mixed $notification
  7085. * @param array|null $channels
  7086. * @return void
  7087. * @static
  7088. */
  7089. public static function sendNow($notifiables, $notification, $channels = null)
  7090. {
  7091. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7092. $instance->sendNow($notifiables, $notification, $channels);
  7093. }
  7094. /**
  7095. * Get a channel instance.
  7096. *
  7097. * @param string|null $name
  7098. * @return mixed
  7099. * @static
  7100. */
  7101. public static function channel($name = null)
  7102. {
  7103. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7104. return $instance->channel($name);
  7105. }
  7106. /**
  7107. * Get the default channel driver name.
  7108. *
  7109. * @return string
  7110. * @static
  7111. */
  7112. public static function getDefaultDriver()
  7113. {
  7114. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7115. return $instance->getDefaultDriver();
  7116. }
  7117. /**
  7118. * Get the default channel driver name.
  7119. *
  7120. * @return string
  7121. * @static
  7122. */
  7123. public static function deliversVia()
  7124. {
  7125. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7126. return $instance->deliversVia();
  7127. }
  7128. /**
  7129. * Set the default channel driver name.
  7130. *
  7131. * @param string $channel
  7132. * @return void
  7133. * @static
  7134. */
  7135. public static function deliverVia($channel)
  7136. {
  7137. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7138. $instance->deliverVia($channel);
  7139. }
  7140. /**
  7141. * Set the locale of notifications.
  7142. *
  7143. * @param string $locale
  7144. * @return \Illuminate\Notifications\ChannelManager
  7145. * @static
  7146. */
  7147. public static function locale($locale)
  7148. {
  7149. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7150. return $instance->locale($locale);
  7151. }
  7152. /**
  7153. * Get a driver instance.
  7154. *
  7155. * @param string|null $driver
  7156. * @return mixed
  7157. * @throws \InvalidArgumentException
  7158. * @static
  7159. */
  7160. public static function driver($driver = null)
  7161. {
  7162. //Method inherited from \Illuminate\Support\Manager
  7163. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7164. return $instance->driver($driver);
  7165. }
  7166. /**
  7167. * Register a custom driver creator Closure.
  7168. *
  7169. * @param string $driver
  7170. * @param \Closure $callback
  7171. * @return \Illuminate\Notifications\ChannelManager
  7172. * @static
  7173. */
  7174. public static function extend($driver, $callback)
  7175. {
  7176. //Method inherited from \Illuminate\Support\Manager
  7177. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7178. return $instance->extend($driver, $callback);
  7179. }
  7180. /**
  7181. * Get all of the created "drivers".
  7182. *
  7183. * @return array
  7184. * @static
  7185. */
  7186. public static function getDrivers()
  7187. {
  7188. //Method inherited from \Illuminate\Support\Manager
  7189. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7190. return $instance->getDrivers();
  7191. }
  7192. /**
  7193. * Assert if a notification was sent based on a truth-test callback.
  7194. *
  7195. * @param mixed $notifiable
  7196. * @param string|\Closure $notification
  7197. * @param callable|null $callback
  7198. * @return void
  7199. * @throws \Exception
  7200. * @static
  7201. */
  7202. public static function assertSentTo($notifiable, $notification, $callback = null)
  7203. {
  7204. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7205. $instance->assertSentTo($notifiable, $notification, $callback);
  7206. }
  7207. /**
  7208. * Assert if a notification was sent a number of times.
  7209. *
  7210. * @param mixed $notifiable
  7211. * @param string $notification
  7212. * @param int $times
  7213. * @return void
  7214. * @static
  7215. */
  7216. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  7217. {
  7218. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7219. $instance->assertSentToTimes($notifiable, $notification, $times);
  7220. }
  7221. /**
  7222. * Determine if a notification was sent based on a truth-test callback.
  7223. *
  7224. * @param mixed $notifiable
  7225. * @param string|\Closure $notification
  7226. * @param callable|null $callback
  7227. * @return void
  7228. * @throws \Exception
  7229. * @static
  7230. */
  7231. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  7232. {
  7233. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7234. $instance->assertNotSentTo($notifiable, $notification, $callback);
  7235. }
  7236. /**
  7237. * Assert that no notifications were sent.
  7238. *
  7239. * @return void
  7240. * @static
  7241. */
  7242. public static function assertNothingSent()
  7243. {
  7244. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7245. $instance->assertNothingSent();
  7246. }
  7247. /**
  7248. * Assert the total amount of times a notification was sent.
  7249. *
  7250. * @param int $expectedCount
  7251. * @param string $notification
  7252. * @return void
  7253. * @static
  7254. */
  7255. public static function assertTimesSent($expectedCount, $notification)
  7256. {
  7257. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7258. $instance->assertTimesSent($expectedCount, $notification);
  7259. }
  7260. /**
  7261. * Get all of the notifications matching a truth-test callback.
  7262. *
  7263. * @param mixed $notifiable
  7264. * @param string $notification
  7265. * @param callable|null $callback
  7266. * @return \Illuminate\Support\Collection
  7267. * @static
  7268. */
  7269. public static function sent($notifiable, $notification, $callback = null)
  7270. {
  7271. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7272. return $instance->sent($notifiable, $notification, $callback);
  7273. }
  7274. /**
  7275. * Determine if there are more notifications left to inspect.
  7276. *
  7277. * @param mixed $notifiable
  7278. * @param string $notification
  7279. * @return bool
  7280. * @static
  7281. */
  7282. public static function hasSent($notifiable, $notification)
  7283. {
  7284. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7285. return $instance->hasSent($notifiable, $notification);
  7286. }
  7287. /**
  7288. * Register a custom macro.
  7289. *
  7290. * @param string $name
  7291. * @param object|callable $macro
  7292. * @return void
  7293. * @static
  7294. */
  7295. public static function macro($name, $macro)
  7296. {
  7297. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  7298. }
  7299. /**
  7300. * Mix another object into the class.
  7301. *
  7302. * @param object $mixin
  7303. * @param bool $replace
  7304. * @return void
  7305. * @throws \ReflectionException
  7306. * @static
  7307. */
  7308. public static function mixin($mixin, $replace = true)
  7309. {
  7310. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  7311. }
  7312. /**
  7313. * Checks if macro is registered.
  7314. *
  7315. * @param string $name
  7316. * @return bool
  7317. * @static
  7318. */
  7319. public static function hasMacro($name)
  7320. {
  7321. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  7322. }
  7323. }
  7324. /**
  7325. *
  7326. *
  7327. * @method static string sendResetLink(array $credentials)
  7328. * @method static mixed reset(array $credentials, \Closure $callback)
  7329. * @see \Illuminate\Auth\Passwords\PasswordBroker
  7330. */
  7331. class Password {
  7332. /**
  7333. * Attempt to get the broker from the local cache.
  7334. *
  7335. * @param string|null $name
  7336. * @return \Illuminate\Contracts\Auth\PasswordBroker
  7337. * @static
  7338. */
  7339. public static function broker($name = null)
  7340. {
  7341. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  7342. return $instance->broker($name);
  7343. }
  7344. /**
  7345. * Get the default password broker name.
  7346. *
  7347. * @return string
  7348. * @static
  7349. */
  7350. public static function getDefaultDriver()
  7351. {
  7352. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  7353. return $instance->getDefaultDriver();
  7354. }
  7355. /**
  7356. * Set the default password broker name.
  7357. *
  7358. * @param string $name
  7359. * @return void
  7360. * @static
  7361. */
  7362. public static function setDefaultDriver($name)
  7363. {
  7364. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  7365. $instance->setDefaultDriver($name);
  7366. }
  7367. }
  7368. /**
  7369. *
  7370. *
  7371. * @see \Illuminate\Queue\QueueManager
  7372. * @see \Illuminate\Queue\Queue
  7373. */
  7374. class Queue {
  7375. /**
  7376. * Register an event listener for the before job event.
  7377. *
  7378. * @param mixed $callback
  7379. * @return void
  7380. * @static
  7381. */
  7382. public static function before($callback)
  7383. {
  7384. /** @var \Illuminate\Queue\QueueManager $instance */
  7385. $instance->before($callback);
  7386. }
  7387. /**
  7388. * Register an event listener for the after job event.
  7389. *
  7390. * @param mixed $callback
  7391. * @return void
  7392. * @static
  7393. */
  7394. public static function after($callback)
  7395. {
  7396. /** @var \Illuminate\Queue\QueueManager $instance */
  7397. $instance->after($callback);
  7398. }
  7399. /**
  7400. * Register an event listener for the exception occurred job event.
  7401. *
  7402. * @param mixed $callback
  7403. * @return void
  7404. * @static
  7405. */
  7406. public static function exceptionOccurred($callback)
  7407. {
  7408. /** @var \Illuminate\Queue\QueueManager $instance */
  7409. $instance->exceptionOccurred($callback);
  7410. }
  7411. /**
  7412. * Register an event listener for the daemon queue loop.
  7413. *
  7414. * @param mixed $callback
  7415. * @return void
  7416. * @static
  7417. */
  7418. public static function looping($callback)
  7419. {
  7420. /** @var \Illuminate\Queue\QueueManager $instance */
  7421. $instance->looping($callback);
  7422. }
  7423. /**
  7424. * Register an event listener for the failed job event.
  7425. *
  7426. * @param mixed $callback
  7427. * @return void
  7428. * @static
  7429. */
  7430. public static function failing($callback)
  7431. {
  7432. /** @var \Illuminate\Queue\QueueManager $instance */
  7433. $instance->failing($callback);
  7434. }
  7435. /**
  7436. * Register an event listener for the daemon queue stopping.
  7437. *
  7438. * @param mixed $callback
  7439. * @return void
  7440. * @static
  7441. */
  7442. public static function stopping($callback)
  7443. {
  7444. /** @var \Illuminate\Queue\QueueManager $instance */
  7445. $instance->stopping($callback);
  7446. }
  7447. /**
  7448. * Determine if the driver is connected.
  7449. *
  7450. * @param string|null $name
  7451. * @return bool
  7452. * @static
  7453. */
  7454. public static function connected($name = null)
  7455. {
  7456. /** @var \Illuminate\Queue\QueueManager $instance */
  7457. return $instance->connected($name);
  7458. }
  7459. /**
  7460. * Resolve a queue connection instance.
  7461. *
  7462. * @param string|null $name
  7463. * @return \Illuminate\Contracts\Queue\Queue
  7464. * @static
  7465. */
  7466. public static function connection($name = null)
  7467. {
  7468. /** @var \Illuminate\Queue\QueueManager $instance */
  7469. return $instance->connection($name);
  7470. }
  7471. /**
  7472. * Add a queue connection resolver.
  7473. *
  7474. * @param string $driver
  7475. * @param \Closure $resolver
  7476. * @return void
  7477. * @static
  7478. */
  7479. public static function extend($driver, $resolver)
  7480. {
  7481. /** @var \Illuminate\Queue\QueueManager $instance */
  7482. $instance->extend($driver, $resolver);
  7483. }
  7484. /**
  7485. * Add a queue connection resolver.
  7486. *
  7487. * @param string $driver
  7488. * @param \Closure $resolver
  7489. * @return void
  7490. * @static
  7491. */
  7492. public static function addConnector($driver, $resolver)
  7493. {
  7494. /** @var \Illuminate\Queue\QueueManager $instance */
  7495. $instance->addConnector($driver, $resolver);
  7496. }
  7497. /**
  7498. * Get the name of the default queue connection.
  7499. *
  7500. * @return string
  7501. * @static
  7502. */
  7503. public static function getDefaultDriver()
  7504. {
  7505. /** @var \Illuminate\Queue\QueueManager $instance */
  7506. return $instance->getDefaultDriver();
  7507. }
  7508. /**
  7509. * Set the name of the default queue connection.
  7510. *
  7511. * @param string $name
  7512. * @return void
  7513. * @static
  7514. */
  7515. public static function setDefaultDriver($name)
  7516. {
  7517. /** @var \Illuminate\Queue\QueueManager $instance */
  7518. $instance->setDefaultDriver($name);
  7519. }
  7520. /**
  7521. * Get the full name for the given connection.
  7522. *
  7523. * @param string|null $connection
  7524. * @return string
  7525. * @static
  7526. */
  7527. public static function getName($connection = null)
  7528. {
  7529. /** @var \Illuminate\Queue\QueueManager $instance */
  7530. return $instance->getName($connection);
  7531. }
  7532. /**
  7533. * Assert if a job was pushed based on a truth-test callback.
  7534. *
  7535. * @param string|\Closure $job
  7536. * @param callable|int|null $callback
  7537. * @return void
  7538. * @static
  7539. */
  7540. public static function assertPushed($job, $callback = null)
  7541. {
  7542. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7543. $instance->assertPushed($job, $callback);
  7544. }
  7545. /**
  7546. * Assert if a job was pushed based on a truth-test callback.
  7547. *
  7548. * @param string $queue
  7549. * @param string|\Closure $job
  7550. * @param callable|null $callback
  7551. * @return void
  7552. * @static
  7553. */
  7554. public static function assertPushedOn($queue, $job, $callback = null)
  7555. {
  7556. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7557. $instance->assertPushedOn($queue, $job, $callback);
  7558. }
  7559. /**
  7560. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  7561. *
  7562. * @param string $job
  7563. * @param array $expectedChain
  7564. * @param callable|null $callback
  7565. * @return void
  7566. * @static
  7567. */
  7568. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  7569. {
  7570. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7571. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  7572. }
  7573. /**
  7574. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  7575. *
  7576. * @param string $job
  7577. * @param callable|null $callback
  7578. * @return void
  7579. * @static
  7580. */
  7581. public static function assertPushedWithoutChain($job, $callback = null)
  7582. {
  7583. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7584. $instance->assertPushedWithoutChain($job, $callback);
  7585. }
  7586. /**
  7587. * Determine if a job was pushed based on a truth-test callback.
  7588. *
  7589. * @param string|\Closure $job
  7590. * @param callable|null $callback
  7591. * @return void
  7592. * @static
  7593. */
  7594. public static function assertNotPushed($job, $callback = null)
  7595. {
  7596. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7597. $instance->assertNotPushed($job, $callback);
  7598. }
  7599. /**
  7600. * Assert that no jobs were pushed.
  7601. *
  7602. * @return void
  7603. * @static
  7604. */
  7605. public static function assertNothingPushed()
  7606. {
  7607. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7608. $instance->assertNothingPushed();
  7609. }
  7610. /**
  7611. * Get all of the jobs matching a truth-test callback.
  7612. *
  7613. * @param string $job
  7614. * @param callable|null $callback
  7615. * @return \Illuminate\Support\Collection
  7616. * @static
  7617. */
  7618. public static function pushed($job, $callback = null)
  7619. {
  7620. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7621. return $instance->pushed($job, $callback);
  7622. }
  7623. /**
  7624. * Determine if there are any stored jobs for a given class.
  7625. *
  7626. * @param string $job
  7627. * @return bool
  7628. * @static
  7629. */
  7630. public static function hasPushed($job)
  7631. {
  7632. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7633. return $instance->hasPushed($job);
  7634. }
  7635. /**
  7636. * Get the size of the queue.
  7637. *
  7638. * @param string|null $queue
  7639. * @return int
  7640. * @static
  7641. */
  7642. public static function size($queue = null)
  7643. {
  7644. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7645. return $instance->size($queue);
  7646. }
  7647. /**
  7648. * Push a new job onto the queue.
  7649. *
  7650. * @param string $job
  7651. * @param mixed $data
  7652. * @param string|null $queue
  7653. * @return mixed
  7654. * @static
  7655. */
  7656. public static function push($job, $data = '', $queue = null)
  7657. {
  7658. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7659. return $instance->push($job, $data, $queue);
  7660. }
  7661. /**
  7662. * Push a raw payload onto the queue.
  7663. *
  7664. * @param string $payload
  7665. * @param string|null $queue
  7666. * @param array $options
  7667. * @return mixed
  7668. * @static
  7669. */
  7670. public static function pushRaw($payload, $queue = null, $options = [])
  7671. {
  7672. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7673. return $instance->pushRaw($payload, $queue, $options);
  7674. }
  7675. /**
  7676. * Push a new job onto the queue after a delay.
  7677. *
  7678. * @param \DateTimeInterface|\DateInterval|int $delay
  7679. * @param string $job
  7680. * @param mixed $data
  7681. * @param string|null $queue
  7682. * @return mixed
  7683. * @static
  7684. */
  7685. public static function later($delay, $job, $data = '', $queue = null)
  7686. {
  7687. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7688. return $instance->later($delay, $job, $data, $queue);
  7689. }
  7690. /**
  7691. * Push a new job onto the queue.
  7692. *
  7693. * @param string $queue
  7694. * @param string $job
  7695. * @param mixed $data
  7696. * @return mixed
  7697. * @static
  7698. */
  7699. public static function pushOn($queue, $job, $data = '')
  7700. {
  7701. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7702. return $instance->pushOn($queue, $job, $data);
  7703. }
  7704. /**
  7705. * Push a new job onto the queue after a delay.
  7706. *
  7707. * @param string $queue
  7708. * @param \DateTimeInterface|\DateInterval|int $delay
  7709. * @param string $job
  7710. * @param mixed $data
  7711. * @return mixed
  7712. * @static
  7713. */
  7714. public static function laterOn($queue, $delay, $job, $data = '')
  7715. {
  7716. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7717. return $instance->laterOn($queue, $delay, $job, $data);
  7718. }
  7719. /**
  7720. * Pop the next job off of the queue.
  7721. *
  7722. * @param string|null $queue
  7723. * @return \Illuminate\Contracts\Queue\Job|null
  7724. * @static
  7725. */
  7726. public static function pop($queue = null)
  7727. {
  7728. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7729. return $instance->pop($queue);
  7730. }
  7731. /**
  7732. * Push an array of jobs onto the queue.
  7733. *
  7734. * @param array $jobs
  7735. * @param mixed $data
  7736. * @param string|null $queue
  7737. * @return mixed
  7738. * @static
  7739. */
  7740. public static function bulk($jobs, $data = '', $queue = null)
  7741. {
  7742. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7743. return $instance->bulk($jobs, $data, $queue);
  7744. }
  7745. /**
  7746. * Get the jobs that have been pushed.
  7747. *
  7748. * @return array
  7749. * @static
  7750. */
  7751. public static function pushedJobs()
  7752. {
  7753. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7754. return $instance->pushedJobs();
  7755. }
  7756. /**
  7757. * Get the connection name for the queue.
  7758. *
  7759. * @return string
  7760. * @static
  7761. */
  7762. public static function getConnectionName()
  7763. {
  7764. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7765. return $instance->getConnectionName();
  7766. }
  7767. /**
  7768. * Set the connection name for the queue.
  7769. *
  7770. * @param string $name
  7771. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  7772. * @static
  7773. */
  7774. public static function setConnectionName($name)
  7775. {
  7776. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7777. return $instance->setConnectionName($name);
  7778. }
  7779. /**
  7780. * Get the retry delay for an object-based queue handler.
  7781. *
  7782. * @param mixed $job
  7783. * @return mixed
  7784. * @static
  7785. */
  7786. public static function getJobRetryDelay($job)
  7787. {
  7788. //Method inherited from \Illuminate\Queue\Queue
  7789. /** @var \Illuminate\Queue\SyncQueue $instance */
  7790. return $instance->getJobRetryDelay($job);
  7791. }
  7792. /**
  7793. * Get the expiration timestamp for an object-based queue handler.
  7794. *
  7795. * @param mixed $job
  7796. * @return mixed
  7797. * @static
  7798. */
  7799. public static function getJobExpiration($job)
  7800. {
  7801. //Method inherited from \Illuminate\Queue\Queue
  7802. /** @var \Illuminate\Queue\SyncQueue $instance */
  7803. return $instance->getJobExpiration($job);
  7804. }
  7805. /**
  7806. * Register a callback to be executed when creating job payloads.
  7807. *
  7808. * @param callable $callback
  7809. * @return void
  7810. * @static
  7811. */
  7812. public static function createPayloadUsing($callback)
  7813. {
  7814. //Method inherited from \Illuminate\Queue\Queue
  7815. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  7816. }
  7817. /**
  7818. * Set the IoC container instance.
  7819. *
  7820. * @param \Illuminate\Container\Container $container
  7821. * @return void
  7822. * @static
  7823. */
  7824. public static function setContainer($container)
  7825. {
  7826. //Method inherited from \Illuminate\Queue\Queue
  7827. /** @var \Illuminate\Queue\SyncQueue $instance */
  7828. $instance->setContainer($container);
  7829. }
  7830. }
  7831. /**
  7832. *
  7833. *
  7834. * @see \Illuminate\Routing\Redirector
  7835. */
  7836. class Redirect {
  7837. /**
  7838. * Create a new redirect response to the "home" route.
  7839. *
  7840. * @param int $status
  7841. * @return \Illuminate\Http\RedirectResponse
  7842. * @static
  7843. */
  7844. public static function home($status = 302)
  7845. {
  7846. /** @var \Illuminate\Routing\Redirector $instance */
  7847. return $instance->home($status);
  7848. }
  7849. /**
  7850. * Create a new redirect response to the previous location.
  7851. *
  7852. * @param int $status
  7853. * @param array $headers
  7854. * @param mixed $fallback
  7855. * @return \Illuminate\Http\RedirectResponse
  7856. * @static
  7857. */
  7858. public static function back($status = 302, $headers = [], $fallback = false)
  7859. {
  7860. /** @var \Illuminate\Routing\Redirector $instance */
  7861. return $instance->back($status, $headers, $fallback);
  7862. }
  7863. /**
  7864. * Create a new redirect response to the current URI.
  7865. *
  7866. * @param int $status
  7867. * @param array $headers
  7868. * @return \Illuminate\Http\RedirectResponse
  7869. * @static
  7870. */
  7871. public static function refresh($status = 302, $headers = [])
  7872. {
  7873. /** @var \Illuminate\Routing\Redirector $instance */
  7874. return $instance->refresh($status, $headers);
  7875. }
  7876. /**
  7877. * Create a new redirect response, while putting the current URL in the session.
  7878. *
  7879. * @param string $path
  7880. * @param int $status
  7881. * @param array $headers
  7882. * @param bool|null $secure
  7883. * @return \Illuminate\Http\RedirectResponse
  7884. * @static
  7885. */
  7886. public static function guest($path, $status = 302, $headers = [], $secure = null)
  7887. {
  7888. /** @var \Illuminate\Routing\Redirector $instance */
  7889. return $instance->guest($path, $status, $headers, $secure);
  7890. }
  7891. /**
  7892. * Create a new redirect response to the previously intended location.
  7893. *
  7894. * @param string $default
  7895. * @param int $status
  7896. * @param array $headers
  7897. * @param bool|null $secure
  7898. * @return \Illuminate\Http\RedirectResponse
  7899. * @static
  7900. */
  7901. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  7902. {
  7903. /** @var \Illuminate\Routing\Redirector $instance */
  7904. return $instance->intended($default, $status, $headers, $secure);
  7905. }
  7906. /**
  7907. * Set the intended url.
  7908. *
  7909. * @param string $url
  7910. * @return void
  7911. * @static
  7912. */
  7913. public static function setIntendedUrl($url)
  7914. {
  7915. /** @var \Illuminate\Routing\Redirector $instance */
  7916. $instance->setIntendedUrl($url);
  7917. }
  7918. /**
  7919. * Create a new redirect response to the given path.
  7920. *
  7921. * @param string $path
  7922. * @param int $status
  7923. * @param array $headers
  7924. * @param bool|null $secure
  7925. * @return \Illuminate\Http\RedirectResponse
  7926. * @static
  7927. */
  7928. public static function to($path, $status = 302, $headers = [], $secure = null)
  7929. {
  7930. /** @var \Illuminate\Routing\Redirector $instance */
  7931. return $instance->to($path, $status, $headers, $secure);
  7932. }
  7933. /**
  7934. * Create a new redirect response to an external URL (no validation).
  7935. *
  7936. * @param string $path
  7937. * @param int $status
  7938. * @param array $headers
  7939. * @return \Illuminate\Http\RedirectResponse
  7940. * @static
  7941. */
  7942. public static function away($path, $status = 302, $headers = [])
  7943. {
  7944. /** @var \Illuminate\Routing\Redirector $instance */
  7945. return $instance->away($path, $status, $headers);
  7946. }
  7947. /**
  7948. * Create a new redirect response to the given HTTPS path.
  7949. *
  7950. * @param string $path
  7951. * @param int $status
  7952. * @param array $headers
  7953. * @return \Illuminate\Http\RedirectResponse
  7954. * @static
  7955. */
  7956. public static function secure($path, $status = 302, $headers = [])
  7957. {
  7958. /** @var \Illuminate\Routing\Redirector $instance */
  7959. return $instance->secure($path, $status, $headers);
  7960. }
  7961. /**
  7962. * Create a new redirect response to a named route.
  7963. *
  7964. * @param string $route
  7965. * @param mixed $parameters
  7966. * @param int $status
  7967. * @param array $headers
  7968. * @return \Illuminate\Http\RedirectResponse
  7969. * @static
  7970. */
  7971. public static function route($route, $parameters = [], $status = 302, $headers = [])
  7972. {
  7973. /** @var \Illuminate\Routing\Redirector $instance */
  7974. return $instance->route($route, $parameters, $status, $headers);
  7975. }
  7976. /**
  7977. * Create a new redirect response to a signed named route.
  7978. *
  7979. * @param string $route
  7980. * @param mixed $parameters
  7981. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  7982. * @param int $status
  7983. * @param array $headers
  7984. * @return \Illuminate\Http\RedirectResponse
  7985. * @static
  7986. */
  7987. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  7988. {
  7989. /** @var \Illuminate\Routing\Redirector $instance */
  7990. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  7991. }
  7992. /**
  7993. * Create a new redirect response to a signed named route.
  7994. *
  7995. * @param string $route
  7996. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  7997. * @param mixed $parameters
  7998. * @param int $status
  7999. * @param array $headers
  8000. * @return \Illuminate\Http\RedirectResponse
  8001. * @static
  8002. */
  8003. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  8004. {
  8005. /** @var \Illuminate\Routing\Redirector $instance */
  8006. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  8007. }
  8008. /**
  8009. * Create a new redirect response to a controller action.
  8010. *
  8011. * @param string|array $action
  8012. * @param mixed $parameters
  8013. * @param int $status
  8014. * @param array $headers
  8015. * @return \Illuminate\Http\RedirectResponse
  8016. * @static
  8017. */
  8018. public static function action($action, $parameters = [], $status = 302, $headers = [])
  8019. {
  8020. /** @var \Illuminate\Routing\Redirector $instance */
  8021. return $instance->action($action, $parameters, $status, $headers);
  8022. }
  8023. /**
  8024. * Get the URL generator instance.
  8025. *
  8026. * @return \Illuminate\Routing\UrlGenerator
  8027. * @static
  8028. */
  8029. public static function getUrlGenerator()
  8030. {
  8031. /** @var \Illuminate\Routing\Redirector $instance */
  8032. return $instance->getUrlGenerator();
  8033. }
  8034. /**
  8035. * Set the active session store.
  8036. *
  8037. * @param \Illuminate\Session\Store $session
  8038. * @return void
  8039. * @static
  8040. */
  8041. public static function setSession($session)
  8042. {
  8043. /** @var \Illuminate\Routing\Redirector $instance */
  8044. $instance->setSession($session);
  8045. }
  8046. /**
  8047. * Register a custom macro.
  8048. *
  8049. * @param string $name
  8050. * @param object|callable $macro
  8051. * @return void
  8052. * @static
  8053. */
  8054. public static function macro($name, $macro)
  8055. {
  8056. \Illuminate\Routing\Redirector::macro($name, $macro);
  8057. }
  8058. /**
  8059. * Mix another object into the class.
  8060. *
  8061. * @param object $mixin
  8062. * @param bool $replace
  8063. * @return void
  8064. * @throws \ReflectionException
  8065. * @static
  8066. */
  8067. public static function mixin($mixin, $replace = true)
  8068. {
  8069. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  8070. }
  8071. /**
  8072. * Checks if macro is registered.
  8073. *
  8074. * @param string $name
  8075. * @return bool
  8076. * @static
  8077. */
  8078. public static function hasMacro($name)
  8079. {
  8080. return \Illuminate\Routing\Redirector::hasMacro($name);
  8081. }
  8082. }
  8083. /**
  8084. *
  8085. *
  8086. * @method static \Illuminate\Redis\Limiters\ConcurrencyLimiterBuilder funnel(string $name)
  8087. * @method static \Illuminate\Redis\Limiters\DurationLimiterBuilder throttle(string $name)
  8088. * @see \Illuminate\Redis\RedisManager
  8089. * @see \Illuminate\Contracts\Redis\Factory
  8090. */
  8091. class Redis {
  8092. /**
  8093. * Get a Redis connection by name.
  8094. *
  8095. * @param string|null $name
  8096. * @return \Illuminate\Redis\Connections\Connection
  8097. * @static
  8098. */
  8099. public static function connection($name = null)
  8100. {
  8101. /** @var \Illuminate\Redis\RedisManager $instance */
  8102. return $instance->connection($name);
  8103. }
  8104. /**
  8105. * Resolve the given connection by name.
  8106. *
  8107. * @param string|null $name
  8108. * @return \Illuminate\Redis\Connections\Connection
  8109. * @throws \InvalidArgumentException
  8110. * @static
  8111. */
  8112. public static function resolve($name = null)
  8113. {
  8114. /** @var \Illuminate\Redis\RedisManager $instance */
  8115. return $instance->resolve($name);
  8116. }
  8117. /**
  8118. * Return all of the created connections.
  8119. *
  8120. * @return array
  8121. * @static
  8122. */
  8123. public static function connections()
  8124. {
  8125. /** @var \Illuminate\Redis\RedisManager $instance */
  8126. return $instance->connections();
  8127. }
  8128. /**
  8129. * Enable the firing of Redis command events.
  8130. *
  8131. * @return void
  8132. * @static
  8133. */
  8134. public static function enableEvents()
  8135. {
  8136. /** @var \Illuminate\Redis\RedisManager $instance */
  8137. $instance->enableEvents();
  8138. }
  8139. /**
  8140. * Disable the firing of Redis command events.
  8141. *
  8142. * @return void
  8143. * @static
  8144. */
  8145. public static function disableEvents()
  8146. {
  8147. /** @var \Illuminate\Redis\RedisManager $instance */
  8148. $instance->disableEvents();
  8149. }
  8150. /**
  8151. * Set the default driver.
  8152. *
  8153. * @param string $driver
  8154. * @return void
  8155. * @static
  8156. */
  8157. public static function setDriver($driver)
  8158. {
  8159. /** @var \Illuminate\Redis\RedisManager $instance */
  8160. $instance->setDriver($driver);
  8161. }
  8162. /**
  8163. * Register a custom driver creator Closure.
  8164. *
  8165. * @param string $driver
  8166. * @param \Closure $callback
  8167. * @return \Illuminate\Redis\RedisManager
  8168. * @static
  8169. */
  8170. public static function extend($driver, $callback)
  8171. {
  8172. /** @var \Illuminate\Redis\RedisManager $instance */
  8173. return $instance->extend($driver, $callback);
  8174. }
  8175. }
  8176. /**
  8177. *
  8178. *
  8179. * @method static mixed filterFiles(mixed $files)
  8180. * @see \Illuminate\Http\Request
  8181. */
  8182. class Request {
  8183. /**
  8184. * Create a new Illuminate HTTP request from server variables.
  8185. *
  8186. * @return static
  8187. * @static
  8188. */
  8189. public static function capture()
  8190. {
  8191. return \Illuminate\Http\Request::capture();
  8192. }
  8193. /**
  8194. * Return the Request instance.
  8195. *
  8196. * @return \Illuminate\Http\Request
  8197. * @static
  8198. */
  8199. public static function instance()
  8200. {
  8201. /** @var \Illuminate\Http\Request $instance */
  8202. return $instance->instance();
  8203. }
  8204. /**
  8205. * Get the request method.
  8206. *
  8207. * @return string
  8208. * @static
  8209. */
  8210. public static function method()
  8211. {
  8212. /** @var \Illuminate\Http\Request $instance */
  8213. return $instance->method();
  8214. }
  8215. /**
  8216. * Get the root URL for the application.
  8217. *
  8218. * @return string
  8219. * @static
  8220. */
  8221. public static function root()
  8222. {
  8223. /** @var \Illuminate\Http\Request $instance */
  8224. return $instance->root();
  8225. }
  8226. /**
  8227. * Get the URL (no query string) for the request.
  8228. *
  8229. * @return string
  8230. * @static
  8231. */
  8232. public static function url()
  8233. {
  8234. /** @var \Illuminate\Http\Request $instance */
  8235. return $instance->url();
  8236. }
  8237. /**
  8238. * Get the full URL for the request.
  8239. *
  8240. * @return string
  8241. * @static
  8242. */
  8243. public static function fullUrl()
  8244. {
  8245. /** @var \Illuminate\Http\Request $instance */
  8246. return $instance->fullUrl();
  8247. }
  8248. /**
  8249. * Get the full URL for the request with the added query string parameters.
  8250. *
  8251. * @param array $query
  8252. * @return string
  8253. * @static
  8254. */
  8255. public static function fullUrlWithQuery($query)
  8256. {
  8257. /** @var \Illuminate\Http\Request $instance */
  8258. return $instance->fullUrlWithQuery($query);
  8259. }
  8260. /**
  8261. * Get the current path info for the request.
  8262. *
  8263. * @return string
  8264. * @static
  8265. */
  8266. public static function path()
  8267. {
  8268. /** @var \Illuminate\Http\Request $instance */
  8269. return $instance->path();
  8270. }
  8271. /**
  8272. * Get the current decoded path info for the request.
  8273. *
  8274. * @return string
  8275. * @static
  8276. */
  8277. public static function decodedPath()
  8278. {
  8279. /** @var \Illuminate\Http\Request $instance */
  8280. return $instance->decodedPath();
  8281. }
  8282. /**
  8283. * Get a segment from the URI (1 based index).
  8284. *
  8285. * @param int $index
  8286. * @param string|null $default
  8287. * @return string|null
  8288. * @static
  8289. */
  8290. public static function segment($index, $default = null)
  8291. {
  8292. /** @var \Illuminate\Http\Request $instance */
  8293. return $instance->segment($index, $default);
  8294. }
  8295. /**
  8296. * Get all of the segments for the request path.
  8297. *
  8298. * @return array
  8299. * @static
  8300. */
  8301. public static function segments()
  8302. {
  8303. /** @var \Illuminate\Http\Request $instance */
  8304. return $instance->segments();
  8305. }
  8306. /**
  8307. * Determine if the current request URI matches a pattern.
  8308. *
  8309. * @param mixed $patterns
  8310. * @return bool
  8311. * @static
  8312. */
  8313. public static function is(...$patterns)
  8314. {
  8315. /** @var \Illuminate\Http\Request $instance */
  8316. return $instance->is(...$patterns);
  8317. }
  8318. /**
  8319. * Determine if the route name matches a given pattern.
  8320. *
  8321. * @param mixed $patterns
  8322. * @return bool
  8323. * @static
  8324. */
  8325. public static function routeIs(...$patterns)
  8326. {
  8327. /** @var \Illuminate\Http\Request $instance */
  8328. return $instance->routeIs(...$patterns);
  8329. }
  8330. /**
  8331. * Determine if the current request URL and query string matches a pattern.
  8332. *
  8333. * @param mixed $patterns
  8334. * @return bool
  8335. * @static
  8336. */
  8337. public static function fullUrlIs(...$patterns)
  8338. {
  8339. /** @var \Illuminate\Http\Request $instance */
  8340. return $instance->fullUrlIs(...$patterns);
  8341. }
  8342. /**
  8343. * Determine if the request is the result of an AJAX call.
  8344. *
  8345. * @return bool
  8346. * @static
  8347. */
  8348. public static function ajax()
  8349. {
  8350. /** @var \Illuminate\Http\Request $instance */
  8351. return $instance->ajax();
  8352. }
  8353. /**
  8354. * Determine if the request is the result of an PJAX call.
  8355. *
  8356. * @return bool
  8357. * @static
  8358. */
  8359. public static function pjax()
  8360. {
  8361. /** @var \Illuminate\Http\Request $instance */
  8362. return $instance->pjax();
  8363. }
  8364. /**
  8365. * Determine if the request is the result of an prefetch call.
  8366. *
  8367. * @return bool
  8368. * @static
  8369. */
  8370. public static function prefetch()
  8371. {
  8372. /** @var \Illuminate\Http\Request $instance */
  8373. return $instance->prefetch();
  8374. }
  8375. /**
  8376. * Determine if the request is over HTTPS.
  8377. *
  8378. * @return bool
  8379. * @static
  8380. */
  8381. public static function secure()
  8382. {
  8383. /** @var \Illuminate\Http\Request $instance */
  8384. return $instance->secure();
  8385. }
  8386. /**
  8387. * Get the client IP address.
  8388. *
  8389. * @return string|null
  8390. * @static
  8391. */
  8392. public static function ip()
  8393. {
  8394. /** @var \Illuminate\Http\Request $instance */
  8395. return $instance->ip();
  8396. }
  8397. /**
  8398. * Get the client IP addresses.
  8399. *
  8400. * @return array
  8401. * @static
  8402. */
  8403. public static function ips()
  8404. {
  8405. /** @var \Illuminate\Http\Request $instance */
  8406. return $instance->ips();
  8407. }
  8408. /**
  8409. * Get the client user agent.
  8410. *
  8411. * @return string|null
  8412. * @static
  8413. */
  8414. public static function userAgent()
  8415. {
  8416. /** @var \Illuminate\Http\Request $instance */
  8417. return $instance->userAgent();
  8418. }
  8419. /**
  8420. * Merge new input into the current request's input array.
  8421. *
  8422. * @param array $input
  8423. * @return \Illuminate\Http\Request
  8424. * @static
  8425. */
  8426. public static function merge($input)
  8427. {
  8428. /** @var \Illuminate\Http\Request $instance */
  8429. return $instance->merge($input);
  8430. }
  8431. /**
  8432. * Replace the input for the current request.
  8433. *
  8434. * @param array $input
  8435. * @return \Illuminate\Http\Request
  8436. * @static
  8437. */
  8438. public static function replace($input)
  8439. {
  8440. /** @var \Illuminate\Http\Request $instance */
  8441. return $instance->replace($input);
  8442. }
  8443. /**
  8444. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  8445. *
  8446. * Instead, you may use the "input" method.
  8447. *
  8448. * @param string $key
  8449. * @param mixed $default
  8450. * @return mixed
  8451. * @static
  8452. */
  8453. public static function get($key, $default = null)
  8454. {
  8455. /** @var \Illuminate\Http\Request $instance */
  8456. return $instance->get($key, $default);
  8457. }
  8458. /**
  8459. * Get the JSON payload for the request.
  8460. *
  8461. * @param string|null $key
  8462. * @param mixed $default
  8463. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  8464. * @static
  8465. */
  8466. public static function json($key = null, $default = null)
  8467. {
  8468. /** @var \Illuminate\Http\Request $instance */
  8469. return $instance->json($key, $default);
  8470. }
  8471. /**
  8472. * Create a new request instance from the given Laravel request.
  8473. *
  8474. * @param \Illuminate\Http\Request $from
  8475. * @param \Illuminate\Http\Request|null $to
  8476. * @return static
  8477. * @static
  8478. */
  8479. public static function createFrom($from, $to = null)
  8480. {
  8481. return \Illuminate\Http\Request::createFrom($from, $to);
  8482. }
  8483. /**
  8484. * Create an Illuminate request from a Symfony instance.
  8485. *
  8486. * @param \Symfony\Component\HttpFoundation\Request $request
  8487. * @return static
  8488. * @static
  8489. */
  8490. public static function createFromBase($request)
  8491. {
  8492. return \Illuminate\Http\Request::createFromBase($request);
  8493. }
  8494. /**
  8495. * Clones a request and overrides some of its parameters.
  8496. *
  8497. * @param array $query The GET parameters
  8498. * @param array $request The POST parameters
  8499. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8500. * @param array $cookies The COOKIE parameters
  8501. * @param array $files The FILES parameters
  8502. * @param array $server The SERVER parameters
  8503. * @return static
  8504. * @static
  8505. */
  8506. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  8507. {
  8508. /** @var \Illuminate\Http\Request $instance */
  8509. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  8510. }
  8511. /**
  8512. * Get the session associated with the request.
  8513. *
  8514. * @return \Illuminate\Session\Store
  8515. * @throws \RuntimeException
  8516. * @static
  8517. */
  8518. public static function session()
  8519. {
  8520. /** @var \Illuminate\Http\Request $instance */
  8521. return $instance->session();
  8522. }
  8523. /**
  8524. * Get the session associated with the request.
  8525. *
  8526. * @return \Illuminate\Session\Store|null
  8527. * @static
  8528. */
  8529. public static function getSession()
  8530. {
  8531. /** @var \Illuminate\Http\Request $instance */
  8532. return $instance->getSession();
  8533. }
  8534. /**
  8535. * Set the session instance on the request.
  8536. *
  8537. * @param \Illuminate\Contracts\Session\Session $session
  8538. * @return void
  8539. * @static
  8540. */
  8541. public static function setLaravelSession($session)
  8542. {
  8543. /** @var \Illuminate\Http\Request $instance */
  8544. $instance->setLaravelSession($session);
  8545. }
  8546. /**
  8547. * Get the user making the request.
  8548. *
  8549. * @param string|null $guard
  8550. * @return mixed
  8551. * @static
  8552. */
  8553. public static function user($guard = null)
  8554. {
  8555. /** @var \Illuminate\Http\Request $instance */
  8556. return $instance->user($guard);
  8557. }
  8558. /**
  8559. * Get the route handling the request.
  8560. *
  8561. * @param string|null $param
  8562. * @param mixed $default
  8563. * @return \Illuminate\Routing\Route|object|string|null
  8564. * @static
  8565. */
  8566. public static function route($param = null, $default = null)
  8567. {
  8568. /** @var \Illuminate\Http\Request $instance */
  8569. return $instance->route($param, $default);
  8570. }
  8571. /**
  8572. * Get a unique fingerprint for the request / route / IP address.
  8573. *
  8574. * @return string
  8575. * @throws \RuntimeException
  8576. * @static
  8577. */
  8578. public static function fingerprint()
  8579. {
  8580. /** @var \Illuminate\Http\Request $instance */
  8581. return $instance->fingerprint();
  8582. }
  8583. /**
  8584. * Set the JSON payload for the request.
  8585. *
  8586. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  8587. * @return \Illuminate\Http\Request
  8588. * @static
  8589. */
  8590. public static function setJson($json)
  8591. {
  8592. /** @var \Illuminate\Http\Request $instance */
  8593. return $instance->setJson($json);
  8594. }
  8595. /**
  8596. * Get the user resolver callback.
  8597. *
  8598. * @return \Closure
  8599. * @static
  8600. */
  8601. public static function getUserResolver()
  8602. {
  8603. /** @var \Illuminate\Http\Request $instance */
  8604. return $instance->getUserResolver();
  8605. }
  8606. /**
  8607. * Set the user resolver callback.
  8608. *
  8609. * @param \Closure $callback
  8610. * @return \Illuminate\Http\Request
  8611. * @static
  8612. */
  8613. public static function setUserResolver($callback)
  8614. {
  8615. /** @var \Illuminate\Http\Request $instance */
  8616. return $instance->setUserResolver($callback);
  8617. }
  8618. /**
  8619. * Get the route resolver callback.
  8620. *
  8621. * @return \Closure
  8622. * @static
  8623. */
  8624. public static function getRouteResolver()
  8625. {
  8626. /** @var \Illuminate\Http\Request $instance */
  8627. return $instance->getRouteResolver();
  8628. }
  8629. /**
  8630. * Set the route resolver callback.
  8631. *
  8632. * @param \Closure $callback
  8633. * @return \Illuminate\Http\Request
  8634. * @static
  8635. */
  8636. public static function setRouteResolver($callback)
  8637. {
  8638. /** @var \Illuminate\Http\Request $instance */
  8639. return $instance->setRouteResolver($callback);
  8640. }
  8641. /**
  8642. * Get all of the input and files for the request.
  8643. *
  8644. * @return array
  8645. * @static
  8646. */
  8647. public static function toArray()
  8648. {
  8649. /** @var \Illuminate\Http\Request $instance */
  8650. return $instance->toArray();
  8651. }
  8652. /**
  8653. * Determine if the given offset exists.
  8654. *
  8655. * @param string $offset
  8656. * @return bool
  8657. * @static
  8658. */
  8659. public static function offsetExists($offset)
  8660. {
  8661. /** @var \Illuminate\Http\Request $instance */
  8662. return $instance->offsetExists($offset);
  8663. }
  8664. /**
  8665. * Get the value at the given offset.
  8666. *
  8667. * @param string $offset
  8668. * @return mixed
  8669. * @static
  8670. */
  8671. public static function offsetGet($offset)
  8672. {
  8673. /** @var \Illuminate\Http\Request $instance */
  8674. return $instance->offsetGet($offset);
  8675. }
  8676. /**
  8677. * Set the value at the given offset.
  8678. *
  8679. * @param string $offset
  8680. * @param mixed $value
  8681. * @return void
  8682. * @static
  8683. */
  8684. public static function offsetSet($offset, $value)
  8685. {
  8686. /** @var \Illuminate\Http\Request $instance */
  8687. $instance->offsetSet($offset, $value);
  8688. }
  8689. /**
  8690. * Remove the value at the given offset.
  8691. *
  8692. * @param string $offset
  8693. * @return void
  8694. * @static
  8695. */
  8696. public static function offsetUnset($offset)
  8697. {
  8698. /** @var \Illuminate\Http\Request $instance */
  8699. $instance->offsetUnset($offset);
  8700. }
  8701. /**
  8702. * Sets the parameters for this request.
  8703. *
  8704. * This method also re-initializes all properties.
  8705. *
  8706. * @param array $query The GET parameters
  8707. * @param array $request The POST parameters
  8708. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8709. * @param array $cookies The COOKIE parameters
  8710. * @param array $files The FILES parameters
  8711. * @param array $server The SERVER parameters
  8712. * @param string|resource|null $content The raw body data
  8713. * @static
  8714. */
  8715. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  8716. {
  8717. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8718. /** @var \Illuminate\Http\Request $instance */
  8719. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  8720. }
  8721. /**
  8722. * Creates a new request with values from PHP's super globals.
  8723. *
  8724. * @return static
  8725. * @static
  8726. */
  8727. public static function createFromGlobals()
  8728. {
  8729. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8730. return \Illuminate\Http\Request::createFromGlobals();
  8731. }
  8732. /**
  8733. * Creates a Request based on a given URI and configuration.
  8734. *
  8735. * The information contained in the URI always take precedence
  8736. * over the other information (server and parameters).
  8737. *
  8738. * @param string $uri The URI
  8739. * @param string $method The HTTP method
  8740. * @param array $parameters The query (GET) or request (POST) parameters
  8741. * @param array $cookies The request cookies ($_COOKIE)
  8742. * @param array $files The request files ($_FILES)
  8743. * @param array $server The server parameters ($_SERVER)
  8744. * @param string|resource|null $content The raw body data
  8745. * @return static
  8746. * @static
  8747. */
  8748. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  8749. {
  8750. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8751. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  8752. }
  8753. /**
  8754. * Sets a callable able to create a Request instance.
  8755. *
  8756. * This is mainly useful when you need to override the Request class
  8757. * to keep BC with an existing system. It should not be used for any
  8758. * other purpose.
  8759. *
  8760. * @static
  8761. */
  8762. public static function setFactory($callable)
  8763. {
  8764. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8765. return \Illuminate\Http\Request::setFactory($callable);
  8766. }
  8767. /**
  8768. * Overrides the PHP global variables according to this request instance.
  8769. *
  8770. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  8771. * $_FILES is never overridden, see rfc1867
  8772. *
  8773. * @static
  8774. */
  8775. public static function overrideGlobals()
  8776. {
  8777. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8778. /** @var \Illuminate\Http\Request $instance */
  8779. return $instance->overrideGlobals();
  8780. }
  8781. /**
  8782. * Sets a list of trusted proxies.
  8783. *
  8784. * You should only list the reverse proxies that you manage directly.
  8785. *
  8786. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  8787. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  8788. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  8789. * @static
  8790. */
  8791. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8792. {
  8793. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8794. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8795. }
  8796. /**
  8797. * Gets the list of trusted proxies.
  8798. *
  8799. * @return array An array of trusted proxies
  8800. * @static
  8801. */
  8802. public static function getTrustedProxies()
  8803. {
  8804. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8805. return \Illuminate\Http\Request::getTrustedProxies();
  8806. }
  8807. /**
  8808. * Gets the set of trusted headers from trusted proxies.
  8809. *
  8810. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8811. * @static
  8812. */
  8813. public static function getTrustedHeaderSet()
  8814. {
  8815. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8816. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8817. }
  8818. /**
  8819. * Sets a list of trusted host patterns.
  8820. *
  8821. * You should only list the hosts you manage using regexs.
  8822. *
  8823. * @param array $hostPatterns A list of trusted host patterns
  8824. * @static
  8825. */
  8826. public static function setTrustedHosts($hostPatterns)
  8827. {
  8828. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8829. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8830. }
  8831. /**
  8832. * Gets the list of trusted host patterns.
  8833. *
  8834. * @return array An array of trusted host patterns
  8835. * @static
  8836. */
  8837. public static function getTrustedHosts()
  8838. {
  8839. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8840. return \Illuminate\Http\Request::getTrustedHosts();
  8841. }
  8842. /**
  8843. * Normalizes a query string.
  8844. *
  8845. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8846. * have consistent escaping and unneeded delimiters are removed.
  8847. *
  8848. * @return string A normalized query string for the Request
  8849. * @static
  8850. */
  8851. public static function normalizeQueryString($qs)
  8852. {
  8853. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8854. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8855. }
  8856. /**
  8857. * Enables support for the _method request parameter to determine the intended HTTP method.
  8858. *
  8859. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8860. * Check that you are using CSRF tokens when required.
  8861. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8862. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8863. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8864. *
  8865. * The HTTP method can only be overridden when the real HTTP method is POST.
  8866. *
  8867. * @static
  8868. */
  8869. public static function enableHttpMethodParameterOverride()
  8870. {
  8871. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8872. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8873. }
  8874. /**
  8875. * Checks whether support for the _method request parameter is enabled.
  8876. *
  8877. * @return bool True when the _method request parameter is enabled, false otherwise
  8878. * @static
  8879. */
  8880. public static function getHttpMethodParameterOverride()
  8881. {
  8882. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8883. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8884. }
  8885. /**
  8886. * Whether the request contains a Session which was started in one of the
  8887. * previous requests.
  8888. *
  8889. * @return bool
  8890. * @static
  8891. */
  8892. public static function hasPreviousSession()
  8893. {
  8894. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8895. /** @var \Illuminate\Http\Request $instance */
  8896. return $instance->hasPreviousSession();
  8897. }
  8898. /**
  8899. * Whether the request contains a Session object.
  8900. *
  8901. * This method does not give any information about the state of the session object,
  8902. * like whether the session is started or not. It is just a way to check if this Request
  8903. * is associated with a Session instance.
  8904. *
  8905. * @return bool true when the Request contains a Session object, false otherwise
  8906. * @static
  8907. */
  8908. public static function hasSession()
  8909. {
  8910. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8911. /** @var \Illuminate\Http\Request $instance */
  8912. return $instance->hasSession();
  8913. }
  8914. /**
  8915. *
  8916. *
  8917. * @static
  8918. */
  8919. public static function setSession($session)
  8920. {
  8921. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8922. /** @var \Illuminate\Http\Request $instance */
  8923. return $instance->setSession($session);
  8924. }
  8925. /**
  8926. *
  8927. *
  8928. * @internal
  8929. * @static
  8930. */
  8931. public static function setSessionFactory($factory)
  8932. {
  8933. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8934. /** @var \Illuminate\Http\Request $instance */
  8935. return $instance->setSessionFactory($factory);
  8936. }
  8937. /**
  8938. * Returns the client IP addresses.
  8939. *
  8940. * In the returned array the most trusted IP address is first, and the
  8941. * least trusted one last. The "real" client IP address is the last one,
  8942. * but this is also the least trusted one. Trusted proxies are stripped.
  8943. *
  8944. * Use this method carefully; you should use getClientIp() instead.
  8945. *
  8946. * @return array The client IP addresses
  8947. * @see getClientIp()
  8948. * @static
  8949. */
  8950. public static function getClientIps()
  8951. {
  8952. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8953. /** @var \Illuminate\Http\Request $instance */
  8954. return $instance->getClientIps();
  8955. }
  8956. /**
  8957. * Returns the client IP address.
  8958. *
  8959. * This method can read the client IP address from the "X-Forwarded-For" header
  8960. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8961. * header value is a comma+space separated list of IP addresses, the left-most
  8962. * being the original client, and each successive proxy that passed the request
  8963. * adding the IP address where it received the request from.
  8964. *
  8965. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  8966. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  8967. * argument of the Request::setTrustedProxies() method instead.
  8968. *
  8969. * @return string|null The client IP address
  8970. * @see getClientIps()
  8971. * @see https://wikipedia.org/wiki/X-Forwarded-For
  8972. * @static
  8973. */
  8974. public static function getClientIp()
  8975. {
  8976. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8977. /** @var \Illuminate\Http\Request $instance */
  8978. return $instance->getClientIp();
  8979. }
  8980. /**
  8981. * Returns current script name.
  8982. *
  8983. * @return string
  8984. * @static
  8985. */
  8986. public static function getScriptName()
  8987. {
  8988. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8989. /** @var \Illuminate\Http\Request $instance */
  8990. return $instance->getScriptName();
  8991. }
  8992. /**
  8993. * Returns the path being requested relative to the executed script.
  8994. *
  8995. * The path info always starts with a /.
  8996. *
  8997. * Suppose this request is instantiated from /mysite on localhost:
  8998. *
  8999. * * http://localhost/mysite returns an empty string
  9000. * * http://localhost/mysite/about returns '/about'
  9001. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  9002. * * http://localhost/mysite/about?var=1 returns '/about'
  9003. *
  9004. * @return string The raw path (i.e. not urldecoded)
  9005. * @static
  9006. */
  9007. public static function getPathInfo()
  9008. {
  9009. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9010. /** @var \Illuminate\Http\Request $instance */
  9011. return $instance->getPathInfo();
  9012. }
  9013. /**
  9014. * Returns the root path from which this request is executed.
  9015. *
  9016. * Suppose that an index.php file instantiates this request object:
  9017. *
  9018. * * http://localhost/index.php returns an empty string
  9019. * * http://localhost/index.php/page returns an empty string
  9020. * * http://localhost/web/index.php returns '/web'
  9021. * * http://localhost/we%20b/index.php returns '/we%20b'
  9022. *
  9023. * @return string The raw path (i.e. not urldecoded)
  9024. * @static
  9025. */
  9026. public static function getBasePath()
  9027. {
  9028. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9029. /** @var \Illuminate\Http\Request $instance */
  9030. return $instance->getBasePath();
  9031. }
  9032. /**
  9033. * Returns the root URL from which this request is executed.
  9034. *
  9035. * The base URL never ends with a /.
  9036. *
  9037. * This is similar to getBasePath(), except that it also includes the
  9038. * script filename (e.g. index.php) if one exists.
  9039. *
  9040. * @return string The raw URL (i.e. not urldecoded)
  9041. * @static
  9042. */
  9043. public static function getBaseUrl()
  9044. {
  9045. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9046. /** @var \Illuminate\Http\Request $instance */
  9047. return $instance->getBaseUrl();
  9048. }
  9049. /**
  9050. * Gets the request's scheme.
  9051. *
  9052. * @return string
  9053. * @static
  9054. */
  9055. public static function getScheme()
  9056. {
  9057. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9058. /** @var \Illuminate\Http\Request $instance */
  9059. return $instance->getScheme();
  9060. }
  9061. /**
  9062. * Returns the port on which the request is made.
  9063. *
  9064. * This method can read the client port from the "X-Forwarded-Port" header
  9065. * when trusted proxies were set via "setTrustedProxies()".
  9066. *
  9067. * The "X-Forwarded-Port" header must contain the client port.
  9068. *
  9069. * @return int|string can be a string if fetched from the server bag
  9070. * @static
  9071. */
  9072. public static function getPort()
  9073. {
  9074. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9075. /** @var \Illuminate\Http\Request $instance */
  9076. return $instance->getPort();
  9077. }
  9078. /**
  9079. * Returns the user.
  9080. *
  9081. * @return string|null
  9082. * @static
  9083. */
  9084. public static function getUser()
  9085. {
  9086. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9087. /** @var \Illuminate\Http\Request $instance */
  9088. return $instance->getUser();
  9089. }
  9090. /**
  9091. * Returns the password.
  9092. *
  9093. * @return string|null
  9094. * @static
  9095. */
  9096. public static function getPassword()
  9097. {
  9098. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9099. /** @var \Illuminate\Http\Request $instance */
  9100. return $instance->getPassword();
  9101. }
  9102. /**
  9103. * Gets the user info.
  9104. *
  9105. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  9106. * @static
  9107. */
  9108. public static function getUserInfo()
  9109. {
  9110. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9111. /** @var \Illuminate\Http\Request $instance */
  9112. return $instance->getUserInfo();
  9113. }
  9114. /**
  9115. * Returns the HTTP host being requested.
  9116. *
  9117. * The port name will be appended to the host if it's non-standard.
  9118. *
  9119. * @return string
  9120. * @static
  9121. */
  9122. public static function getHttpHost()
  9123. {
  9124. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9125. /** @var \Illuminate\Http\Request $instance */
  9126. return $instance->getHttpHost();
  9127. }
  9128. /**
  9129. * Returns the requested URI (path and query string).
  9130. *
  9131. * @return string The raw URI (i.e. not URI decoded)
  9132. * @static
  9133. */
  9134. public static function getRequestUri()
  9135. {
  9136. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9137. /** @var \Illuminate\Http\Request $instance */
  9138. return $instance->getRequestUri();
  9139. }
  9140. /**
  9141. * Gets the scheme and HTTP host.
  9142. *
  9143. * If the URL was called with basic authentication, the user
  9144. * and the password are not added to the generated string.
  9145. *
  9146. * @return string The scheme and HTTP host
  9147. * @static
  9148. */
  9149. public static function getSchemeAndHttpHost()
  9150. {
  9151. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9152. /** @var \Illuminate\Http\Request $instance */
  9153. return $instance->getSchemeAndHttpHost();
  9154. }
  9155. /**
  9156. * Generates a normalized URI (URL) for the Request.
  9157. *
  9158. * @return string A normalized URI (URL) for the Request
  9159. * @see getQueryString()
  9160. * @static
  9161. */
  9162. public static function getUri()
  9163. {
  9164. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9165. /** @var \Illuminate\Http\Request $instance */
  9166. return $instance->getUri();
  9167. }
  9168. /**
  9169. * Generates a normalized URI for the given path.
  9170. *
  9171. * @param string $path A path to use instead of the current one
  9172. * @return string The normalized URI for the path
  9173. * @static
  9174. */
  9175. public static function getUriForPath($path)
  9176. {
  9177. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9178. /** @var \Illuminate\Http\Request $instance */
  9179. return $instance->getUriForPath($path);
  9180. }
  9181. /**
  9182. * Returns the path as relative reference from the current Request path.
  9183. *
  9184. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  9185. * Both paths must be absolute and not contain relative parts.
  9186. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  9187. * Furthermore, they can be used to reduce the link size in documents.
  9188. *
  9189. * Example target paths, given a base path of "/a/b/c/d":
  9190. * - "/a/b/c/d" -> ""
  9191. * - "/a/b/c/" -> "./"
  9192. * - "/a/b/" -> "../"
  9193. * - "/a/b/c/other" -> "other"
  9194. * - "/a/x/y" -> "../../x/y"
  9195. *
  9196. * @return string The relative target path
  9197. * @static
  9198. */
  9199. public static function getRelativeUriForPath($path)
  9200. {
  9201. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9202. /** @var \Illuminate\Http\Request $instance */
  9203. return $instance->getRelativeUriForPath($path);
  9204. }
  9205. /**
  9206. * Generates the normalized query string for the Request.
  9207. *
  9208. * It builds a normalized query string, where keys/value pairs are alphabetized
  9209. * and have consistent escaping.
  9210. *
  9211. * @return string|null A normalized query string for the Request
  9212. * @static
  9213. */
  9214. public static function getQueryString()
  9215. {
  9216. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9217. /** @var \Illuminate\Http\Request $instance */
  9218. return $instance->getQueryString();
  9219. }
  9220. /**
  9221. * Checks whether the request is secure or not.
  9222. *
  9223. * This method can read the client protocol from the "X-Forwarded-Proto" header
  9224. * when trusted proxies were set via "setTrustedProxies()".
  9225. *
  9226. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  9227. *
  9228. * @return bool
  9229. * @static
  9230. */
  9231. public static function isSecure()
  9232. {
  9233. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9234. /** @var \Illuminate\Http\Request $instance */
  9235. return $instance->isSecure();
  9236. }
  9237. /**
  9238. * Returns the host name.
  9239. *
  9240. * This method can read the client host name from the "X-Forwarded-Host" header
  9241. * when trusted proxies were set via "setTrustedProxies()".
  9242. *
  9243. * The "X-Forwarded-Host" header must contain the client host name.
  9244. *
  9245. * @return string
  9246. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  9247. * @static
  9248. */
  9249. public static function getHost()
  9250. {
  9251. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9252. /** @var \Illuminate\Http\Request $instance */
  9253. return $instance->getHost();
  9254. }
  9255. /**
  9256. * Sets the request method.
  9257. *
  9258. * @static
  9259. */
  9260. public static function setMethod($method)
  9261. {
  9262. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9263. /** @var \Illuminate\Http\Request $instance */
  9264. return $instance->setMethod($method);
  9265. }
  9266. /**
  9267. * Gets the request "intended" method.
  9268. *
  9269. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  9270. * then it is used to determine the "real" intended HTTP method.
  9271. *
  9272. * The _method request parameter can also be used to determine the HTTP method,
  9273. * but only if enableHttpMethodParameterOverride() has been called.
  9274. *
  9275. * The method is always an uppercased string.
  9276. *
  9277. * @return string The request method
  9278. * @see getRealMethod()
  9279. * @static
  9280. */
  9281. public static function getMethod()
  9282. {
  9283. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9284. /** @var \Illuminate\Http\Request $instance */
  9285. return $instance->getMethod();
  9286. }
  9287. /**
  9288. * Gets the "real" request method.
  9289. *
  9290. * @return string The request method
  9291. * @see getMethod()
  9292. * @static
  9293. */
  9294. public static function getRealMethod()
  9295. {
  9296. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9297. /** @var \Illuminate\Http\Request $instance */
  9298. return $instance->getRealMethod();
  9299. }
  9300. /**
  9301. * Gets the mime type associated with the format.
  9302. *
  9303. * @return string|null The associated mime type (null if not found)
  9304. * @static
  9305. */
  9306. public static function getMimeType($format)
  9307. {
  9308. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9309. /** @var \Illuminate\Http\Request $instance */
  9310. return $instance->getMimeType($format);
  9311. }
  9312. /**
  9313. * Gets the mime types associated with the format.
  9314. *
  9315. * @return array The associated mime types
  9316. * @static
  9317. */
  9318. public static function getMimeTypes($format)
  9319. {
  9320. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9321. return \Illuminate\Http\Request::getMimeTypes($format);
  9322. }
  9323. /**
  9324. * Gets the format associated with the mime type.
  9325. *
  9326. * @return string|null The format (null if not found)
  9327. * @static
  9328. */
  9329. public static function getFormat($mimeType)
  9330. {
  9331. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9332. /** @var \Illuminate\Http\Request $instance */
  9333. return $instance->getFormat($mimeType);
  9334. }
  9335. /**
  9336. * Associates a format with mime types.
  9337. *
  9338. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  9339. * @static
  9340. */
  9341. public static function setFormat($format, $mimeTypes)
  9342. {
  9343. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9344. /** @var \Illuminate\Http\Request $instance */
  9345. return $instance->setFormat($format, $mimeTypes);
  9346. }
  9347. /**
  9348. * Gets the request format.
  9349. *
  9350. * Here is the process to determine the format:
  9351. *
  9352. * * format defined by the user (with setRequestFormat())
  9353. * * _format request attribute
  9354. * * $default
  9355. *
  9356. * @see getPreferredFormat
  9357. * @return string|null The request format
  9358. * @static
  9359. */
  9360. public static function getRequestFormat($default = 'html')
  9361. {
  9362. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9363. /** @var \Illuminate\Http\Request $instance */
  9364. return $instance->getRequestFormat($default);
  9365. }
  9366. /**
  9367. * Sets the request format.
  9368. *
  9369. * @static
  9370. */
  9371. public static function setRequestFormat($format)
  9372. {
  9373. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9374. /** @var \Illuminate\Http\Request $instance */
  9375. return $instance->setRequestFormat($format);
  9376. }
  9377. /**
  9378. * Gets the format associated with the request.
  9379. *
  9380. * @return string|null The format (null if no content type is present)
  9381. * @static
  9382. */
  9383. public static function getContentType()
  9384. {
  9385. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9386. /** @var \Illuminate\Http\Request $instance */
  9387. return $instance->getContentType();
  9388. }
  9389. /**
  9390. * Sets the default locale.
  9391. *
  9392. * @static
  9393. */
  9394. public static function setDefaultLocale($locale)
  9395. {
  9396. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9397. /** @var \Illuminate\Http\Request $instance */
  9398. return $instance->setDefaultLocale($locale);
  9399. }
  9400. /**
  9401. * Get the default locale.
  9402. *
  9403. * @return string
  9404. * @static
  9405. */
  9406. public static function getDefaultLocale()
  9407. {
  9408. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9409. /** @var \Illuminate\Http\Request $instance */
  9410. return $instance->getDefaultLocale();
  9411. }
  9412. /**
  9413. * Sets the locale.
  9414. *
  9415. * @static
  9416. */
  9417. public static function setLocale($locale)
  9418. {
  9419. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9420. /** @var \Illuminate\Http\Request $instance */
  9421. return $instance->setLocale($locale);
  9422. }
  9423. /**
  9424. * Get the locale.
  9425. *
  9426. * @return string
  9427. * @static
  9428. */
  9429. public static function getLocale()
  9430. {
  9431. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9432. /** @var \Illuminate\Http\Request $instance */
  9433. return $instance->getLocale();
  9434. }
  9435. /**
  9436. * Checks if the request method is of specified type.
  9437. *
  9438. * @param string $method Uppercase request method (GET, POST etc)
  9439. * @return bool
  9440. * @static
  9441. */
  9442. public static function isMethod($method)
  9443. {
  9444. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9445. /** @var \Illuminate\Http\Request $instance */
  9446. return $instance->isMethod($method);
  9447. }
  9448. /**
  9449. * Checks whether or not the method is safe.
  9450. *
  9451. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  9452. * @return bool
  9453. * @static
  9454. */
  9455. public static function isMethodSafe()
  9456. {
  9457. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9458. /** @var \Illuminate\Http\Request $instance */
  9459. return $instance->isMethodSafe();
  9460. }
  9461. /**
  9462. * Checks whether or not the method is idempotent.
  9463. *
  9464. * @return bool
  9465. * @static
  9466. */
  9467. public static function isMethodIdempotent()
  9468. {
  9469. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9470. /** @var \Illuminate\Http\Request $instance */
  9471. return $instance->isMethodIdempotent();
  9472. }
  9473. /**
  9474. * Checks whether the method is cacheable or not.
  9475. *
  9476. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  9477. * @return bool True for GET and HEAD, false otherwise
  9478. * @static
  9479. */
  9480. public static function isMethodCacheable()
  9481. {
  9482. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9483. /** @var \Illuminate\Http\Request $instance */
  9484. return $instance->isMethodCacheable();
  9485. }
  9486. /**
  9487. * Returns the protocol version.
  9488. *
  9489. * If the application is behind a proxy, the protocol version used in the
  9490. * requests between the client and the proxy and between the proxy and the
  9491. * server might be different. This returns the former (from the "Via" header)
  9492. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  9493. * the latter (from the "SERVER_PROTOCOL" server parameter).
  9494. *
  9495. * @return string
  9496. * @static
  9497. */
  9498. public static function getProtocolVersion()
  9499. {
  9500. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9501. /** @var \Illuminate\Http\Request $instance */
  9502. return $instance->getProtocolVersion();
  9503. }
  9504. /**
  9505. * Returns the request body content.
  9506. *
  9507. * @param bool $asResource If true, a resource will be returned
  9508. * @return string|resource The request body content or a resource to read the body stream
  9509. * @throws \LogicException
  9510. * @static
  9511. */
  9512. public static function getContent($asResource = false)
  9513. {
  9514. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9515. /** @var \Illuminate\Http\Request $instance */
  9516. return $instance->getContent($asResource);
  9517. }
  9518. /**
  9519. * Gets the Etags.
  9520. *
  9521. * @return array The entity tags
  9522. * @static
  9523. */
  9524. public static function getETags()
  9525. {
  9526. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9527. /** @var \Illuminate\Http\Request $instance */
  9528. return $instance->getETags();
  9529. }
  9530. /**
  9531. *
  9532. *
  9533. * @return bool
  9534. * @static
  9535. */
  9536. public static function isNoCache()
  9537. {
  9538. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9539. /** @var \Illuminate\Http\Request $instance */
  9540. return $instance->isNoCache();
  9541. }
  9542. /**
  9543. * Gets the preferred format for the response by inspecting, in the following order:
  9544. * * the request format set using setRequestFormat
  9545. * * the values of the Accept HTTP header
  9546. *
  9547. * Note that if you use this method, you should send the "Vary: Accept" header
  9548. * in the response to prevent any issues with intermediary HTTP caches.
  9549. *
  9550. * @static
  9551. */
  9552. public static function getPreferredFormat($default = 'html')
  9553. {
  9554. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9555. /** @var \Illuminate\Http\Request $instance */
  9556. return $instance->getPreferredFormat($default);
  9557. }
  9558. /**
  9559. * Returns the preferred language.
  9560. *
  9561. * @param string[] $locales An array of ordered available locales
  9562. * @return string|null The preferred locale
  9563. * @static
  9564. */
  9565. public static function getPreferredLanguage($locales = null)
  9566. {
  9567. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9568. /** @var \Illuminate\Http\Request $instance */
  9569. return $instance->getPreferredLanguage($locales);
  9570. }
  9571. /**
  9572. * Gets a list of languages acceptable by the client browser.
  9573. *
  9574. * @return array Languages ordered in the user browser preferences
  9575. * @static
  9576. */
  9577. public static function getLanguages()
  9578. {
  9579. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9580. /** @var \Illuminate\Http\Request $instance */
  9581. return $instance->getLanguages();
  9582. }
  9583. /**
  9584. * Gets a list of charsets acceptable by the client browser.
  9585. *
  9586. * @return array List of charsets in preferable order
  9587. * @static
  9588. */
  9589. public static function getCharsets()
  9590. {
  9591. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9592. /** @var \Illuminate\Http\Request $instance */
  9593. return $instance->getCharsets();
  9594. }
  9595. /**
  9596. * Gets a list of encodings acceptable by the client browser.
  9597. *
  9598. * @return array List of encodings in preferable order
  9599. * @static
  9600. */
  9601. public static function getEncodings()
  9602. {
  9603. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9604. /** @var \Illuminate\Http\Request $instance */
  9605. return $instance->getEncodings();
  9606. }
  9607. /**
  9608. * Gets a list of content types acceptable by the client browser.
  9609. *
  9610. * @return array List of content types in preferable order
  9611. * @static
  9612. */
  9613. public static function getAcceptableContentTypes()
  9614. {
  9615. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9616. /** @var \Illuminate\Http\Request $instance */
  9617. return $instance->getAcceptableContentTypes();
  9618. }
  9619. /**
  9620. * Returns true if the request is a XMLHttpRequest.
  9621. *
  9622. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  9623. * It is known to work with common JavaScript frameworks:
  9624. *
  9625. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  9626. * @return bool true if the request is an XMLHttpRequest, false otherwise
  9627. * @static
  9628. */
  9629. public static function isXmlHttpRequest()
  9630. {
  9631. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9632. /** @var \Illuminate\Http\Request $instance */
  9633. return $instance->isXmlHttpRequest();
  9634. }
  9635. /**
  9636. * Indicates whether this request originated from a trusted proxy.
  9637. *
  9638. * This can be useful to determine whether or not to trust the
  9639. * contents of a proxy-specific header.
  9640. *
  9641. * @return bool true if the request came from a trusted proxy, false otherwise
  9642. * @static
  9643. */
  9644. public static function isFromTrustedProxy()
  9645. {
  9646. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9647. /** @var \Illuminate\Http\Request $instance */
  9648. return $instance->isFromTrustedProxy();
  9649. }
  9650. /**
  9651. * Determine if the given content types match.
  9652. *
  9653. * @param string $actual
  9654. * @param string $type
  9655. * @return bool
  9656. * @static
  9657. */
  9658. public static function matchesType($actual, $type)
  9659. {
  9660. return \Illuminate\Http\Request::matchesType($actual, $type);
  9661. }
  9662. /**
  9663. * Determine if the request is sending JSON.
  9664. *
  9665. * @return bool
  9666. * @static
  9667. */
  9668. public static function isJson()
  9669. {
  9670. /** @var \Illuminate\Http\Request $instance */
  9671. return $instance->isJson();
  9672. }
  9673. /**
  9674. * Determine if the current request probably expects a JSON response.
  9675. *
  9676. * @return bool
  9677. * @static
  9678. */
  9679. public static function expectsJson()
  9680. {
  9681. /** @var \Illuminate\Http\Request $instance */
  9682. return $instance->expectsJson();
  9683. }
  9684. /**
  9685. * Determine if the current request is asking for JSON.
  9686. *
  9687. * @return bool
  9688. * @static
  9689. */
  9690. public static function wantsJson()
  9691. {
  9692. /** @var \Illuminate\Http\Request $instance */
  9693. return $instance->wantsJson();
  9694. }
  9695. /**
  9696. * Determines whether the current requests accepts a given content type.
  9697. *
  9698. * @param string|array $contentTypes
  9699. * @return bool
  9700. * @static
  9701. */
  9702. public static function accepts($contentTypes)
  9703. {
  9704. /** @var \Illuminate\Http\Request $instance */
  9705. return $instance->accepts($contentTypes);
  9706. }
  9707. /**
  9708. * Return the most suitable content type from the given array based on content negotiation.
  9709. *
  9710. * @param string|array $contentTypes
  9711. * @return string|null
  9712. * @static
  9713. */
  9714. public static function prefers($contentTypes)
  9715. {
  9716. /** @var \Illuminate\Http\Request $instance */
  9717. return $instance->prefers($contentTypes);
  9718. }
  9719. /**
  9720. * Determine if the current request accepts any content type.
  9721. *
  9722. * @return bool
  9723. * @static
  9724. */
  9725. public static function acceptsAnyContentType()
  9726. {
  9727. /** @var \Illuminate\Http\Request $instance */
  9728. return $instance->acceptsAnyContentType();
  9729. }
  9730. /**
  9731. * Determines whether a request accepts JSON.
  9732. *
  9733. * @return bool
  9734. * @static
  9735. */
  9736. public static function acceptsJson()
  9737. {
  9738. /** @var \Illuminate\Http\Request $instance */
  9739. return $instance->acceptsJson();
  9740. }
  9741. /**
  9742. * Determines whether a request accepts HTML.
  9743. *
  9744. * @return bool
  9745. * @static
  9746. */
  9747. public static function acceptsHtml()
  9748. {
  9749. /** @var \Illuminate\Http\Request $instance */
  9750. return $instance->acceptsHtml();
  9751. }
  9752. /**
  9753. * Get the data format expected in the response.
  9754. *
  9755. * @param string $default
  9756. * @return string
  9757. * @static
  9758. */
  9759. public static function format($default = 'html')
  9760. {
  9761. /** @var \Illuminate\Http\Request $instance */
  9762. return $instance->format($default);
  9763. }
  9764. /**
  9765. * Retrieve an old input item.
  9766. *
  9767. * @param string|null $key
  9768. * @param string|array|null $default
  9769. * @return string|array
  9770. * @static
  9771. */
  9772. public static function old($key = null, $default = null)
  9773. {
  9774. /** @var \Illuminate\Http\Request $instance */
  9775. return $instance->old($key, $default);
  9776. }
  9777. /**
  9778. * Flash the input for the current request to the session.
  9779. *
  9780. * @return void
  9781. * @static
  9782. */
  9783. public static function flash()
  9784. {
  9785. /** @var \Illuminate\Http\Request $instance */
  9786. $instance->flash();
  9787. }
  9788. /**
  9789. * Flash only some of the input to the session.
  9790. *
  9791. * @param array|mixed $keys
  9792. * @return void
  9793. * @static
  9794. */
  9795. public static function flashOnly($keys)
  9796. {
  9797. /** @var \Illuminate\Http\Request $instance */
  9798. $instance->flashOnly($keys);
  9799. }
  9800. /**
  9801. * Flash only some of the input to the session.
  9802. *
  9803. * @param array|mixed $keys
  9804. * @return void
  9805. * @static
  9806. */
  9807. public static function flashExcept($keys)
  9808. {
  9809. /** @var \Illuminate\Http\Request $instance */
  9810. $instance->flashExcept($keys);
  9811. }
  9812. /**
  9813. * Flush all of the old input from the session.
  9814. *
  9815. * @return void
  9816. * @static
  9817. */
  9818. public static function flush()
  9819. {
  9820. /** @var \Illuminate\Http\Request $instance */
  9821. $instance->flush();
  9822. }
  9823. /**
  9824. * Retrieve a server variable from the request.
  9825. *
  9826. * @param string|null $key
  9827. * @param string|array|null $default
  9828. * @return string|array|null
  9829. * @static
  9830. */
  9831. public static function server($key = null, $default = null)
  9832. {
  9833. /** @var \Illuminate\Http\Request $instance */
  9834. return $instance->server($key, $default);
  9835. }
  9836. /**
  9837. * Determine if a header is set on the request.
  9838. *
  9839. * @param string $key
  9840. * @return bool
  9841. * @static
  9842. */
  9843. public static function hasHeader($key)
  9844. {
  9845. /** @var \Illuminate\Http\Request $instance */
  9846. return $instance->hasHeader($key);
  9847. }
  9848. /**
  9849. * Retrieve a header from the request.
  9850. *
  9851. * @param string|null $key
  9852. * @param string|array|null $default
  9853. * @return string|array|null
  9854. * @static
  9855. */
  9856. public static function header($key = null, $default = null)
  9857. {
  9858. /** @var \Illuminate\Http\Request $instance */
  9859. return $instance->header($key, $default);
  9860. }
  9861. /**
  9862. * Get the bearer token from the request headers.
  9863. *
  9864. * @return string|null
  9865. * @static
  9866. */
  9867. public static function bearerToken()
  9868. {
  9869. /** @var \Illuminate\Http\Request $instance */
  9870. return $instance->bearerToken();
  9871. }
  9872. /**
  9873. * Determine if the request contains a given input item key.
  9874. *
  9875. * @param string|array $key
  9876. * @return bool
  9877. * @static
  9878. */
  9879. public static function exists($key)
  9880. {
  9881. /** @var \Illuminate\Http\Request $instance */
  9882. return $instance->exists($key);
  9883. }
  9884. /**
  9885. * Determine if the request contains a given input item key.
  9886. *
  9887. * @param string|array $key
  9888. * @return bool
  9889. * @static
  9890. */
  9891. public static function has($key)
  9892. {
  9893. /** @var \Illuminate\Http\Request $instance */
  9894. return $instance->has($key);
  9895. }
  9896. /**
  9897. * Determine if the request contains any of the given inputs.
  9898. *
  9899. * @param string|array $keys
  9900. * @return bool
  9901. * @static
  9902. */
  9903. public static function hasAny($keys)
  9904. {
  9905. /** @var \Illuminate\Http\Request $instance */
  9906. return $instance->hasAny($keys);
  9907. }
  9908. /**
  9909. * Determine if the request contains a non-empty value for an input item.
  9910. *
  9911. * @param string|array $key
  9912. * @return bool
  9913. * @static
  9914. */
  9915. public static function filled($key)
  9916. {
  9917. /** @var \Illuminate\Http\Request $instance */
  9918. return $instance->filled($key);
  9919. }
  9920. /**
  9921. * Determine if the request contains a non-empty value for any of the given inputs.
  9922. *
  9923. * @param string|array $keys
  9924. * @return bool
  9925. * @static
  9926. */
  9927. public static function anyFilled($keys)
  9928. {
  9929. /** @var \Illuminate\Http\Request $instance */
  9930. return $instance->anyFilled($keys);
  9931. }
  9932. /**
  9933. * Determine if the request is missing a given input item key.
  9934. *
  9935. * @param string|array $key
  9936. * @return bool
  9937. * @static
  9938. */
  9939. public static function missing($key)
  9940. {
  9941. /** @var \Illuminate\Http\Request $instance */
  9942. return $instance->missing($key);
  9943. }
  9944. /**
  9945. * Get the keys for all of the input and files.
  9946. *
  9947. * @return array
  9948. * @static
  9949. */
  9950. public static function keys()
  9951. {
  9952. /** @var \Illuminate\Http\Request $instance */
  9953. return $instance->keys();
  9954. }
  9955. /**
  9956. * Get all of the input and files for the request.
  9957. *
  9958. * @param array|mixed|null $keys
  9959. * @return array
  9960. * @static
  9961. */
  9962. public static function all($keys = null)
  9963. {
  9964. /** @var \Illuminate\Http\Request $instance */
  9965. return $instance->all($keys);
  9966. }
  9967. /**
  9968. * Retrieve an input item from the request.
  9969. *
  9970. * @param string|null $key
  9971. * @param mixed $default
  9972. * @return mixed
  9973. * @static
  9974. */
  9975. public static function input($key = null, $default = null)
  9976. {
  9977. /** @var \Illuminate\Http\Request $instance */
  9978. return $instance->input($key, $default);
  9979. }
  9980. /**
  9981. * Retrieve input as a boolean value.
  9982. *
  9983. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  9984. *
  9985. * @param string|null $key
  9986. * @param bool $default
  9987. * @return bool
  9988. * @static
  9989. */
  9990. public static function boolean($key = null, $default = false)
  9991. {
  9992. /** @var \Illuminate\Http\Request $instance */
  9993. return $instance->boolean($key, $default);
  9994. }
  9995. /**
  9996. * Get a subset containing the provided keys with values from the input data.
  9997. *
  9998. * @param array|mixed $keys
  9999. * @return array
  10000. * @static
  10001. */
  10002. public static function only($keys)
  10003. {
  10004. /** @var \Illuminate\Http\Request $instance */
  10005. return $instance->only($keys);
  10006. }
  10007. /**
  10008. * Get all of the input except for a specified array of items.
  10009. *
  10010. * @param array|mixed $keys
  10011. * @return array
  10012. * @static
  10013. */
  10014. public static function except($keys)
  10015. {
  10016. /** @var \Illuminate\Http\Request $instance */
  10017. return $instance->except($keys);
  10018. }
  10019. /**
  10020. * Retrieve a query string item from the request.
  10021. *
  10022. * @param string|null $key
  10023. * @param string|array|null $default
  10024. * @return string|array|null
  10025. * @static
  10026. */
  10027. public static function query($key = null, $default = null)
  10028. {
  10029. /** @var \Illuminate\Http\Request $instance */
  10030. return $instance->query($key, $default);
  10031. }
  10032. /**
  10033. * Retrieve a request payload item from the request.
  10034. *
  10035. * @param string|null $key
  10036. * @param string|array|null $default
  10037. * @return string|array|null
  10038. * @static
  10039. */
  10040. public static function post($key = null, $default = null)
  10041. {
  10042. /** @var \Illuminate\Http\Request $instance */
  10043. return $instance->post($key, $default);
  10044. }
  10045. /**
  10046. * Determine if a cookie is set on the request.
  10047. *
  10048. * @param string $key
  10049. * @return bool
  10050. * @static
  10051. */
  10052. public static function hasCookie($key)
  10053. {
  10054. /** @var \Illuminate\Http\Request $instance */
  10055. return $instance->hasCookie($key);
  10056. }
  10057. /**
  10058. * Retrieve a cookie from the request.
  10059. *
  10060. * @param string|null $key
  10061. * @param string|array|null $default
  10062. * @return string|array|null
  10063. * @static
  10064. */
  10065. public static function cookie($key = null, $default = null)
  10066. {
  10067. /** @var \Illuminate\Http\Request $instance */
  10068. return $instance->cookie($key, $default);
  10069. }
  10070. /**
  10071. * Get an array of all of the files on the request.
  10072. *
  10073. * @return array
  10074. * @static
  10075. */
  10076. public static function allFiles()
  10077. {
  10078. /** @var \Illuminate\Http\Request $instance */
  10079. return $instance->allFiles();
  10080. }
  10081. /**
  10082. * Determine if the uploaded data contains a file.
  10083. *
  10084. * @param string $key
  10085. * @return bool
  10086. * @static
  10087. */
  10088. public static function hasFile($key)
  10089. {
  10090. /** @var \Illuminate\Http\Request $instance */
  10091. return $instance->hasFile($key);
  10092. }
  10093. /**
  10094. * Retrieve a file from the request.
  10095. *
  10096. * @param string|null $key
  10097. * @param mixed $default
  10098. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  10099. * @static
  10100. */
  10101. public static function file($key = null, $default = null)
  10102. {
  10103. /** @var \Illuminate\Http\Request $instance */
  10104. return $instance->file($key, $default);
  10105. }
  10106. /**
  10107. * Register a custom macro.
  10108. *
  10109. * @param string $name
  10110. * @param object|callable $macro
  10111. * @return void
  10112. * @static
  10113. */
  10114. public static function macro($name, $macro)
  10115. {
  10116. \Illuminate\Http\Request::macro($name, $macro);
  10117. }
  10118. /**
  10119. * Mix another object into the class.
  10120. *
  10121. * @param object $mixin
  10122. * @param bool $replace
  10123. * @return void
  10124. * @throws \ReflectionException
  10125. * @static
  10126. */
  10127. public static function mixin($mixin, $replace = true)
  10128. {
  10129. \Illuminate\Http\Request::mixin($mixin, $replace);
  10130. }
  10131. /**
  10132. * Checks if macro is registered.
  10133. *
  10134. * @param string $name
  10135. * @return bool
  10136. * @static
  10137. */
  10138. public static function hasMacro($name)
  10139. {
  10140. return \Illuminate\Http\Request::hasMacro($name);
  10141. }
  10142. /**
  10143. *
  10144. *
  10145. * @static
  10146. */
  10147. public static function validate($rules, ...$params)
  10148. {
  10149. return \Illuminate\Http\Request::validate($rules, ...$params);
  10150. }
  10151. /**
  10152. *
  10153. *
  10154. * @static
  10155. */
  10156. public static function validateWithBag($errorBag, $rules, ...$params)
  10157. {
  10158. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  10159. }
  10160. /**
  10161. *
  10162. *
  10163. * @static
  10164. */
  10165. public static function hasValidSignature($absolute = true)
  10166. {
  10167. return \Illuminate\Http\Request::hasValidSignature($absolute);
  10168. }
  10169. }
  10170. /**
  10171. *
  10172. *
  10173. * @see \Illuminate\Contracts\Routing\ResponseFactory
  10174. */
  10175. class Response {
  10176. /**
  10177. * Create a new response instance.
  10178. *
  10179. * @param string $content
  10180. * @param int $status
  10181. * @param array $headers
  10182. * @return \Illuminate\Http\Response
  10183. * @static
  10184. */
  10185. public static function make($content = '', $status = 200, $headers = [])
  10186. {
  10187. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10188. return $instance->make($content, $status, $headers);
  10189. }
  10190. /**
  10191. * Create a new "no content" response.
  10192. *
  10193. * @param int $status
  10194. * @param array $headers
  10195. * @return \Illuminate\Http\Response
  10196. * @static
  10197. */
  10198. public static function noContent($status = 204, $headers = [])
  10199. {
  10200. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10201. return $instance->noContent($status, $headers);
  10202. }
  10203. /**
  10204. * Create a new response for a given view.
  10205. *
  10206. * @param string|array $view
  10207. * @param array $data
  10208. * @param int $status
  10209. * @param array $headers
  10210. * @return \Illuminate\Http\Response
  10211. * @static
  10212. */
  10213. public static function view($view, $data = [], $status = 200, $headers = [])
  10214. {
  10215. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10216. return $instance->view($view, $data, $status, $headers);
  10217. }
  10218. /**
  10219. * Create a new JSON response instance.
  10220. *
  10221. * @param mixed $data
  10222. * @param int $status
  10223. * @param array $headers
  10224. * @param int $options
  10225. * @return \Illuminate\Http\JsonResponse
  10226. * @static
  10227. */
  10228. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  10229. {
  10230. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10231. return $instance->json($data, $status, $headers, $options);
  10232. }
  10233. /**
  10234. * Create a new JSONP response instance.
  10235. *
  10236. * @param string $callback
  10237. * @param mixed $data
  10238. * @param int $status
  10239. * @param array $headers
  10240. * @param int $options
  10241. * @return \Illuminate\Http\JsonResponse
  10242. * @static
  10243. */
  10244. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  10245. {
  10246. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10247. return $instance->jsonp($callback, $data, $status, $headers, $options);
  10248. }
  10249. /**
  10250. * Create a new streamed response instance.
  10251. *
  10252. * @param \Closure $callback
  10253. * @param int $status
  10254. * @param array $headers
  10255. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  10256. * @static
  10257. */
  10258. public static function stream($callback, $status = 200, $headers = [])
  10259. {
  10260. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10261. return $instance->stream($callback, $status, $headers);
  10262. }
  10263. /**
  10264. * Create a new streamed response instance as a file download.
  10265. *
  10266. * @param \Closure $callback
  10267. * @param string|null $name
  10268. * @param array $headers
  10269. * @param string|null $disposition
  10270. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  10271. * @static
  10272. */
  10273. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  10274. {
  10275. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10276. return $instance->streamDownload($callback, $name, $headers, $disposition);
  10277. }
  10278. /**
  10279. * Create a new file download response.
  10280. *
  10281. * @param \SplFileInfo|string $file
  10282. * @param string|null $name
  10283. * @param array $headers
  10284. * @param string|null $disposition
  10285. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  10286. * @static
  10287. */
  10288. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  10289. {
  10290. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10291. return $instance->download($file, $name, $headers, $disposition);
  10292. }
  10293. /**
  10294. * Return the raw contents of a binary file.
  10295. *
  10296. * @param \SplFileInfo|string $file
  10297. * @param array $headers
  10298. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  10299. * @static
  10300. */
  10301. public static function file($file, $headers = [])
  10302. {
  10303. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10304. return $instance->file($file, $headers);
  10305. }
  10306. /**
  10307. * Create a new redirect response to the given path.
  10308. *
  10309. * @param string $path
  10310. * @param int $status
  10311. * @param array $headers
  10312. * @param bool|null $secure
  10313. * @return \Illuminate\Http\RedirectResponse
  10314. * @static
  10315. */
  10316. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  10317. {
  10318. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10319. return $instance->redirectTo($path, $status, $headers, $secure);
  10320. }
  10321. /**
  10322. * Create a new redirect response to a named route.
  10323. *
  10324. * @param string $route
  10325. * @param mixed $parameters
  10326. * @param int $status
  10327. * @param array $headers
  10328. * @return \Illuminate\Http\RedirectResponse
  10329. * @static
  10330. */
  10331. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  10332. {
  10333. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10334. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  10335. }
  10336. /**
  10337. * Create a new redirect response to a controller action.
  10338. *
  10339. * @param string $action
  10340. * @param mixed $parameters
  10341. * @param int $status
  10342. * @param array $headers
  10343. * @return \Illuminate\Http\RedirectResponse
  10344. * @static
  10345. */
  10346. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  10347. {
  10348. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10349. return $instance->redirectToAction($action, $parameters, $status, $headers);
  10350. }
  10351. /**
  10352. * Create a new redirect response, while putting the current URL in the session.
  10353. *
  10354. * @param string $path
  10355. * @param int $status
  10356. * @param array $headers
  10357. * @param bool|null $secure
  10358. * @return \Illuminate\Http\RedirectResponse
  10359. * @static
  10360. */
  10361. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  10362. {
  10363. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10364. return $instance->redirectGuest($path, $status, $headers, $secure);
  10365. }
  10366. /**
  10367. * Create a new redirect response to the previously intended location.
  10368. *
  10369. * @param string $default
  10370. * @param int $status
  10371. * @param array $headers
  10372. * @param bool|null $secure
  10373. * @return \Illuminate\Http\RedirectResponse
  10374. * @static
  10375. */
  10376. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  10377. {
  10378. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10379. return $instance->redirectToIntended($default, $status, $headers, $secure);
  10380. }
  10381. /**
  10382. * Register a custom macro.
  10383. *
  10384. * @param string $name
  10385. * @param object|callable $macro
  10386. * @return void
  10387. * @static
  10388. */
  10389. public static function macro($name, $macro)
  10390. {
  10391. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  10392. }
  10393. /**
  10394. * Mix another object into the class.
  10395. *
  10396. * @param object $mixin
  10397. * @param bool $replace
  10398. * @return void
  10399. * @throws \ReflectionException
  10400. * @static
  10401. */
  10402. public static function mixin($mixin, $replace = true)
  10403. {
  10404. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  10405. }
  10406. /**
  10407. * Checks if macro is registered.
  10408. *
  10409. * @param string $name
  10410. * @return bool
  10411. * @static
  10412. */
  10413. public static function hasMacro($name)
  10414. {
  10415. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  10416. }
  10417. }
  10418. /**
  10419. *
  10420. *
  10421. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  10422. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  10423. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  10424. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  10425. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  10426. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  10427. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  10428. * @see \Illuminate\Routing\Router
  10429. */
  10430. class Route {
  10431. /**
  10432. * Register a new GET route with the router.
  10433. *
  10434. * @param string $uri
  10435. * @param array|string|callable|null $action
  10436. * @return \Illuminate\Routing\Route
  10437. * @static
  10438. */
  10439. public static function get($uri, $action = null)
  10440. {
  10441. /** @var \Illuminate\Routing\Router $instance */
  10442. return $instance->get($uri, $action);
  10443. }
  10444. /**
  10445. * Register a new POST route with the router.
  10446. *
  10447. * @param string $uri
  10448. * @param array|string|callable|null $action
  10449. * @return \Illuminate\Routing\Route
  10450. * @static
  10451. */
  10452. public static function post($uri, $action = null)
  10453. {
  10454. /** @var \Illuminate\Routing\Router $instance */
  10455. return $instance->post($uri, $action);
  10456. }
  10457. /**
  10458. * Register a new PUT route with the router.
  10459. *
  10460. * @param string $uri
  10461. * @param array|string|callable|null $action
  10462. * @return \Illuminate\Routing\Route
  10463. * @static
  10464. */
  10465. public static function put($uri, $action = null)
  10466. {
  10467. /** @var \Illuminate\Routing\Router $instance */
  10468. return $instance->put($uri, $action);
  10469. }
  10470. /**
  10471. * Register a new PATCH route with the router.
  10472. *
  10473. * @param string $uri
  10474. * @param array|string|callable|null $action
  10475. * @return \Illuminate\Routing\Route
  10476. * @static
  10477. */
  10478. public static function patch($uri, $action = null)
  10479. {
  10480. /** @var \Illuminate\Routing\Router $instance */
  10481. return $instance->patch($uri, $action);
  10482. }
  10483. /**
  10484. * Register a new DELETE route with the router.
  10485. *
  10486. * @param string $uri
  10487. * @param array|string|callable|null $action
  10488. * @return \Illuminate\Routing\Route
  10489. * @static
  10490. */
  10491. public static function delete($uri, $action = null)
  10492. {
  10493. /** @var \Illuminate\Routing\Router $instance */
  10494. return $instance->delete($uri, $action);
  10495. }
  10496. /**
  10497. * Register a new OPTIONS route with the router.
  10498. *
  10499. * @param string $uri
  10500. * @param array|string|callable|null $action
  10501. * @return \Illuminate\Routing\Route
  10502. * @static
  10503. */
  10504. public static function options($uri, $action = null)
  10505. {
  10506. /** @var \Illuminate\Routing\Router $instance */
  10507. return $instance->options($uri, $action);
  10508. }
  10509. /**
  10510. * Register a new route responding to all verbs.
  10511. *
  10512. * @param string $uri
  10513. * @param array|string|callable|null $action
  10514. * @return \Illuminate\Routing\Route
  10515. * @static
  10516. */
  10517. public static function any($uri, $action = null)
  10518. {
  10519. /** @var \Illuminate\Routing\Router $instance */
  10520. return $instance->any($uri, $action);
  10521. }
  10522. /**
  10523. * Register a new Fallback route with the router.
  10524. *
  10525. * @param array|string|callable|null $action
  10526. * @return \Illuminate\Routing\Route
  10527. * @static
  10528. */
  10529. public static function fallback($action)
  10530. {
  10531. /** @var \Illuminate\Routing\Router $instance */
  10532. return $instance->fallback($action);
  10533. }
  10534. /**
  10535. * Create a redirect from one URI to another.
  10536. *
  10537. * @param string $uri
  10538. * @param string $destination
  10539. * @param int $status
  10540. * @return \Illuminate\Routing\Route
  10541. * @static
  10542. */
  10543. public static function redirect($uri, $destination, $status = 302)
  10544. {
  10545. /** @var \Illuminate\Routing\Router $instance */
  10546. return $instance->redirect($uri, $destination, $status);
  10547. }
  10548. /**
  10549. * Create a permanent redirect from one URI to another.
  10550. *
  10551. * @param string $uri
  10552. * @param string $destination
  10553. * @return \Illuminate\Routing\Route
  10554. * @static
  10555. */
  10556. public static function permanentRedirect($uri, $destination)
  10557. {
  10558. /** @var \Illuminate\Routing\Router $instance */
  10559. return $instance->permanentRedirect($uri, $destination);
  10560. }
  10561. /**
  10562. * Register a new route that returns a view.
  10563. *
  10564. * @param string $uri
  10565. * @param string $view
  10566. * @param array $data
  10567. * @return \Illuminate\Routing\Route
  10568. * @static
  10569. */
  10570. public static function view($uri, $view, $data = [])
  10571. {
  10572. /** @var \Illuminate\Routing\Router $instance */
  10573. return $instance->view($uri, $view, $data);
  10574. }
  10575. /**
  10576. * Register a new route with the given verbs.
  10577. *
  10578. * @param array|string $methods
  10579. * @param string $uri
  10580. * @param array|string|callable|null $action
  10581. * @return \Illuminate\Routing\Route
  10582. * @static
  10583. */
  10584. public static function match($methods, $uri, $action = null)
  10585. {
  10586. /** @var \Illuminate\Routing\Router $instance */
  10587. return $instance->match($methods, $uri, $action);
  10588. }
  10589. /**
  10590. * Register an array of resource controllers.
  10591. *
  10592. * @param array $resources
  10593. * @param array $options
  10594. * @return void
  10595. * @static
  10596. */
  10597. public static function resources($resources, $options = [])
  10598. {
  10599. /** @var \Illuminate\Routing\Router $instance */
  10600. $instance->resources($resources, $options);
  10601. }
  10602. /**
  10603. * Route a resource to a controller.
  10604. *
  10605. * @param string $name
  10606. * @param string $controller
  10607. * @param array $options
  10608. * @return \Illuminate\Routing\PendingResourceRegistration
  10609. * @static
  10610. */
  10611. public static function resource($name, $controller, $options = [])
  10612. {
  10613. /** @var \Illuminate\Routing\Router $instance */
  10614. return $instance->resource($name, $controller, $options);
  10615. }
  10616. /**
  10617. * Register an array of API resource controllers.
  10618. *
  10619. * @param array $resources
  10620. * @param array $options
  10621. * @return void
  10622. * @static
  10623. */
  10624. public static function apiResources($resources, $options = [])
  10625. {
  10626. /** @var \Illuminate\Routing\Router $instance */
  10627. $instance->apiResources($resources, $options);
  10628. }
  10629. /**
  10630. * Route an API resource to a controller.
  10631. *
  10632. * @param string $name
  10633. * @param string $controller
  10634. * @param array $options
  10635. * @return \Illuminate\Routing\PendingResourceRegistration
  10636. * @static
  10637. */
  10638. public static function apiResource($name, $controller, $options = [])
  10639. {
  10640. /** @var \Illuminate\Routing\Router $instance */
  10641. return $instance->apiResource($name, $controller, $options);
  10642. }
  10643. /**
  10644. * Create a route group with shared attributes.
  10645. *
  10646. * @param array $attributes
  10647. * @param \Closure|string $routes
  10648. * @return void
  10649. * @static
  10650. */
  10651. public static function group($attributes, $routes)
  10652. {
  10653. /** @var \Illuminate\Routing\Router $instance */
  10654. $instance->group($attributes, $routes);
  10655. }
  10656. /**
  10657. * Merge the given array with the last group stack.
  10658. *
  10659. * @param array $new
  10660. * @param bool $prependExistingPrefix
  10661. * @return array
  10662. * @static
  10663. */
  10664. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  10665. {
  10666. /** @var \Illuminate\Routing\Router $instance */
  10667. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  10668. }
  10669. /**
  10670. * Get the prefix from the last group on the stack.
  10671. *
  10672. * @return string
  10673. * @static
  10674. */
  10675. public static function getLastGroupPrefix()
  10676. {
  10677. /** @var \Illuminate\Routing\Router $instance */
  10678. return $instance->getLastGroupPrefix();
  10679. }
  10680. /**
  10681. * Add a route to the underlying route collection.
  10682. *
  10683. * @param array|string $methods
  10684. * @param string $uri
  10685. * @param array|string|callable|null $action
  10686. * @return \Illuminate\Routing\Route
  10687. * @static
  10688. */
  10689. public static function addRoute($methods, $uri, $action)
  10690. {
  10691. /** @var \Illuminate\Routing\Router $instance */
  10692. return $instance->addRoute($methods, $uri, $action);
  10693. }
  10694. /**
  10695. * Create a new Route object.
  10696. *
  10697. * @param array|string $methods
  10698. * @param string $uri
  10699. * @param mixed $action
  10700. * @return \Illuminate\Routing\Route
  10701. * @static
  10702. */
  10703. public static function newRoute($methods, $uri, $action)
  10704. {
  10705. /** @var \Illuminate\Routing\Router $instance */
  10706. return $instance->newRoute($methods, $uri, $action);
  10707. }
  10708. /**
  10709. * Return the response returned by the given route.
  10710. *
  10711. * @param string $name
  10712. * @return \Symfony\Component\HttpFoundation\Response
  10713. * @static
  10714. */
  10715. public static function respondWithRoute($name)
  10716. {
  10717. /** @var \Illuminate\Routing\Router $instance */
  10718. return $instance->respondWithRoute($name);
  10719. }
  10720. /**
  10721. * Dispatch the request to the application.
  10722. *
  10723. * @param \Illuminate\Http\Request $request
  10724. * @return \Symfony\Component\HttpFoundation\Response
  10725. * @static
  10726. */
  10727. public static function dispatch($request)
  10728. {
  10729. /** @var \Illuminate\Routing\Router $instance */
  10730. return $instance->dispatch($request);
  10731. }
  10732. /**
  10733. * Dispatch the request to a route and return the response.
  10734. *
  10735. * @param \Illuminate\Http\Request $request
  10736. * @return \Symfony\Component\HttpFoundation\Response
  10737. * @static
  10738. */
  10739. public static function dispatchToRoute($request)
  10740. {
  10741. /** @var \Illuminate\Routing\Router $instance */
  10742. return $instance->dispatchToRoute($request);
  10743. }
  10744. /**
  10745. * Gather the middleware for the given route with resolved class names.
  10746. *
  10747. * @param \Illuminate\Routing\Route $route
  10748. * @return array
  10749. * @static
  10750. */
  10751. public static function gatherRouteMiddleware($route)
  10752. {
  10753. /** @var \Illuminate\Routing\Router $instance */
  10754. return $instance->gatherRouteMiddleware($route);
  10755. }
  10756. /**
  10757. * Create a response instance from the given value.
  10758. *
  10759. * @param \Symfony\Component\HttpFoundation\Request $request
  10760. * @param mixed $response
  10761. * @return \Symfony\Component\HttpFoundation\Response
  10762. * @static
  10763. */
  10764. public static function prepareResponse($request, $response)
  10765. {
  10766. /** @var \Illuminate\Routing\Router $instance */
  10767. return $instance->prepareResponse($request, $response);
  10768. }
  10769. /**
  10770. * Static version of prepareResponse.
  10771. *
  10772. * @param \Symfony\Component\HttpFoundation\Request $request
  10773. * @param mixed $response
  10774. * @return \Symfony\Component\HttpFoundation\Response
  10775. * @static
  10776. */
  10777. public static function toResponse($request, $response)
  10778. {
  10779. return \Illuminate\Routing\Router::toResponse($request, $response);
  10780. }
  10781. /**
  10782. * Substitute the route bindings onto the route.
  10783. *
  10784. * @param \Illuminate\Routing\Route $route
  10785. * @return \Illuminate\Routing\Route
  10786. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10787. * @static
  10788. */
  10789. public static function substituteBindings($route)
  10790. {
  10791. /** @var \Illuminate\Routing\Router $instance */
  10792. return $instance->substituteBindings($route);
  10793. }
  10794. /**
  10795. * Substitute the implicit Eloquent model bindings for the route.
  10796. *
  10797. * @param \Illuminate\Routing\Route $route
  10798. * @return void
  10799. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10800. * @static
  10801. */
  10802. public static function substituteImplicitBindings($route)
  10803. {
  10804. /** @var \Illuminate\Routing\Router $instance */
  10805. $instance->substituteImplicitBindings($route);
  10806. }
  10807. /**
  10808. * Register a route matched event listener.
  10809. *
  10810. * @param string|callable $callback
  10811. * @return void
  10812. * @static
  10813. */
  10814. public static function matched($callback)
  10815. {
  10816. /** @var \Illuminate\Routing\Router $instance */
  10817. $instance->matched($callback);
  10818. }
  10819. /**
  10820. * Get all of the defined middleware short-hand names.
  10821. *
  10822. * @return array
  10823. * @static
  10824. */
  10825. public static function getMiddleware()
  10826. {
  10827. /** @var \Illuminate\Routing\Router $instance */
  10828. return $instance->getMiddleware();
  10829. }
  10830. /**
  10831. * Register a short-hand name for a middleware.
  10832. *
  10833. * @param string $name
  10834. * @param string $class
  10835. * @return \Illuminate\Routing\Router
  10836. * @static
  10837. */
  10838. public static function aliasMiddleware($name, $class)
  10839. {
  10840. /** @var \Illuminate\Routing\Router $instance */
  10841. return $instance->aliasMiddleware($name, $class);
  10842. }
  10843. /**
  10844. * Check if a middlewareGroup with the given name exists.
  10845. *
  10846. * @param string $name
  10847. * @return bool
  10848. * @static
  10849. */
  10850. public static function hasMiddlewareGroup($name)
  10851. {
  10852. /** @var \Illuminate\Routing\Router $instance */
  10853. return $instance->hasMiddlewareGroup($name);
  10854. }
  10855. /**
  10856. * Get all of the defined middleware groups.
  10857. *
  10858. * @return array
  10859. * @static
  10860. */
  10861. public static function getMiddlewareGroups()
  10862. {
  10863. /** @var \Illuminate\Routing\Router $instance */
  10864. return $instance->getMiddlewareGroups();
  10865. }
  10866. /**
  10867. * Register a group of middleware.
  10868. *
  10869. * @param string $name
  10870. * @param array $middleware
  10871. * @return \Illuminate\Routing\Router
  10872. * @static
  10873. */
  10874. public static function middlewareGroup($name, $middleware)
  10875. {
  10876. /** @var \Illuminate\Routing\Router $instance */
  10877. return $instance->middlewareGroup($name, $middleware);
  10878. }
  10879. /**
  10880. * Add a middleware to the beginning of a middleware group.
  10881. *
  10882. * If the middleware is already in the group, it will not be added again.
  10883. *
  10884. * @param string $group
  10885. * @param string $middleware
  10886. * @return \Illuminate\Routing\Router
  10887. * @static
  10888. */
  10889. public static function prependMiddlewareToGroup($group, $middleware)
  10890. {
  10891. /** @var \Illuminate\Routing\Router $instance */
  10892. return $instance->prependMiddlewareToGroup($group, $middleware);
  10893. }
  10894. /**
  10895. * Add a middleware to the end of a middleware group.
  10896. *
  10897. * If the middleware is already in the group, it will not be added again.
  10898. *
  10899. * @param string $group
  10900. * @param string $middleware
  10901. * @return \Illuminate\Routing\Router
  10902. * @static
  10903. */
  10904. public static function pushMiddlewareToGroup($group, $middleware)
  10905. {
  10906. /** @var \Illuminate\Routing\Router $instance */
  10907. return $instance->pushMiddlewareToGroup($group, $middleware);
  10908. }
  10909. /**
  10910. * Add a new route parameter binder.
  10911. *
  10912. * @param string $key
  10913. * @param string|callable $binder
  10914. * @return void
  10915. * @static
  10916. */
  10917. public static function bind($key, $binder)
  10918. {
  10919. /** @var \Illuminate\Routing\Router $instance */
  10920. $instance->bind($key, $binder);
  10921. }
  10922. /**
  10923. * Register a model binder for a wildcard.
  10924. *
  10925. * @param string $key
  10926. * @param string $class
  10927. * @param \Closure|null $callback
  10928. * @return void
  10929. * @static
  10930. */
  10931. public static function model($key, $class, $callback = null)
  10932. {
  10933. /** @var \Illuminate\Routing\Router $instance */
  10934. $instance->model($key, $class, $callback);
  10935. }
  10936. /**
  10937. * Get the binding callback for a given binding.
  10938. *
  10939. * @param string $key
  10940. * @return \Closure|null
  10941. * @static
  10942. */
  10943. public static function getBindingCallback($key)
  10944. {
  10945. /** @var \Illuminate\Routing\Router $instance */
  10946. return $instance->getBindingCallback($key);
  10947. }
  10948. /**
  10949. * Get the global "where" patterns.
  10950. *
  10951. * @return array
  10952. * @static
  10953. */
  10954. public static function getPatterns()
  10955. {
  10956. /** @var \Illuminate\Routing\Router $instance */
  10957. return $instance->getPatterns();
  10958. }
  10959. /**
  10960. * Set a global where pattern on all routes.
  10961. *
  10962. * @param string $key
  10963. * @param string $pattern
  10964. * @return void
  10965. * @static
  10966. */
  10967. public static function pattern($key, $pattern)
  10968. {
  10969. /** @var \Illuminate\Routing\Router $instance */
  10970. $instance->pattern($key, $pattern);
  10971. }
  10972. /**
  10973. * Set a group of global where patterns on all routes.
  10974. *
  10975. * @param array $patterns
  10976. * @return void
  10977. * @static
  10978. */
  10979. public static function patterns($patterns)
  10980. {
  10981. /** @var \Illuminate\Routing\Router $instance */
  10982. $instance->patterns($patterns);
  10983. }
  10984. /**
  10985. * Determine if the router currently has a group stack.
  10986. *
  10987. * @return bool
  10988. * @static
  10989. */
  10990. public static function hasGroupStack()
  10991. {
  10992. /** @var \Illuminate\Routing\Router $instance */
  10993. return $instance->hasGroupStack();
  10994. }
  10995. /**
  10996. * Get the current group stack for the router.
  10997. *
  10998. * @return array
  10999. * @static
  11000. */
  11001. public static function getGroupStack()
  11002. {
  11003. /** @var \Illuminate\Routing\Router $instance */
  11004. return $instance->getGroupStack();
  11005. }
  11006. /**
  11007. * Get a route parameter for the current route.
  11008. *
  11009. * @param string $key
  11010. * @param string|null $default
  11011. * @return mixed
  11012. * @static
  11013. */
  11014. public static function input($key, $default = null)
  11015. {
  11016. /** @var \Illuminate\Routing\Router $instance */
  11017. return $instance->input($key, $default);
  11018. }
  11019. /**
  11020. * Get the request currently being dispatched.
  11021. *
  11022. * @return \Illuminate\Http\Request
  11023. * @static
  11024. */
  11025. public static function getCurrentRequest()
  11026. {
  11027. /** @var \Illuminate\Routing\Router $instance */
  11028. return $instance->getCurrentRequest();
  11029. }
  11030. /**
  11031. * Get the currently dispatched route instance.
  11032. *
  11033. * @return \Illuminate\Routing\Route
  11034. * @static
  11035. */
  11036. public static function getCurrentRoute()
  11037. {
  11038. /** @var \Illuminate\Routing\Router $instance */
  11039. return $instance->getCurrentRoute();
  11040. }
  11041. /**
  11042. * Get the currently dispatched route instance.
  11043. *
  11044. * @return \Illuminate\Routing\Route|null
  11045. * @static
  11046. */
  11047. public static function current()
  11048. {
  11049. /** @var \Illuminate\Routing\Router $instance */
  11050. return $instance->current();
  11051. }
  11052. /**
  11053. * Check if a route with the given name exists.
  11054. *
  11055. * @param string $name
  11056. * @return bool
  11057. * @static
  11058. */
  11059. public static function has($name)
  11060. {
  11061. /** @var \Illuminate\Routing\Router $instance */
  11062. return $instance->has($name);
  11063. }
  11064. /**
  11065. * Get the current route name.
  11066. *
  11067. * @return string|null
  11068. * @static
  11069. */
  11070. public static function currentRouteName()
  11071. {
  11072. /** @var \Illuminate\Routing\Router $instance */
  11073. return $instance->currentRouteName();
  11074. }
  11075. /**
  11076. * Alias for the "currentRouteNamed" method.
  11077. *
  11078. * @param mixed $patterns
  11079. * @return bool
  11080. * @static
  11081. */
  11082. public static function is(...$patterns)
  11083. {
  11084. /** @var \Illuminate\Routing\Router $instance */
  11085. return $instance->is(...$patterns);
  11086. }
  11087. /**
  11088. * Determine if the current route matches a pattern.
  11089. *
  11090. * @param mixed $patterns
  11091. * @return bool
  11092. * @static
  11093. */
  11094. public static function currentRouteNamed(...$patterns)
  11095. {
  11096. /** @var \Illuminate\Routing\Router $instance */
  11097. return $instance->currentRouteNamed(...$patterns);
  11098. }
  11099. /**
  11100. * Get the current route action.
  11101. *
  11102. * @return string|null
  11103. * @static
  11104. */
  11105. public static function currentRouteAction()
  11106. {
  11107. /** @var \Illuminate\Routing\Router $instance */
  11108. return $instance->currentRouteAction();
  11109. }
  11110. /**
  11111. * Alias for the "currentRouteUses" method.
  11112. *
  11113. * @param array $patterns
  11114. * @return bool
  11115. * @static
  11116. */
  11117. public static function uses(...$patterns)
  11118. {
  11119. /** @var \Illuminate\Routing\Router $instance */
  11120. return $instance->uses(...$patterns);
  11121. }
  11122. /**
  11123. * Determine if the current route action matches a given action.
  11124. *
  11125. * @param string $action
  11126. * @return bool
  11127. * @static
  11128. */
  11129. public static function currentRouteUses($action)
  11130. {
  11131. /** @var \Illuminate\Routing\Router $instance */
  11132. return $instance->currentRouteUses($action);
  11133. }
  11134. /**
  11135. * Set the unmapped global resource parameters to singular.
  11136. *
  11137. * @param bool $singular
  11138. * @return void
  11139. * @static
  11140. */
  11141. public static function singularResourceParameters($singular = true)
  11142. {
  11143. /** @var \Illuminate\Routing\Router $instance */
  11144. $instance->singularResourceParameters($singular);
  11145. }
  11146. /**
  11147. * Set the global resource parameter mapping.
  11148. *
  11149. * @param array $parameters
  11150. * @return void
  11151. * @static
  11152. */
  11153. public static function resourceParameters($parameters = [])
  11154. {
  11155. /** @var \Illuminate\Routing\Router $instance */
  11156. $instance->resourceParameters($parameters);
  11157. }
  11158. /**
  11159. * Get or set the verbs used in the resource URIs.
  11160. *
  11161. * @param array $verbs
  11162. * @return array|null
  11163. * @static
  11164. */
  11165. public static function resourceVerbs($verbs = [])
  11166. {
  11167. /** @var \Illuminate\Routing\Router $instance */
  11168. return $instance->resourceVerbs($verbs);
  11169. }
  11170. /**
  11171. * Get the underlying route collection.
  11172. *
  11173. * @return \Illuminate\Routing\RouteCollectionInterface
  11174. * @static
  11175. */
  11176. public static function getRoutes()
  11177. {
  11178. /** @var \Illuminate\Routing\Router $instance */
  11179. return $instance->getRoutes();
  11180. }
  11181. /**
  11182. * Set the route collection instance.
  11183. *
  11184. * @param \Illuminate\Routing\RouteCollection $routes
  11185. * @return void
  11186. * @static
  11187. */
  11188. public static function setRoutes($routes)
  11189. {
  11190. /** @var \Illuminate\Routing\Router $instance */
  11191. $instance->setRoutes($routes);
  11192. }
  11193. /**
  11194. * Set the compiled route collection instance.
  11195. *
  11196. * @param array $routes
  11197. * @return void
  11198. * @static
  11199. */
  11200. public static function setCompiledRoutes($routes)
  11201. {
  11202. /** @var \Illuminate\Routing\Router $instance */
  11203. $instance->setCompiledRoutes($routes);
  11204. }
  11205. /**
  11206. * Register a custom macro.
  11207. *
  11208. * @param string $name
  11209. * @param object|callable $macro
  11210. * @return void
  11211. * @static
  11212. */
  11213. public static function macro($name, $macro)
  11214. {
  11215. \Illuminate\Routing\Router::macro($name, $macro);
  11216. }
  11217. /**
  11218. * Mix another object into the class.
  11219. *
  11220. * @param object $mixin
  11221. * @param bool $replace
  11222. * @return void
  11223. * @throws \ReflectionException
  11224. * @static
  11225. */
  11226. public static function mixin($mixin, $replace = true)
  11227. {
  11228. \Illuminate\Routing\Router::mixin($mixin, $replace);
  11229. }
  11230. /**
  11231. * Checks if macro is registered.
  11232. *
  11233. * @param string $name
  11234. * @return bool
  11235. * @static
  11236. */
  11237. public static function hasMacro($name)
  11238. {
  11239. return \Illuminate\Routing\Router::hasMacro($name);
  11240. }
  11241. /**
  11242. * Dynamically handle calls to the class.
  11243. *
  11244. * @param string $method
  11245. * @param array $parameters
  11246. * @return mixed
  11247. * @throws \BadMethodCallException
  11248. * @static
  11249. */
  11250. public static function macroCall($method, $parameters)
  11251. {
  11252. /** @var \Illuminate\Routing\Router $instance */
  11253. return $instance->macroCall($method, $parameters);
  11254. }
  11255. }
  11256. /**
  11257. *
  11258. *
  11259. * @see \Illuminate\Database\Schema\Builder
  11260. */
  11261. class Schema {
  11262. /**
  11263. * Determine if the given table exists.
  11264. *
  11265. * @param string $table
  11266. * @return bool
  11267. * @static
  11268. */
  11269. public static function hasTable($table)
  11270. {
  11271. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11272. return $instance->hasTable($table);
  11273. }
  11274. /**
  11275. * Get the column listing for a given table.
  11276. *
  11277. * @param string $table
  11278. * @return array
  11279. * @static
  11280. */
  11281. public static function getColumnListing($table)
  11282. {
  11283. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11284. return $instance->getColumnListing($table);
  11285. }
  11286. /**
  11287. * Drop all tables from the database.
  11288. *
  11289. * @return void
  11290. * @static
  11291. */
  11292. public static function dropAllTables()
  11293. {
  11294. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11295. $instance->dropAllTables();
  11296. }
  11297. /**
  11298. * Drop all views from the database.
  11299. *
  11300. * @return void
  11301. * @static
  11302. */
  11303. public static function dropAllViews()
  11304. {
  11305. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11306. $instance->dropAllViews();
  11307. }
  11308. /**
  11309. * Get all of the table names for the database.
  11310. *
  11311. * @return array
  11312. * @static
  11313. */
  11314. public static function getAllTables()
  11315. {
  11316. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11317. return $instance->getAllTables();
  11318. }
  11319. /**
  11320. * Get all of the view names for the database.
  11321. *
  11322. * @return array
  11323. * @static
  11324. */
  11325. public static function getAllViews()
  11326. {
  11327. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11328. return $instance->getAllViews();
  11329. }
  11330. /**
  11331. * Set the default string length for migrations.
  11332. *
  11333. * @param int $length
  11334. * @return void
  11335. * @static
  11336. */
  11337. public static function defaultStringLength($length)
  11338. {
  11339. //Method inherited from \Illuminate\Database\Schema\Builder
  11340. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  11341. }
  11342. /**
  11343. * Determine if the given table has a given column.
  11344. *
  11345. * @param string $table
  11346. * @param string $column
  11347. * @return bool
  11348. * @static
  11349. */
  11350. public static function hasColumn($table, $column)
  11351. {
  11352. //Method inherited from \Illuminate\Database\Schema\Builder
  11353. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11354. return $instance->hasColumn($table, $column);
  11355. }
  11356. /**
  11357. * Determine if the given table has given columns.
  11358. *
  11359. * @param string $table
  11360. * @param array $columns
  11361. * @return bool
  11362. * @static
  11363. */
  11364. public static function hasColumns($table, $columns)
  11365. {
  11366. //Method inherited from \Illuminate\Database\Schema\Builder
  11367. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11368. return $instance->hasColumns($table, $columns);
  11369. }
  11370. /**
  11371. * Get the data type for the given column name.
  11372. *
  11373. * @param string $table
  11374. * @param string $column
  11375. * @return string
  11376. * @static
  11377. */
  11378. public static function getColumnType($table, $column)
  11379. {
  11380. //Method inherited from \Illuminate\Database\Schema\Builder
  11381. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11382. return $instance->getColumnType($table, $column);
  11383. }
  11384. /**
  11385. * Modify a table on the schema.
  11386. *
  11387. * @param string $table
  11388. * @param \Closure $callback
  11389. * @return void
  11390. * @static
  11391. */
  11392. public static function table($table, $callback)
  11393. {
  11394. //Method inherited from \Illuminate\Database\Schema\Builder
  11395. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11396. $instance->table($table, $callback);
  11397. }
  11398. /**
  11399. * Create a new table on the schema.
  11400. *
  11401. * @param string $table
  11402. * @param \Closure $callback
  11403. * @return void
  11404. * @static
  11405. */
  11406. public static function create($table, $callback)
  11407. {
  11408. //Method inherited from \Illuminate\Database\Schema\Builder
  11409. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11410. $instance->create($table, $callback);
  11411. }
  11412. /**
  11413. * Drop a table from the schema.
  11414. *
  11415. * @param string $table
  11416. * @return void
  11417. * @static
  11418. */
  11419. public static function drop($table)
  11420. {
  11421. //Method inherited from \Illuminate\Database\Schema\Builder
  11422. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11423. $instance->drop($table);
  11424. }
  11425. /**
  11426. * Drop a table from the schema if it exists.
  11427. *
  11428. * @param string $table
  11429. * @return void
  11430. * @static
  11431. */
  11432. public static function dropIfExists($table)
  11433. {
  11434. //Method inherited from \Illuminate\Database\Schema\Builder
  11435. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11436. $instance->dropIfExists($table);
  11437. }
  11438. /**
  11439. * Drop all types from the database.
  11440. *
  11441. * @return void
  11442. * @throws \LogicException
  11443. * @static
  11444. */
  11445. public static function dropAllTypes()
  11446. {
  11447. //Method inherited from \Illuminate\Database\Schema\Builder
  11448. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11449. $instance->dropAllTypes();
  11450. }
  11451. /**
  11452. * Rename a table on the schema.
  11453. *
  11454. * @param string $from
  11455. * @param string $to
  11456. * @return void
  11457. * @static
  11458. */
  11459. public static function rename($from, $to)
  11460. {
  11461. //Method inherited from \Illuminate\Database\Schema\Builder
  11462. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11463. $instance->rename($from, $to);
  11464. }
  11465. /**
  11466. * Enable foreign key constraints.
  11467. *
  11468. * @return bool
  11469. * @static
  11470. */
  11471. public static function enableForeignKeyConstraints()
  11472. {
  11473. //Method inherited from \Illuminate\Database\Schema\Builder
  11474. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11475. return $instance->enableForeignKeyConstraints();
  11476. }
  11477. /**
  11478. * Disable foreign key constraints.
  11479. *
  11480. * @return bool
  11481. * @static
  11482. */
  11483. public static function disableForeignKeyConstraints()
  11484. {
  11485. //Method inherited from \Illuminate\Database\Schema\Builder
  11486. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11487. return $instance->disableForeignKeyConstraints();
  11488. }
  11489. /**
  11490. * Register a custom Doctrine mapping type.
  11491. *
  11492. * @param string $class
  11493. * @param string $name
  11494. * @param string $type
  11495. * @return void
  11496. * @throws \Doctrine\DBAL\DBALException
  11497. * @throws \RuntimeException
  11498. * @static
  11499. */
  11500. public static function registerCustomDoctrineType($class, $name, $type)
  11501. {
  11502. //Method inherited from \Illuminate\Database\Schema\Builder
  11503. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11504. $instance->registerCustomDoctrineType($class, $name, $type);
  11505. }
  11506. /**
  11507. * Get the database connection instance.
  11508. *
  11509. * @return \Illuminate\Database\Connection
  11510. * @static
  11511. */
  11512. public static function getConnection()
  11513. {
  11514. //Method inherited from \Illuminate\Database\Schema\Builder
  11515. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11516. return $instance->getConnection();
  11517. }
  11518. /**
  11519. * Set the database connection instance.
  11520. *
  11521. * @param \Illuminate\Database\Connection $connection
  11522. * @return \Illuminate\Database\Schema\MySqlBuilder
  11523. * @static
  11524. */
  11525. public static function setConnection($connection)
  11526. {
  11527. //Method inherited from \Illuminate\Database\Schema\Builder
  11528. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11529. return $instance->setConnection($connection);
  11530. }
  11531. /**
  11532. * Set the Schema Blueprint resolver callback.
  11533. *
  11534. * @param \Closure $resolver
  11535. * @return void
  11536. * @static
  11537. */
  11538. public static function blueprintResolver($resolver)
  11539. {
  11540. //Method inherited from \Illuminate\Database\Schema\Builder
  11541. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11542. $instance->blueprintResolver($resolver);
  11543. }
  11544. }
  11545. /**
  11546. *
  11547. *
  11548. * @see \Illuminate\Session\SessionManager
  11549. * @see \Illuminate\Session\Store
  11550. */
  11551. class Session {
  11552. /**
  11553. * Determine if requests for the same session should wait for each to finish before executing.
  11554. *
  11555. * @return bool
  11556. * @static
  11557. */
  11558. public static function shouldBlock()
  11559. {
  11560. /** @var \Illuminate\Session\SessionManager $instance */
  11561. return $instance->shouldBlock();
  11562. }
  11563. /**
  11564. * Get the name of the cache store / driver that should be used to acquire session locks.
  11565. *
  11566. * @return string|null
  11567. * @static
  11568. */
  11569. public static function blockDriver()
  11570. {
  11571. /** @var \Illuminate\Session\SessionManager $instance */
  11572. return $instance->blockDriver();
  11573. }
  11574. /**
  11575. * Get the session configuration.
  11576. *
  11577. * @return array
  11578. * @static
  11579. */
  11580. public static function getSessionConfig()
  11581. {
  11582. /** @var \Illuminate\Session\SessionManager $instance */
  11583. return $instance->getSessionConfig();
  11584. }
  11585. /**
  11586. * Get the default session driver name.
  11587. *
  11588. * @return string
  11589. * @static
  11590. */
  11591. public static function getDefaultDriver()
  11592. {
  11593. /** @var \Illuminate\Session\SessionManager $instance */
  11594. return $instance->getDefaultDriver();
  11595. }
  11596. /**
  11597. * Set the default session driver name.
  11598. *
  11599. * @param string $name
  11600. * @return void
  11601. * @static
  11602. */
  11603. public static function setDefaultDriver($name)
  11604. {
  11605. /** @var \Illuminate\Session\SessionManager $instance */
  11606. $instance->setDefaultDriver($name);
  11607. }
  11608. /**
  11609. * Get a driver instance.
  11610. *
  11611. * @param string|null $driver
  11612. * @return mixed
  11613. * @throws \InvalidArgumentException
  11614. * @static
  11615. */
  11616. public static function driver($driver = null)
  11617. {
  11618. //Method inherited from \Illuminate\Support\Manager
  11619. /** @var \Illuminate\Session\SessionManager $instance */
  11620. return $instance->driver($driver);
  11621. }
  11622. /**
  11623. * Register a custom driver creator Closure.
  11624. *
  11625. * @param string $driver
  11626. * @param \Closure $callback
  11627. * @return \Illuminate\Session\SessionManager
  11628. * @static
  11629. */
  11630. public static function extend($driver, $callback)
  11631. {
  11632. //Method inherited from \Illuminate\Support\Manager
  11633. /** @var \Illuminate\Session\SessionManager $instance */
  11634. return $instance->extend($driver, $callback);
  11635. }
  11636. /**
  11637. * Get all of the created "drivers".
  11638. *
  11639. * @return array
  11640. * @static
  11641. */
  11642. public static function getDrivers()
  11643. {
  11644. //Method inherited from \Illuminate\Support\Manager
  11645. /** @var \Illuminate\Session\SessionManager $instance */
  11646. return $instance->getDrivers();
  11647. }
  11648. /**
  11649. * Start the session, reading the data from a handler.
  11650. *
  11651. * @return bool
  11652. * @static
  11653. */
  11654. public static function start()
  11655. {
  11656. /** @var \Illuminate\Session\Store $instance */
  11657. return $instance->start();
  11658. }
  11659. /**
  11660. * Save the session data to storage.
  11661. *
  11662. * @return void
  11663. * @static
  11664. */
  11665. public static function save()
  11666. {
  11667. /** @var \Illuminate\Session\Store $instance */
  11668. $instance->save();
  11669. }
  11670. /**
  11671. * Age the flash data for the session.
  11672. *
  11673. * @return void
  11674. * @static
  11675. */
  11676. public static function ageFlashData()
  11677. {
  11678. /** @var \Illuminate\Session\Store $instance */
  11679. $instance->ageFlashData();
  11680. }
  11681. /**
  11682. * Get all of the session data.
  11683. *
  11684. * @return array
  11685. * @static
  11686. */
  11687. public static function all()
  11688. {
  11689. /** @var \Illuminate\Session\Store $instance */
  11690. return $instance->all();
  11691. }
  11692. /**
  11693. * Get a subset of the session data.
  11694. *
  11695. * @param array $keys
  11696. * @return array
  11697. * @static
  11698. */
  11699. public static function only($keys)
  11700. {
  11701. /** @var \Illuminate\Session\Store $instance */
  11702. return $instance->only($keys);
  11703. }
  11704. /**
  11705. * Checks if a key exists.
  11706. *
  11707. * @param string|array $key
  11708. * @return bool
  11709. * @static
  11710. */
  11711. public static function exists($key)
  11712. {
  11713. /** @var \Illuminate\Session\Store $instance */
  11714. return $instance->exists($key);
  11715. }
  11716. /**
  11717. * Checks if a key is present and not null.
  11718. *
  11719. * @param string|array $key
  11720. * @return bool
  11721. * @static
  11722. */
  11723. public static function has($key)
  11724. {
  11725. /** @var \Illuminate\Session\Store $instance */
  11726. return $instance->has($key);
  11727. }
  11728. /**
  11729. * Get an item from the session.
  11730. *
  11731. * @param string $key
  11732. * @param mixed $default
  11733. * @return mixed
  11734. * @static
  11735. */
  11736. public static function get($key, $default = null)
  11737. {
  11738. /** @var \Illuminate\Session\Store $instance */
  11739. return $instance->get($key, $default);
  11740. }
  11741. /**
  11742. * Get the value of a given key and then forget it.
  11743. *
  11744. * @param string $key
  11745. * @param string|null $default
  11746. * @return mixed
  11747. * @static
  11748. */
  11749. public static function pull($key, $default = null)
  11750. {
  11751. /** @var \Illuminate\Session\Store $instance */
  11752. return $instance->pull($key, $default);
  11753. }
  11754. /**
  11755. * Determine if the session contains old input.
  11756. *
  11757. * @param string|null $key
  11758. * @return bool
  11759. * @static
  11760. */
  11761. public static function hasOldInput($key = null)
  11762. {
  11763. /** @var \Illuminate\Session\Store $instance */
  11764. return $instance->hasOldInput($key);
  11765. }
  11766. /**
  11767. * Get the requested item from the flashed input array.
  11768. *
  11769. * @param string|null $key
  11770. * @param mixed $default
  11771. * @return mixed
  11772. * @static
  11773. */
  11774. public static function getOldInput($key = null, $default = null)
  11775. {
  11776. /** @var \Illuminate\Session\Store $instance */
  11777. return $instance->getOldInput($key, $default);
  11778. }
  11779. /**
  11780. * Replace the given session attributes entirely.
  11781. *
  11782. * @param array $attributes
  11783. * @return void
  11784. * @static
  11785. */
  11786. public static function replace($attributes)
  11787. {
  11788. /** @var \Illuminate\Session\Store $instance */
  11789. $instance->replace($attributes);
  11790. }
  11791. /**
  11792. * Put a key / value pair or array of key / value pairs in the session.
  11793. *
  11794. * @param string|array $key
  11795. * @param mixed $value
  11796. * @return void
  11797. * @static
  11798. */
  11799. public static function put($key, $value = null)
  11800. {
  11801. /** @var \Illuminate\Session\Store $instance */
  11802. $instance->put($key, $value);
  11803. }
  11804. /**
  11805. * Get an item from the session, or store the default value.
  11806. *
  11807. * @param string $key
  11808. * @param \Closure $callback
  11809. * @return mixed
  11810. * @static
  11811. */
  11812. public static function remember($key, $callback)
  11813. {
  11814. /** @var \Illuminate\Session\Store $instance */
  11815. return $instance->remember($key, $callback);
  11816. }
  11817. /**
  11818. * Push a value onto a session array.
  11819. *
  11820. * @param string $key
  11821. * @param mixed $value
  11822. * @return void
  11823. * @static
  11824. */
  11825. public static function push($key, $value)
  11826. {
  11827. /** @var \Illuminate\Session\Store $instance */
  11828. $instance->push($key, $value);
  11829. }
  11830. /**
  11831. * Increment the value of an item in the session.
  11832. *
  11833. * @param string $key
  11834. * @param int $amount
  11835. * @return mixed
  11836. * @static
  11837. */
  11838. public static function increment($key, $amount = 1)
  11839. {
  11840. /** @var \Illuminate\Session\Store $instance */
  11841. return $instance->increment($key, $amount);
  11842. }
  11843. /**
  11844. * Decrement the value of an item in the session.
  11845. *
  11846. * @param string $key
  11847. * @param int $amount
  11848. * @return int
  11849. * @static
  11850. */
  11851. public static function decrement($key, $amount = 1)
  11852. {
  11853. /** @var \Illuminate\Session\Store $instance */
  11854. return $instance->decrement($key, $amount);
  11855. }
  11856. /**
  11857. * Flash a key / value pair to the session.
  11858. *
  11859. * @param string $key
  11860. * @param mixed $value
  11861. * @return void
  11862. * @static
  11863. */
  11864. public static function flash($key, $value = true)
  11865. {
  11866. /** @var \Illuminate\Session\Store $instance */
  11867. $instance->flash($key, $value);
  11868. }
  11869. /**
  11870. * Flash a key / value pair to the session for immediate use.
  11871. *
  11872. * @param string $key
  11873. * @param mixed $value
  11874. * @return void
  11875. * @static
  11876. */
  11877. public static function now($key, $value)
  11878. {
  11879. /** @var \Illuminate\Session\Store $instance */
  11880. $instance->now($key, $value);
  11881. }
  11882. /**
  11883. * Reflash all of the session flash data.
  11884. *
  11885. * @return void
  11886. * @static
  11887. */
  11888. public static function reflash()
  11889. {
  11890. /** @var \Illuminate\Session\Store $instance */
  11891. $instance->reflash();
  11892. }
  11893. /**
  11894. * Reflash a subset of the current flash data.
  11895. *
  11896. * @param array|mixed $keys
  11897. * @return void
  11898. * @static
  11899. */
  11900. public static function keep($keys = null)
  11901. {
  11902. /** @var \Illuminate\Session\Store $instance */
  11903. $instance->keep($keys);
  11904. }
  11905. /**
  11906. * Flash an input array to the session.
  11907. *
  11908. * @param array $value
  11909. * @return void
  11910. * @static
  11911. */
  11912. public static function flashInput($value)
  11913. {
  11914. /** @var \Illuminate\Session\Store $instance */
  11915. $instance->flashInput($value);
  11916. }
  11917. /**
  11918. * Remove an item from the session, returning its value.
  11919. *
  11920. * @param string $key
  11921. * @return mixed
  11922. * @static
  11923. */
  11924. public static function remove($key)
  11925. {
  11926. /** @var \Illuminate\Session\Store $instance */
  11927. return $instance->remove($key);
  11928. }
  11929. /**
  11930. * Remove one or many items from the session.
  11931. *
  11932. * @param string|array $keys
  11933. * @return void
  11934. * @static
  11935. */
  11936. public static function forget($keys)
  11937. {
  11938. /** @var \Illuminate\Session\Store $instance */
  11939. $instance->forget($keys);
  11940. }
  11941. /**
  11942. * Remove all of the items from the session.
  11943. *
  11944. * @return void
  11945. * @static
  11946. */
  11947. public static function flush()
  11948. {
  11949. /** @var \Illuminate\Session\Store $instance */
  11950. $instance->flush();
  11951. }
  11952. /**
  11953. * Flush the session data and regenerate the ID.
  11954. *
  11955. * @return bool
  11956. * @static
  11957. */
  11958. public static function invalidate()
  11959. {
  11960. /** @var \Illuminate\Session\Store $instance */
  11961. return $instance->invalidate();
  11962. }
  11963. /**
  11964. * Generate a new session identifier.
  11965. *
  11966. * @param bool $destroy
  11967. * @return bool
  11968. * @static
  11969. */
  11970. public static function regenerate($destroy = false)
  11971. {
  11972. /** @var \Illuminate\Session\Store $instance */
  11973. return $instance->regenerate($destroy);
  11974. }
  11975. /**
  11976. * Generate a new session ID for the session.
  11977. *
  11978. * @param bool $destroy
  11979. * @return bool
  11980. * @static
  11981. */
  11982. public static function migrate($destroy = false)
  11983. {
  11984. /** @var \Illuminate\Session\Store $instance */
  11985. return $instance->migrate($destroy);
  11986. }
  11987. /**
  11988. * Determine if the session has been started.
  11989. *
  11990. * @return bool
  11991. * @static
  11992. */
  11993. public static function isStarted()
  11994. {
  11995. /** @var \Illuminate\Session\Store $instance */
  11996. return $instance->isStarted();
  11997. }
  11998. /**
  11999. * Get the name of the session.
  12000. *
  12001. * @return string
  12002. * @static
  12003. */
  12004. public static function getName()
  12005. {
  12006. /** @var \Illuminate\Session\Store $instance */
  12007. return $instance->getName();
  12008. }
  12009. /**
  12010. * Set the name of the session.
  12011. *
  12012. * @param string $name
  12013. * @return void
  12014. * @static
  12015. */
  12016. public static function setName($name)
  12017. {
  12018. /** @var \Illuminate\Session\Store $instance */
  12019. $instance->setName($name);
  12020. }
  12021. /**
  12022. * Get the current session ID.
  12023. *
  12024. * @return string
  12025. * @static
  12026. */
  12027. public static function getId()
  12028. {
  12029. /** @var \Illuminate\Session\Store $instance */
  12030. return $instance->getId();
  12031. }
  12032. /**
  12033. * Set the session ID.
  12034. *
  12035. * @param string $id
  12036. * @return void
  12037. * @static
  12038. */
  12039. public static function setId($id)
  12040. {
  12041. /** @var \Illuminate\Session\Store $instance */
  12042. $instance->setId($id);
  12043. }
  12044. /**
  12045. * Determine if this is a valid session ID.
  12046. *
  12047. * @param string $id
  12048. * @return bool
  12049. * @static
  12050. */
  12051. public static function isValidId($id)
  12052. {
  12053. /** @var \Illuminate\Session\Store $instance */
  12054. return $instance->isValidId($id);
  12055. }
  12056. /**
  12057. * Set the existence of the session on the handler if applicable.
  12058. *
  12059. * @param bool $value
  12060. * @return void
  12061. * @static
  12062. */
  12063. public static function setExists($value)
  12064. {
  12065. /** @var \Illuminate\Session\Store $instance */
  12066. $instance->setExists($value);
  12067. }
  12068. /**
  12069. * Get the CSRF token value.
  12070. *
  12071. * @return string
  12072. * @static
  12073. */
  12074. public static function token()
  12075. {
  12076. /** @var \Illuminate\Session\Store $instance */
  12077. return $instance->token();
  12078. }
  12079. /**
  12080. * Regenerate the CSRF token value.
  12081. *
  12082. * @return void
  12083. * @static
  12084. */
  12085. public static function regenerateToken()
  12086. {
  12087. /** @var \Illuminate\Session\Store $instance */
  12088. $instance->regenerateToken();
  12089. }
  12090. /**
  12091. * Get the previous URL from the session.
  12092. *
  12093. * @return string|null
  12094. * @static
  12095. */
  12096. public static function previousUrl()
  12097. {
  12098. /** @var \Illuminate\Session\Store $instance */
  12099. return $instance->previousUrl();
  12100. }
  12101. /**
  12102. * Set the "previous" URL in the session.
  12103. *
  12104. * @param string $url
  12105. * @return void
  12106. * @static
  12107. */
  12108. public static function setPreviousUrl($url)
  12109. {
  12110. /** @var \Illuminate\Session\Store $instance */
  12111. $instance->setPreviousUrl($url);
  12112. }
  12113. /**
  12114. * Get the underlying session handler implementation.
  12115. *
  12116. * @return \SessionHandlerInterface
  12117. * @static
  12118. */
  12119. public static function getHandler()
  12120. {
  12121. /** @var \Illuminate\Session\Store $instance */
  12122. return $instance->getHandler();
  12123. }
  12124. /**
  12125. * Determine if the session handler needs a request.
  12126. *
  12127. * @return bool
  12128. * @static
  12129. */
  12130. public static function handlerNeedsRequest()
  12131. {
  12132. /** @var \Illuminate\Session\Store $instance */
  12133. return $instance->handlerNeedsRequest();
  12134. }
  12135. /**
  12136. * Set the request on the handler instance.
  12137. *
  12138. * @param \Illuminate\Http\Request $request
  12139. * @return void
  12140. * @static
  12141. */
  12142. public static function setRequestOnHandler($request)
  12143. {
  12144. /** @var \Illuminate\Session\Store $instance */
  12145. $instance->setRequestOnHandler($request);
  12146. }
  12147. }
  12148. /**
  12149. *
  12150. *
  12151. * @see \Illuminate\Filesystem\FilesystemManager
  12152. */
  12153. class Storage {
  12154. /**
  12155. * Get a filesystem instance.
  12156. *
  12157. * @param string|null $name
  12158. * @return \Illuminate\Filesystem\FilesystemAdapter
  12159. * @static
  12160. */
  12161. public static function drive($name = null)
  12162. {
  12163. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12164. return $instance->drive($name);
  12165. }
  12166. /**
  12167. * Get a filesystem instance.
  12168. *
  12169. * @param string|null $name
  12170. * @return \Illuminate\Filesystem\FilesystemAdapter
  12171. * @static
  12172. */
  12173. public static function disk($name = null)
  12174. {
  12175. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12176. return $instance->disk($name);
  12177. }
  12178. /**
  12179. * Get a default cloud filesystem instance.
  12180. *
  12181. * @return \Illuminate\Filesystem\FilesystemAdapter
  12182. * @static
  12183. */
  12184. public static function cloud()
  12185. {
  12186. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12187. return $instance->cloud();
  12188. }
  12189. /**
  12190. * Create an instance of the local driver.
  12191. *
  12192. * @param array $config
  12193. * @return \Illuminate\Filesystem\FilesystemAdapter
  12194. * @static
  12195. */
  12196. public static function createLocalDriver($config)
  12197. {
  12198. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12199. return $instance->createLocalDriver($config);
  12200. }
  12201. /**
  12202. * Create an instance of the ftp driver.
  12203. *
  12204. * @param array $config
  12205. * @return \Illuminate\Filesystem\FilesystemAdapter
  12206. * @static
  12207. */
  12208. public static function createFtpDriver($config)
  12209. {
  12210. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12211. return $instance->createFtpDriver($config);
  12212. }
  12213. /**
  12214. * Create an instance of the sftp driver.
  12215. *
  12216. * @param array $config
  12217. * @return \Illuminate\Filesystem\FilesystemAdapter
  12218. * @static
  12219. */
  12220. public static function createSftpDriver($config)
  12221. {
  12222. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12223. return $instance->createSftpDriver($config);
  12224. }
  12225. /**
  12226. * Create an instance of the Amazon S3 driver.
  12227. *
  12228. * @param array $config
  12229. * @return \Illuminate\Contracts\Filesystem\Cloud
  12230. * @static
  12231. */
  12232. public static function createS3Driver($config)
  12233. {
  12234. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12235. return $instance->createS3Driver($config);
  12236. }
  12237. /**
  12238. * Set the given disk instance.
  12239. *
  12240. * @param string $name
  12241. * @param mixed $disk
  12242. * @return \Illuminate\Filesystem\FilesystemManager
  12243. * @static
  12244. */
  12245. public static function set($name, $disk)
  12246. {
  12247. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12248. return $instance->set($name, $disk);
  12249. }
  12250. /**
  12251. * Get the default driver name.
  12252. *
  12253. * @return string
  12254. * @static
  12255. */
  12256. public static function getDefaultDriver()
  12257. {
  12258. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12259. return $instance->getDefaultDriver();
  12260. }
  12261. /**
  12262. * Get the default cloud driver name.
  12263. *
  12264. * @return string
  12265. * @static
  12266. */
  12267. public static function getDefaultCloudDriver()
  12268. {
  12269. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12270. return $instance->getDefaultCloudDriver();
  12271. }
  12272. /**
  12273. * Unset the given disk instances.
  12274. *
  12275. * @param array|string $disk
  12276. * @return \Illuminate\Filesystem\FilesystemManager
  12277. * @static
  12278. */
  12279. public static function forgetDisk($disk)
  12280. {
  12281. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12282. return $instance->forgetDisk($disk);
  12283. }
  12284. /**
  12285. * Register a custom driver creator Closure.
  12286. *
  12287. * @param string $driver
  12288. * @param \Closure $callback
  12289. * @return \Illuminate\Filesystem\FilesystemManager
  12290. * @static
  12291. */
  12292. public static function extend($driver, $callback)
  12293. {
  12294. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12295. return $instance->extend($driver, $callback);
  12296. }
  12297. /**
  12298. * Assert that the given file exists.
  12299. *
  12300. * @param string|array $path
  12301. * @return \Illuminate\Filesystem\FilesystemAdapter
  12302. * @static
  12303. */
  12304. public static function assertExists($path)
  12305. {
  12306. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12307. return $instance->assertExists($path);
  12308. }
  12309. /**
  12310. * Assert that the given file does not exist.
  12311. *
  12312. * @param string|array $path
  12313. * @return \Illuminate\Filesystem\FilesystemAdapter
  12314. * @static
  12315. */
  12316. public static function assertMissing($path)
  12317. {
  12318. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12319. return $instance->assertMissing($path);
  12320. }
  12321. /**
  12322. * Determine if a file exists.
  12323. *
  12324. * @param string $path
  12325. * @return bool
  12326. * @static
  12327. */
  12328. public static function exists($path)
  12329. {
  12330. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12331. return $instance->exists($path);
  12332. }
  12333. /**
  12334. * Determine if a file or directory is missing.
  12335. *
  12336. * @param string $path
  12337. * @return bool
  12338. * @static
  12339. */
  12340. public static function missing($path)
  12341. {
  12342. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12343. return $instance->missing($path);
  12344. }
  12345. /**
  12346. * Get the full path for the file at the given "short" path.
  12347. *
  12348. * @param string $path
  12349. * @return string
  12350. * @static
  12351. */
  12352. public static function path($path)
  12353. {
  12354. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12355. return $instance->path($path);
  12356. }
  12357. /**
  12358. * Get the contents of a file.
  12359. *
  12360. * @param string $path
  12361. * @return string
  12362. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  12363. * @static
  12364. */
  12365. public static function get($path)
  12366. {
  12367. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12368. return $instance->get($path);
  12369. }
  12370. /**
  12371. * Create a streamed response for a given file.
  12372. *
  12373. * @param string $path
  12374. * @param string|null $name
  12375. * @param array|null $headers
  12376. * @param string|null $disposition
  12377. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12378. * @static
  12379. */
  12380. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  12381. {
  12382. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12383. return $instance->response($path, $name, $headers, $disposition);
  12384. }
  12385. /**
  12386. * Create a streamed download response for a given file.
  12387. *
  12388. * @param string $path
  12389. * @param string|null $name
  12390. * @param array|null $headers
  12391. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12392. * @static
  12393. */
  12394. public static function download($path, $name = null, $headers = [])
  12395. {
  12396. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12397. return $instance->download($path, $name, $headers);
  12398. }
  12399. /**
  12400. * Write the contents of a file.
  12401. *
  12402. * @param string $path
  12403. * @param string|resource $contents
  12404. * @param mixed $options
  12405. * @return bool
  12406. * @static
  12407. */
  12408. public static function put($path, $contents, $options = [])
  12409. {
  12410. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12411. return $instance->put($path, $contents, $options);
  12412. }
  12413. /**
  12414. * Store the uploaded file on the disk.
  12415. *
  12416. * @param string $path
  12417. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  12418. * @param array $options
  12419. * @return string|false
  12420. * @static
  12421. */
  12422. public static function putFile($path, $file, $options = [])
  12423. {
  12424. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12425. return $instance->putFile($path, $file, $options);
  12426. }
  12427. /**
  12428. * Store the uploaded file on the disk with a given name.
  12429. *
  12430. * @param string $path
  12431. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  12432. * @param string $name
  12433. * @param array $options
  12434. * @return string|false
  12435. * @static
  12436. */
  12437. public static function putFileAs($path, $file, $name, $options = [])
  12438. {
  12439. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12440. return $instance->putFileAs($path, $file, $name, $options);
  12441. }
  12442. /**
  12443. * Get the visibility for the given path.
  12444. *
  12445. * @param string $path
  12446. * @return string
  12447. * @static
  12448. */
  12449. public static function getVisibility($path)
  12450. {
  12451. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12452. return $instance->getVisibility($path);
  12453. }
  12454. /**
  12455. * Set the visibility for the given path.
  12456. *
  12457. * @param string $path
  12458. * @param string $visibility
  12459. * @return bool
  12460. * @static
  12461. */
  12462. public static function setVisibility($path, $visibility)
  12463. {
  12464. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12465. return $instance->setVisibility($path, $visibility);
  12466. }
  12467. /**
  12468. * Prepend to a file.
  12469. *
  12470. * @param string $path
  12471. * @param string $data
  12472. * @param string $separator
  12473. * @return bool
  12474. * @static
  12475. */
  12476. public static function prepend($path, $data, $separator = '
  12477. ')
  12478. {
  12479. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12480. return $instance->prepend($path, $data, $separator);
  12481. }
  12482. /**
  12483. * Append to a file.
  12484. *
  12485. * @param string $path
  12486. * @param string $data
  12487. * @param string $separator
  12488. * @return bool
  12489. * @static
  12490. */
  12491. public static function append($path, $data, $separator = '
  12492. ')
  12493. {
  12494. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12495. return $instance->append($path, $data, $separator);
  12496. }
  12497. /**
  12498. * Delete the file at a given path.
  12499. *
  12500. * @param string|array $paths
  12501. * @return bool
  12502. * @static
  12503. */
  12504. public static function delete($paths)
  12505. {
  12506. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12507. return $instance->delete($paths);
  12508. }
  12509. /**
  12510. * Copy a file to a new location.
  12511. *
  12512. * @param string $from
  12513. * @param string $to
  12514. * @return bool
  12515. * @static
  12516. */
  12517. public static function copy($from, $to)
  12518. {
  12519. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12520. return $instance->copy($from, $to);
  12521. }
  12522. /**
  12523. * Move a file to a new location.
  12524. *
  12525. * @param string $from
  12526. * @param string $to
  12527. * @return bool
  12528. * @static
  12529. */
  12530. public static function move($from, $to)
  12531. {
  12532. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12533. return $instance->move($from, $to);
  12534. }
  12535. /**
  12536. * Get the file size of a given file.
  12537. *
  12538. * @param string $path
  12539. * @return int
  12540. * @static
  12541. */
  12542. public static function size($path)
  12543. {
  12544. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12545. return $instance->size($path);
  12546. }
  12547. /**
  12548. * Get the mime-type of a given file.
  12549. *
  12550. * @param string $path
  12551. * @return string|false
  12552. * @static
  12553. */
  12554. public static function mimeType($path)
  12555. {
  12556. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12557. return $instance->mimeType($path);
  12558. }
  12559. /**
  12560. * Get the file's last modification time.
  12561. *
  12562. * @param string $path
  12563. * @return int
  12564. * @static
  12565. */
  12566. public static function lastModified($path)
  12567. {
  12568. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12569. return $instance->lastModified($path);
  12570. }
  12571. /**
  12572. * Get the URL for the file at the given path.
  12573. *
  12574. * @param string $path
  12575. * @return string
  12576. * @throws \RuntimeException
  12577. * @static
  12578. */
  12579. public static function url($path)
  12580. {
  12581. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12582. return $instance->url($path);
  12583. }
  12584. /**
  12585. * Get a resource to read the file.
  12586. *
  12587. * @param string $path
  12588. * @return resource|null The path resource or null on failure.
  12589. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  12590. * @static
  12591. */
  12592. public static function readStream($path)
  12593. {
  12594. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12595. return $instance->readStream($path);
  12596. }
  12597. /**
  12598. * Write a new file using a stream.
  12599. *
  12600. * @param string $path
  12601. * @param resource $resource
  12602. * @param array $options
  12603. * @return bool
  12604. * @throws \InvalidArgumentException If $resource is not a file handle.
  12605. * @throws \Illuminate\Contracts\Filesystem\FileExistsException
  12606. * @static
  12607. */
  12608. public static function writeStream($path, $resource, $options = [])
  12609. {
  12610. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12611. return $instance->writeStream($path, $resource, $options);
  12612. }
  12613. /**
  12614. * Get a temporary URL for the file at the given path.
  12615. *
  12616. * @param string $path
  12617. * @param \DateTimeInterface $expiration
  12618. * @param array $options
  12619. * @return string
  12620. * @throws \RuntimeException
  12621. * @static
  12622. */
  12623. public static function temporaryUrl($path, $expiration, $options = [])
  12624. {
  12625. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12626. return $instance->temporaryUrl($path, $expiration, $options);
  12627. }
  12628. /**
  12629. * Get a temporary URL for the file at the given path.
  12630. *
  12631. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  12632. * @param string $path
  12633. * @param \DateTimeInterface $expiration
  12634. * @param array $options
  12635. * @return string
  12636. * @static
  12637. */
  12638. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  12639. {
  12640. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12641. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  12642. }
  12643. /**
  12644. * Get an array of all files in a directory.
  12645. *
  12646. * @param string|null $directory
  12647. * @param bool $recursive
  12648. * @return array
  12649. * @static
  12650. */
  12651. public static function files($directory = null, $recursive = false)
  12652. {
  12653. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12654. return $instance->files($directory, $recursive);
  12655. }
  12656. /**
  12657. * Get all of the files from the given directory (recursive).
  12658. *
  12659. * @param string|null $directory
  12660. * @return array
  12661. * @static
  12662. */
  12663. public static function allFiles($directory = null)
  12664. {
  12665. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12666. return $instance->allFiles($directory);
  12667. }
  12668. /**
  12669. * Get all of the directories within a given directory.
  12670. *
  12671. * @param string|null $directory
  12672. * @param bool $recursive
  12673. * @return array
  12674. * @static
  12675. */
  12676. public static function directories($directory = null, $recursive = false)
  12677. {
  12678. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12679. return $instance->directories($directory, $recursive);
  12680. }
  12681. /**
  12682. * Get all (recursive) of the directories within a given directory.
  12683. *
  12684. * @param string|null $directory
  12685. * @return array
  12686. * @static
  12687. */
  12688. public static function allDirectories($directory = null)
  12689. {
  12690. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12691. return $instance->allDirectories($directory);
  12692. }
  12693. /**
  12694. * Create a directory.
  12695. *
  12696. * @param string $path
  12697. * @return bool
  12698. * @static
  12699. */
  12700. public static function makeDirectory($path)
  12701. {
  12702. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12703. return $instance->makeDirectory($path);
  12704. }
  12705. /**
  12706. * Recursively delete a directory.
  12707. *
  12708. * @param string $directory
  12709. * @return bool
  12710. * @static
  12711. */
  12712. public static function deleteDirectory($directory)
  12713. {
  12714. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12715. return $instance->deleteDirectory($directory);
  12716. }
  12717. /**
  12718. * Flush the Flysystem cache.
  12719. *
  12720. * @return void
  12721. * @static
  12722. */
  12723. public static function flushCache()
  12724. {
  12725. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12726. $instance->flushCache();
  12727. }
  12728. /**
  12729. * Get the Flysystem driver.
  12730. *
  12731. * @return \League\Flysystem\FilesystemInterface
  12732. * @static
  12733. */
  12734. public static function getDriver()
  12735. {
  12736. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12737. return $instance->getDriver();
  12738. }
  12739. }
  12740. /**
  12741. *
  12742. *
  12743. * @see \Illuminate\Routing\UrlGenerator
  12744. */
  12745. class URL {
  12746. /**
  12747. * Get the full URL for the current request.
  12748. *
  12749. * @return string
  12750. * @static
  12751. */
  12752. public static function full()
  12753. {
  12754. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12755. return $instance->full();
  12756. }
  12757. /**
  12758. * Get the current URL for the request.
  12759. *
  12760. * @return string
  12761. * @static
  12762. */
  12763. public static function current()
  12764. {
  12765. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12766. return $instance->current();
  12767. }
  12768. /**
  12769. * Get the URL for the previous request.
  12770. *
  12771. * @param mixed $fallback
  12772. * @return string
  12773. * @static
  12774. */
  12775. public static function previous($fallback = false)
  12776. {
  12777. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12778. return $instance->previous($fallback);
  12779. }
  12780. /**
  12781. * Generate an absolute URL to the given path.
  12782. *
  12783. * @param string $path
  12784. * @param mixed $extra
  12785. * @param bool|null $secure
  12786. * @return string
  12787. * @static
  12788. */
  12789. public static function to($path, $extra = [], $secure = null)
  12790. {
  12791. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12792. return $instance->to($path, $extra, $secure);
  12793. }
  12794. /**
  12795. * Generate a secure, absolute URL to the given path.
  12796. *
  12797. * @param string $path
  12798. * @param array $parameters
  12799. * @return string
  12800. * @static
  12801. */
  12802. public static function secure($path, $parameters = [])
  12803. {
  12804. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12805. return $instance->secure($path, $parameters);
  12806. }
  12807. /**
  12808. * Generate the URL to an application asset.
  12809. *
  12810. * @param string $path
  12811. * @param bool|null $secure
  12812. * @return string
  12813. * @static
  12814. */
  12815. public static function asset($path, $secure = null)
  12816. {
  12817. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12818. return $instance->asset($path, $secure);
  12819. }
  12820. /**
  12821. * Generate the URL to a secure asset.
  12822. *
  12823. * @param string $path
  12824. * @return string
  12825. * @static
  12826. */
  12827. public static function secureAsset($path)
  12828. {
  12829. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12830. return $instance->secureAsset($path);
  12831. }
  12832. /**
  12833. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  12834. *
  12835. * @param string $root
  12836. * @param string $path
  12837. * @param bool|null $secure
  12838. * @return string
  12839. * @static
  12840. */
  12841. public static function assetFrom($root, $path, $secure = null)
  12842. {
  12843. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12844. return $instance->assetFrom($root, $path, $secure);
  12845. }
  12846. /**
  12847. * Get the default scheme for a raw URL.
  12848. *
  12849. * @param bool|null $secure
  12850. * @return string
  12851. * @static
  12852. */
  12853. public static function formatScheme($secure = null)
  12854. {
  12855. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12856. return $instance->formatScheme($secure);
  12857. }
  12858. /**
  12859. * Create a signed route URL for a named route.
  12860. *
  12861. * @param string $name
  12862. * @param array $parameters
  12863. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  12864. * @param bool $absolute
  12865. * @return string
  12866. * @throws \InvalidArgumentException
  12867. * @static
  12868. */
  12869. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  12870. {
  12871. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12872. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  12873. }
  12874. /**
  12875. * Create a temporary signed route URL for a named route.
  12876. *
  12877. * @param string $name
  12878. * @param \DateTimeInterface|\DateInterval|int $expiration
  12879. * @param array $parameters
  12880. * @param bool $absolute
  12881. * @return string
  12882. * @static
  12883. */
  12884. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  12885. {
  12886. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12887. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  12888. }
  12889. /**
  12890. * Determine if the given request has a valid signature.
  12891. *
  12892. * @param \Illuminate\Http\Request $request
  12893. * @param bool $absolute
  12894. * @return bool
  12895. * @static
  12896. */
  12897. public static function hasValidSignature($request, $absolute = true)
  12898. {
  12899. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12900. return $instance->hasValidSignature($request, $absolute);
  12901. }
  12902. /**
  12903. * Determine if the signature from the given request matches the URL.
  12904. *
  12905. * @param \Illuminate\Http\Request $request
  12906. * @param bool $absolute
  12907. * @return bool
  12908. * @static
  12909. */
  12910. public static function hasCorrectSignature($request, $absolute = true)
  12911. {
  12912. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12913. return $instance->hasCorrectSignature($request, $absolute);
  12914. }
  12915. /**
  12916. * Determine if the expires timestamp from the given request is not from the past.
  12917. *
  12918. * @param \Illuminate\Http\Request $request
  12919. * @return bool
  12920. * @static
  12921. */
  12922. public static function signatureHasNotExpired($request)
  12923. {
  12924. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12925. return $instance->signatureHasNotExpired($request);
  12926. }
  12927. /**
  12928. * Get the URL to a named route.
  12929. *
  12930. * @param string $name
  12931. * @param mixed $parameters
  12932. * @param bool $absolute
  12933. * @return string
  12934. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  12935. * @static
  12936. */
  12937. public static function route($name, $parameters = [], $absolute = true)
  12938. {
  12939. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12940. return $instance->route($name, $parameters, $absolute);
  12941. }
  12942. /**
  12943. * Get the URL for a given route instance.
  12944. *
  12945. * @param \Illuminate\Routing\Route $route
  12946. * @param mixed $parameters
  12947. * @param bool $absolute
  12948. * @return string
  12949. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  12950. * @static
  12951. */
  12952. public static function toRoute($route, $parameters, $absolute)
  12953. {
  12954. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12955. return $instance->toRoute($route, $parameters, $absolute);
  12956. }
  12957. /**
  12958. * Get the URL to a controller action.
  12959. *
  12960. * @param string|array $action
  12961. * @param mixed $parameters
  12962. * @param bool $absolute
  12963. * @return string
  12964. * @throws \InvalidArgumentException
  12965. * @static
  12966. */
  12967. public static function action($action, $parameters = [], $absolute = true)
  12968. {
  12969. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12970. return $instance->action($action, $parameters, $absolute);
  12971. }
  12972. /**
  12973. * Format the array of URL parameters.
  12974. *
  12975. * @param mixed|array $parameters
  12976. * @return array
  12977. * @static
  12978. */
  12979. public static function formatParameters($parameters)
  12980. {
  12981. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12982. return $instance->formatParameters($parameters);
  12983. }
  12984. /**
  12985. * Get the base URL for the request.
  12986. *
  12987. * @param string $scheme
  12988. * @param string|null $root
  12989. * @return string
  12990. * @static
  12991. */
  12992. public static function formatRoot($scheme, $root = null)
  12993. {
  12994. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12995. return $instance->formatRoot($scheme, $root);
  12996. }
  12997. /**
  12998. * Format the given URL segments into a single URL.
  12999. *
  13000. * @param string $root
  13001. * @param string $path
  13002. * @param \Illuminate\Routing\Route|null $route
  13003. * @return string
  13004. * @static
  13005. */
  13006. public static function format($root, $path, $route = null)
  13007. {
  13008. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13009. return $instance->format($root, $path, $route);
  13010. }
  13011. /**
  13012. * Determine if the given path is a valid URL.
  13013. *
  13014. * @param string $path
  13015. * @return bool
  13016. * @static
  13017. */
  13018. public static function isValidUrl($path)
  13019. {
  13020. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13021. return $instance->isValidUrl($path);
  13022. }
  13023. /**
  13024. * Set the default named parameters used by the URL generator.
  13025. *
  13026. * @param array $defaults
  13027. * @return void
  13028. * @static
  13029. */
  13030. public static function defaults($defaults)
  13031. {
  13032. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13033. $instance->defaults($defaults);
  13034. }
  13035. /**
  13036. * Get the default named parameters used by the URL generator.
  13037. *
  13038. * @return array
  13039. * @static
  13040. */
  13041. public static function getDefaultParameters()
  13042. {
  13043. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13044. return $instance->getDefaultParameters();
  13045. }
  13046. /**
  13047. * Force the scheme for URLs.
  13048. *
  13049. * @param string $scheme
  13050. * @return void
  13051. * @static
  13052. */
  13053. public static function forceScheme($scheme)
  13054. {
  13055. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13056. $instance->forceScheme($scheme);
  13057. }
  13058. /**
  13059. * Set the forced root URL.
  13060. *
  13061. * @param string $root
  13062. * @return void
  13063. * @static
  13064. */
  13065. public static function forceRootUrl($root)
  13066. {
  13067. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13068. $instance->forceRootUrl($root);
  13069. }
  13070. /**
  13071. * Set a callback to be used to format the host of generated URLs.
  13072. *
  13073. * @param \Closure $callback
  13074. * @return \Illuminate\Routing\UrlGenerator
  13075. * @static
  13076. */
  13077. public static function formatHostUsing($callback)
  13078. {
  13079. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13080. return $instance->formatHostUsing($callback);
  13081. }
  13082. /**
  13083. * Set a callback to be used to format the path of generated URLs.
  13084. *
  13085. * @param \Closure $callback
  13086. * @return \Illuminate\Routing\UrlGenerator
  13087. * @static
  13088. */
  13089. public static function formatPathUsing($callback)
  13090. {
  13091. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13092. return $instance->formatPathUsing($callback);
  13093. }
  13094. /**
  13095. * Get the path formatter being used by the URL generator.
  13096. *
  13097. * @return \Closure
  13098. * @static
  13099. */
  13100. public static function pathFormatter()
  13101. {
  13102. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13103. return $instance->pathFormatter();
  13104. }
  13105. /**
  13106. * Get the request instance.
  13107. *
  13108. * @return \Illuminate\Http\Request
  13109. * @static
  13110. */
  13111. public static function getRequest()
  13112. {
  13113. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13114. return $instance->getRequest();
  13115. }
  13116. /**
  13117. * Set the current request instance.
  13118. *
  13119. * @param \Illuminate\Http\Request $request
  13120. * @return void
  13121. * @static
  13122. */
  13123. public static function setRequest($request)
  13124. {
  13125. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13126. $instance->setRequest($request);
  13127. }
  13128. /**
  13129. * Set the route collection.
  13130. *
  13131. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  13132. * @return \Illuminate\Routing\UrlGenerator
  13133. * @static
  13134. */
  13135. public static function setRoutes($routes)
  13136. {
  13137. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13138. return $instance->setRoutes($routes);
  13139. }
  13140. /**
  13141. * Set the session resolver for the generator.
  13142. *
  13143. * @param callable $sessionResolver
  13144. * @return \Illuminate\Routing\UrlGenerator
  13145. * @static
  13146. */
  13147. public static function setSessionResolver($sessionResolver)
  13148. {
  13149. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13150. return $instance->setSessionResolver($sessionResolver);
  13151. }
  13152. /**
  13153. * Set the encryption key resolver.
  13154. *
  13155. * @param callable $keyResolver
  13156. * @return \Illuminate\Routing\UrlGenerator
  13157. * @static
  13158. */
  13159. public static function setKeyResolver($keyResolver)
  13160. {
  13161. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13162. return $instance->setKeyResolver($keyResolver);
  13163. }
  13164. /**
  13165. * Set the root controller namespace.
  13166. *
  13167. * @param string $rootNamespace
  13168. * @return \Illuminate\Routing\UrlGenerator
  13169. * @static
  13170. */
  13171. public static function setRootControllerNamespace($rootNamespace)
  13172. {
  13173. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13174. return $instance->setRootControllerNamespace($rootNamespace);
  13175. }
  13176. /**
  13177. * Register a custom macro.
  13178. *
  13179. * @param string $name
  13180. * @param object|callable $macro
  13181. * @return void
  13182. * @static
  13183. */
  13184. public static function macro($name, $macro)
  13185. {
  13186. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  13187. }
  13188. /**
  13189. * Mix another object into the class.
  13190. *
  13191. * @param object $mixin
  13192. * @param bool $replace
  13193. * @return void
  13194. * @throws \ReflectionException
  13195. * @static
  13196. */
  13197. public static function mixin($mixin, $replace = true)
  13198. {
  13199. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  13200. }
  13201. /**
  13202. * Checks if macro is registered.
  13203. *
  13204. * @param string $name
  13205. * @return bool
  13206. * @static
  13207. */
  13208. public static function hasMacro($name)
  13209. {
  13210. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  13211. }
  13212. }
  13213. /**
  13214. *
  13215. *
  13216. * @see \Illuminate\Validation\Factory
  13217. */
  13218. class Validator {
  13219. /**
  13220. * Create a new Validator instance.
  13221. *
  13222. * @param array $data
  13223. * @param array $rules
  13224. * @param array $messages
  13225. * @param array $customAttributes
  13226. * @return \Illuminate\Validation\Validator
  13227. * @static
  13228. */
  13229. public static function make($data, $rules, $messages = [], $customAttributes = [])
  13230. {
  13231. /** @var \Illuminate\Validation\Factory $instance */
  13232. return $instance->make($data, $rules, $messages, $customAttributes);
  13233. }
  13234. /**
  13235. * Validate the given data against the provided rules.
  13236. *
  13237. * @param array $data
  13238. * @param array $rules
  13239. * @param array $messages
  13240. * @param array $customAttributes
  13241. * @return array
  13242. * @throws \Illuminate\Validation\ValidationException
  13243. * @static
  13244. */
  13245. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  13246. {
  13247. /** @var \Illuminate\Validation\Factory $instance */
  13248. return $instance->validate($data, $rules, $messages, $customAttributes);
  13249. }
  13250. /**
  13251. * Register a custom validator extension.
  13252. *
  13253. * @param string $rule
  13254. * @param \Closure|string $extension
  13255. * @param string|null $message
  13256. * @return void
  13257. * @static
  13258. */
  13259. public static function extend($rule, $extension, $message = null)
  13260. {
  13261. /** @var \Illuminate\Validation\Factory $instance */
  13262. $instance->extend($rule, $extension, $message);
  13263. }
  13264. /**
  13265. * Register a custom implicit validator extension.
  13266. *
  13267. * @param string $rule
  13268. * @param \Closure|string $extension
  13269. * @param string|null $message
  13270. * @return void
  13271. * @static
  13272. */
  13273. public static function extendImplicit($rule, $extension, $message = null)
  13274. {
  13275. /** @var \Illuminate\Validation\Factory $instance */
  13276. $instance->extendImplicit($rule, $extension, $message);
  13277. }
  13278. /**
  13279. * Register a custom dependent validator extension.
  13280. *
  13281. * @param string $rule
  13282. * @param \Closure|string $extension
  13283. * @param string|null $message
  13284. * @return void
  13285. * @static
  13286. */
  13287. public static function extendDependent($rule, $extension, $message = null)
  13288. {
  13289. /** @var \Illuminate\Validation\Factory $instance */
  13290. $instance->extendDependent($rule, $extension, $message);
  13291. }
  13292. /**
  13293. * Register a custom validator message replacer.
  13294. *
  13295. * @param string $rule
  13296. * @param \Closure|string $replacer
  13297. * @return void
  13298. * @static
  13299. */
  13300. public static function replacer($rule, $replacer)
  13301. {
  13302. /** @var \Illuminate\Validation\Factory $instance */
  13303. $instance->replacer($rule, $replacer);
  13304. }
  13305. /**
  13306. * Set the Validator instance resolver.
  13307. *
  13308. * @param \Closure $resolver
  13309. * @return void
  13310. * @static
  13311. */
  13312. public static function resolver($resolver)
  13313. {
  13314. /** @var \Illuminate\Validation\Factory $instance */
  13315. $instance->resolver($resolver);
  13316. }
  13317. /**
  13318. * Get the Translator implementation.
  13319. *
  13320. * @return \Illuminate\Contracts\Translation\Translator
  13321. * @static
  13322. */
  13323. public static function getTranslator()
  13324. {
  13325. /** @var \Illuminate\Validation\Factory $instance */
  13326. return $instance->getTranslator();
  13327. }
  13328. /**
  13329. * Get the Presence Verifier implementation.
  13330. *
  13331. * @return \Illuminate\Validation\PresenceVerifierInterface
  13332. * @static
  13333. */
  13334. public static function getPresenceVerifier()
  13335. {
  13336. /** @var \Illuminate\Validation\Factory $instance */
  13337. return $instance->getPresenceVerifier();
  13338. }
  13339. /**
  13340. * Set the Presence Verifier implementation.
  13341. *
  13342. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  13343. * @return void
  13344. * @static
  13345. */
  13346. public static function setPresenceVerifier($presenceVerifier)
  13347. {
  13348. /** @var \Illuminate\Validation\Factory $instance */
  13349. $instance->setPresenceVerifier($presenceVerifier);
  13350. }
  13351. }
  13352. /**
  13353. *
  13354. *
  13355. * @see \Illuminate\View\Factory
  13356. */
  13357. class View {
  13358. /**
  13359. * Get the evaluated view contents for the given view.
  13360. *
  13361. * @param string $path
  13362. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  13363. * @param array $mergeData
  13364. * @return \Illuminate\Contracts\View\View
  13365. * @static
  13366. */
  13367. public static function file($path, $data = [], $mergeData = [])
  13368. {
  13369. /** @var \Illuminate\View\Factory $instance */
  13370. return $instance->file($path, $data, $mergeData);
  13371. }
  13372. /**
  13373. * Get the evaluated view contents for the given view.
  13374. *
  13375. * @param string $view
  13376. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  13377. * @param array $mergeData
  13378. * @return \Illuminate\Contracts\View\View
  13379. * @static
  13380. */
  13381. public static function make($view, $data = [], $mergeData = [])
  13382. {
  13383. /** @var \Illuminate\View\Factory $instance */
  13384. return $instance->make($view, $data, $mergeData);
  13385. }
  13386. /**
  13387. * Get the first view that actually exists from the given list.
  13388. *
  13389. * @param array $views
  13390. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  13391. * @param array $mergeData
  13392. * @return \Illuminate\Contracts\View\View
  13393. * @throws \InvalidArgumentException
  13394. * @static
  13395. */
  13396. public static function first($views, $data = [], $mergeData = [])
  13397. {
  13398. /** @var \Illuminate\View\Factory $instance */
  13399. return $instance->first($views, $data, $mergeData);
  13400. }
  13401. /**
  13402. * Get the rendered content of the view based on a given condition.
  13403. *
  13404. * @param bool $condition
  13405. * @param string $view
  13406. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  13407. * @param array $mergeData
  13408. * @return string
  13409. * @static
  13410. */
  13411. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  13412. {
  13413. /** @var \Illuminate\View\Factory $instance */
  13414. return $instance->renderWhen($condition, $view, $data, $mergeData);
  13415. }
  13416. /**
  13417. * Get the rendered contents of a partial from a loop.
  13418. *
  13419. * @param string $view
  13420. * @param array $data
  13421. * @param string $iterator
  13422. * @param string $empty
  13423. * @return string
  13424. * @static
  13425. */
  13426. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  13427. {
  13428. /** @var \Illuminate\View\Factory $instance */
  13429. return $instance->renderEach($view, $data, $iterator, $empty);
  13430. }
  13431. /**
  13432. * Determine if a given view exists.
  13433. *
  13434. * @param string $view
  13435. * @return bool
  13436. * @static
  13437. */
  13438. public static function exists($view)
  13439. {
  13440. /** @var \Illuminate\View\Factory $instance */
  13441. return $instance->exists($view);
  13442. }
  13443. /**
  13444. * Get the appropriate view engine for the given path.
  13445. *
  13446. * @param string $path
  13447. * @return \Illuminate\Contracts\View\Engine
  13448. * @throws \InvalidArgumentException
  13449. * @static
  13450. */
  13451. public static function getEngineFromPath($path)
  13452. {
  13453. /** @var \Illuminate\View\Factory $instance */
  13454. return $instance->getEngineFromPath($path);
  13455. }
  13456. /**
  13457. * Add a piece of shared data to the environment.
  13458. *
  13459. * @param array|string $key
  13460. * @param mixed|null $value
  13461. * @return mixed
  13462. * @static
  13463. */
  13464. public static function share($key, $value = null)
  13465. {
  13466. /** @var \Illuminate\View\Factory $instance */
  13467. return $instance->share($key, $value);
  13468. }
  13469. /**
  13470. * Increment the rendering counter.
  13471. *
  13472. * @return void
  13473. * @static
  13474. */
  13475. public static function incrementRender()
  13476. {
  13477. /** @var \Illuminate\View\Factory $instance */
  13478. $instance->incrementRender();
  13479. }
  13480. /**
  13481. * Decrement the rendering counter.
  13482. *
  13483. * @return void
  13484. * @static
  13485. */
  13486. public static function decrementRender()
  13487. {
  13488. /** @var \Illuminate\View\Factory $instance */
  13489. $instance->decrementRender();
  13490. }
  13491. /**
  13492. * Check if there are no active render operations.
  13493. *
  13494. * @return bool
  13495. * @static
  13496. */
  13497. public static function doneRendering()
  13498. {
  13499. /** @var \Illuminate\View\Factory $instance */
  13500. return $instance->doneRendering();
  13501. }
  13502. /**
  13503. * Add a location to the array of view locations.
  13504. *
  13505. * @param string $location
  13506. * @return void
  13507. * @static
  13508. */
  13509. public static function addLocation($location)
  13510. {
  13511. /** @var \Illuminate\View\Factory $instance */
  13512. $instance->addLocation($location);
  13513. }
  13514. /**
  13515. * Add a new namespace to the loader.
  13516. *
  13517. * @param string $namespace
  13518. * @param string|array $hints
  13519. * @return \Illuminate\View\Factory
  13520. * @static
  13521. */
  13522. public static function addNamespace($namespace, $hints)
  13523. {
  13524. /** @var \Illuminate\View\Factory $instance */
  13525. return $instance->addNamespace($namespace, $hints);
  13526. }
  13527. /**
  13528. * Prepend a new namespace to the loader.
  13529. *
  13530. * @param string $namespace
  13531. * @param string|array $hints
  13532. * @return \Illuminate\View\Factory
  13533. * @static
  13534. */
  13535. public static function prependNamespace($namespace, $hints)
  13536. {
  13537. /** @var \Illuminate\View\Factory $instance */
  13538. return $instance->prependNamespace($namespace, $hints);
  13539. }
  13540. /**
  13541. * Replace the namespace hints for the given namespace.
  13542. *
  13543. * @param string $namespace
  13544. * @param string|array $hints
  13545. * @return \Illuminate\View\Factory
  13546. * @static
  13547. */
  13548. public static function replaceNamespace($namespace, $hints)
  13549. {
  13550. /** @var \Illuminate\View\Factory $instance */
  13551. return $instance->replaceNamespace($namespace, $hints);
  13552. }
  13553. /**
  13554. * Register a valid view extension and its engine.
  13555. *
  13556. * @param string $extension
  13557. * @param string $engine
  13558. * @param \Closure|null $resolver
  13559. * @return void
  13560. * @static
  13561. */
  13562. public static function addExtension($extension, $engine, $resolver = null)
  13563. {
  13564. /** @var \Illuminate\View\Factory $instance */
  13565. $instance->addExtension($extension, $engine, $resolver);
  13566. }
  13567. /**
  13568. * Flush all of the factory state like sections and stacks.
  13569. *
  13570. * @return void
  13571. * @static
  13572. */
  13573. public static function flushState()
  13574. {
  13575. /** @var \Illuminate\View\Factory $instance */
  13576. $instance->flushState();
  13577. }
  13578. /**
  13579. * Flush all of the section contents if done rendering.
  13580. *
  13581. * @return void
  13582. * @static
  13583. */
  13584. public static function flushStateIfDoneRendering()
  13585. {
  13586. /** @var \Illuminate\View\Factory $instance */
  13587. $instance->flushStateIfDoneRendering();
  13588. }
  13589. /**
  13590. * Get the extension to engine bindings.
  13591. *
  13592. * @return array
  13593. * @static
  13594. */
  13595. public static function getExtensions()
  13596. {
  13597. /** @var \Illuminate\View\Factory $instance */
  13598. return $instance->getExtensions();
  13599. }
  13600. /**
  13601. * Get the engine resolver instance.
  13602. *
  13603. * @return \Illuminate\View\Engines\EngineResolver
  13604. * @static
  13605. */
  13606. public static function getEngineResolver()
  13607. {
  13608. /** @var \Illuminate\View\Factory $instance */
  13609. return $instance->getEngineResolver();
  13610. }
  13611. /**
  13612. * Get the view finder instance.
  13613. *
  13614. * @return \Illuminate\View\ViewFinderInterface
  13615. * @static
  13616. */
  13617. public static function getFinder()
  13618. {
  13619. /** @var \Illuminate\View\Factory $instance */
  13620. return $instance->getFinder();
  13621. }
  13622. /**
  13623. * Set the view finder instance.
  13624. *
  13625. * @param \Illuminate\View\ViewFinderInterface $finder
  13626. * @return void
  13627. * @static
  13628. */
  13629. public static function setFinder($finder)
  13630. {
  13631. /** @var \Illuminate\View\Factory $instance */
  13632. $instance->setFinder($finder);
  13633. }
  13634. /**
  13635. * Flush the cache of views located by the finder.
  13636. *
  13637. * @return void
  13638. * @static
  13639. */
  13640. public static function flushFinderCache()
  13641. {
  13642. /** @var \Illuminate\View\Factory $instance */
  13643. $instance->flushFinderCache();
  13644. }
  13645. /**
  13646. * Get the event dispatcher instance.
  13647. *
  13648. * @return \Illuminate\Contracts\Events\Dispatcher
  13649. * @static
  13650. */
  13651. public static function getDispatcher()
  13652. {
  13653. /** @var \Illuminate\View\Factory $instance */
  13654. return $instance->getDispatcher();
  13655. }
  13656. /**
  13657. * Set the event dispatcher instance.
  13658. *
  13659. * @param \Illuminate\Contracts\Events\Dispatcher $events
  13660. * @return void
  13661. * @static
  13662. */
  13663. public static function setDispatcher($events)
  13664. {
  13665. /** @var \Illuminate\View\Factory $instance */
  13666. $instance->setDispatcher($events);
  13667. }
  13668. /**
  13669. * Get the IoC container instance.
  13670. *
  13671. * @return \Illuminate\Contracts\Container\Container
  13672. * @static
  13673. */
  13674. public static function getContainer()
  13675. {
  13676. /** @var \Illuminate\View\Factory $instance */
  13677. return $instance->getContainer();
  13678. }
  13679. /**
  13680. * Set the IoC container instance.
  13681. *
  13682. * @param \Illuminate\Contracts\Container\Container $container
  13683. * @return void
  13684. * @static
  13685. */
  13686. public static function setContainer($container)
  13687. {
  13688. /** @var \Illuminate\View\Factory $instance */
  13689. $instance->setContainer($container);
  13690. }
  13691. /**
  13692. * Get an item from the shared data.
  13693. *
  13694. * @param string $key
  13695. * @param mixed $default
  13696. * @return mixed
  13697. * @static
  13698. */
  13699. public static function shared($key, $default = null)
  13700. {
  13701. /** @var \Illuminate\View\Factory $instance */
  13702. return $instance->shared($key, $default);
  13703. }
  13704. /**
  13705. * Get all of the shared data for the environment.
  13706. *
  13707. * @return array
  13708. * @static
  13709. */
  13710. public static function getShared()
  13711. {
  13712. /** @var \Illuminate\View\Factory $instance */
  13713. return $instance->getShared();
  13714. }
  13715. /**
  13716. * Register a custom macro.
  13717. *
  13718. * @param string $name
  13719. * @param object|callable $macro
  13720. * @return void
  13721. * @static
  13722. */
  13723. public static function macro($name, $macro)
  13724. {
  13725. \Illuminate\View\Factory::macro($name, $macro);
  13726. }
  13727. /**
  13728. * Mix another object into the class.
  13729. *
  13730. * @param object $mixin
  13731. * @param bool $replace
  13732. * @return void
  13733. * @throws \ReflectionException
  13734. * @static
  13735. */
  13736. public static function mixin($mixin, $replace = true)
  13737. {
  13738. \Illuminate\View\Factory::mixin($mixin, $replace);
  13739. }
  13740. /**
  13741. * Checks if macro is registered.
  13742. *
  13743. * @param string $name
  13744. * @return bool
  13745. * @static
  13746. */
  13747. public static function hasMacro($name)
  13748. {
  13749. return \Illuminate\View\Factory::hasMacro($name);
  13750. }
  13751. /**
  13752. * Start a component rendering process.
  13753. *
  13754. * @param \Illuminate\View\View|string $view
  13755. * @param array $data
  13756. * @return void
  13757. * @static
  13758. */
  13759. public static function startComponent($view, $data = [])
  13760. {
  13761. /** @var \Illuminate\View\Factory $instance */
  13762. $instance->startComponent($view, $data);
  13763. }
  13764. /**
  13765. * Get the first view that actually exists from the given list, and start a component.
  13766. *
  13767. * @param array $names
  13768. * @param array $data
  13769. * @return void
  13770. * @static
  13771. */
  13772. public static function startComponentFirst($names, $data = [])
  13773. {
  13774. /** @var \Illuminate\View\Factory $instance */
  13775. $instance->startComponentFirst($names, $data);
  13776. }
  13777. /**
  13778. * Render the current component.
  13779. *
  13780. * @return string
  13781. * @static
  13782. */
  13783. public static function renderComponent()
  13784. {
  13785. /** @var \Illuminate\View\Factory $instance */
  13786. return $instance->renderComponent();
  13787. }
  13788. /**
  13789. * Start the slot rendering process.
  13790. *
  13791. * @param string $name
  13792. * @param string|null $content
  13793. * @return void
  13794. * @static
  13795. */
  13796. public static function slot($name, $content = null)
  13797. {
  13798. /** @var \Illuminate\View\Factory $instance */
  13799. $instance->slot($name, $content);
  13800. }
  13801. /**
  13802. * Save the slot content for rendering.
  13803. *
  13804. * @return void
  13805. * @static
  13806. */
  13807. public static function endSlot()
  13808. {
  13809. /** @var \Illuminate\View\Factory $instance */
  13810. $instance->endSlot();
  13811. }
  13812. /**
  13813. * Register a view creator event.
  13814. *
  13815. * @param array|string $views
  13816. * @param \Closure|string $callback
  13817. * @return array
  13818. * @static
  13819. */
  13820. public static function creator($views, $callback)
  13821. {
  13822. /** @var \Illuminate\View\Factory $instance */
  13823. return $instance->creator($views, $callback);
  13824. }
  13825. /**
  13826. * Register multiple view composers via an array.
  13827. *
  13828. * @param array $composers
  13829. * @return array
  13830. * @static
  13831. */
  13832. public static function composers($composers)
  13833. {
  13834. /** @var \Illuminate\View\Factory $instance */
  13835. return $instance->composers($composers);
  13836. }
  13837. /**
  13838. * Register a view composer event.
  13839. *
  13840. * @param array|string $views
  13841. * @param \Closure|string $callback
  13842. * @return array
  13843. * @static
  13844. */
  13845. public static function composer($views, $callback)
  13846. {
  13847. /** @var \Illuminate\View\Factory $instance */
  13848. return $instance->composer($views, $callback);
  13849. }
  13850. /**
  13851. * Call the composer for a given view.
  13852. *
  13853. * @param \Illuminate\Contracts\View\View $view
  13854. * @return void
  13855. * @static
  13856. */
  13857. public static function callComposer($view)
  13858. {
  13859. /** @var \Illuminate\View\Factory $instance */
  13860. $instance->callComposer($view);
  13861. }
  13862. /**
  13863. * Call the creator for a given view.
  13864. *
  13865. * @param \Illuminate\Contracts\View\View $view
  13866. * @return void
  13867. * @static
  13868. */
  13869. public static function callCreator($view)
  13870. {
  13871. /** @var \Illuminate\View\Factory $instance */
  13872. $instance->callCreator($view);
  13873. }
  13874. /**
  13875. * Start injecting content into a section.
  13876. *
  13877. * @param string $section
  13878. * @param string|null $content
  13879. * @return void
  13880. * @static
  13881. */
  13882. public static function startSection($section, $content = null)
  13883. {
  13884. /** @var \Illuminate\View\Factory $instance */
  13885. $instance->startSection($section, $content);
  13886. }
  13887. /**
  13888. * Inject inline content into a section.
  13889. *
  13890. * @param string $section
  13891. * @param string $content
  13892. * @return void
  13893. * @static
  13894. */
  13895. public static function inject($section, $content)
  13896. {
  13897. /** @var \Illuminate\View\Factory $instance */
  13898. $instance->inject($section, $content);
  13899. }
  13900. /**
  13901. * Stop injecting content into a section and return its contents.
  13902. *
  13903. * @return string
  13904. * @static
  13905. */
  13906. public static function yieldSection()
  13907. {
  13908. /** @var \Illuminate\View\Factory $instance */
  13909. return $instance->yieldSection();
  13910. }
  13911. /**
  13912. * Stop injecting content into a section.
  13913. *
  13914. * @param bool $overwrite
  13915. * @return string
  13916. * @throws \InvalidArgumentException
  13917. * @static
  13918. */
  13919. public static function stopSection($overwrite = false)
  13920. {
  13921. /** @var \Illuminate\View\Factory $instance */
  13922. return $instance->stopSection($overwrite);
  13923. }
  13924. /**
  13925. * Stop injecting content into a section and append it.
  13926. *
  13927. * @return string
  13928. * @throws \InvalidArgumentException
  13929. * @static
  13930. */
  13931. public static function appendSection()
  13932. {
  13933. /** @var \Illuminate\View\Factory $instance */
  13934. return $instance->appendSection();
  13935. }
  13936. /**
  13937. * Get the string contents of a section.
  13938. *
  13939. * @param string $section
  13940. * @param string $default
  13941. * @return string
  13942. * @static
  13943. */
  13944. public static function yieldContent($section, $default = '')
  13945. {
  13946. /** @var \Illuminate\View\Factory $instance */
  13947. return $instance->yieldContent($section, $default);
  13948. }
  13949. /**
  13950. * Get the parent placeholder for the current request.
  13951. *
  13952. * @param string $section
  13953. * @return string
  13954. * @static
  13955. */
  13956. public static function parentPlaceholder($section = '')
  13957. {
  13958. return \Illuminate\View\Factory::parentPlaceholder($section);
  13959. }
  13960. /**
  13961. * Check if section exists.
  13962. *
  13963. * @param string $name
  13964. * @return bool
  13965. * @static
  13966. */
  13967. public static function hasSection($name)
  13968. {
  13969. /** @var \Illuminate\View\Factory $instance */
  13970. return $instance->hasSection($name);
  13971. }
  13972. /**
  13973. * Get the contents of a section.
  13974. *
  13975. * @param string $name
  13976. * @param string|null $default
  13977. * @return mixed
  13978. * @static
  13979. */
  13980. public static function getSection($name, $default = null)
  13981. {
  13982. /** @var \Illuminate\View\Factory $instance */
  13983. return $instance->getSection($name, $default);
  13984. }
  13985. /**
  13986. * Get the entire array of sections.
  13987. *
  13988. * @return array
  13989. * @static
  13990. */
  13991. public static function getSections()
  13992. {
  13993. /** @var \Illuminate\View\Factory $instance */
  13994. return $instance->getSections();
  13995. }
  13996. /**
  13997. * Flush all of the sections.
  13998. *
  13999. * @return void
  14000. * @static
  14001. */
  14002. public static function flushSections()
  14003. {
  14004. /** @var \Illuminate\View\Factory $instance */
  14005. $instance->flushSections();
  14006. }
  14007. /**
  14008. * Add new loop to the stack.
  14009. *
  14010. * @param \Countable|array $data
  14011. * @return void
  14012. * @static
  14013. */
  14014. public static function addLoop($data)
  14015. {
  14016. /** @var \Illuminate\View\Factory $instance */
  14017. $instance->addLoop($data);
  14018. }
  14019. /**
  14020. * Increment the top loop's indices.
  14021. *
  14022. * @return void
  14023. * @static
  14024. */
  14025. public static function incrementLoopIndices()
  14026. {
  14027. /** @var \Illuminate\View\Factory $instance */
  14028. $instance->incrementLoopIndices();
  14029. }
  14030. /**
  14031. * Pop a loop from the top of the loop stack.
  14032. *
  14033. * @return void
  14034. * @static
  14035. */
  14036. public static function popLoop()
  14037. {
  14038. /** @var \Illuminate\View\Factory $instance */
  14039. $instance->popLoop();
  14040. }
  14041. /**
  14042. * Get an instance of the last loop in the stack.
  14043. *
  14044. * @return \stdClass|null
  14045. * @static
  14046. */
  14047. public static function getLastLoop()
  14048. {
  14049. /** @var \Illuminate\View\Factory $instance */
  14050. return $instance->getLastLoop();
  14051. }
  14052. /**
  14053. * Get the entire loop stack.
  14054. *
  14055. * @return array
  14056. * @static
  14057. */
  14058. public static function getLoopStack()
  14059. {
  14060. /** @var \Illuminate\View\Factory $instance */
  14061. return $instance->getLoopStack();
  14062. }
  14063. /**
  14064. * Start injecting content into a push section.
  14065. *
  14066. * @param string $section
  14067. * @param string $content
  14068. * @return void
  14069. * @static
  14070. */
  14071. public static function startPush($section, $content = '')
  14072. {
  14073. /** @var \Illuminate\View\Factory $instance */
  14074. $instance->startPush($section, $content);
  14075. }
  14076. /**
  14077. * Stop injecting content into a push section.
  14078. *
  14079. * @return string
  14080. * @throws \InvalidArgumentException
  14081. * @static
  14082. */
  14083. public static function stopPush()
  14084. {
  14085. /** @var \Illuminate\View\Factory $instance */
  14086. return $instance->stopPush();
  14087. }
  14088. /**
  14089. * Start prepending content into a push section.
  14090. *
  14091. * @param string $section
  14092. * @param string $content
  14093. * @return void
  14094. * @static
  14095. */
  14096. public static function startPrepend($section, $content = '')
  14097. {
  14098. /** @var \Illuminate\View\Factory $instance */
  14099. $instance->startPrepend($section, $content);
  14100. }
  14101. /**
  14102. * Stop prepending content into a push section.
  14103. *
  14104. * @return string
  14105. * @throws \InvalidArgumentException
  14106. * @static
  14107. */
  14108. public static function stopPrepend()
  14109. {
  14110. /** @var \Illuminate\View\Factory $instance */
  14111. return $instance->stopPrepend();
  14112. }
  14113. /**
  14114. * Get the string contents of a push section.
  14115. *
  14116. * @param string $section
  14117. * @param string $default
  14118. * @return string
  14119. * @static
  14120. */
  14121. public static function yieldPushContent($section, $default = '')
  14122. {
  14123. /** @var \Illuminate\View\Factory $instance */
  14124. return $instance->yieldPushContent($section, $default);
  14125. }
  14126. /**
  14127. * Flush all of the stacks.
  14128. *
  14129. * @return void
  14130. * @static
  14131. */
  14132. public static function flushStacks()
  14133. {
  14134. /** @var \Illuminate\View\Factory $instance */
  14135. $instance->flushStacks();
  14136. }
  14137. /**
  14138. * Start a translation block.
  14139. *
  14140. * @param array $replacements
  14141. * @return void
  14142. * @static
  14143. */
  14144. public static function startTranslation($replacements = [])
  14145. {
  14146. /** @var \Illuminate\View\Factory $instance */
  14147. $instance->startTranslation($replacements);
  14148. }
  14149. /**
  14150. * Render the current translation.
  14151. *
  14152. * @return string
  14153. * @static
  14154. */
  14155. public static function renderTranslation()
  14156. {
  14157. /** @var \Illuminate\View\Factory $instance */
  14158. return $instance->renderTranslation();
  14159. }
  14160. }
  14161. }
  14162. namespace Illuminate\Support {
  14163. /**
  14164. *
  14165. *
  14166. */
  14167. class Arr {
  14168. }
  14169. /**
  14170. *
  14171. *
  14172. */
  14173. class Str {
  14174. }
  14175. }
  14176. namespace Facade\Ignition\Facades {
  14177. /**
  14178. * Class Flare.
  14179. *
  14180. * @see \Facade\FlareClient\Flare
  14181. */
  14182. class Flare {
  14183. /**
  14184. *
  14185. *
  14186. * @static
  14187. */
  14188. public static function register($apiKey, $apiSecret = null, $contextDetector = null, $container = null)
  14189. {
  14190. return \Facade\FlareClient\Flare::register($apiKey, $apiSecret, $contextDetector, $container);
  14191. }
  14192. /**
  14193. *
  14194. *
  14195. * @static
  14196. */
  14197. public static function getMiddleware()
  14198. {
  14199. /** @var \Facade\FlareClient\Flare $instance */
  14200. return $instance->getMiddleware();
  14201. }
  14202. /**
  14203. *
  14204. *
  14205. * @static
  14206. */
  14207. public static function registerFlareHandlers()
  14208. {
  14209. /** @var \Facade\FlareClient\Flare $instance */
  14210. return $instance->registerFlareHandlers();
  14211. }
  14212. /**
  14213. *
  14214. *
  14215. * @static
  14216. */
  14217. public static function registerExceptionHandler()
  14218. {
  14219. /** @var \Facade\FlareClient\Flare $instance */
  14220. return $instance->registerExceptionHandler();
  14221. }
  14222. /**
  14223. *
  14224. *
  14225. * @static
  14226. */
  14227. public static function registerErrorHandler()
  14228. {
  14229. /** @var \Facade\FlareClient\Flare $instance */
  14230. return $instance->registerErrorHandler();
  14231. }
  14232. /**
  14233. *
  14234. *
  14235. * @static
  14236. */
  14237. public static function registerMiddleware($callable)
  14238. {
  14239. /** @var \Facade\FlareClient\Flare $instance */
  14240. return $instance->registerMiddleware($callable);
  14241. }
  14242. /**
  14243. *
  14244. *
  14245. * @static
  14246. */
  14247. public static function getMiddlewares()
  14248. {
  14249. /** @var \Facade\FlareClient\Flare $instance */
  14250. return $instance->getMiddlewares();
  14251. }
  14252. /**
  14253. *
  14254. *
  14255. * @static
  14256. */
  14257. public static function glow($name, $messageLevel = 'info', $metaData = [])
  14258. {
  14259. /** @var \Facade\FlareClient\Flare $instance */
  14260. return $instance->glow($name, $messageLevel, $metaData);
  14261. }
  14262. /**
  14263. *
  14264. *
  14265. * @static
  14266. */
  14267. public static function handleException($throwable)
  14268. {
  14269. /** @var \Facade\FlareClient\Flare $instance */
  14270. return $instance->handleException($throwable);
  14271. }
  14272. /**
  14273. *
  14274. *
  14275. * @static
  14276. */
  14277. public static function handleError($code, $message, $file = '', $line = 0)
  14278. {
  14279. /** @var \Facade\FlareClient\Flare $instance */
  14280. return $instance->handleError($code, $message, $file, $line);
  14281. }
  14282. /**
  14283. *
  14284. *
  14285. * @static
  14286. */
  14287. public static function applicationPath($applicationPath)
  14288. {
  14289. /** @var \Facade\FlareClient\Flare $instance */
  14290. return $instance->applicationPath($applicationPath);
  14291. }
  14292. /**
  14293. *
  14294. *
  14295. * @static
  14296. */
  14297. public static function report($throwable, $callback = null)
  14298. {
  14299. /** @var \Facade\FlareClient\Flare $instance */
  14300. return $instance->report($throwable, $callback);
  14301. }
  14302. /**
  14303. *
  14304. *
  14305. * @static
  14306. */
  14307. public static function reportMessage($message, $logLevel, $callback = null)
  14308. {
  14309. /** @var \Facade\FlareClient\Flare $instance */
  14310. return $instance->reportMessage($message, $logLevel, $callback);
  14311. }
  14312. /**
  14313. *
  14314. *
  14315. * @static
  14316. */
  14317. public static function sendTestReport($throwable)
  14318. {
  14319. /** @var \Facade\FlareClient\Flare $instance */
  14320. return $instance->sendTestReport($throwable);
  14321. }
  14322. /**
  14323. *
  14324. *
  14325. * @static
  14326. */
  14327. public static function reset()
  14328. {
  14329. /** @var \Facade\FlareClient\Flare $instance */
  14330. return $instance->reset();
  14331. }
  14332. /**
  14333. *
  14334. *
  14335. * @static
  14336. */
  14337. public static function anonymizeIp()
  14338. {
  14339. /** @var \Facade\FlareClient\Flare $instance */
  14340. return $instance->anonymizeIp();
  14341. }
  14342. /**
  14343. *
  14344. *
  14345. * @static
  14346. */
  14347. public static function createReport($throwable)
  14348. {
  14349. /** @var \Facade\FlareClient\Flare $instance */
  14350. return $instance->createReport($throwable);
  14351. }
  14352. /**
  14353. *
  14354. *
  14355. * @static
  14356. */
  14357. public static function createReportFromMessage($message, $logLevel)
  14358. {
  14359. /** @var \Facade\FlareClient\Flare $instance */
  14360. return $instance->createReportFromMessage($message, $logLevel);
  14361. }
  14362. /**
  14363. *
  14364. *
  14365. * @static
  14366. */
  14367. public static function stage($stage)
  14368. {
  14369. /** @var \Facade\FlareClient\Flare $instance */
  14370. return $instance->stage($stage);
  14371. }
  14372. /**
  14373. *
  14374. *
  14375. * @static
  14376. */
  14377. public static function messageLevel($messageLevel)
  14378. {
  14379. /** @var \Facade\FlareClient\Flare $instance */
  14380. return $instance->messageLevel($messageLevel);
  14381. }
  14382. /**
  14383. *
  14384. *
  14385. * @static
  14386. */
  14387. public static function getGroup($groupName = 'context', $default = [])
  14388. {
  14389. /** @var \Facade\FlareClient\Flare $instance */
  14390. return $instance->getGroup($groupName, $default);
  14391. }
  14392. /**
  14393. *
  14394. *
  14395. * @static
  14396. */
  14397. public static function context($key, $value)
  14398. {
  14399. /** @var \Facade\FlareClient\Flare $instance */
  14400. return $instance->context($key, $value);
  14401. }
  14402. /**
  14403. *
  14404. *
  14405. * @static
  14406. */
  14407. public static function group($groupName, $properties)
  14408. {
  14409. /** @var \Facade\FlareClient\Flare $instance */
  14410. return $instance->group($groupName, $properties);
  14411. }
  14412. }
  14413. }
  14414. namespace Maatwebsite\Excel\Facades {
  14415. /**
  14416. *
  14417. *
  14418. */
  14419. class Excel {
  14420. /**
  14421. *
  14422. *
  14423. * @param object $export
  14424. * @param string|null $fileName
  14425. * @param string $writerType
  14426. * @param array $headers
  14427. * @throws \PhpOffice\PhpSpreadsheet\Exception
  14428. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  14429. * @return \Maatwebsite\Excel\BinaryFileResponse
  14430. * @static
  14431. */
  14432. public static function download($export, $fileName, $writerType = null, $headers = [])
  14433. {
  14434. /** @var \Maatwebsite\Excel\Excel $instance */
  14435. return $instance->download($export, $fileName, $writerType, $headers);
  14436. }
  14437. /**
  14438. *
  14439. *
  14440. * @param object $export
  14441. * @param string $filePath
  14442. * @param string|null $disk
  14443. * @param string $writerType
  14444. * @param mixed $diskOptions
  14445. * @throws \PhpOffice\PhpSpreadsheet\Exception
  14446. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  14447. * @return bool
  14448. * @static
  14449. */
  14450. public static function store($export, $filePath, $diskName = null, $writerType = null, $diskOptions = [])
  14451. {
  14452. /** @var \Maatwebsite\Excel\Excel $instance */
  14453. return $instance->store($export, $filePath, $diskName, $writerType, $diskOptions);
  14454. }
  14455. /**
  14456. *
  14457. *
  14458. * @param object $export
  14459. * @param string $filePath
  14460. * @param string|null $disk
  14461. * @param string $writerType
  14462. * @param mixed $diskOptions
  14463. * @return \Maatwebsite\Excel\PendingDispatch
  14464. * @static
  14465. */
  14466. public static function queue($export, $filePath, $disk = null, $writerType = null, $diskOptions = [])
  14467. {
  14468. /** @var \Maatwebsite\Excel\Excel $instance */
  14469. return $instance->queue($export, $filePath, $disk, $writerType, $diskOptions);
  14470. }
  14471. /**
  14472. *
  14473. *
  14474. * @param object $export
  14475. * @param string $writerType
  14476. * @return string
  14477. * @static
  14478. */
  14479. public static function raw($export, $writerType)
  14480. {
  14481. /** @var \Maatwebsite\Excel\Excel $instance */
  14482. return $instance->raw($export, $writerType);
  14483. }
  14484. /**
  14485. *
  14486. *
  14487. * @param object $import
  14488. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  14489. * @param string|null $disk
  14490. * @param string|null $readerType
  14491. * @return \Maatwebsite\Excel\Reader|\Maatwebsite\Excel\PendingDispatch
  14492. * @static
  14493. */
  14494. public static function import($import, $filePath, $disk = null, $readerType = null)
  14495. {
  14496. /** @var \Maatwebsite\Excel\Excel $instance */
  14497. return $instance->import($import, $filePath, $disk, $readerType);
  14498. }
  14499. /**
  14500. *
  14501. *
  14502. * @param object $import
  14503. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  14504. * @param string|null $disk
  14505. * @param string|null $readerType
  14506. * @return array
  14507. * @static
  14508. */
  14509. public static function toArray($import, $filePath, $disk = null, $readerType = null)
  14510. {
  14511. /** @var \Maatwebsite\Excel\Excel $instance */
  14512. return $instance->toArray($import, $filePath, $disk, $readerType);
  14513. }
  14514. /**
  14515. *
  14516. *
  14517. * @param object $import
  14518. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  14519. * @param string|null $disk
  14520. * @param string|null $readerType
  14521. * @return \Maatwebsite\Excel\Collection
  14522. * @static
  14523. */
  14524. public static function toCollection($import, $filePath, $disk = null, $readerType = null)
  14525. {
  14526. /** @var \Maatwebsite\Excel\Excel $instance */
  14527. return $instance->toCollection($import, $filePath, $disk, $readerType);
  14528. }
  14529. /**
  14530. *
  14531. *
  14532. * @param \Maatwebsite\Excel\ShouldQueue $import
  14533. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  14534. * @param string|null $disk
  14535. * @param string $readerType
  14536. * @return \Maatwebsite\Excel\PendingDispatch
  14537. * @static
  14538. */
  14539. public static function queueImport($import, $filePath, $disk = null, $readerType = null)
  14540. {
  14541. /** @var \Maatwebsite\Excel\Excel $instance */
  14542. return $instance->queueImport($import, $filePath, $disk, $readerType);
  14543. }
  14544. /**
  14545. *
  14546. *
  14547. * @param string $concern
  14548. * @param callable $handler
  14549. * @param string $event
  14550. * @static
  14551. */
  14552. public static function extend($concern, $handler, $event = 'Maatwebsite\\Excel\\Events\\BeforeWriting')
  14553. {
  14554. return \Maatwebsite\Excel\Excel::extend($concern, $handler, $event);
  14555. }
  14556. /**
  14557. * When asserting downloaded, stored, queued or imported, use regular expression
  14558. * to look for a matching file path.
  14559. *
  14560. * @return void
  14561. * @static
  14562. */
  14563. public static function matchByRegex()
  14564. {
  14565. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14566. $instance->matchByRegex();
  14567. }
  14568. /**
  14569. * When asserting downloaded, stored, queued or imported, use regular string
  14570. * comparison for matching file path.
  14571. *
  14572. * @return void
  14573. * @static
  14574. */
  14575. public static function doNotMatchByRegex()
  14576. {
  14577. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14578. $instance->doNotMatchByRegex();
  14579. }
  14580. /**
  14581. *
  14582. *
  14583. * @param string $fileName
  14584. * @param callable|null $callback
  14585. * @static
  14586. */
  14587. public static function assertDownloaded($fileName, $callback = null)
  14588. {
  14589. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14590. return $instance->assertDownloaded($fileName, $callback);
  14591. }
  14592. /**
  14593. *
  14594. *
  14595. * @param string $filePath
  14596. * @param string|callable|null $disk
  14597. * @param callable|null $callback
  14598. * @static
  14599. */
  14600. public static function assertStored($filePath, $disk = null, $callback = null)
  14601. {
  14602. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14603. return $instance->assertStored($filePath, $disk, $callback);
  14604. }
  14605. /**
  14606. *
  14607. *
  14608. * @param string $filePath
  14609. * @param string|callable|null $disk
  14610. * @param callable|null $callback
  14611. * @static
  14612. */
  14613. public static function assertQueued($filePath, $disk = null, $callback = null)
  14614. {
  14615. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14616. return $instance->assertQueued($filePath, $disk, $callback);
  14617. }
  14618. /**
  14619. *
  14620. *
  14621. * @param string $filePath
  14622. * @param string|callable|null $disk
  14623. * @param callable|null $callback
  14624. * @static
  14625. */
  14626. public static function assertImported($filePath, $disk = null, $callback = null)
  14627. {
  14628. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14629. return $instance->assertImported($filePath, $disk, $callback);
  14630. }
  14631. }
  14632. }
  14633. namespace {
  14634. class App extends \Illuminate\Support\Facades\App {}
  14635. class Arr extends \Illuminate\Support\Arr {}
  14636. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  14637. class Auth extends \Illuminate\Support\Facades\Auth {}
  14638. class Blade extends \Illuminate\Support\Facades\Blade {}
  14639. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  14640. class Bus extends \Illuminate\Support\Facades\Bus {}
  14641. class Cache extends \Illuminate\Support\Facades\Cache {}
  14642. class Config extends \Illuminate\Support\Facades\Config {}
  14643. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  14644. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  14645. class DB extends \Illuminate\Support\Facades\DB {}
  14646. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  14647. /**
  14648. * Create and return an un-saved model instance.
  14649. *
  14650. * @param array $attributes
  14651. * @return \Illuminate\Database\Eloquent\Model|static
  14652. * @static
  14653. */
  14654. public static function make($attributes = [])
  14655. {
  14656. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14657. return $instance->make($attributes);
  14658. }
  14659. /**
  14660. * Register a new global scope.
  14661. *
  14662. * @param string $identifier
  14663. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  14664. * @return \Illuminate\Database\Eloquent\Builder
  14665. * @static
  14666. */
  14667. public static function withGlobalScope($identifier, $scope)
  14668. {
  14669. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14670. return $instance->withGlobalScope($identifier, $scope);
  14671. }
  14672. /**
  14673. * Remove a registered global scope.
  14674. *
  14675. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  14676. * @return \Illuminate\Database\Eloquent\Builder
  14677. * @static
  14678. */
  14679. public static function withoutGlobalScope($scope)
  14680. {
  14681. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14682. return $instance->withoutGlobalScope($scope);
  14683. }
  14684. /**
  14685. * Remove all or passed registered global scopes.
  14686. *
  14687. * @param array|null $scopes
  14688. * @return \Illuminate\Database\Eloquent\Builder
  14689. * @static
  14690. */
  14691. public static function withoutGlobalScopes($scopes = null)
  14692. {
  14693. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14694. return $instance->withoutGlobalScopes($scopes);
  14695. }
  14696. /**
  14697. * Get an array of global scopes that were removed from the query.
  14698. *
  14699. * @return array
  14700. * @static
  14701. */
  14702. public static function removedScopes()
  14703. {
  14704. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14705. return $instance->removedScopes();
  14706. }
  14707. /**
  14708. * Add a where clause on the primary key to the query.
  14709. *
  14710. * @param mixed $id
  14711. * @return \Illuminate\Database\Eloquent\Builder
  14712. * @static
  14713. */
  14714. public static function whereKey($id)
  14715. {
  14716. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14717. return $instance->whereKey($id);
  14718. }
  14719. /**
  14720. * Add a where clause on the primary key to the query.
  14721. *
  14722. * @param mixed $id
  14723. * @return \Illuminate\Database\Eloquent\Builder
  14724. * @static
  14725. */
  14726. public static function whereKeyNot($id)
  14727. {
  14728. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14729. return $instance->whereKeyNot($id);
  14730. }
  14731. /**
  14732. * Add a basic where clause to the query.
  14733. *
  14734. * @param \Closure|string|array $column
  14735. * @param mixed $operator
  14736. * @param mixed $value
  14737. * @param string $boolean
  14738. * @return \Illuminate\Database\Eloquent\Builder
  14739. * @static
  14740. */
  14741. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  14742. {
  14743. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14744. return $instance->where($column, $operator, $value, $boolean);
  14745. }
  14746. /**
  14747. * Add a basic where clause to the query, and return the first result.
  14748. *
  14749. * @param \Closure|string|array $column
  14750. * @param mixed $operator
  14751. * @param mixed $value
  14752. * @param string $boolean
  14753. * @return \Illuminate\Database\Eloquent\Model|static
  14754. * @static
  14755. */
  14756. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  14757. {
  14758. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14759. return $instance->firstWhere($column, $operator, $value, $boolean);
  14760. }
  14761. /**
  14762. * Add an "or where" clause to the query.
  14763. *
  14764. * @param \Closure|array|string $column
  14765. * @param mixed $operator
  14766. * @param mixed $value
  14767. * @return \Illuminate\Database\Eloquent\Builder
  14768. * @static
  14769. */
  14770. public static function orWhere($column, $operator = null, $value = null)
  14771. {
  14772. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14773. return $instance->orWhere($column, $operator, $value);
  14774. }
  14775. /**
  14776. * Add an "order by" clause for a timestamp to the query.
  14777. *
  14778. * @param string $column
  14779. * @return \Illuminate\Database\Eloquent\Builder
  14780. * @static
  14781. */
  14782. public static function latest($column = null)
  14783. {
  14784. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14785. return $instance->latest($column);
  14786. }
  14787. /**
  14788. * Add an "order by" clause for a timestamp to the query.
  14789. *
  14790. * @param string $column
  14791. * @return \Illuminate\Database\Eloquent\Builder
  14792. * @static
  14793. */
  14794. public static function oldest($column = null)
  14795. {
  14796. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14797. return $instance->oldest($column);
  14798. }
  14799. /**
  14800. * Create a collection of models from plain arrays.
  14801. *
  14802. * @param array $items
  14803. * @return \Illuminate\Database\Eloquent\Collection
  14804. * @static
  14805. */
  14806. public static function hydrate($items)
  14807. {
  14808. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14809. return $instance->hydrate($items);
  14810. }
  14811. /**
  14812. * Create a collection of models from a raw query.
  14813. *
  14814. * @param string $query
  14815. * @param array $bindings
  14816. * @return \Illuminate\Database\Eloquent\Collection
  14817. * @static
  14818. */
  14819. public static function fromQuery($query, $bindings = [])
  14820. {
  14821. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14822. return $instance->fromQuery($query, $bindings);
  14823. }
  14824. /**
  14825. * Find a model by its primary key.
  14826. *
  14827. * @param mixed $id
  14828. * @param array $columns
  14829. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  14830. * @static
  14831. */
  14832. public static function find($id, $columns = [])
  14833. {
  14834. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14835. return $instance->find($id, $columns);
  14836. }
  14837. /**
  14838. * Find multiple models by their primary keys.
  14839. *
  14840. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  14841. * @param array $columns
  14842. * @return \Illuminate\Database\Eloquent\Collection
  14843. * @static
  14844. */
  14845. public static function findMany($ids, $columns = [])
  14846. {
  14847. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14848. return $instance->findMany($ids, $columns);
  14849. }
  14850. /**
  14851. * Find a model by its primary key or throw an exception.
  14852. *
  14853. * @param mixed $id
  14854. * @param array $columns
  14855. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  14856. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14857. * @static
  14858. */
  14859. public static function findOrFail($id, $columns = [])
  14860. {
  14861. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14862. return $instance->findOrFail($id, $columns);
  14863. }
  14864. /**
  14865. * Find a model by its primary key or return fresh model instance.
  14866. *
  14867. * @param mixed $id
  14868. * @param array $columns
  14869. * @return \Illuminate\Database\Eloquent\Model|static
  14870. * @static
  14871. */
  14872. public static function findOrNew($id, $columns = [])
  14873. {
  14874. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14875. return $instance->findOrNew($id, $columns);
  14876. }
  14877. /**
  14878. * Get the first record matching the attributes or instantiate it.
  14879. *
  14880. * @param array $attributes
  14881. * @param array $values
  14882. * @return \Illuminate\Database\Eloquent\Model|static
  14883. * @static
  14884. */
  14885. public static function firstOrNew($attributes = [], $values = [])
  14886. {
  14887. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14888. return $instance->firstOrNew($attributes, $values);
  14889. }
  14890. /**
  14891. * Get the first record matching the attributes or create it.
  14892. *
  14893. * @param array $attributes
  14894. * @param array $values
  14895. * @return \Illuminate\Database\Eloquent\Model|static
  14896. * @static
  14897. */
  14898. public static function firstOrCreate($attributes, $values = [])
  14899. {
  14900. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14901. return $instance->firstOrCreate($attributes, $values);
  14902. }
  14903. /**
  14904. * Create or update a record matching the attributes, and fill it with values.
  14905. *
  14906. * @param array $attributes
  14907. * @param array $values
  14908. * @return \Illuminate\Database\Eloquent\Model|static
  14909. * @static
  14910. */
  14911. public static function updateOrCreate($attributes, $values = [])
  14912. {
  14913. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14914. return $instance->updateOrCreate($attributes, $values);
  14915. }
  14916. /**
  14917. * Execute the query and get the first result or throw an exception.
  14918. *
  14919. * @param array $columns
  14920. * @return \Illuminate\Database\Eloquent\Model|static
  14921. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14922. * @static
  14923. */
  14924. public static function firstOrFail($columns = [])
  14925. {
  14926. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14927. return $instance->firstOrFail($columns);
  14928. }
  14929. /**
  14930. * Execute the query and get the first result or call a callback.
  14931. *
  14932. * @param \Closure|array $columns
  14933. * @param \Closure|null $callback
  14934. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  14935. * @static
  14936. */
  14937. public static function firstOr($columns = [], $callback = null)
  14938. {
  14939. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14940. return $instance->firstOr($columns, $callback);
  14941. }
  14942. /**
  14943. * Get a single column's value from the first result of a query.
  14944. *
  14945. * @param string $column
  14946. * @return mixed
  14947. * @static
  14948. */
  14949. public static function value($column)
  14950. {
  14951. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14952. return $instance->value($column);
  14953. }
  14954. /**
  14955. * Execute the query as a "select" statement.
  14956. *
  14957. * @param array|string $columns
  14958. * @return \Illuminate\Database\Eloquent\Collection|static[]
  14959. * @static
  14960. */
  14961. public static function get($columns = [])
  14962. {
  14963. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14964. return $instance->get($columns);
  14965. }
  14966. /**
  14967. * Get the hydrated models without eager loading.
  14968. *
  14969. * @param array|string $columns
  14970. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  14971. * @static
  14972. */
  14973. public static function getModels($columns = [])
  14974. {
  14975. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14976. return $instance->getModels($columns);
  14977. }
  14978. /**
  14979. * Eager load the relationships for the models.
  14980. *
  14981. * @param array $models
  14982. * @return array
  14983. * @static
  14984. */
  14985. public static function eagerLoadRelations($models)
  14986. {
  14987. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14988. return $instance->eagerLoadRelations($models);
  14989. }
  14990. /**
  14991. * Get a lazy collection for the given query.
  14992. *
  14993. * @return \Illuminate\Support\LazyCollection
  14994. * @static
  14995. */
  14996. public static function cursor()
  14997. {
  14998. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14999. return $instance->cursor();
  15000. }
  15001. /**
  15002. * Get an array with the values of a given column.
  15003. *
  15004. * @param string $column
  15005. * @param string|null $key
  15006. * @return \Illuminate\Support\Collection
  15007. * @static
  15008. */
  15009. public static function pluck($column, $key = null)
  15010. {
  15011. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15012. return $instance->pluck($column, $key);
  15013. }
  15014. /**
  15015. * Paginate the given query.
  15016. *
  15017. * @param int|null $perPage
  15018. * @param array $columns
  15019. * @param string $pageName
  15020. * @param int|null $page
  15021. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  15022. * @throws \InvalidArgumentException
  15023. * @static
  15024. */
  15025. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15026. {
  15027. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15028. return $instance->paginate($perPage, $columns, $pageName, $page);
  15029. }
  15030. /**
  15031. * Paginate the given query into a simple paginator.
  15032. *
  15033. * @param int|null $perPage
  15034. * @param array $columns
  15035. * @param string $pageName
  15036. * @param int|null $page
  15037. * @return \Illuminate\Contracts\Pagination\Paginator
  15038. * @static
  15039. */
  15040. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15041. {
  15042. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15043. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  15044. }
  15045. /**
  15046. * Save a new model and return the instance.
  15047. *
  15048. * @param array $attributes
  15049. * @return \Illuminate\Database\Eloquent\Model|$this
  15050. * @static
  15051. */
  15052. public static function create($attributes = [])
  15053. {
  15054. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15055. return $instance->create($attributes);
  15056. }
  15057. /**
  15058. * Save a new model and return the instance. Allow mass-assignment.
  15059. *
  15060. * @param array $attributes
  15061. * @return \Illuminate\Database\Eloquent\Model|$this
  15062. * @static
  15063. */
  15064. public static function forceCreate($attributes)
  15065. {
  15066. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15067. return $instance->forceCreate($attributes);
  15068. }
  15069. /**
  15070. * Register a replacement for the default delete function.
  15071. *
  15072. * @param \Closure $callback
  15073. * @return void
  15074. * @static
  15075. */
  15076. public static function onDelete($callback)
  15077. {
  15078. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15079. $instance->onDelete($callback);
  15080. }
  15081. /**
  15082. * Call the given local model scopes.
  15083. *
  15084. * @param array|string $scopes
  15085. * @return static|mixed
  15086. * @static
  15087. */
  15088. public static function scopes($scopes)
  15089. {
  15090. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15091. return $instance->scopes($scopes);
  15092. }
  15093. /**
  15094. * Apply the scopes to the Eloquent builder instance and return it.
  15095. *
  15096. * @return static
  15097. * @static
  15098. */
  15099. public static function applyScopes()
  15100. {
  15101. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15102. return $instance->applyScopes();
  15103. }
  15104. /**
  15105. * Prevent the specified relations from being eager loaded.
  15106. *
  15107. * @param mixed $relations
  15108. * @return \Illuminate\Database\Eloquent\Builder
  15109. * @static
  15110. */
  15111. public static function without($relations)
  15112. {
  15113. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15114. return $instance->without($relations);
  15115. }
  15116. /**
  15117. * Create a new instance of the model being queried.
  15118. *
  15119. * @param array $attributes
  15120. * @return \Illuminate\Database\Eloquent\Model|static
  15121. * @static
  15122. */
  15123. public static function newModelInstance($attributes = [])
  15124. {
  15125. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15126. return $instance->newModelInstance($attributes);
  15127. }
  15128. /**
  15129. * Apply query-time casts to the model instance.
  15130. *
  15131. * @param array $casts
  15132. * @return \Illuminate\Database\Eloquent\Builder
  15133. * @static
  15134. */
  15135. public static function withCasts($casts)
  15136. {
  15137. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15138. return $instance->withCasts($casts);
  15139. }
  15140. /**
  15141. * Get the underlying query builder instance.
  15142. *
  15143. * @return \Illuminate\Database\Query\Builder
  15144. * @static
  15145. */
  15146. public static function getQuery()
  15147. {
  15148. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15149. return $instance->getQuery();
  15150. }
  15151. /**
  15152. * Set the underlying query builder instance.
  15153. *
  15154. * @param \Illuminate\Database\Query\Builder $query
  15155. * @return \Illuminate\Database\Eloquent\Builder
  15156. * @static
  15157. */
  15158. public static function setQuery($query)
  15159. {
  15160. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15161. return $instance->setQuery($query);
  15162. }
  15163. /**
  15164. * Get a base query builder instance.
  15165. *
  15166. * @return \Illuminate\Database\Query\Builder
  15167. * @static
  15168. */
  15169. public static function toBase()
  15170. {
  15171. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15172. return $instance->toBase();
  15173. }
  15174. /**
  15175. * Get the relationships being eagerly loaded.
  15176. *
  15177. * @return array
  15178. * @static
  15179. */
  15180. public static function getEagerLoads()
  15181. {
  15182. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15183. return $instance->getEagerLoads();
  15184. }
  15185. /**
  15186. * Set the relationships being eagerly loaded.
  15187. *
  15188. * @param array $eagerLoad
  15189. * @return \Illuminate\Database\Eloquent\Builder
  15190. * @static
  15191. */
  15192. public static function setEagerLoads($eagerLoad)
  15193. {
  15194. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15195. return $instance->setEagerLoads($eagerLoad);
  15196. }
  15197. /**
  15198. * Get the model instance being queried.
  15199. *
  15200. * @return \Illuminate\Database\Eloquent\Model|static
  15201. * @static
  15202. */
  15203. public static function getModel()
  15204. {
  15205. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15206. return $instance->getModel();
  15207. }
  15208. /**
  15209. * Set a model instance for the model being queried.
  15210. *
  15211. * @param \Illuminate\Database\Eloquent\Model $model
  15212. * @return \Illuminate\Database\Eloquent\Builder
  15213. * @static
  15214. */
  15215. public static function setModel($model)
  15216. {
  15217. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15218. return $instance->setModel($model);
  15219. }
  15220. /**
  15221. * Get the given macro by name.
  15222. *
  15223. * @param string $name
  15224. * @return \Closure
  15225. * @static
  15226. */
  15227. public static function getMacro($name)
  15228. {
  15229. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15230. return $instance->getMacro($name);
  15231. }
  15232. /**
  15233. * Checks if a macro is registered.
  15234. *
  15235. * @param string $name
  15236. * @return bool
  15237. * @static
  15238. */
  15239. public static function hasMacro($name)
  15240. {
  15241. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15242. return $instance->hasMacro($name);
  15243. }
  15244. /**
  15245. * Get the given global macro by name.
  15246. *
  15247. * @param string $name
  15248. * @return \Closure
  15249. * @static
  15250. */
  15251. public static function getGlobalMacro($name)
  15252. {
  15253. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  15254. }
  15255. /**
  15256. * Checks if a global macro is registered.
  15257. *
  15258. * @param string $name
  15259. * @return bool
  15260. * @static
  15261. */
  15262. public static function hasGlobalMacro($name)
  15263. {
  15264. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  15265. }
  15266. /**
  15267. * Chunk the results of the query.
  15268. *
  15269. * @param int $count
  15270. * @param callable $callback
  15271. * @return bool
  15272. * @static
  15273. */
  15274. public static function chunk($count, $callback)
  15275. {
  15276. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15277. return $instance->chunk($count, $callback);
  15278. }
  15279. /**
  15280. * Execute a callback over each item while chunking.
  15281. *
  15282. * @param callable $callback
  15283. * @param int $count
  15284. * @return bool
  15285. * @static
  15286. */
  15287. public static function each($callback, $count = 1000)
  15288. {
  15289. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15290. return $instance->each($callback, $count);
  15291. }
  15292. /**
  15293. * Chunk the results of a query by comparing IDs.
  15294. *
  15295. * @param int $count
  15296. * @param callable $callback
  15297. * @param string|null $column
  15298. * @param string|null $alias
  15299. * @return bool
  15300. * @static
  15301. */
  15302. public static function chunkById($count, $callback, $column = null, $alias = null)
  15303. {
  15304. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15305. return $instance->chunkById($count, $callback, $column, $alias);
  15306. }
  15307. /**
  15308. * Execute a callback over each item while chunking by id.
  15309. *
  15310. * @param callable $callback
  15311. * @param int $count
  15312. * @param string|null $column
  15313. * @param string|null $alias
  15314. * @return bool
  15315. * @static
  15316. */
  15317. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  15318. {
  15319. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15320. return $instance->eachById($callback, $count, $column, $alias);
  15321. }
  15322. /**
  15323. * Execute the query and get the first result.
  15324. *
  15325. * @param array|string $columns
  15326. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15327. * @static
  15328. */
  15329. public static function first($columns = [])
  15330. {
  15331. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15332. return $instance->first($columns);
  15333. }
  15334. /**
  15335. * Apply the callback's query changes if the given "value" is true.
  15336. *
  15337. * @param mixed $value
  15338. * @param callable $callback
  15339. * @param callable|null $default
  15340. * @return mixed|$this
  15341. * @static
  15342. */
  15343. public static function when($value, $callback, $default = null)
  15344. {
  15345. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15346. return $instance->when($value, $callback, $default);
  15347. }
  15348. /**
  15349. * Pass the query to a given callback.
  15350. *
  15351. * @param callable $callback
  15352. * @return \Illuminate\Database\Query\Builder
  15353. * @static
  15354. */
  15355. public static function tap($callback)
  15356. {
  15357. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15358. return $instance->tap($callback);
  15359. }
  15360. /**
  15361. * Apply the callback's query changes if the given "value" is false.
  15362. *
  15363. * @param mixed $value
  15364. * @param callable $callback
  15365. * @param callable|null $default
  15366. * @return mixed|$this
  15367. * @static
  15368. */
  15369. public static function unless($value, $callback, $default = null)
  15370. {
  15371. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15372. return $instance->unless($value, $callback, $default);
  15373. }
  15374. /**
  15375. * Add a relationship count / exists condition to the query.
  15376. *
  15377. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  15378. * @param string $operator
  15379. * @param int $count
  15380. * @param string $boolean
  15381. * @param \Closure|null $callback
  15382. * @return \Illuminate\Database\Eloquent\Builder|static
  15383. * @throws \RuntimeException
  15384. * @static
  15385. */
  15386. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15387. {
  15388. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15389. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15390. }
  15391. /**
  15392. * Add a relationship count / exists condition to the query with an "or".
  15393. *
  15394. * @param string $relation
  15395. * @param string $operator
  15396. * @param int $count
  15397. * @return \Illuminate\Database\Eloquent\Builder|static
  15398. * @static
  15399. */
  15400. public static function orHas($relation, $operator = '>=', $count = 1)
  15401. {
  15402. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15403. return $instance->orHas($relation, $operator, $count);
  15404. }
  15405. /**
  15406. * Add a relationship count / exists condition to the query.
  15407. *
  15408. * @param string $relation
  15409. * @param string $boolean
  15410. * @param \Closure|null $callback
  15411. * @return \Illuminate\Database\Eloquent\Builder|static
  15412. * @static
  15413. */
  15414. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15415. {
  15416. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15417. return $instance->doesntHave($relation, $boolean, $callback);
  15418. }
  15419. /**
  15420. * Add a relationship count / exists condition to the query with an "or".
  15421. *
  15422. * @param string $relation
  15423. * @return \Illuminate\Database\Eloquent\Builder|static
  15424. * @static
  15425. */
  15426. public static function orDoesntHave($relation)
  15427. {
  15428. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15429. return $instance->orDoesntHave($relation);
  15430. }
  15431. /**
  15432. * Add a relationship count / exists condition to the query with where clauses.
  15433. *
  15434. * @param string $relation
  15435. * @param \Closure|null $callback
  15436. * @param string $operator
  15437. * @param int $count
  15438. * @return \Illuminate\Database\Eloquent\Builder|static
  15439. * @static
  15440. */
  15441. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15442. {
  15443. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15444. return $instance->whereHas($relation, $callback, $operator, $count);
  15445. }
  15446. /**
  15447. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15448. *
  15449. * @param string $relation
  15450. * @param \Closure|null $callback
  15451. * @param string $operator
  15452. * @param int $count
  15453. * @return \Illuminate\Database\Eloquent\Builder|static
  15454. * @static
  15455. */
  15456. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15457. {
  15458. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15459. return $instance->orWhereHas($relation, $callback, $operator, $count);
  15460. }
  15461. /**
  15462. * Add a relationship count / exists condition to the query with where clauses.
  15463. *
  15464. * @param string $relation
  15465. * @param \Closure|null $callback
  15466. * @return \Illuminate\Database\Eloquent\Builder|static
  15467. * @static
  15468. */
  15469. public static function whereDoesntHave($relation, $callback = null)
  15470. {
  15471. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15472. return $instance->whereDoesntHave($relation, $callback);
  15473. }
  15474. /**
  15475. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15476. *
  15477. * @param string $relation
  15478. * @param \Closure|null $callback
  15479. * @return \Illuminate\Database\Eloquent\Builder|static
  15480. * @static
  15481. */
  15482. public static function orWhereDoesntHave($relation, $callback = null)
  15483. {
  15484. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15485. return $instance->orWhereDoesntHave($relation, $callback);
  15486. }
  15487. /**
  15488. * Add a polymorphic relationship count / exists condition to the query.
  15489. *
  15490. * @param string $relation
  15491. * @param string|array $types
  15492. * @param string $operator
  15493. * @param int $count
  15494. * @param string $boolean
  15495. * @param \Closure|null $callback
  15496. * @return \Illuminate\Database\Eloquent\Builder|static
  15497. * @static
  15498. */
  15499. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15500. {
  15501. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15502. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  15503. }
  15504. /**
  15505. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15506. *
  15507. * @param string $relation
  15508. * @param string|array $types
  15509. * @param string $operator
  15510. * @param int $count
  15511. * @return \Illuminate\Database\Eloquent\Builder|static
  15512. * @static
  15513. */
  15514. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  15515. {
  15516. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15517. return $instance->orHasMorph($relation, $types, $operator, $count);
  15518. }
  15519. /**
  15520. * Add a polymorphic relationship count / exists condition to the query.
  15521. *
  15522. * @param string $relation
  15523. * @param string|array $types
  15524. * @param string $boolean
  15525. * @param \Closure|null $callback
  15526. * @return \Illuminate\Database\Eloquent\Builder|static
  15527. * @static
  15528. */
  15529. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  15530. {
  15531. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15532. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  15533. }
  15534. /**
  15535. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15536. *
  15537. * @param string $relation
  15538. * @param string|array $types
  15539. * @return \Illuminate\Database\Eloquent\Builder|static
  15540. * @static
  15541. */
  15542. public static function orDoesntHaveMorph($relation, $types)
  15543. {
  15544. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15545. return $instance->orDoesntHaveMorph($relation, $types);
  15546. }
  15547. /**
  15548. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15549. *
  15550. * @param string $relation
  15551. * @param string|array $types
  15552. * @param \Closure|null $callback
  15553. * @param string $operator
  15554. * @param int $count
  15555. * @return \Illuminate\Database\Eloquent\Builder|static
  15556. * @static
  15557. */
  15558. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  15559. {
  15560. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15561. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  15562. }
  15563. /**
  15564. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  15565. *
  15566. * @param string $relation
  15567. * @param string|array $types
  15568. * @param \Closure|null $callback
  15569. * @param string $operator
  15570. * @param int $count
  15571. * @return \Illuminate\Database\Eloquent\Builder|static
  15572. * @static
  15573. */
  15574. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  15575. {
  15576. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15577. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  15578. }
  15579. /**
  15580. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15581. *
  15582. * @param string $relation
  15583. * @param string|array $types
  15584. * @param \Closure|null $callback
  15585. * @return \Illuminate\Database\Eloquent\Builder|static
  15586. * @static
  15587. */
  15588. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  15589. {
  15590. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15591. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  15592. }
  15593. /**
  15594. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  15595. *
  15596. * @param string $relation
  15597. * @param string|array $types
  15598. * @param \Closure|null $callback
  15599. * @return \Illuminate\Database\Eloquent\Builder|static
  15600. * @static
  15601. */
  15602. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  15603. {
  15604. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15605. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  15606. }
  15607. /**
  15608. * Add subselect queries to count the relations.
  15609. *
  15610. * @param mixed $relations
  15611. * @return \Illuminate\Database\Eloquent\Builder
  15612. * @static
  15613. */
  15614. public static function withCount($relations)
  15615. {
  15616. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15617. return $instance->withCount($relations);
  15618. }
  15619. /**
  15620. * Merge the where constraints from another query to the current query.
  15621. *
  15622. * @param \Illuminate\Database\Eloquent\Builder $from
  15623. * @return \Illuminate\Database\Eloquent\Builder|static
  15624. * @static
  15625. */
  15626. public static function mergeConstraintsFrom($from)
  15627. {
  15628. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15629. return $instance->mergeConstraintsFrom($from);
  15630. }
  15631. /**
  15632. * Set the columns to be selected.
  15633. *
  15634. * @param array|mixed $columns
  15635. * @return \Illuminate\Database\Query\Builder
  15636. * @static
  15637. */
  15638. public static function select($columns = [])
  15639. {
  15640. /** @var \Illuminate\Database\Query\Builder $instance */
  15641. return $instance->select($columns);
  15642. }
  15643. /**
  15644. * Add a subselect expression to the query.
  15645. *
  15646. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15647. * @param string $as
  15648. * @return \Illuminate\Database\Query\Builder
  15649. * @throws \InvalidArgumentException
  15650. * @static
  15651. */
  15652. public static function selectSub($query, $as)
  15653. {
  15654. /** @var \Illuminate\Database\Query\Builder $instance */
  15655. return $instance->selectSub($query, $as);
  15656. }
  15657. /**
  15658. * Add a new "raw" select expression to the query.
  15659. *
  15660. * @param string $expression
  15661. * @param array $bindings
  15662. * @return \Illuminate\Database\Query\Builder
  15663. * @static
  15664. */
  15665. public static function selectRaw($expression, $bindings = [])
  15666. {
  15667. /** @var \Illuminate\Database\Query\Builder $instance */
  15668. return $instance->selectRaw($expression, $bindings);
  15669. }
  15670. /**
  15671. * Makes "from" fetch from a subquery.
  15672. *
  15673. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15674. * @param string $as
  15675. * @return \Illuminate\Database\Query\Builder
  15676. * @throws \InvalidArgumentException
  15677. * @static
  15678. */
  15679. public static function fromSub($query, $as)
  15680. {
  15681. /** @var \Illuminate\Database\Query\Builder $instance */
  15682. return $instance->fromSub($query, $as);
  15683. }
  15684. /**
  15685. * Add a raw from clause to the query.
  15686. *
  15687. * @param string $expression
  15688. * @param mixed $bindings
  15689. * @return \Illuminate\Database\Query\Builder
  15690. * @static
  15691. */
  15692. public static function fromRaw($expression, $bindings = [])
  15693. {
  15694. /** @var \Illuminate\Database\Query\Builder $instance */
  15695. return $instance->fromRaw($expression, $bindings);
  15696. }
  15697. /**
  15698. * Add a new select column to the query.
  15699. *
  15700. * @param array|mixed $column
  15701. * @return \Illuminate\Database\Query\Builder
  15702. * @static
  15703. */
  15704. public static function addSelect($column)
  15705. {
  15706. /** @var \Illuminate\Database\Query\Builder $instance */
  15707. return $instance->addSelect($column);
  15708. }
  15709. /**
  15710. * Force the query to only return distinct results.
  15711. *
  15712. * @return \Illuminate\Database\Query\Builder
  15713. * @static
  15714. */
  15715. public static function distinct()
  15716. {
  15717. /** @var \Illuminate\Database\Query\Builder $instance */
  15718. return $instance->distinct();
  15719. }
  15720. /**
  15721. * Set the table which the query is targeting.
  15722. *
  15723. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  15724. * @param string|null $as
  15725. * @return \Illuminate\Database\Query\Builder
  15726. * @static
  15727. */
  15728. public static function from($table, $as = null)
  15729. {
  15730. /** @var \Illuminate\Database\Query\Builder $instance */
  15731. return $instance->from($table, $as);
  15732. }
  15733. /**
  15734. * Add a join clause to the query.
  15735. *
  15736. * @param string $table
  15737. * @param \Closure|string $first
  15738. * @param string|null $operator
  15739. * @param string|null $second
  15740. * @param string $type
  15741. * @param bool $where
  15742. * @return \Illuminate\Database\Query\Builder
  15743. * @static
  15744. */
  15745. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15746. {
  15747. /** @var \Illuminate\Database\Query\Builder $instance */
  15748. return $instance->join($table, $first, $operator, $second, $type, $where);
  15749. }
  15750. /**
  15751. * Add a "join where" clause to the query.
  15752. *
  15753. * @param string $table
  15754. * @param \Closure|string $first
  15755. * @param string $operator
  15756. * @param string $second
  15757. * @param string $type
  15758. * @return \Illuminate\Database\Query\Builder
  15759. * @static
  15760. */
  15761. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  15762. {
  15763. /** @var \Illuminate\Database\Query\Builder $instance */
  15764. return $instance->joinWhere($table, $first, $operator, $second, $type);
  15765. }
  15766. /**
  15767. * Add a subquery join clause to the query.
  15768. *
  15769. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15770. * @param string $as
  15771. * @param \Closure|string $first
  15772. * @param string|null $operator
  15773. * @param string|null $second
  15774. * @param string $type
  15775. * @param bool $where
  15776. * @return \Illuminate\Database\Query\Builder
  15777. * @throws \InvalidArgumentException
  15778. * @static
  15779. */
  15780. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15781. {
  15782. /** @var \Illuminate\Database\Query\Builder $instance */
  15783. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  15784. }
  15785. /**
  15786. * Add a left join to the query.
  15787. *
  15788. * @param string $table
  15789. * @param \Closure|string $first
  15790. * @param string|null $operator
  15791. * @param string|null $second
  15792. * @return \Illuminate\Database\Query\Builder
  15793. * @static
  15794. */
  15795. public static function leftJoin($table, $first, $operator = null, $second = null)
  15796. {
  15797. /** @var \Illuminate\Database\Query\Builder $instance */
  15798. return $instance->leftJoin($table, $first, $operator, $second);
  15799. }
  15800. /**
  15801. * Add a "join where" clause to the query.
  15802. *
  15803. * @param string $table
  15804. * @param \Closure|string $first
  15805. * @param string $operator
  15806. * @param string $second
  15807. * @return \Illuminate\Database\Query\Builder
  15808. * @static
  15809. */
  15810. public static function leftJoinWhere($table, $first, $operator, $second)
  15811. {
  15812. /** @var \Illuminate\Database\Query\Builder $instance */
  15813. return $instance->leftJoinWhere($table, $first, $operator, $second);
  15814. }
  15815. /**
  15816. * Add a subquery left join to the query.
  15817. *
  15818. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15819. * @param string $as
  15820. * @param \Closure|string $first
  15821. * @param string|null $operator
  15822. * @param string|null $second
  15823. * @return \Illuminate\Database\Query\Builder
  15824. * @static
  15825. */
  15826. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  15827. {
  15828. /** @var \Illuminate\Database\Query\Builder $instance */
  15829. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  15830. }
  15831. /**
  15832. * Add a right join to the query.
  15833. *
  15834. * @param string $table
  15835. * @param \Closure|string $first
  15836. * @param string|null $operator
  15837. * @param string|null $second
  15838. * @return \Illuminate\Database\Query\Builder
  15839. * @static
  15840. */
  15841. public static function rightJoin($table, $first, $operator = null, $second = null)
  15842. {
  15843. /** @var \Illuminate\Database\Query\Builder $instance */
  15844. return $instance->rightJoin($table, $first, $operator, $second);
  15845. }
  15846. /**
  15847. * Add a "right join where" clause to the query.
  15848. *
  15849. * @param string $table
  15850. * @param \Closure|string $first
  15851. * @param string $operator
  15852. * @param string $second
  15853. * @return \Illuminate\Database\Query\Builder
  15854. * @static
  15855. */
  15856. public static function rightJoinWhere($table, $first, $operator, $second)
  15857. {
  15858. /** @var \Illuminate\Database\Query\Builder $instance */
  15859. return $instance->rightJoinWhere($table, $first, $operator, $second);
  15860. }
  15861. /**
  15862. * Add a subquery right join to the query.
  15863. *
  15864. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15865. * @param string $as
  15866. * @param \Closure|string $first
  15867. * @param string|null $operator
  15868. * @param string|null $second
  15869. * @return \Illuminate\Database\Query\Builder
  15870. * @static
  15871. */
  15872. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  15873. {
  15874. /** @var \Illuminate\Database\Query\Builder $instance */
  15875. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  15876. }
  15877. /**
  15878. * Add a "cross join" clause to the query.
  15879. *
  15880. * @param string $table
  15881. * @param \Closure|string|null $first
  15882. * @param string|null $operator
  15883. * @param string|null $second
  15884. * @return \Illuminate\Database\Query\Builder
  15885. * @static
  15886. */
  15887. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  15888. {
  15889. /** @var \Illuminate\Database\Query\Builder $instance */
  15890. return $instance->crossJoin($table, $first, $operator, $second);
  15891. }
  15892. /**
  15893. * Merge an array of where clauses and bindings.
  15894. *
  15895. * @param array $wheres
  15896. * @param array $bindings
  15897. * @return void
  15898. * @static
  15899. */
  15900. public static function mergeWheres($wheres, $bindings)
  15901. {
  15902. /** @var \Illuminate\Database\Query\Builder $instance */
  15903. $instance->mergeWheres($wheres, $bindings);
  15904. }
  15905. /**
  15906. * Prepare the value and operator for a where clause.
  15907. *
  15908. * @param string $value
  15909. * @param string $operator
  15910. * @param bool $useDefault
  15911. * @return array
  15912. * @throws \InvalidArgumentException
  15913. * @static
  15914. */
  15915. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  15916. {
  15917. /** @var \Illuminate\Database\Query\Builder $instance */
  15918. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  15919. }
  15920. /**
  15921. * Add a "where" clause comparing two columns to the query.
  15922. *
  15923. * @param string|array $first
  15924. * @param string|null $operator
  15925. * @param string|null $second
  15926. * @param string|null $boolean
  15927. * @return \Illuminate\Database\Query\Builder
  15928. * @static
  15929. */
  15930. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  15931. {
  15932. /** @var \Illuminate\Database\Query\Builder $instance */
  15933. return $instance->whereColumn($first, $operator, $second, $boolean);
  15934. }
  15935. /**
  15936. * Add an "or where" clause comparing two columns to the query.
  15937. *
  15938. * @param string|array $first
  15939. * @param string|null $operator
  15940. * @param string|null $second
  15941. * @return \Illuminate\Database\Query\Builder
  15942. * @static
  15943. */
  15944. public static function orWhereColumn($first, $operator = null, $second = null)
  15945. {
  15946. /** @var \Illuminate\Database\Query\Builder $instance */
  15947. return $instance->orWhereColumn($first, $operator, $second);
  15948. }
  15949. /**
  15950. * Add a raw where clause to the query.
  15951. *
  15952. * @param string $sql
  15953. * @param mixed $bindings
  15954. * @param string $boolean
  15955. * @return \Illuminate\Database\Query\Builder
  15956. * @static
  15957. */
  15958. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  15959. {
  15960. /** @var \Illuminate\Database\Query\Builder $instance */
  15961. return $instance->whereRaw($sql, $bindings, $boolean);
  15962. }
  15963. /**
  15964. * Add a raw or where clause to the query.
  15965. *
  15966. * @param string $sql
  15967. * @param mixed $bindings
  15968. * @return \Illuminate\Database\Query\Builder
  15969. * @static
  15970. */
  15971. public static function orWhereRaw($sql, $bindings = [])
  15972. {
  15973. /** @var \Illuminate\Database\Query\Builder $instance */
  15974. return $instance->orWhereRaw($sql, $bindings);
  15975. }
  15976. /**
  15977. * Add a "where in" clause to the query.
  15978. *
  15979. * @param string $column
  15980. * @param mixed $values
  15981. * @param string $boolean
  15982. * @param bool $not
  15983. * @return \Illuminate\Database\Query\Builder
  15984. * @static
  15985. */
  15986. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  15987. {
  15988. /** @var \Illuminate\Database\Query\Builder $instance */
  15989. return $instance->whereIn($column, $values, $boolean, $not);
  15990. }
  15991. /**
  15992. * Add an "or where in" clause to the query.
  15993. *
  15994. * @param string $column
  15995. * @param mixed $values
  15996. * @return \Illuminate\Database\Query\Builder
  15997. * @static
  15998. */
  15999. public static function orWhereIn($column, $values)
  16000. {
  16001. /** @var \Illuminate\Database\Query\Builder $instance */
  16002. return $instance->orWhereIn($column, $values);
  16003. }
  16004. /**
  16005. * Add a "where not in" clause to the query.
  16006. *
  16007. * @param string $column
  16008. * @param mixed $values
  16009. * @param string $boolean
  16010. * @return \Illuminate\Database\Query\Builder
  16011. * @static
  16012. */
  16013. public static function whereNotIn($column, $values, $boolean = 'and')
  16014. {
  16015. /** @var \Illuminate\Database\Query\Builder $instance */
  16016. return $instance->whereNotIn($column, $values, $boolean);
  16017. }
  16018. /**
  16019. * Add an "or where not in" clause to the query.
  16020. *
  16021. * @param string $column
  16022. * @param mixed $values
  16023. * @return \Illuminate\Database\Query\Builder
  16024. * @static
  16025. */
  16026. public static function orWhereNotIn($column, $values)
  16027. {
  16028. /** @var \Illuminate\Database\Query\Builder $instance */
  16029. return $instance->orWhereNotIn($column, $values);
  16030. }
  16031. /**
  16032. * Add a "where in raw" clause for integer values to the query.
  16033. *
  16034. * @param string $column
  16035. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16036. * @param string $boolean
  16037. * @param bool $not
  16038. * @return \Illuminate\Database\Query\Builder
  16039. * @static
  16040. */
  16041. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  16042. {
  16043. /** @var \Illuminate\Database\Query\Builder $instance */
  16044. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  16045. }
  16046. /**
  16047. * Add a "where not in raw" clause for integer values to the query.
  16048. *
  16049. * @param string $column
  16050. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16051. * @param string $boolean
  16052. * @return \Illuminate\Database\Query\Builder
  16053. * @static
  16054. */
  16055. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  16056. {
  16057. /** @var \Illuminate\Database\Query\Builder $instance */
  16058. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  16059. }
  16060. /**
  16061. * Add a "where null" clause to the query.
  16062. *
  16063. * @param string|array $columns
  16064. * @param string $boolean
  16065. * @param bool $not
  16066. * @return \Illuminate\Database\Query\Builder
  16067. * @static
  16068. */
  16069. public static function whereNull($columns, $boolean = 'and', $not = false)
  16070. {
  16071. /** @var \Illuminate\Database\Query\Builder $instance */
  16072. return $instance->whereNull($columns, $boolean, $not);
  16073. }
  16074. /**
  16075. * Add an "or where null" clause to the query.
  16076. *
  16077. * @param string $column
  16078. * @return \Illuminate\Database\Query\Builder
  16079. * @static
  16080. */
  16081. public static function orWhereNull($column)
  16082. {
  16083. /** @var \Illuminate\Database\Query\Builder $instance */
  16084. return $instance->orWhereNull($column);
  16085. }
  16086. /**
  16087. * Add a "where not null" clause to the query.
  16088. *
  16089. * @param string|array $columns
  16090. * @param string $boolean
  16091. * @return \Illuminate\Database\Query\Builder
  16092. * @static
  16093. */
  16094. public static function whereNotNull($columns, $boolean = 'and')
  16095. {
  16096. /** @var \Illuminate\Database\Query\Builder $instance */
  16097. return $instance->whereNotNull($columns, $boolean);
  16098. }
  16099. /**
  16100. * Add a where between statement to the query.
  16101. *
  16102. * @param string $column
  16103. * @param array $values
  16104. * @param string $boolean
  16105. * @param bool $not
  16106. * @return \Illuminate\Database\Query\Builder
  16107. * @static
  16108. */
  16109. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  16110. {
  16111. /** @var \Illuminate\Database\Query\Builder $instance */
  16112. return $instance->whereBetween($column, $values, $boolean, $not);
  16113. }
  16114. /**
  16115. * Add an or where between statement to the query.
  16116. *
  16117. * @param string $column
  16118. * @param array $values
  16119. * @return \Illuminate\Database\Query\Builder
  16120. * @static
  16121. */
  16122. public static function orWhereBetween($column, $values)
  16123. {
  16124. /** @var \Illuminate\Database\Query\Builder $instance */
  16125. return $instance->orWhereBetween($column, $values);
  16126. }
  16127. /**
  16128. * Add a where not between statement to the query.
  16129. *
  16130. * @param string $column
  16131. * @param array $values
  16132. * @param string $boolean
  16133. * @return \Illuminate\Database\Query\Builder
  16134. * @static
  16135. */
  16136. public static function whereNotBetween($column, $values, $boolean = 'and')
  16137. {
  16138. /** @var \Illuminate\Database\Query\Builder $instance */
  16139. return $instance->whereNotBetween($column, $values, $boolean);
  16140. }
  16141. /**
  16142. * Add an or where not between statement to the query.
  16143. *
  16144. * @param string $column
  16145. * @param array $values
  16146. * @return \Illuminate\Database\Query\Builder
  16147. * @static
  16148. */
  16149. public static function orWhereNotBetween($column, $values)
  16150. {
  16151. /** @var \Illuminate\Database\Query\Builder $instance */
  16152. return $instance->orWhereNotBetween($column, $values);
  16153. }
  16154. /**
  16155. * Add an "or where not null" clause to the query.
  16156. *
  16157. * @param string $column
  16158. * @return \Illuminate\Database\Query\Builder
  16159. * @static
  16160. */
  16161. public static function orWhereNotNull($column)
  16162. {
  16163. /** @var \Illuminate\Database\Query\Builder $instance */
  16164. return $instance->orWhereNotNull($column);
  16165. }
  16166. /**
  16167. * Add a "where date" statement to the query.
  16168. *
  16169. * @param string $column
  16170. * @param string $operator
  16171. * @param \DateTimeInterface|string|null $value
  16172. * @param string $boolean
  16173. * @return \Illuminate\Database\Query\Builder
  16174. * @static
  16175. */
  16176. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  16177. {
  16178. /** @var \Illuminate\Database\Query\Builder $instance */
  16179. return $instance->whereDate($column, $operator, $value, $boolean);
  16180. }
  16181. /**
  16182. * Add an "or where date" statement to the query.
  16183. *
  16184. * @param string $column
  16185. * @param string $operator
  16186. * @param \DateTimeInterface|string|null $value
  16187. * @return \Illuminate\Database\Query\Builder
  16188. * @static
  16189. */
  16190. public static function orWhereDate($column, $operator, $value = null)
  16191. {
  16192. /** @var \Illuminate\Database\Query\Builder $instance */
  16193. return $instance->orWhereDate($column, $operator, $value);
  16194. }
  16195. /**
  16196. * Add a "where time" statement to the query.
  16197. *
  16198. * @param string $column
  16199. * @param string $operator
  16200. * @param \DateTimeInterface|string|null $value
  16201. * @param string $boolean
  16202. * @return \Illuminate\Database\Query\Builder
  16203. * @static
  16204. */
  16205. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  16206. {
  16207. /** @var \Illuminate\Database\Query\Builder $instance */
  16208. return $instance->whereTime($column, $operator, $value, $boolean);
  16209. }
  16210. /**
  16211. * Add an "or where time" statement to the query.
  16212. *
  16213. * @param string $column
  16214. * @param string $operator
  16215. * @param \DateTimeInterface|string|null $value
  16216. * @return \Illuminate\Database\Query\Builder
  16217. * @static
  16218. */
  16219. public static function orWhereTime($column, $operator, $value = null)
  16220. {
  16221. /** @var \Illuminate\Database\Query\Builder $instance */
  16222. return $instance->orWhereTime($column, $operator, $value);
  16223. }
  16224. /**
  16225. * Add a "where day" statement to the query.
  16226. *
  16227. * @param string $column
  16228. * @param string $operator
  16229. * @param \DateTimeInterface|string|null $value
  16230. * @param string $boolean
  16231. * @return \Illuminate\Database\Query\Builder
  16232. * @static
  16233. */
  16234. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  16235. {
  16236. /** @var \Illuminate\Database\Query\Builder $instance */
  16237. return $instance->whereDay($column, $operator, $value, $boolean);
  16238. }
  16239. /**
  16240. * Add an "or where day" statement to the query.
  16241. *
  16242. * @param string $column
  16243. * @param string $operator
  16244. * @param \DateTimeInterface|string|null $value
  16245. * @return \Illuminate\Database\Query\Builder
  16246. * @static
  16247. */
  16248. public static function orWhereDay($column, $operator, $value = null)
  16249. {
  16250. /** @var \Illuminate\Database\Query\Builder $instance */
  16251. return $instance->orWhereDay($column, $operator, $value);
  16252. }
  16253. /**
  16254. * Add a "where month" statement to the query.
  16255. *
  16256. * @param string $column
  16257. * @param string $operator
  16258. * @param \DateTimeInterface|string|null $value
  16259. * @param string $boolean
  16260. * @return \Illuminate\Database\Query\Builder
  16261. * @static
  16262. */
  16263. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  16264. {
  16265. /** @var \Illuminate\Database\Query\Builder $instance */
  16266. return $instance->whereMonth($column, $operator, $value, $boolean);
  16267. }
  16268. /**
  16269. * Add an "or where month" statement to the query.
  16270. *
  16271. * @param string $column
  16272. * @param string $operator
  16273. * @param \DateTimeInterface|string|null $value
  16274. * @return \Illuminate\Database\Query\Builder
  16275. * @static
  16276. */
  16277. public static function orWhereMonth($column, $operator, $value = null)
  16278. {
  16279. /** @var \Illuminate\Database\Query\Builder $instance */
  16280. return $instance->orWhereMonth($column, $operator, $value);
  16281. }
  16282. /**
  16283. * Add a "where year" statement to the query.
  16284. *
  16285. * @param string $column
  16286. * @param string $operator
  16287. * @param \DateTimeInterface|string|int|null $value
  16288. * @param string $boolean
  16289. * @return \Illuminate\Database\Query\Builder
  16290. * @static
  16291. */
  16292. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  16293. {
  16294. /** @var \Illuminate\Database\Query\Builder $instance */
  16295. return $instance->whereYear($column, $operator, $value, $boolean);
  16296. }
  16297. /**
  16298. * Add an "or where year" statement to the query.
  16299. *
  16300. * @param string $column
  16301. * @param string $operator
  16302. * @param \DateTimeInterface|string|int|null $value
  16303. * @return \Illuminate\Database\Query\Builder
  16304. * @static
  16305. */
  16306. public static function orWhereYear($column, $operator, $value = null)
  16307. {
  16308. /** @var \Illuminate\Database\Query\Builder $instance */
  16309. return $instance->orWhereYear($column, $operator, $value);
  16310. }
  16311. /**
  16312. * Add a nested where statement to the query.
  16313. *
  16314. * @param \Closure $callback
  16315. * @param string $boolean
  16316. * @return \Illuminate\Database\Query\Builder
  16317. * @static
  16318. */
  16319. public static function whereNested($callback, $boolean = 'and')
  16320. {
  16321. /** @var \Illuminate\Database\Query\Builder $instance */
  16322. return $instance->whereNested($callback, $boolean);
  16323. }
  16324. /**
  16325. * Create a new query instance for nested where condition.
  16326. *
  16327. * @return \Illuminate\Database\Query\Builder
  16328. * @static
  16329. */
  16330. public static function forNestedWhere()
  16331. {
  16332. /** @var \Illuminate\Database\Query\Builder $instance */
  16333. return $instance->forNestedWhere();
  16334. }
  16335. /**
  16336. * Add another query builder as a nested where to the query builder.
  16337. *
  16338. * @param $this $query
  16339. * @param string $boolean
  16340. * @return \Illuminate\Database\Query\Builder
  16341. * @static
  16342. */
  16343. public static function addNestedWhereQuery($query, $boolean = 'and')
  16344. {
  16345. /** @var \Illuminate\Database\Query\Builder $instance */
  16346. return $instance->addNestedWhereQuery($query, $boolean);
  16347. }
  16348. /**
  16349. * Add an exists clause to the query.
  16350. *
  16351. * @param \Closure $callback
  16352. * @param string $boolean
  16353. * @param bool $not
  16354. * @return \Illuminate\Database\Query\Builder
  16355. * @static
  16356. */
  16357. public static function whereExists($callback, $boolean = 'and', $not = false)
  16358. {
  16359. /** @var \Illuminate\Database\Query\Builder $instance */
  16360. return $instance->whereExists($callback, $boolean, $not);
  16361. }
  16362. /**
  16363. * Add an or exists clause to the query.
  16364. *
  16365. * @param \Closure $callback
  16366. * @param bool $not
  16367. * @return \Illuminate\Database\Query\Builder
  16368. * @static
  16369. */
  16370. public static function orWhereExists($callback, $not = false)
  16371. {
  16372. /** @var \Illuminate\Database\Query\Builder $instance */
  16373. return $instance->orWhereExists($callback, $not);
  16374. }
  16375. /**
  16376. * Add a where not exists clause to the query.
  16377. *
  16378. * @param \Closure $callback
  16379. * @param string $boolean
  16380. * @return \Illuminate\Database\Query\Builder
  16381. * @static
  16382. */
  16383. public static function whereNotExists($callback, $boolean = 'and')
  16384. {
  16385. /** @var \Illuminate\Database\Query\Builder $instance */
  16386. return $instance->whereNotExists($callback, $boolean);
  16387. }
  16388. /**
  16389. * Add a where not exists clause to the query.
  16390. *
  16391. * @param \Closure $callback
  16392. * @return \Illuminate\Database\Query\Builder
  16393. * @static
  16394. */
  16395. public static function orWhereNotExists($callback)
  16396. {
  16397. /** @var \Illuminate\Database\Query\Builder $instance */
  16398. return $instance->orWhereNotExists($callback);
  16399. }
  16400. /**
  16401. * Add an exists clause to the query.
  16402. *
  16403. * @param \Illuminate\Database\Query\Builder $query
  16404. * @param string $boolean
  16405. * @param bool $not
  16406. * @return \Illuminate\Database\Query\Builder
  16407. * @static
  16408. */
  16409. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16410. {
  16411. /** @var \Illuminate\Database\Query\Builder $instance */
  16412. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16413. }
  16414. /**
  16415. * Adds a where condition using row values.
  16416. *
  16417. * @param array $columns
  16418. * @param string $operator
  16419. * @param array $values
  16420. * @param string $boolean
  16421. * @return \Illuminate\Database\Query\Builder
  16422. * @throws \InvalidArgumentException
  16423. * @static
  16424. */
  16425. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16426. {
  16427. /** @var \Illuminate\Database\Query\Builder $instance */
  16428. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16429. }
  16430. /**
  16431. * Adds a or where condition using row values.
  16432. *
  16433. * @param array $columns
  16434. * @param string $operator
  16435. * @param array $values
  16436. * @return \Illuminate\Database\Query\Builder
  16437. * @static
  16438. */
  16439. public static function orWhereRowValues($columns, $operator, $values)
  16440. {
  16441. /** @var \Illuminate\Database\Query\Builder $instance */
  16442. return $instance->orWhereRowValues($columns, $operator, $values);
  16443. }
  16444. /**
  16445. * Add a "where JSON contains" clause to the query.
  16446. *
  16447. * @param string $column
  16448. * @param mixed $value
  16449. * @param string $boolean
  16450. * @param bool $not
  16451. * @return \Illuminate\Database\Query\Builder
  16452. * @static
  16453. */
  16454. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16455. {
  16456. /** @var \Illuminate\Database\Query\Builder $instance */
  16457. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16458. }
  16459. /**
  16460. * Add a "or where JSON contains" clause to the query.
  16461. *
  16462. * @param string $column
  16463. * @param mixed $value
  16464. * @return \Illuminate\Database\Query\Builder
  16465. * @static
  16466. */
  16467. public static function orWhereJsonContains($column, $value)
  16468. {
  16469. /** @var \Illuminate\Database\Query\Builder $instance */
  16470. return $instance->orWhereJsonContains($column, $value);
  16471. }
  16472. /**
  16473. * Add a "where JSON not contains" clause to the query.
  16474. *
  16475. * @param string $column
  16476. * @param mixed $value
  16477. * @param string $boolean
  16478. * @return \Illuminate\Database\Query\Builder
  16479. * @static
  16480. */
  16481. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  16482. {
  16483. /** @var \Illuminate\Database\Query\Builder $instance */
  16484. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  16485. }
  16486. /**
  16487. * Add a "or where JSON not contains" clause to the query.
  16488. *
  16489. * @param string $column
  16490. * @param mixed $value
  16491. * @return \Illuminate\Database\Query\Builder
  16492. * @static
  16493. */
  16494. public static function orWhereJsonDoesntContain($column, $value)
  16495. {
  16496. /** @var \Illuminate\Database\Query\Builder $instance */
  16497. return $instance->orWhereJsonDoesntContain($column, $value);
  16498. }
  16499. /**
  16500. * Add a "where JSON length" clause to the query.
  16501. *
  16502. * @param string $column
  16503. * @param mixed $operator
  16504. * @param mixed $value
  16505. * @param string $boolean
  16506. * @return \Illuminate\Database\Query\Builder
  16507. * @static
  16508. */
  16509. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  16510. {
  16511. /** @var \Illuminate\Database\Query\Builder $instance */
  16512. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  16513. }
  16514. /**
  16515. * Add a "or where JSON length" clause to the query.
  16516. *
  16517. * @param string $column
  16518. * @param mixed $operator
  16519. * @param mixed $value
  16520. * @return \Illuminate\Database\Query\Builder
  16521. * @static
  16522. */
  16523. public static function orWhereJsonLength($column, $operator, $value = null)
  16524. {
  16525. /** @var \Illuminate\Database\Query\Builder $instance */
  16526. return $instance->orWhereJsonLength($column, $operator, $value);
  16527. }
  16528. /**
  16529. * Handles dynamic "where" clauses to the query.
  16530. *
  16531. * @param string $method
  16532. * @param array $parameters
  16533. * @return \Illuminate\Database\Query\Builder
  16534. * @static
  16535. */
  16536. public static function dynamicWhere($method, $parameters)
  16537. {
  16538. /** @var \Illuminate\Database\Query\Builder $instance */
  16539. return $instance->dynamicWhere($method, $parameters);
  16540. }
  16541. /**
  16542. * Add a "group by" clause to the query.
  16543. *
  16544. * @param array|string $groups
  16545. * @return \Illuminate\Database\Query\Builder
  16546. * @static
  16547. */
  16548. public static function groupBy(...$groups)
  16549. {
  16550. /** @var \Illuminate\Database\Query\Builder $instance */
  16551. return $instance->groupBy(...$groups);
  16552. }
  16553. /**
  16554. * Add a raw groupBy clause to the query.
  16555. *
  16556. * @param string $sql
  16557. * @param array $bindings
  16558. * @return \Illuminate\Database\Query\Builder
  16559. * @static
  16560. */
  16561. public static function groupByRaw($sql, $bindings = [])
  16562. {
  16563. /** @var \Illuminate\Database\Query\Builder $instance */
  16564. return $instance->groupByRaw($sql, $bindings);
  16565. }
  16566. /**
  16567. * Add a "having" clause to the query.
  16568. *
  16569. * @param string $column
  16570. * @param string|null $operator
  16571. * @param string|null $value
  16572. * @param string $boolean
  16573. * @return \Illuminate\Database\Query\Builder
  16574. * @static
  16575. */
  16576. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  16577. {
  16578. /** @var \Illuminate\Database\Query\Builder $instance */
  16579. return $instance->having($column, $operator, $value, $boolean);
  16580. }
  16581. /**
  16582. * Add a "or having" clause to the query.
  16583. *
  16584. * @param string $column
  16585. * @param string|null $operator
  16586. * @param string|null $value
  16587. * @return \Illuminate\Database\Query\Builder
  16588. * @static
  16589. */
  16590. public static function orHaving($column, $operator = null, $value = null)
  16591. {
  16592. /** @var \Illuminate\Database\Query\Builder $instance */
  16593. return $instance->orHaving($column, $operator, $value);
  16594. }
  16595. /**
  16596. * Add a "having between " clause to the query.
  16597. *
  16598. * @param string $column
  16599. * @param array $values
  16600. * @param string $boolean
  16601. * @param bool $not
  16602. * @return \Illuminate\Database\Query\Builder
  16603. * @static
  16604. */
  16605. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  16606. {
  16607. /** @var \Illuminate\Database\Query\Builder $instance */
  16608. return $instance->havingBetween($column, $values, $boolean, $not);
  16609. }
  16610. /**
  16611. * Add a raw having clause to the query.
  16612. *
  16613. * @param string $sql
  16614. * @param array $bindings
  16615. * @param string $boolean
  16616. * @return \Illuminate\Database\Query\Builder
  16617. * @static
  16618. */
  16619. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  16620. {
  16621. /** @var \Illuminate\Database\Query\Builder $instance */
  16622. return $instance->havingRaw($sql, $bindings, $boolean);
  16623. }
  16624. /**
  16625. * Add a raw or having clause to the query.
  16626. *
  16627. * @param string $sql
  16628. * @param array $bindings
  16629. * @return \Illuminate\Database\Query\Builder
  16630. * @static
  16631. */
  16632. public static function orHavingRaw($sql, $bindings = [])
  16633. {
  16634. /** @var \Illuminate\Database\Query\Builder $instance */
  16635. return $instance->orHavingRaw($sql, $bindings);
  16636. }
  16637. /**
  16638. * Add an "order by" clause to the query.
  16639. *
  16640. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  16641. * @param string $direction
  16642. * @return \Illuminate\Database\Query\Builder
  16643. * @throws \InvalidArgumentException
  16644. * @static
  16645. */
  16646. public static function orderBy($column, $direction = 'asc')
  16647. {
  16648. /** @var \Illuminate\Database\Query\Builder $instance */
  16649. return $instance->orderBy($column, $direction);
  16650. }
  16651. /**
  16652. * Add a descending "order by" clause to the query.
  16653. *
  16654. * @param string $column
  16655. * @return \Illuminate\Database\Query\Builder
  16656. * @static
  16657. */
  16658. public static function orderByDesc($column)
  16659. {
  16660. /** @var \Illuminate\Database\Query\Builder $instance */
  16661. return $instance->orderByDesc($column);
  16662. }
  16663. /**
  16664. * Put the query's results in random order.
  16665. *
  16666. * @param string $seed
  16667. * @return \Illuminate\Database\Query\Builder
  16668. * @static
  16669. */
  16670. public static function inRandomOrder($seed = '')
  16671. {
  16672. /** @var \Illuminate\Database\Query\Builder $instance */
  16673. return $instance->inRandomOrder($seed);
  16674. }
  16675. /**
  16676. * Add a raw "order by" clause to the query.
  16677. *
  16678. * @param string $sql
  16679. * @param array $bindings
  16680. * @return \Illuminate\Database\Query\Builder
  16681. * @static
  16682. */
  16683. public static function orderByRaw($sql, $bindings = [])
  16684. {
  16685. /** @var \Illuminate\Database\Query\Builder $instance */
  16686. return $instance->orderByRaw($sql, $bindings);
  16687. }
  16688. /**
  16689. * Alias to set the "offset" value of the query.
  16690. *
  16691. * @param int $value
  16692. * @return \Illuminate\Database\Query\Builder
  16693. * @static
  16694. */
  16695. public static function skip($value)
  16696. {
  16697. /** @var \Illuminate\Database\Query\Builder $instance */
  16698. return $instance->skip($value);
  16699. }
  16700. /**
  16701. * Set the "offset" value of the query.
  16702. *
  16703. * @param int $value
  16704. * @return \Illuminate\Database\Query\Builder
  16705. * @static
  16706. */
  16707. public static function offset($value)
  16708. {
  16709. /** @var \Illuminate\Database\Query\Builder $instance */
  16710. return $instance->offset($value);
  16711. }
  16712. /**
  16713. * Alias to set the "limit" value of the query.
  16714. *
  16715. * @param int $value
  16716. * @return \Illuminate\Database\Query\Builder
  16717. * @static
  16718. */
  16719. public static function take($value)
  16720. {
  16721. /** @var \Illuminate\Database\Query\Builder $instance */
  16722. return $instance->take($value);
  16723. }
  16724. /**
  16725. * Set the "limit" value of the query.
  16726. *
  16727. * @param int $value
  16728. * @return \Illuminate\Database\Query\Builder
  16729. * @static
  16730. */
  16731. public static function limit($value)
  16732. {
  16733. /** @var \Illuminate\Database\Query\Builder $instance */
  16734. return $instance->limit($value);
  16735. }
  16736. /**
  16737. * Set the limit and offset for a given page.
  16738. *
  16739. * @param int $page
  16740. * @param int $perPage
  16741. * @return \Illuminate\Database\Query\Builder
  16742. * @static
  16743. */
  16744. public static function forPage($page, $perPage = 15)
  16745. {
  16746. /** @var \Illuminate\Database\Query\Builder $instance */
  16747. return $instance->forPage($page, $perPage);
  16748. }
  16749. /**
  16750. * Constrain the query to the previous "page" of results before a given ID.
  16751. *
  16752. * @param int $perPage
  16753. * @param int|null $lastId
  16754. * @param string $column
  16755. * @return \Illuminate\Database\Query\Builder
  16756. * @static
  16757. */
  16758. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  16759. {
  16760. /** @var \Illuminate\Database\Query\Builder $instance */
  16761. return $instance->forPageBeforeId($perPage, $lastId, $column);
  16762. }
  16763. /**
  16764. * Constrain the query to the next "page" of results after a given ID.
  16765. *
  16766. * @param int $perPage
  16767. * @param int|null $lastId
  16768. * @param string $column
  16769. * @return \Illuminate\Database\Query\Builder
  16770. * @static
  16771. */
  16772. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  16773. {
  16774. /** @var \Illuminate\Database\Query\Builder $instance */
  16775. return $instance->forPageAfterId($perPage, $lastId, $column);
  16776. }
  16777. /**
  16778. * Remove all existing orders and optionally add a new order.
  16779. *
  16780. * @return \Illuminate\Database\Query\Builder
  16781. * @static
  16782. */
  16783. public static function reorder($column = null, $direction = 'asc')
  16784. {
  16785. /** @var \Illuminate\Database\Query\Builder $instance */
  16786. return $instance->reorder($column, $direction);
  16787. }
  16788. /**
  16789. * Add a union statement to the query.
  16790. *
  16791. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16792. * @param bool $all
  16793. * @return \Illuminate\Database\Query\Builder
  16794. * @static
  16795. */
  16796. public static function union($query, $all = false)
  16797. {
  16798. /** @var \Illuminate\Database\Query\Builder $instance */
  16799. return $instance->union($query, $all);
  16800. }
  16801. /**
  16802. * Add a union all statement to the query.
  16803. *
  16804. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16805. * @return \Illuminate\Database\Query\Builder
  16806. * @static
  16807. */
  16808. public static function unionAll($query)
  16809. {
  16810. /** @var \Illuminate\Database\Query\Builder $instance */
  16811. return $instance->unionAll($query);
  16812. }
  16813. /**
  16814. * Lock the selected rows in the table.
  16815. *
  16816. * @param string|bool $value
  16817. * @return \Illuminate\Database\Query\Builder
  16818. * @static
  16819. */
  16820. public static function lock($value = true)
  16821. {
  16822. /** @var \Illuminate\Database\Query\Builder $instance */
  16823. return $instance->lock($value);
  16824. }
  16825. /**
  16826. * Lock the selected rows in the table for updating.
  16827. *
  16828. * @return \Illuminate\Database\Query\Builder
  16829. * @static
  16830. */
  16831. public static function lockForUpdate()
  16832. {
  16833. /** @var \Illuminate\Database\Query\Builder $instance */
  16834. return $instance->lockForUpdate();
  16835. }
  16836. /**
  16837. * Share lock the selected rows in the table.
  16838. *
  16839. * @return \Illuminate\Database\Query\Builder
  16840. * @static
  16841. */
  16842. public static function sharedLock()
  16843. {
  16844. /** @var \Illuminate\Database\Query\Builder $instance */
  16845. return $instance->sharedLock();
  16846. }
  16847. /**
  16848. * Get the SQL representation of the query.
  16849. *
  16850. * @return string
  16851. * @static
  16852. */
  16853. public static function toSql()
  16854. {
  16855. /** @var \Illuminate\Database\Query\Builder $instance */
  16856. return $instance->toSql();
  16857. }
  16858. /**
  16859. * Get the count of the total records for the paginator.
  16860. *
  16861. * @param array $columns
  16862. * @return int
  16863. * @static
  16864. */
  16865. public static function getCountForPagination($columns = [])
  16866. {
  16867. /** @var \Illuminate\Database\Query\Builder $instance */
  16868. return $instance->getCountForPagination($columns);
  16869. }
  16870. /**
  16871. * Concatenate values of a given column as a string.
  16872. *
  16873. * @param string $column
  16874. * @param string $glue
  16875. * @return string
  16876. * @static
  16877. */
  16878. public static function implode($column, $glue = '')
  16879. {
  16880. /** @var \Illuminate\Database\Query\Builder $instance */
  16881. return $instance->implode($column, $glue);
  16882. }
  16883. /**
  16884. * Determine if any rows exist for the current query.
  16885. *
  16886. * @return bool
  16887. * @static
  16888. */
  16889. public static function exists()
  16890. {
  16891. /** @var \Illuminate\Database\Query\Builder $instance */
  16892. return $instance->exists();
  16893. }
  16894. /**
  16895. * Determine if no rows exist for the current query.
  16896. *
  16897. * @return bool
  16898. * @static
  16899. */
  16900. public static function doesntExist()
  16901. {
  16902. /** @var \Illuminate\Database\Query\Builder $instance */
  16903. return $instance->doesntExist();
  16904. }
  16905. /**
  16906. * Execute the given callback if no rows exist for the current query.
  16907. *
  16908. * @param \Closure $callback
  16909. * @return mixed
  16910. * @static
  16911. */
  16912. public static function existsOr($callback)
  16913. {
  16914. /** @var \Illuminate\Database\Query\Builder $instance */
  16915. return $instance->existsOr($callback);
  16916. }
  16917. /**
  16918. * Execute the given callback if rows exist for the current query.
  16919. *
  16920. * @param \Closure $callback
  16921. * @return mixed
  16922. * @static
  16923. */
  16924. public static function doesntExistOr($callback)
  16925. {
  16926. /** @var \Illuminate\Database\Query\Builder $instance */
  16927. return $instance->doesntExistOr($callback);
  16928. }
  16929. /**
  16930. * Retrieve the "count" result of the query.
  16931. *
  16932. * @param string $columns
  16933. * @return int
  16934. * @static
  16935. */
  16936. public static function count($columns = '*')
  16937. {
  16938. /** @var \Illuminate\Database\Query\Builder $instance */
  16939. return $instance->count($columns);
  16940. }
  16941. /**
  16942. * Retrieve the minimum value of a given column.
  16943. *
  16944. * @param string $column
  16945. * @return mixed
  16946. * @static
  16947. */
  16948. public static function min($column)
  16949. {
  16950. /** @var \Illuminate\Database\Query\Builder $instance */
  16951. return $instance->min($column);
  16952. }
  16953. /**
  16954. * Retrieve the maximum value of a given column.
  16955. *
  16956. * @param string $column
  16957. * @return mixed
  16958. * @static
  16959. */
  16960. public static function max($column)
  16961. {
  16962. /** @var \Illuminate\Database\Query\Builder $instance */
  16963. return $instance->max($column);
  16964. }
  16965. /**
  16966. * Retrieve the sum of the values of a given column.
  16967. *
  16968. * @param string $column
  16969. * @return mixed
  16970. * @static
  16971. */
  16972. public static function sum($column)
  16973. {
  16974. /** @var \Illuminate\Database\Query\Builder $instance */
  16975. return $instance->sum($column);
  16976. }
  16977. /**
  16978. * Retrieve the average of the values of a given column.
  16979. *
  16980. * @param string $column
  16981. * @return mixed
  16982. * @static
  16983. */
  16984. public static function avg($column)
  16985. {
  16986. /** @var \Illuminate\Database\Query\Builder $instance */
  16987. return $instance->avg($column);
  16988. }
  16989. /**
  16990. * Alias for the "avg" method.
  16991. *
  16992. * @param string $column
  16993. * @return mixed
  16994. * @static
  16995. */
  16996. public static function average($column)
  16997. {
  16998. /** @var \Illuminate\Database\Query\Builder $instance */
  16999. return $instance->average($column);
  17000. }
  17001. /**
  17002. * Execute an aggregate function on the database.
  17003. *
  17004. * @param string $function
  17005. * @param array $columns
  17006. * @return mixed
  17007. * @static
  17008. */
  17009. public static function aggregate($function, $columns = [])
  17010. {
  17011. /** @var \Illuminate\Database\Query\Builder $instance */
  17012. return $instance->aggregate($function, $columns);
  17013. }
  17014. /**
  17015. * Execute a numeric aggregate function on the database.
  17016. *
  17017. * @param string $function
  17018. * @param array $columns
  17019. * @return float|int
  17020. * @static
  17021. */
  17022. public static function numericAggregate($function, $columns = [])
  17023. {
  17024. /** @var \Illuminate\Database\Query\Builder $instance */
  17025. return $instance->numericAggregate($function, $columns);
  17026. }
  17027. /**
  17028. * Insert a new record into the database.
  17029. *
  17030. * @param array $values
  17031. * @return bool
  17032. * @static
  17033. */
  17034. public static function insert($values)
  17035. {
  17036. /** @var \Illuminate\Database\Query\Builder $instance */
  17037. return $instance->insert($values);
  17038. }
  17039. /**
  17040. * Insert a new record into the database while ignoring errors.
  17041. *
  17042. * @param array $values
  17043. * @return int
  17044. * @static
  17045. */
  17046. public static function insertOrIgnore($values)
  17047. {
  17048. /** @var \Illuminate\Database\Query\Builder $instance */
  17049. return $instance->insertOrIgnore($values);
  17050. }
  17051. /**
  17052. * Insert a new record and get the value of the primary key.
  17053. *
  17054. * @param array $values
  17055. * @param string|null $sequence
  17056. * @return int
  17057. * @static
  17058. */
  17059. public static function insertGetId($values, $sequence = null)
  17060. {
  17061. /** @var \Illuminate\Database\Query\Builder $instance */
  17062. return $instance->insertGetId($values, $sequence);
  17063. }
  17064. /**
  17065. * Insert new records into the table using a subquery.
  17066. *
  17067. * @param array $columns
  17068. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17069. * @return int
  17070. * @static
  17071. */
  17072. public static function insertUsing($columns, $query)
  17073. {
  17074. /** @var \Illuminate\Database\Query\Builder $instance */
  17075. return $instance->insertUsing($columns, $query);
  17076. }
  17077. /**
  17078. * Insert or update a record matching the attributes, and fill it with values.
  17079. *
  17080. * @param array $attributes
  17081. * @param array $values
  17082. * @return bool
  17083. * @static
  17084. */
  17085. public static function updateOrInsert($attributes, $values = [])
  17086. {
  17087. /** @var \Illuminate\Database\Query\Builder $instance */
  17088. return $instance->updateOrInsert($attributes, $values);
  17089. }
  17090. /**
  17091. * Run a truncate statement on the table.
  17092. *
  17093. * @return void
  17094. * @static
  17095. */
  17096. public static function truncate()
  17097. {
  17098. /** @var \Illuminate\Database\Query\Builder $instance */
  17099. $instance->truncate();
  17100. }
  17101. /**
  17102. * Create a raw database expression.
  17103. *
  17104. * @param mixed $value
  17105. * @return \Illuminate\Database\Query\Expression
  17106. * @static
  17107. */
  17108. public static function raw($value)
  17109. {
  17110. /** @var \Illuminate\Database\Query\Builder $instance */
  17111. return $instance->raw($value);
  17112. }
  17113. /**
  17114. * Get the current query value bindings in a flattened array.
  17115. *
  17116. * @return array
  17117. * @static
  17118. */
  17119. public static function getBindings()
  17120. {
  17121. /** @var \Illuminate\Database\Query\Builder $instance */
  17122. return $instance->getBindings();
  17123. }
  17124. /**
  17125. * Get the raw array of bindings.
  17126. *
  17127. * @return array
  17128. * @static
  17129. */
  17130. public static function getRawBindings()
  17131. {
  17132. /** @var \Illuminate\Database\Query\Builder $instance */
  17133. return $instance->getRawBindings();
  17134. }
  17135. /**
  17136. * Set the bindings on the query builder.
  17137. *
  17138. * @param array $bindings
  17139. * @param string $type
  17140. * @return \Illuminate\Database\Query\Builder
  17141. * @throws \InvalidArgumentException
  17142. * @static
  17143. */
  17144. public static function setBindings($bindings, $type = 'where')
  17145. {
  17146. /** @var \Illuminate\Database\Query\Builder $instance */
  17147. return $instance->setBindings($bindings, $type);
  17148. }
  17149. /**
  17150. * Add a binding to the query.
  17151. *
  17152. * @param mixed $value
  17153. * @param string $type
  17154. * @return \Illuminate\Database\Query\Builder
  17155. * @throws \InvalidArgumentException
  17156. * @static
  17157. */
  17158. public static function addBinding($value, $type = 'where')
  17159. {
  17160. /** @var \Illuminate\Database\Query\Builder $instance */
  17161. return $instance->addBinding($value, $type);
  17162. }
  17163. /**
  17164. * Merge an array of bindings into our bindings.
  17165. *
  17166. * @param \Illuminate\Database\Query\Builder $query
  17167. * @return \Illuminate\Database\Query\Builder
  17168. * @static
  17169. */
  17170. public static function mergeBindings($query)
  17171. {
  17172. /** @var \Illuminate\Database\Query\Builder $instance */
  17173. return $instance->mergeBindings($query);
  17174. }
  17175. /**
  17176. * Get the database query processor instance.
  17177. *
  17178. * @return \Illuminate\Database\Query\Processors\Processor
  17179. * @static
  17180. */
  17181. public static function getProcessor()
  17182. {
  17183. /** @var \Illuminate\Database\Query\Builder $instance */
  17184. return $instance->getProcessor();
  17185. }
  17186. /**
  17187. * Get the query grammar instance.
  17188. *
  17189. * @return \Illuminate\Database\Query\Grammars\Grammar
  17190. * @static
  17191. */
  17192. public static function getGrammar()
  17193. {
  17194. /** @var \Illuminate\Database\Query\Builder $instance */
  17195. return $instance->getGrammar();
  17196. }
  17197. /**
  17198. * Use the write pdo for query.
  17199. *
  17200. * @return \Illuminate\Database\Query\Builder
  17201. * @static
  17202. */
  17203. public static function useWritePdo()
  17204. {
  17205. /** @var \Illuminate\Database\Query\Builder $instance */
  17206. return $instance->useWritePdo();
  17207. }
  17208. /**
  17209. * Clone the query without the given properties.
  17210. *
  17211. * @param array $properties
  17212. * @return static
  17213. * @static
  17214. */
  17215. public static function cloneWithout($properties)
  17216. {
  17217. /** @var \Illuminate\Database\Query\Builder $instance */
  17218. return $instance->cloneWithout($properties);
  17219. }
  17220. /**
  17221. * Clone the query without the given bindings.
  17222. *
  17223. * @param array $except
  17224. * @return static
  17225. * @static
  17226. */
  17227. public static function cloneWithoutBindings($except)
  17228. {
  17229. /** @var \Illuminate\Database\Query\Builder $instance */
  17230. return $instance->cloneWithoutBindings($except);
  17231. }
  17232. /**
  17233. * Dump the current SQL and bindings.
  17234. *
  17235. * @return \Illuminate\Database\Query\Builder
  17236. * @static
  17237. */
  17238. public static function dump()
  17239. {
  17240. /** @var \Illuminate\Database\Query\Builder $instance */
  17241. return $instance->dump();
  17242. }
  17243. /**
  17244. * Die and dump the current SQL and bindings.
  17245. *
  17246. * @return void
  17247. * @static
  17248. */
  17249. public static function dd()
  17250. {
  17251. /** @var \Illuminate\Database\Query\Builder $instance */
  17252. $instance->dd();
  17253. }
  17254. /**
  17255. * Register a custom macro.
  17256. *
  17257. * @param string $name
  17258. * @param object|callable $macro
  17259. * @return void
  17260. * @static
  17261. */
  17262. public static function macro($name, $macro)
  17263. {
  17264. \Illuminate\Database\Query\Builder::macro($name, $macro);
  17265. }
  17266. /**
  17267. * Mix another object into the class.
  17268. *
  17269. * @param object $mixin
  17270. * @param bool $replace
  17271. * @return void
  17272. * @throws \ReflectionException
  17273. * @static
  17274. */
  17275. public static function mixin($mixin, $replace = true)
  17276. {
  17277. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  17278. }
  17279. /**
  17280. * Dynamically handle calls to the class.
  17281. *
  17282. * @param string $method
  17283. * @param array $parameters
  17284. * @return mixed
  17285. * @throws \BadMethodCallException
  17286. * @static
  17287. */
  17288. public static function macroCall($method, $parameters)
  17289. {
  17290. /** @var \Illuminate\Database\Query\Builder $instance */
  17291. return $instance->macroCall($method, $parameters);
  17292. }
  17293. }
  17294. class Event extends \Illuminate\Support\Facades\Event {}
  17295. class File extends \Illuminate\Support\Facades\File {}
  17296. class Gate extends \Illuminate\Support\Facades\Gate {}
  17297. class Hash extends \Illuminate\Support\Facades\Hash {}
  17298. class Http extends \Illuminate\Support\Facades\Http {}
  17299. class Lang extends \Illuminate\Support\Facades\Lang {}
  17300. class Log extends \Illuminate\Support\Facades\Log {}
  17301. class Mail extends \Illuminate\Support\Facades\Mail {}
  17302. class Notification extends \Illuminate\Support\Facades\Notification {}
  17303. class Password extends \Illuminate\Support\Facades\Password {}
  17304. class Queue extends \Illuminate\Support\Facades\Queue {}
  17305. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  17306. class Redis extends \Illuminate\Support\Facades\Redis {}
  17307. class Request extends \Illuminate\Support\Facades\Request {}
  17308. class Response extends \Illuminate\Support\Facades\Response {}
  17309. class Route extends \Illuminate\Support\Facades\Route {}
  17310. class Schema extends \Illuminate\Support\Facades\Schema {}
  17311. class Session extends \Illuminate\Support\Facades\Session {}
  17312. class Storage extends \Illuminate\Support\Facades\Storage {}
  17313. class Str extends \Illuminate\Support\Str {}
  17314. class URL extends \Illuminate\Support\Facades\URL {}
  17315. class Validator extends \Illuminate\Support\Facades\Validator {}
  17316. class View extends \Illuminate\Support\Facades\View {}
  17317. class Flare extends \Facade\Ignition\Facades\Flare {}
  17318. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  17319. }