_ide_helper.php 618 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel, to provide autocomplete information to your IDE
  5. * Generated for Laravel 6.20.41.
  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
  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
  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
  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
  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. * Determine if the application is currently down for maintenance.
  647. *
  648. * @return bool
  649. * @static
  650. */
  651. public static function isDownForMaintenance()
  652. {
  653. /** @var \Illuminate\Foundation\Application $instance */
  654. return $instance->isDownForMaintenance();
  655. }
  656. /**
  657. * Throw an HttpException with the given data.
  658. *
  659. * @param int $code
  660. * @param string $message
  661. * @param array $headers
  662. * @return void
  663. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  664. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  665. * @static
  666. */
  667. public static function abort($code, $message = '', $headers = [])
  668. {
  669. /** @var \Illuminate\Foundation\Application $instance */
  670. $instance->abort($code, $message, $headers);
  671. }
  672. /**
  673. * Register a terminating callback with the application.
  674. *
  675. * @param callable|string $callback
  676. * @return \Illuminate\Foundation\Application
  677. * @static
  678. */
  679. public static function terminating($callback)
  680. {
  681. /** @var \Illuminate\Foundation\Application $instance */
  682. return $instance->terminating($callback);
  683. }
  684. /**
  685. * Terminate the application.
  686. *
  687. * @return void
  688. * @static
  689. */
  690. public static function terminate()
  691. {
  692. /** @var \Illuminate\Foundation\Application $instance */
  693. $instance->terminate();
  694. }
  695. /**
  696. * Get the service providers that have been loaded.
  697. *
  698. * @return array
  699. * @static
  700. */
  701. public static function getLoadedProviders()
  702. {
  703. /** @var \Illuminate\Foundation\Application $instance */
  704. return $instance->getLoadedProviders();
  705. }
  706. /**
  707. * Get the application's deferred services.
  708. *
  709. * @return array
  710. * @static
  711. */
  712. public static function getDeferredServices()
  713. {
  714. /** @var \Illuminate\Foundation\Application $instance */
  715. return $instance->getDeferredServices();
  716. }
  717. /**
  718. * Set the application's deferred services.
  719. *
  720. * @param array $services
  721. * @return void
  722. * @static
  723. */
  724. public static function setDeferredServices($services)
  725. {
  726. /** @var \Illuminate\Foundation\Application $instance */
  727. $instance->setDeferredServices($services);
  728. }
  729. /**
  730. * Add an array of services to the application's deferred services.
  731. *
  732. * @param array $services
  733. * @return void
  734. * @static
  735. */
  736. public static function addDeferredServices($services)
  737. {
  738. /** @var \Illuminate\Foundation\Application $instance */
  739. $instance->addDeferredServices($services);
  740. }
  741. /**
  742. * Determine if the given service is a deferred service.
  743. *
  744. * @param string $service
  745. * @return bool
  746. * @static
  747. */
  748. public static function isDeferredService($service)
  749. {
  750. /** @var \Illuminate\Foundation\Application $instance */
  751. return $instance->isDeferredService($service);
  752. }
  753. /**
  754. * Configure the real-time facade namespace.
  755. *
  756. * @param string $namespace
  757. * @return void
  758. * @static
  759. */
  760. public static function provideFacades($namespace)
  761. {
  762. /** @var \Illuminate\Foundation\Application $instance */
  763. $instance->provideFacades($namespace);
  764. }
  765. /**
  766. * Get the current application locale.
  767. *
  768. * @return string
  769. * @static
  770. */
  771. public static function getLocale()
  772. {
  773. /** @var \Illuminate\Foundation\Application $instance */
  774. return $instance->getLocale();
  775. }
  776. /**
  777. * Set the current application locale.
  778. *
  779. * @param string $locale
  780. * @return void
  781. * @static
  782. */
  783. public static function setLocale($locale)
  784. {
  785. /** @var \Illuminate\Foundation\Application $instance */
  786. $instance->setLocale($locale);
  787. }
  788. /**
  789. * Determine if application locale is the given locale.
  790. *
  791. * @param string $locale
  792. * @return bool
  793. * @static
  794. */
  795. public static function isLocale($locale)
  796. {
  797. /** @var \Illuminate\Foundation\Application $instance */
  798. return $instance->isLocale($locale);
  799. }
  800. /**
  801. * Register the core class aliases in the container.
  802. *
  803. * @return void
  804. * @static
  805. */
  806. public static function registerCoreContainerAliases()
  807. {
  808. /** @var \Illuminate\Foundation\Application $instance */
  809. $instance->registerCoreContainerAliases();
  810. }
  811. /**
  812. * Flush the container of all bindings and resolved instances.
  813. *
  814. * @return void
  815. * @static
  816. */
  817. public static function flush()
  818. {
  819. /** @var \Illuminate\Foundation\Application $instance */
  820. $instance->flush();
  821. }
  822. /**
  823. * Get the application namespace.
  824. *
  825. * @return string
  826. * @throws \RuntimeException
  827. * @static
  828. */
  829. public static function getNamespace()
  830. {
  831. /** @var \Illuminate\Foundation\Application $instance */
  832. return $instance->getNamespace();
  833. }
  834. /**
  835. * Define a contextual binding.
  836. *
  837. * @param array|string $concrete
  838. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  839. * @static
  840. */
  841. public static function when($concrete)
  842. { //Method inherited from \Illuminate\Container\Container
  843. /** @var \Illuminate\Foundation\Application $instance */
  844. return $instance->when($concrete);
  845. }
  846. /**
  847. * Returns true if the container can return an entry for the given identifier.
  848. *
  849. * Returns false otherwise.
  850. *
  851. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  852. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  853. *
  854. * @param string $id Identifier of the entry to look for.
  855. * @return bool
  856. * @static
  857. */
  858. public static function has($id)
  859. { //Method inherited from \Illuminate\Container\Container
  860. /** @var \Illuminate\Foundation\Application $instance */
  861. return $instance->has($id);
  862. }
  863. /**
  864. * Determine if the given abstract type has been resolved.
  865. *
  866. * @param string $abstract
  867. * @return bool
  868. * @static
  869. */
  870. public static function resolved($abstract)
  871. { //Method inherited from \Illuminate\Container\Container
  872. /** @var \Illuminate\Foundation\Application $instance */
  873. return $instance->resolved($abstract);
  874. }
  875. /**
  876. * Determine if a given type is shared.
  877. *
  878. * @param string $abstract
  879. * @return bool
  880. * @static
  881. */
  882. public static function isShared($abstract)
  883. { //Method inherited from \Illuminate\Container\Container
  884. /** @var \Illuminate\Foundation\Application $instance */
  885. return $instance->isShared($abstract);
  886. }
  887. /**
  888. * Determine if a given string is an alias.
  889. *
  890. * @param string $name
  891. * @return bool
  892. * @static
  893. */
  894. public static function isAlias($name)
  895. { //Method inherited from \Illuminate\Container\Container
  896. /** @var \Illuminate\Foundation\Application $instance */
  897. return $instance->isAlias($name);
  898. }
  899. /**
  900. * Register a binding with the container.
  901. *
  902. * @param string $abstract
  903. * @param \Closure|string|null $concrete
  904. * @param bool $shared
  905. * @return void
  906. * @static
  907. */
  908. public static function bind($abstract, $concrete = null, $shared = false)
  909. { //Method inherited from \Illuminate\Container\Container
  910. /** @var \Illuminate\Foundation\Application $instance */
  911. $instance->bind($abstract, $concrete, $shared);
  912. }
  913. /**
  914. * Determine if the container has a method binding.
  915. *
  916. * @param string $method
  917. * @return bool
  918. * @static
  919. */
  920. public static function hasMethodBinding($method)
  921. { //Method inherited from \Illuminate\Container\Container
  922. /** @var \Illuminate\Foundation\Application $instance */
  923. return $instance->hasMethodBinding($method);
  924. }
  925. /**
  926. * Bind a callback to resolve with Container::call.
  927. *
  928. * @param array|string $method
  929. * @param \Closure $callback
  930. * @return void
  931. * @static
  932. */
  933. public static function bindMethod($method, $callback)
  934. { //Method inherited from \Illuminate\Container\Container
  935. /** @var \Illuminate\Foundation\Application $instance */
  936. $instance->bindMethod($method, $callback);
  937. }
  938. /**
  939. * Get the method binding for the given method.
  940. *
  941. * @param string $method
  942. * @param mixed $instance
  943. * @return mixed
  944. * @static
  945. */
  946. public static function callMethodBinding($method, $instance)
  947. { //Method inherited from \Illuminate\Container\Container
  948. /** @var \Illuminate\Foundation\Application $instance */
  949. return $instance->callMethodBinding($method, $instance);
  950. }
  951. /**
  952. * Add a contextual binding to the container.
  953. *
  954. * @param string $concrete
  955. * @param string $abstract
  956. * @param \Closure|string $implementation
  957. * @return void
  958. * @static
  959. */
  960. public static function addContextualBinding($concrete, $abstract, $implementation)
  961. { //Method inherited from \Illuminate\Container\Container
  962. /** @var \Illuminate\Foundation\Application $instance */
  963. $instance->addContextualBinding($concrete, $abstract, $implementation);
  964. }
  965. /**
  966. * Register a binding if it hasn't already been registered.
  967. *
  968. * @param string $abstract
  969. * @param \Closure|string|null $concrete
  970. * @param bool $shared
  971. * @return void
  972. * @static
  973. */
  974. public static function bindIf($abstract, $concrete = null, $shared = false)
  975. { //Method inherited from \Illuminate\Container\Container
  976. /** @var \Illuminate\Foundation\Application $instance */
  977. $instance->bindIf($abstract, $concrete, $shared);
  978. }
  979. /**
  980. * Register a shared binding in the container.
  981. *
  982. * @param string $abstract
  983. * @param \Closure|string|null $concrete
  984. * @return void
  985. * @static
  986. */
  987. public static function singleton($abstract, $concrete = null)
  988. { //Method inherited from \Illuminate\Container\Container
  989. /** @var \Illuminate\Foundation\Application $instance */
  990. $instance->singleton($abstract, $concrete);
  991. }
  992. /**
  993. * Register a shared binding if it hasn't already been registered.
  994. *
  995. * @param string $abstract
  996. * @param \Closure|string|null $concrete
  997. * @return void
  998. * @static
  999. */
  1000. public static function singletonIf($abstract, $concrete = null)
  1001. { //Method inherited from \Illuminate\Container\Container
  1002. /** @var \Illuminate\Foundation\Application $instance */
  1003. $instance->singletonIf($abstract, $concrete);
  1004. }
  1005. /**
  1006. * "Extend" an abstract type in the container.
  1007. *
  1008. * @param string $abstract
  1009. * @param \Closure $closure
  1010. * @return void
  1011. * @throws \InvalidArgumentException
  1012. * @static
  1013. */
  1014. public static function extend($abstract, $closure)
  1015. { //Method inherited from \Illuminate\Container\Container
  1016. /** @var \Illuminate\Foundation\Application $instance */
  1017. $instance->extend($abstract, $closure);
  1018. }
  1019. /**
  1020. * Register an existing instance as shared in the container.
  1021. *
  1022. * @param string $abstract
  1023. * @param mixed $instance
  1024. * @return mixed
  1025. * @static
  1026. */
  1027. public static function instance($abstract, $instance)
  1028. { //Method inherited from \Illuminate\Container\Container
  1029. /** @var \Illuminate\Foundation\Application $instance */
  1030. return $instance->instance($abstract, $instance);
  1031. }
  1032. /**
  1033. * Assign a set of tags to a given binding.
  1034. *
  1035. * @param array|string $abstracts
  1036. * @param array|mixed $tags
  1037. * @return void
  1038. * @static
  1039. */
  1040. public static function tag($abstracts, $tags)
  1041. { //Method inherited from \Illuminate\Container\Container
  1042. /** @var \Illuminate\Foundation\Application $instance */
  1043. $instance->tag($abstracts, $tags);
  1044. }
  1045. /**
  1046. * Resolve all of the bindings for a given tag.
  1047. *
  1048. * @param string $tag
  1049. * @return \Illuminate\Container\iterable
  1050. * @static
  1051. */
  1052. public static function tagged($tag)
  1053. { //Method inherited from \Illuminate\Container\Container
  1054. /** @var \Illuminate\Foundation\Application $instance */
  1055. return $instance->tagged($tag);
  1056. }
  1057. /**
  1058. * Alias a type to a different name.
  1059. *
  1060. * @param string $abstract
  1061. * @param string $alias
  1062. * @return void
  1063. * @throws \LogicException
  1064. * @static
  1065. */
  1066. public static function alias($abstract, $alias)
  1067. { //Method inherited from \Illuminate\Container\Container
  1068. /** @var \Illuminate\Foundation\Application $instance */
  1069. $instance->alias($abstract, $alias);
  1070. }
  1071. /**
  1072. * Bind a new callback to an abstract's rebind event.
  1073. *
  1074. * @param string $abstract
  1075. * @param \Closure $callback
  1076. * @return mixed
  1077. * @static
  1078. */
  1079. public static function rebinding($abstract, $callback)
  1080. { //Method inherited from \Illuminate\Container\Container
  1081. /** @var \Illuminate\Foundation\Application $instance */
  1082. return $instance->rebinding($abstract, $callback);
  1083. }
  1084. /**
  1085. * Refresh an instance on the given target and method.
  1086. *
  1087. * @param string $abstract
  1088. * @param mixed $target
  1089. * @param string $method
  1090. * @return mixed
  1091. * @static
  1092. */
  1093. public static function refresh($abstract, $target, $method)
  1094. { //Method inherited from \Illuminate\Container\Container
  1095. /** @var \Illuminate\Foundation\Application $instance */
  1096. return $instance->refresh($abstract, $target, $method);
  1097. }
  1098. /**
  1099. * Wrap the given closure such that its dependencies will be injected when executed.
  1100. *
  1101. * @param \Closure $callback
  1102. * @param array $parameters
  1103. * @return \Closure
  1104. * @static
  1105. */
  1106. public static function wrap($callback, $parameters = [])
  1107. { //Method inherited from \Illuminate\Container\Container
  1108. /** @var \Illuminate\Foundation\Application $instance */
  1109. return $instance->wrap($callback, $parameters);
  1110. }
  1111. /**
  1112. * Call the given Closure / class@method and inject its dependencies.
  1113. *
  1114. * @param callable|string $callback
  1115. * @param array $parameters
  1116. * @param string|null $defaultMethod
  1117. * @return mixed
  1118. * @static
  1119. */
  1120. public static function call($callback, $parameters = [], $defaultMethod = null)
  1121. { //Method inherited from \Illuminate\Container\Container
  1122. /** @var \Illuminate\Foundation\Application $instance */
  1123. return $instance->call($callback, $parameters, $defaultMethod);
  1124. }
  1125. /**
  1126. * Get a closure to resolve the given type from the container.
  1127. *
  1128. * @param string $abstract
  1129. * @return \Closure
  1130. * @static
  1131. */
  1132. public static function factory($abstract)
  1133. { //Method inherited from \Illuminate\Container\Container
  1134. /** @var \Illuminate\Foundation\Application $instance */
  1135. return $instance->factory($abstract);
  1136. }
  1137. /**
  1138. * An alias function name for make().
  1139. *
  1140. * @param string $abstract
  1141. * @param array $parameters
  1142. * @return mixed
  1143. * @static
  1144. */
  1145. public static function makeWith($abstract, $parameters = [])
  1146. { //Method inherited from \Illuminate\Container\Container
  1147. /** @var \Illuminate\Foundation\Application $instance */
  1148. return $instance->makeWith($abstract, $parameters);
  1149. }
  1150. /**
  1151. * Finds an entry of the container by its identifier and returns it.
  1152. *
  1153. * @param string $id Identifier of the entry to look for.
  1154. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1155. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1156. * @return mixed Entry.
  1157. * @static
  1158. */
  1159. public static function get($id)
  1160. { //Method inherited from \Illuminate\Container\Container
  1161. /** @var \Illuminate\Foundation\Application $instance */
  1162. return $instance->get($id);
  1163. }
  1164. /**
  1165. * Instantiate a concrete instance of the given type.
  1166. *
  1167. * @param string $concrete
  1168. * @return mixed
  1169. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1170. * @static
  1171. */
  1172. public static function build($concrete)
  1173. { //Method inherited from \Illuminate\Container\Container
  1174. /** @var \Illuminate\Foundation\Application $instance */
  1175. return $instance->build($concrete);
  1176. }
  1177. /**
  1178. * Register a new resolving callback.
  1179. *
  1180. * @param \Closure|string $abstract
  1181. * @param \Closure|null $callback
  1182. * @return void
  1183. * @static
  1184. */
  1185. public static function resolving($abstract, $callback = null)
  1186. { //Method inherited from \Illuminate\Container\Container
  1187. /** @var \Illuminate\Foundation\Application $instance */
  1188. $instance->resolving($abstract, $callback);
  1189. }
  1190. /**
  1191. * Register a new after resolving callback for all types.
  1192. *
  1193. * @param \Closure|string $abstract
  1194. * @param \Closure|null $callback
  1195. * @return void
  1196. * @static
  1197. */
  1198. public static function afterResolving($abstract, $callback = null)
  1199. { //Method inherited from \Illuminate\Container\Container
  1200. /** @var \Illuminate\Foundation\Application $instance */
  1201. $instance->afterResolving($abstract, $callback);
  1202. }
  1203. /**
  1204. * Get the container's bindings.
  1205. *
  1206. * @return array
  1207. * @static
  1208. */
  1209. public static function getBindings()
  1210. { //Method inherited from \Illuminate\Container\Container
  1211. /** @var \Illuminate\Foundation\Application $instance */
  1212. return $instance->getBindings();
  1213. }
  1214. /**
  1215. * Get the alias for an abstract if available.
  1216. *
  1217. * @param string $abstract
  1218. * @return string
  1219. * @static
  1220. */
  1221. public static function getAlias($abstract)
  1222. { //Method inherited from \Illuminate\Container\Container
  1223. /** @var \Illuminate\Foundation\Application $instance */
  1224. return $instance->getAlias($abstract);
  1225. }
  1226. /**
  1227. * Remove all of the extender callbacks for a given type.
  1228. *
  1229. * @param string $abstract
  1230. * @return void
  1231. * @static
  1232. */
  1233. public static function forgetExtenders($abstract)
  1234. { //Method inherited from \Illuminate\Container\Container
  1235. /** @var \Illuminate\Foundation\Application $instance */
  1236. $instance->forgetExtenders($abstract);
  1237. }
  1238. /**
  1239. * Remove a resolved instance from the instance cache.
  1240. *
  1241. * @param string $abstract
  1242. * @return void
  1243. * @static
  1244. */
  1245. public static function forgetInstance($abstract)
  1246. { //Method inherited from \Illuminate\Container\Container
  1247. /** @var \Illuminate\Foundation\Application $instance */
  1248. $instance->forgetInstance($abstract);
  1249. }
  1250. /**
  1251. * Clear all of the instances from the container.
  1252. *
  1253. * @return void
  1254. * @static
  1255. */
  1256. public static function forgetInstances()
  1257. { //Method inherited from \Illuminate\Container\Container
  1258. /** @var \Illuminate\Foundation\Application $instance */
  1259. $instance->forgetInstances();
  1260. }
  1261. /**
  1262. * Get the globally available instance of the container.
  1263. *
  1264. * @return static
  1265. * @static
  1266. */
  1267. public static function getInstance()
  1268. { //Method inherited from \Illuminate\Container\Container
  1269. return \Illuminate\Foundation\Application::getInstance();
  1270. }
  1271. /**
  1272. * Set the shared instance of the container.
  1273. *
  1274. * @param \Illuminate\Contracts\Container\Container|null $container
  1275. * @return \Illuminate\Contracts\Container\Container|static
  1276. * @static
  1277. */
  1278. public static function setInstance($container = null)
  1279. { //Method inherited from \Illuminate\Container\Container
  1280. return \Illuminate\Foundation\Application::setInstance($container);
  1281. }
  1282. /**
  1283. * Determine if a given offset exists.
  1284. *
  1285. * @param string $key
  1286. * @return bool
  1287. * @static
  1288. */
  1289. public static function offsetExists($key)
  1290. { //Method inherited from \Illuminate\Container\Container
  1291. /** @var \Illuminate\Foundation\Application $instance */
  1292. return $instance->offsetExists($key);
  1293. }
  1294. /**
  1295. * Get the value at a given offset.
  1296. *
  1297. * @param string $key
  1298. * @return mixed
  1299. * @static
  1300. */
  1301. public static function offsetGet($key)
  1302. { //Method inherited from \Illuminate\Container\Container
  1303. /** @var \Illuminate\Foundation\Application $instance */
  1304. return $instance->offsetGet($key);
  1305. }
  1306. /**
  1307. * Set the value at a given offset.
  1308. *
  1309. * @param string $key
  1310. * @param mixed $value
  1311. * @return void
  1312. * @static
  1313. */
  1314. public static function offsetSet($key, $value)
  1315. { //Method inherited from \Illuminate\Container\Container
  1316. /** @var \Illuminate\Foundation\Application $instance */
  1317. $instance->offsetSet($key, $value);
  1318. }
  1319. /**
  1320. * Unset the value at a given offset.
  1321. *
  1322. * @param string $key
  1323. * @return void
  1324. * @static
  1325. */
  1326. public static function offsetUnset($key)
  1327. { //Method inherited from \Illuminate\Container\Container
  1328. /** @var \Illuminate\Foundation\Application $instance */
  1329. $instance->offsetUnset($key);
  1330. }
  1331. }
  1332. /**
  1333. *
  1334. *
  1335. * @see \Illuminate\Contracts\Console\Kernel
  1336. */
  1337. class Artisan {
  1338. /**
  1339. * Run the console application.
  1340. *
  1341. * @param \Symfony\Component\Console\Input\InputInterface $input
  1342. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1343. * @return int
  1344. * @static
  1345. */
  1346. public static function handle($input, $output = null)
  1347. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1348. /** @var \App\Console\Kernel $instance */
  1349. return $instance->handle($input, $output);
  1350. }
  1351. /**
  1352. * Terminate the application.
  1353. *
  1354. * @param \Symfony\Component\Console\Input\InputInterface $input
  1355. * @param int $status
  1356. * @return void
  1357. * @static
  1358. */
  1359. public static function terminate($input, $status)
  1360. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1361. /** @var \App\Console\Kernel $instance */
  1362. $instance->terminate($input, $status);
  1363. }
  1364. /**
  1365. * Register a Closure based command with the application.
  1366. *
  1367. * @param string $signature
  1368. * @param \Closure $callback
  1369. * @return \Illuminate\Foundation\Console\ClosureCommand
  1370. * @static
  1371. */
  1372. public static function command($signature, $callback)
  1373. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1374. /** @var \App\Console\Kernel $instance */
  1375. return $instance->command($signature, $callback);
  1376. }
  1377. /**
  1378. * Register the given command with the console application.
  1379. *
  1380. * @param \Symfony\Component\Console\Command\Command $command
  1381. * @return void
  1382. * @static
  1383. */
  1384. public static function registerCommand($command)
  1385. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1386. /** @var \App\Console\Kernel $instance */
  1387. $instance->registerCommand($command);
  1388. }
  1389. /**
  1390. * Run an Artisan console command by name.
  1391. *
  1392. * @param string $command
  1393. * @param array $parameters
  1394. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1395. * @return int
  1396. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1397. * @static
  1398. */
  1399. public static function call($command, $parameters = [], $outputBuffer = null)
  1400. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1401. /** @var \App\Console\Kernel $instance */
  1402. return $instance->call($command, $parameters, $outputBuffer);
  1403. }
  1404. /**
  1405. * Queue the given console command.
  1406. *
  1407. * @param string $command
  1408. * @param array $parameters
  1409. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1410. * @static
  1411. */
  1412. public static function queue($command, $parameters = [])
  1413. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1414. /** @var \App\Console\Kernel $instance */
  1415. return $instance->queue($command, $parameters);
  1416. }
  1417. /**
  1418. * Get all of the commands registered with the console.
  1419. *
  1420. * @return array
  1421. * @static
  1422. */
  1423. public static function all()
  1424. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1425. /** @var \App\Console\Kernel $instance */
  1426. return $instance->all();
  1427. }
  1428. /**
  1429. * Get the output for the last run command.
  1430. *
  1431. * @return string
  1432. * @static
  1433. */
  1434. public static function output()
  1435. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1436. /** @var \App\Console\Kernel $instance */
  1437. return $instance->output();
  1438. }
  1439. /**
  1440. * Bootstrap the application for artisan commands.
  1441. *
  1442. * @return void
  1443. * @static
  1444. */
  1445. public static function bootstrap()
  1446. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1447. /** @var \App\Console\Kernel $instance */
  1448. $instance->bootstrap();
  1449. }
  1450. /**
  1451. * Set the Artisan application instance.
  1452. *
  1453. * @param \Illuminate\Console\Application $artisan
  1454. * @return void
  1455. * @static
  1456. */
  1457. public static function setArtisan($artisan)
  1458. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1459. /** @var \App\Console\Kernel $instance */
  1460. $instance->setArtisan($artisan);
  1461. }
  1462. }
  1463. /**
  1464. *
  1465. *
  1466. * @see \Illuminate\Auth\AuthManager
  1467. * @see \Illuminate\Contracts\Auth\Factory
  1468. * @see \Illuminate\Contracts\Auth\Guard
  1469. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1470. */
  1471. class Auth {
  1472. /**
  1473. * Attempt to get the guard from the local cache.
  1474. *
  1475. * @param string|null $name
  1476. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1477. * @static
  1478. */
  1479. public static function guard($name = null)
  1480. {
  1481. /** @var \Illuminate\Auth\AuthManager $instance */
  1482. return $instance->guard($name);
  1483. }
  1484. /**
  1485. * Create a session based authentication guard.
  1486. *
  1487. * @param string $name
  1488. * @param array $config
  1489. * @return \Illuminate\Auth\SessionGuard
  1490. * @static
  1491. */
  1492. public static function createSessionDriver($name, $config)
  1493. {
  1494. /** @var \Illuminate\Auth\AuthManager $instance */
  1495. return $instance->createSessionDriver($name, $config);
  1496. }
  1497. /**
  1498. * Create a token based authentication guard.
  1499. *
  1500. * @param string $name
  1501. * @param array $config
  1502. * @return \Illuminate\Auth\TokenGuard
  1503. * @static
  1504. */
  1505. public static function createTokenDriver($name, $config)
  1506. {
  1507. /** @var \Illuminate\Auth\AuthManager $instance */
  1508. return $instance->createTokenDriver($name, $config);
  1509. }
  1510. /**
  1511. * Get the default authentication driver name.
  1512. *
  1513. * @return string
  1514. * @static
  1515. */
  1516. public static function getDefaultDriver()
  1517. {
  1518. /** @var \Illuminate\Auth\AuthManager $instance */
  1519. return $instance->getDefaultDriver();
  1520. }
  1521. /**
  1522. * Set the default guard driver the factory should serve.
  1523. *
  1524. * @param string $name
  1525. * @return void
  1526. * @static
  1527. */
  1528. public static function shouldUse($name)
  1529. {
  1530. /** @var \Illuminate\Auth\AuthManager $instance */
  1531. $instance->shouldUse($name);
  1532. }
  1533. /**
  1534. * Set the default authentication driver name.
  1535. *
  1536. * @param string $name
  1537. * @return void
  1538. * @static
  1539. */
  1540. public static function setDefaultDriver($name)
  1541. {
  1542. /** @var \Illuminate\Auth\AuthManager $instance */
  1543. $instance->setDefaultDriver($name);
  1544. }
  1545. /**
  1546. * Register a new callback based request guard.
  1547. *
  1548. * @param string $driver
  1549. * @param callable $callback
  1550. * @return \Illuminate\Auth\AuthManager
  1551. * @static
  1552. */
  1553. public static function viaRequest($driver, $callback)
  1554. {
  1555. /** @var \Illuminate\Auth\AuthManager $instance */
  1556. return $instance->viaRequest($driver, $callback);
  1557. }
  1558. /**
  1559. * Get the user resolver callback.
  1560. *
  1561. * @return \Closure
  1562. * @static
  1563. */
  1564. public static function userResolver()
  1565. {
  1566. /** @var \Illuminate\Auth\AuthManager $instance */
  1567. return $instance->userResolver();
  1568. }
  1569. /**
  1570. * Set the callback to be used to resolve users.
  1571. *
  1572. * @param \Closure $userResolver
  1573. * @return \Illuminate\Auth\AuthManager
  1574. * @static
  1575. */
  1576. public static function resolveUsersUsing($userResolver)
  1577. {
  1578. /** @var \Illuminate\Auth\AuthManager $instance */
  1579. return $instance->resolveUsersUsing($userResolver);
  1580. }
  1581. /**
  1582. * Register a custom driver creator Closure.
  1583. *
  1584. * @param string $driver
  1585. * @param \Closure $callback
  1586. * @return \Illuminate\Auth\AuthManager
  1587. * @static
  1588. */
  1589. public static function extend($driver, $callback)
  1590. {
  1591. /** @var \Illuminate\Auth\AuthManager $instance */
  1592. return $instance->extend($driver, $callback);
  1593. }
  1594. /**
  1595. * Register a custom provider creator Closure.
  1596. *
  1597. * @param string $name
  1598. * @param \Closure $callback
  1599. * @return \Illuminate\Auth\AuthManager
  1600. * @static
  1601. */
  1602. public static function provider($name, $callback)
  1603. {
  1604. /** @var \Illuminate\Auth\AuthManager $instance */
  1605. return $instance->provider($name, $callback);
  1606. }
  1607. /**
  1608. * Determines if any guards have already been resolved.
  1609. *
  1610. * @return bool
  1611. * @static
  1612. */
  1613. public static function hasResolvedGuards()
  1614. {
  1615. /** @var \Illuminate\Auth\AuthManager $instance */
  1616. return $instance->hasResolvedGuards();
  1617. }
  1618. /**
  1619. * Create the user provider implementation for the driver.
  1620. *
  1621. * @param string|null $provider
  1622. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1623. * @throws \InvalidArgumentException
  1624. * @static
  1625. */
  1626. public static function createUserProvider($provider = null)
  1627. {
  1628. /** @var \Illuminate\Auth\AuthManager $instance */
  1629. return $instance->createUserProvider($provider);
  1630. }
  1631. /**
  1632. * Get the default user provider name.
  1633. *
  1634. * @return string
  1635. * @static
  1636. */
  1637. public static function getDefaultUserProvider()
  1638. {
  1639. /** @var \Illuminate\Auth\AuthManager $instance */
  1640. return $instance->getDefaultUserProvider();
  1641. }
  1642. /**
  1643. * Get the currently authenticated user.
  1644. *
  1645. * @return \App\User|null
  1646. * @static
  1647. */
  1648. public static function user()
  1649. {
  1650. /** @var \Illuminate\Auth\SessionGuard $instance */
  1651. return $instance->user();
  1652. }
  1653. /**
  1654. * Get the ID for the currently authenticated user.
  1655. *
  1656. * @return int|null
  1657. * @static
  1658. */
  1659. public static function id()
  1660. {
  1661. /** @var \Illuminate\Auth\SessionGuard $instance */
  1662. return $instance->id();
  1663. }
  1664. /**
  1665. * Log a user into the application without sessions or cookies.
  1666. *
  1667. * @param array $credentials
  1668. * @return bool
  1669. * @static
  1670. */
  1671. public static function once($credentials = [])
  1672. {
  1673. /** @var \Illuminate\Auth\SessionGuard $instance */
  1674. return $instance->once($credentials);
  1675. }
  1676. /**
  1677. * Log the given user ID into the application without sessions or cookies.
  1678. *
  1679. * @param mixed $id
  1680. * @return \App\User|false
  1681. * @static
  1682. */
  1683. public static function onceUsingId($id)
  1684. {
  1685. /** @var \Illuminate\Auth\SessionGuard $instance */
  1686. return $instance->onceUsingId($id);
  1687. }
  1688. /**
  1689. * Validate a user's credentials.
  1690. *
  1691. * @param array $credentials
  1692. * @return bool
  1693. * @static
  1694. */
  1695. public static function validate($credentials = [])
  1696. {
  1697. /** @var \Illuminate\Auth\SessionGuard $instance */
  1698. return $instance->validate($credentials);
  1699. }
  1700. /**
  1701. * Attempt to authenticate using HTTP Basic Auth.
  1702. *
  1703. * @param string $field
  1704. * @param array $extraConditions
  1705. * @return \Symfony\Component\HttpFoundation\Response|null
  1706. * @static
  1707. */
  1708. public static function basic($field = 'email', $extraConditions = [])
  1709. {
  1710. /** @var \Illuminate\Auth\SessionGuard $instance */
  1711. return $instance->basic($field, $extraConditions);
  1712. }
  1713. /**
  1714. * Perform a stateless HTTP Basic login attempt.
  1715. *
  1716. * @param string $field
  1717. * @param array $extraConditions
  1718. * @return \Symfony\Component\HttpFoundation\Response|null
  1719. * @static
  1720. */
  1721. public static function onceBasic($field = 'email', $extraConditions = [])
  1722. {
  1723. /** @var \Illuminate\Auth\SessionGuard $instance */
  1724. return $instance->onceBasic($field, $extraConditions);
  1725. }
  1726. /**
  1727. * Attempt to authenticate a user using the given credentials.
  1728. *
  1729. * @param array $credentials
  1730. * @param bool $remember
  1731. * @return bool
  1732. * @static
  1733. */
  1734. public static function attempt($credentials = [], $remember = false)
  1735. {
  1736. /** @var \Illuminate\Auth\SessionGuard $instance */
  1737. return $instance->attempt($credentials, $remember);
  1738. }
  1739. /**
  1740. * Log the given user ID into the application.
  1741. *
  1742. * @param mixed $id
  1743. * @param bool $remember
  1744. * @return \App\User|false
  1745. * @static
  1746. */
  1747. public static function loginUsingId($id, $remember = false)
  1748. {
  1749. /** @var \Illuminate\Auth\SessionGuard $instance */
  1750. return $instance->loginUsingId($id, $remember);
  1751. }
  1752. /**
  1753. * Log a user into the application.
  1754. *
  1755. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1756. * @param bool $remember
  1757. * @return void
  1758. * @static
  1759. */
  1760. public static function login($user, $remember = false)
  1761. {
  1762. /** @var \Illuminate\Auth\SessionGuard $instance */
  1763. $instance->login($user, $remember);
  1764. }
  1765. /**
  1766. * Log the user out of the application.
  1767. *
  1768. * @return void
  1769. * @static
  1770. */
  1771. public static function logout()
  1772. {
  1773. /** @var \Illuminate\Auth\SessionGuard $instance */
  1774. $instance->logout();
  1775. }
  1776. /**
  1777. * Log the user out of the application on their current device only.
  1778. *
  1779. * @return void
  1780. * @static
  1781. */
  1782. public static function logoutCurrentDevice()
  1783. {
  1784. /** @var \Illuminate\Auth\SessionGuard $instance */
  1785. $instance->logoutCurrentDevice();
  1786. }
  1787. /**
  1788. * Invalidate other sessions for the current user.
  1789. *
  1790. * The application must be using the AuthenticateSession middleware.
  1791. *
  1792. * @param string $password
  1793. * @param string $attribute
  1794. * @return bool|null
  1795. * @static
  1796. */
  1797. public static function logoutOtherDevices($password, $attribute = 'password')
  1798. {
  1799. /** @var \Illuminate\Auth\SessionGuard $instance */
  1800. return $instance->logoutOtherDevices($password, $attribute);
  1801. }
  1802. /**
  1803. * Register an authentication attempt event listener.
  1804. *
  1805. * @param mixed $callback
  1806. * @return void
  1807. * @static
  1808. */
  1809. public static function attempting($callback)
  1810. {
  1811. /** @var \Illuminate\Auth\SessionGuard $instance */
  1812. $instance->attempting($callback);
  1813. }
  1814. /**
  1815. * Get the last user we attempted to authenticate.
  1816. *
  1817. * @return \App\User
  1818. * @static
  1819. */
  1820. public static function getLastAttempted()
  1821. {
  1822. /** @var \Illuminate\Auth\SessionGuard $instance */
  1823. return $instance->getLastAttempted();
  1824. }
  1825. /**
  1826. * Get a unique identifier for the auth session value.
  1827. *
  1828. * @return string
  1829. * @static
  1830. */
  1831. public static function getName()
  1832. {
  1833. /** @var \Illuminate\Auth\SessionGuard $instance */
  1834. return $instance->getName();
  1835. }
  1836. /**
  1837. * Get the name of the cookie used to store the "recaller".
  1838. *
  1839. * @return string
  1840. * @static
  1841. */
  1842. public static function getRecallerName()
  1843. {
  1844. /** @var \Illuminate\Auth\SessionGuard $instance */
  1845. return $instance->getRecallerName();
  1846. }
  1847. /**
  1848. * Determine if the user was authenticated via "remember me" cookie.
  1849. *
  1850. * @return bool
  1851. * @static
  1852. */
  1853. public static function viaRemember()
  1854. {
  1855. /** @var \Illuminate\Auth\SessionGuard $instance */
  1856. return $instance->viaRemember();
  1857. }
  1858. /**
  1859. * Get the cookie creator instance used by the guard.
  1860. *
  1861. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1862. * @throws \RuntimeException
  1863. * @static
  1864. */
  1865. public static function getCookieJar()
  1866. {
  1867. /** @var \Illuminate\Auth\SessionGuard $instance */
  1868. return $instance->getCookieJar();
  1869. }
  1870. /**
  1871. * Set the cookie creator instance used by the guard.
  1872. *
  1873. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1874. * @return void
  1875. * @static
  1876. */
  1877. public static function setCookieJar($cookie)
  1878. {
  1879. /** @var \Illuminate\Auth\SessionGuard $instance */
  1880. $instance->setCookieJar($cookie);
  1881. }
  1882. /**
  1883. * Get the event dispatcher instance.
  1884. *
  1885. * @return \Illuminate\Contracts\Events\Dispatcher
  1886. * @static
  1887. */
  1888. public static function getDispatcher()
  1889. {
  1890. /** @var \Illuminate\Auth\SessionGuard $instance */
  1891. return $instance->getDispatcher();
  1892. }
  1893. /**
  1894. * Set the event dispatcher instance.
  1895. *
  1896. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1897. * @return void
  1898. * @static
  1899. */
  1900. public static function setDispatcher($events)
  1901. {
  1902. /** @var \Illuminate\Auth\SessionGuard $instance */
  1903. $instance->setDispatcher($events);
  1904. }
  1905. /**
  1906. * Get the session store used by the guard.
  1907. *
  1908. * @return \Illuminate\Contracts\Session\Session
  1909. * @static
  1910. */
  1911. public static function getSession()
  1912. {
  1913. /** @var \Illuminate\Auth\SessionGuard $instance */
  1914. return $instance->getSession();
  1915. }
  1916. /**
  1917. * Return the currently cached user.
  1918. *
  1919. * @return \App\User|null
  1920. * @static
  1921. */
  1922. public static function getUser()
  1923. {
  1924. /** @var \Illuminate\Auth\SessionGuard $instance */
  1925. return $instance->getUser();
  1926. }
  1927. /**
  1928. * Set the current user.
  1929. *
  1930. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1931. * @return \Illuminate\Auth\SessionGuard
  1932. * @static
  1933. */
  1934. public static function setUser($user)
  1935. {
  1936. /** @var \Illuminate\Auth\SessionGuard $instance */
  1937. return $instance->setUser($user);
  1938. }
  1939. /**
  1940. * Get the current request instance.
  1941. *
  1942. * @return \Symfony\Component\HttpFoundation\Request
  1943. * @static
  1944. */
  1945. public static function getRequest()
  1946. {
  1947. /** @var \Illuminate\Auth\SessionGuard $instance */
  1948. return $instance->getRequest();
  1949. }
  1950. /**
  1951. * Set the current request instance.
  1952. *
  1953. * @param \Symfony\Component\HttpFoundation\Request $request
  1954. * @return \Illuminate\Auth\SessionGuard
  1955. * @static
  1956. */
  1957. public static function setRequest($request)
  1958. {
  1959. /** @var \Illuminate\Auth\SessionGuard $instance */
  1960. return $instance->setRequest($request);
  1961. }
  1962. /**
  1963. * Determine if current user is authenticated. If not, throw an exception.
  1964. *
  1965. * @return \App\User
  1966. * @throws \Illuminate\Auth\AuthenticationException
  1967. * @static
  1968. */
  1969. public static function authenticate()
  1970. {
  1971. /** @var \Illuminate\Auth\SessionGuard $instance */
  1972. return $instance->authenticate();
  1973. }
  1974. /**
  1975. * Determine if the guard has a user instance.
  1976. *
  1977. * @return bool
  1978. * @static
  1979. */
  1980. public static function hasUser()
  1981. {
  1982. /** @var \Illuminate\Auth\SessionGuard $instance */
  1983. return $instance->hasUser();
  1984. }
  1985. /**
  1986. * Determine if the current user is authenticated.
  1987. *
  1988. * @return bool
  1989. * @static
  1990. */
  1991. public static function check()
  1992. {
  1993. /** @var \Illuminate\Auth\SessionGuard $instance */
  1994. return $instance->check();
  1995. }
  1996. /**
  1997. * Determine if the current user is a guest.
  1998. *
  1999. * @return bool
  2000. * @static
  2001. */
  2002. public static function guest()
  2003. {
  2004. /** @var \Illuminate\Auth\SessionGuard $instance */
  2005. return $instance->guest();
  2006. }
  2007. /**
  2008. * Get the user provider used by the guard.
  2009. *
  2010. * @return \Illuminate\Contracts\Auth\UserProvider
  2011. * @static
  2012. */
  2013. public static function getProvider()
  2014. {
  2015. /** @var \Illuminate\Auth\SessionGuard $instance */
  2016. return $instance->getProvider();
  2017. }
  2018. /**
  2019. * Set the user provider used by the guard.
  2020. *
  2021. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2022. * @return void
  2023. * @static
  2024. */
  2025. public static function setProvider($provider)
  2026. {
  2027. /** @var \Illuminate\Auth\SessionGuard $instance */
  2028. $instance->setProvider($provider);
  2029. }
  2030. /**
  2031. * Register a custom macro.
  2032. *
  2033. * @param string $name
  2034. * @param object|callable $macro
  2035. * @return void
  2036. * @static
  2037. */
  2038. public static function macro($name, $macro)
  2039. {
  2040. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2041. }
  2042. /**
  2043. * Mix another object into the class.
  2044. *
  2045. * @param object $mixin
  2046. * @param bool $replace
  2047. * @return void
  2048. * @throws \ReflectionException
  2049. * @static
  2050. */
  2051. public static function mixin($mixin, $replace = true)
  2052. {
  2053. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2054. }
  2055. /**
  2056. * Checks if macro is registered.
  2057. *
  2058. * @param string $name
  2059. * @return bool
  2060. * @static
  2061. */
  2062. public static function hasMacro($name)
  2063. {
  2064. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2065. }
  2066. }
  2067. /**
  2068. *
  2069. *
  2070. * @see \Illuminate\View\Compilers\BladeCompiler
  2071. */
  2072. class Blade {
  2073. /**
  2074. * Compile the view at the given path.
  2075. *
  2076. * @param string|null $path
  2077. * @return void
  2078. * @static
  2079. */
  2080. public static function compile($path = null)
  2081. {
  2082. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2083. $instance->compile($path);
  2084. }
  2085. /**
  2086. * Get the path currently being compiled.
  2087. *
  2088. * @return string
  2089. * @static
  2090. */
  2091. public static function getPath()
  2092. {
  2093. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2094. return $instance->getPath();
  2095. }
  2096. /**
  2097. * Set the path currently being compiled.
  2098. *
  2099. * @param string $path
  2100. * @return void
  2101. * @static
  2102. */
  2103. public static function setPath($path)
  2104. {
  2105. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2106. $instance->setPath($path);
  2107. }
  2108. /**
  2109. * Compile the given Blade template contents.
  2110. *
  2111. * @param string $value
  2112. * @return string
  2113. * @static
  2114. */
  2115. public static function compileString($value)
  2116. {
  2117. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2118. return $instance->compileString($value);
  2119. }
  2120. /**
  2121. * Strip the parentheses from the given expression.
  2122. *
  2123. * @param string $expression
  2124. * @return string
  2125. * @static
  2126. */
  2127. public static function stripParentheses($expression)
  2128. {
  2129. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2130. return $instance->stripParentheses($expression);
  2131. }
  2132. /**
  2133. * Register a custom Blade compiler.
  2134. *
  2135. * @param callable $compiler
  2136. * @return void
  2137. * @static
  2138. */
  2139. public static function extend($compiler)
  2140. {
  2141. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2142. $instance->extend($compiler);
  2143. }
  2144. /**
  2145. * Get the extensions used by the compiler.
  2146. *
  2147. * @return array
  2148. * @static
  2149. */
  2150. public static function getExtensions()
  2151. {
  2152. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2153. return $instance->getExtensions();
  2154. }
  2155. /**
  2156. * Register an "if" statement directive.
  2157. *
  2158. * @param string $name
  2159. * @param callable $callback
  2160. * @return void
  2161. * @static
  2162. */
  2163. public static function if($name, $callback)
  2164. {
  2165. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2166. $instance->if($name, $callback);
  2167. }
  2168. /**
  2169. * Check the result of a condition.
  2170. *
  2171. * @param string $name
  2172. * @param array $parameters
  2173. * @return bool
  2174. * @static
  2175. */
  2176. public static function check($name, ...$parameters)
  2177. {
  2178. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2179. return $instance->check($name, ...$parameters);
  2180. }
  2181. /**
  2182. * Register a component alias directive.
  2183. *
  2184. * @param string $path
  2185. * @param string|null $alias
  2186. * @return void
  2187. * @static
  2188. */
  2189. public static function component($path, $alias = null)
  2190. {
  2191. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2192. $instance->component($path, $alias);
  2193. }
  2194. /**
  2195. * Register an include alias directive.
  2196. *
  2197. * @param string $path
  2198. * @param string|null $alias
  2199. * @return void
  2200. * @static
  2201. */
  2202. public static function include($path, $alias = null)
  2203. {
  2204. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2205. $instance->include($path, $alias);
  2206. }
  2207. /**
  2208. * Register a handler for custom directives.
  2209. *
  2210. * @param string $name
  2211. * @param callable $handler
  2212. * @return void
  2213. * @throws \InvalidArgumentException
  2214. * @static
  2215. */
  2216. public static function directive($name, $handler)
  2217. {
  2218. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2219. $instance->directive($name, $handler);
  2220. }
  2221. /**
  2222. * Get the list of custom directives.
  2223. *
  2224. * @return array
  2225. * @static
  2226. */
  2227. public static function getCustomDirectives()
  2228. {
  2229. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2230. return $instance->getCustomDirectives();
  2231. }
  2232. /**
  2233. * Set the echo format to be used by the compiler.
  2234. *
  2235. * @param string $format
  2236. * @return void
  2237. * @static
  2238. */
  2239. public static function setEchoFormat($format)
  2240. {
  2241. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2242. $instance->setEchoFormat($format);
  2243. }
  2244. /**
  2245. * Set the "echo" format to double encode entities.
  2246. *
  2247. * @return void
  2248. * @static
  2249. */
  2250. public static function withDoubleEncoding()
  2251. {
  2252. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2253. $instance->withDoubleEncoding();
  2254. }
  2255. /**
  2256. * Set the "echo" format to not double encode entities.
  2257. *
  2258. * @return void
  2259. * @static
  2260. */
  2261. public static function withoutDoubleEncoding()
  2262. {
  2263. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2264. $instance->withoutDoubleEncoding();
  2265. }
  2266. /**
  2267. * Get the path to the compiled version of a view.
  2268. *
  2269. * @param string $path
  2270. * @return string
  2271. * @static
  2272. */
  2273. public static function getCompiledPath($path)
  2274. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2275. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2276. return $instance->getCompiledPath($path);
  2277. }
  2278. /**
  2279. * Determine if the view at the given path is expired.
  2280. *
  2281. * @param string $path
  2282. * @return bool
  2283. * @static
  2284. */
  2285. public static function isExpired($path)
  2286. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2287. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2288. return $instance->isExpired($path);
  2289. }
  2290. }
  2291. /**
  2292. *
  2293. *
  2294. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2295. * @method static mixed auth(\Illuminate\Http\Request $request)
  2296. * @see \Illuminate\Contracts\Broadcasting\Factory
  2297. */
  2298. class Broadcast {
  2299. /**
  2300. * Register the routes for handling broadcast authentication and sockets.
  2301. *
  2302. * @param array|null $attributes
  2303. * @return void
  2304. * @static
  2305. */
  2306. public static function routes($attributes = null)
  2307. {
  2308. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2309. $instance->routes($attributes);
  2310. }
  2311. /**
  2312. * Get the socket ID for the given request.
  2313. *
  2314. * @param \Illuminate\Http\Request|null $request
  2315. * @return string|null
  2316. * @static
  2317. */
  2318. public static function socket($request = null)
  2319. {
  2320. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2321. return $instance->socket($request);
  2322. }
  2323. /**
  2324. * Begin broadcasting an event.
  2325. *
  2326. * @param mixed|null $event
  2327. * @return \Illuminate\Broadcasting\PendingBroadcast
  2328. * @static
  2329. */
  2330. public static function event($event = null)
  2331. {
  2332. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2333. return $instance->event($event);
  2334. }
  2335. /**
  2336. * Queue the given event for broadcast.
  2337. *
  2338. * @param mixed $event
  2339. * @return void
  2340. * @static
  2341. */
  2342. public static function queue($event)
  2343. {
  2344. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2345. $instance->queue($event);
  2346. }
  2347. /**
  2348. * Get a driver instance.
  2349. *
  2350. * @param string|null $driver
  2351. * @return mixed
  2352. * @static
  2353. */
  2354. public static function connection($driver = null)
  2355. {
  2356. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2357. return $instance->connection($driver);
  2358. }
  2359. /**
  2360. * Get a driver instance.
  2361. *
  2362. * @param string|null $name
  2363. * @return mixed
  2364. * @static
  2365. */
  2366. public static function driver($name = null)
  2367. {
  2368. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2369. return $instance->driver($name);
  2370. }
  2371. /**
  2372. * Get the default driver name.
  2373. *
  2374. * @return string
  2375. * @static
  2376. */
  2377. public static function getDefaultDriver()
  2378. {
  2379. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2380. return $instance->getDefaultDriver();
  2381. }
  2382. /**
  2383. * Set the default driver name.
  2384. *
  2385. * @param string $name
  2386. * @return void
  2387. * @static
  2388. */
  2389. public static function setDefaultDriver($name)
  2390. {
  2391. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2392. $instance->setDefaultDriver($name);
  2393. }
  2394. /**
  2395. * Register a custom driver creator Closure.
  2396. *
  2397. * @param string $driver
  2398. * @param \Closure $callback
  2399. * @return \Illuminate\Broadcasting\BroadcastManager
  2400. * @static
  2401. */
  2402. public static function extend($driver, $callback)
  2403. {
  2404. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2405. return $instance->extend($driver, $callback);
  2406. }
  2407. }
  2408. /**
  2409. *
  2410. *
  2411. * @see \Illuminate\Contracts\Bus\Dispatcher
  2412. */
  2413. class Bus {
  2414. /**
  2415. * Dispatch a command to its appropriate handler.
  2416. *
  2417. * @param mixed $command
  2418. * @return mixed
  2419. * @static
  2420. */
  2421. public static function dispatch($command)
  2422. {
  2423. /** @var \Illuminate\Bus\Dispatcher $instance */
  2424. return $instance->dispatch($command);
  2425. }
  2426. /**
  2427. * Dispatch a command to its appropriate handler in the current process.
  2428. *
  2429. * @param mixed $command
  2430. * @param mixed $handler
  2431. * @return mixed
  2432. * @static
  2433. */
  2434. public static function dispatchNow($command, $handler = null)
  2435. {
  2436. /** @var \Illuminate\Bus\Dispatcher $instance */
  2437. return $instance->dispatchNow($command, $handler);
  2438. }
  2439. /**
  2440. * Determine if the given command has a handler.
  2441. *
  2442. * @param mixed $command
  2443. * @return bool
  2444. * @static
  2445. */
  2446. public static function hasCommandHandler($command)
  2447. {
  2448. /** @var \Illuminate\Bus\Dispatcher $instance */
  2449. return $instance->hasCommandHandler($command);
  2450. }
  2451. /**
  2452. * Retrieve the handler for a command.
  2453. *
  2454. * @param mixed $command
  2455. * @return bool|mixed
  2456. * @static
  2457. */
  2458. public static function getCommandHandler($command)
  2459. {
  2460. /** @var \Illuminate\Bus\Dispatcher $instance */
  2461. return $instance->getCommandHandler($command);
  2462. }
  2463. /**
  2464. * Dispatch a command to its appropriate handler behind a queue.
  2465. *
  2466. * @param mixed $command
  2467. * @return mixed
  2468. * @static
  2469. */
  2470. public static function dispatchToQueue($command)
  2471. {
  2472. /** @var \Illuminate\Bus\Dispatcher $instance */
  2473. return $instance->dispatchToQueue($command);
  2474. }
  2475. /**
  2476. * Dispatch a command to its appropriate handler after the current process.
  2477. *
  2478. * @param mixed $command
  2479. * @param mixed $handler
  2480. * @return void
  2481. * @static
  2482. */
  2483. public static function dispatchAfterResponse($command, $handler = null)
  2484. {
  2485. /** @var \Illuminate\Bus\Dispatcher $instance */
  2486. $instance->dispatchAfterResponse($command, $handler);
  2487. }
  2488. /**
  2489. * Set the pipes through which commands should be piped before dispatching.
  2490. *
  2491. * @param array $pipes
  2492. * @return \Illuminate\Bus\Dispatcher
  2493. * @static
  2494. */
  2495. public static function pipeThrough($pipes)
  2496. {
  2497. /** @var \Illuminate\Bus\Dispatcher $instance */
  2498. return $instance->pipeThrough($pipes);
  2499. }
  2500. /**
  2501. * Map a command to a handler.
  2502. *
  2503. * @param array $map
  2504. * @return \Illuminate\Bus\Dispatcher
  2505. * @static
  2506. */
  2507. public static function map($map)
  2508. {
  2509. /** @var \Illuminate\Bus\Dispatcher $instance */
  2510. return $instance->map($map);
  2511. }
  2512. /**
  2513. * Assert if a job was dispatched based on a truth-test callback.
  2514. *
  2515. * @param string $command
  2516. * @param callable|int|null $callback
  2517. * @return void
  2518. * @static
  2519. */
  2520. public static function assertDispatched($command, $callback = null)
  2521. {
  2522. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2523. $instance->assertDispatched($command, $callback);
  2524. }
  2525. /**
  2526. * Assert if a job was pushed a number of times.
  2527. *
  2528. * @param string $command
  2529. * @param int $times
  2530. * @return void
  2531. * @static
  2532. */
  2533. public static function assertDispatchedTimes($command, $times = 1)
  2534. {
  2535. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2536. $instance->assertDispatchedTimes($command, $times);
  2537. }
  2538. /**
  2539. * Determine if a job was dispatched based on a truth-test callback.
  2540. *
  2541. * @param string $command
  2542. * @param callable|null $callback
  2543. * @return void
  2544. * @static
  2545. */
  2546. public static function assertNotDispatched($command, $callback = null)
  2547. {
  2548. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2549. $instance->assertNotDispatched($command, $callback);
  2550. }
  2551. /**
  2552. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  2553. *
  2554. * @param string $command
  2555. * @param callable|int|null $callback
  2556. * @return void
  2557. * @static
  2558. */
  2559. public static function assertDispatchedAfterResponse($command, $callback = null)
  2560. {
  2561. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2562. $instance->assertDispatchedAfterResponse($command, $callback);
  2563. }
  2564. /**
  2565. * Assert if a job was pushed after the response was sent a number of times.
  2566. *
  2567. * @param string $command
  2568. * @param int $times
  2569. * @return void
  2570. * @static
  2571. */
  2572. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  2573. {
  2574. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2575. $instance->assertDispatchedAfterResponseTimes($command, $times);
  2576. }
  2577. /**
  2578. * Determine if a job was dispatched based on a truth-test callback.
  2579. *
  2580. * @param string $command
  2581. * @param callable|null $callback
  2582. * @return void
  2583. * @static
  2584. */
  2585. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  2586. {
  2587. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2588. $instance->assertNotDispatchedAfterResponse($command, $callback);
  2589. }
  2590. /**
  2591. * Get all of the jobs matching a truth-test callback.
  2592. *
  2593. * @param string $command
  2594. * @param callable|null $callback
  2595. * @return \Illuminate\Support\Collection
  2596. * @static
  2597. */
  2598. public static function dispatched($command, $callback = null)
  2599. {
  2600. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2601. return $instance->dispatched($command, $callback);
  2602. }
  2603. /**
  2604. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  2605. *
  2606. * @param string $command
  2607. * @param callable|null $callback
  2608. * @return \Illuminate\Support\Collection
  2609. * @static
  2610. */
  2611. public static function dispatchedAfterResponse($command, $callback = null)
  2612. {
  2613. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2614. return $instance->dispatchedAfterResponse($command, $callback);
  2615. }
  2616. /**
  2617. * Determine if there are any stored commands for a given class.
  2618. *
  2619. * @param string $command
  2620. * @return bool
  2621. * @static
  2622. */
  2623. public static function hasDispatched($command)
  2624. {
  2625. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2626. return $instance->hasDispatched($command);
  2627. }
  2628. /**
  2629. * Determine if there are any stored commands for a given class.
  2630. *
  2631. * @param string $command
  2632. * @return bool
  2633. * @static
  2634. */
  2635. public static function hasDispatchedAfterResponse($command)
  2636. {
  2637. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2638. return $instance->hasDispatchedAfterResponse($command);
  2639. }
  2640. }
  2641. /**
  2642. *
  2643. *
  2644. * @see \Illuminate\Cache\CacheManager
  2645. * @see \Illuminate\Cache\Repository
  2646. */
  2647. class Cache {
  2648. /**
  2649. * Get a cache store instance by name, wrapped in a repository.
  2650. *
  2651. * @param string|null $name
  2652. * @return \Illuminate\Contracts\Cache\Repository
  2653. * @static
  2654. */
  2655. public static function store($name = null)
  2656. {
  2657. /** @var \Illuminate\Cache\CacheManager $instance */
  2658. return $instance->store($name);
  2659. }
  2660. /**
  2661. * Get a cache driver instance.
  2662. *
  2663. * @param string|null $driver
  2664. * @return \Illuminate\Contracts\Cache\Repository
  2665. * @static
  2666. */
  2667. public static function driver($driver = null)
  2668. {
  2669. /** @var \Illuminate\Cache\CacheManager $instance */
  2670. return $instance->driver($driver);
  2671. }
  2672. /**
  2673. * Create a new cache repository with the given implementation.
  2674. *
  2675. * @param \Illuminate\Contracts\Cache\Store $store
  2676. * @return \Illuminate\Cache\Repository
  2677. * @static
  2678. */
  2679. public static function repository($store)
  2680. {
  2681. /** @var \Illuminate\Cache\CacheManager $instance */
  2682. return $instance->repository($store);
  2683. }
  2684. /**
  2685. * Re-set the event dispatcher on all resolved cache repositories.
  2686. *
  2687. * @return void
  2688. * @static
  2689. */
  2690. public static function refreshEventDispatcher()
  2691. {
  2692. /** @var \Illuminate\Cache\CacheManager $instance */
  2693. $instance->refreshEventDispatcher();
  2694. }
  2695. /**
  2696. * Get the default cache driver name.
  2697. *
  2698. * @return string
  2699. * @static
  2700. */
  2701. public static function getDefaultDriver()
  2702. {
  2703. /** @var \Illuminate\Cache\CacheManager $instance */
  2704. return $instance->getDefaultDriver();
  2705. }
  2706. /**
  2707. * Set the default cache driver name.
  2708. *
  2709. * @param string $name
  2710. * @return void
  2711. * @static
  2712. */
  2713. public static function setDefaultDriver($name)
  2714. {
  2715. /** @var \Illuminate\Cache\CacheManager $instance */
  2716. $instance->setDefaultDriver($name);
  2717. }
  2718. /**
  2719. * Unset the given driver instances.
  2720. *
  2721. * @param array|string|null $name
  2722. * @return \Illuminate\Cache\CacheManager
  2723. * @static
  2724. */
  2725. public static function forgetDriver($name = null)
  2726. {
  2727. /** @var \Illuminate\Cache\CacheManager $instance */
  2728. return $instance->forgetDriver($name);
  2729. }
  2730. /**
  2731. * Register a custom driver creator Closure.
  2732. *
  2733. * @param string $driver
  2734. * @param \Closure $callback
  2735. * @return \Illuminate\Cache\CacheManager
  2736. * @static
  2737. */
  2738. public static function extend($driver, $callback)
  2739. {
  2740. /** @var \Illuminate\Cache\CacheManager $instance */
  2741. return $instance->extend($driver, $callback);
  2742. }
  2743. /**
  2744. * Determine if an item exists in the cache.
  2745. *
  2746. * @param string $key
  2747. * @return bool
  2748. * @static
  2749. */
  2750. public static function has($key)
  2751. {
  2752. /** @var \Illuminate\Cache\Repository $instance */
  2753. return $instance->has($key);
  2754. }
  2755. /**
  2756. * Determine if an item doesn't exist in the cache.
  2757. *
  2758. * @param string $key
  2759. * @return bool
  2760. * @static
  2761. */
  2762. public static function missing($key)
  2763. {
  2764. /** @var \Illuminate\Cache\Repository $instance */
  2765. return $instance->missing($key);
  2766. }
  2767. /**
  2768. * Retrieve an item from the cache by key.
  2769. *
  2770. * @param string $key
  2771. * @param mixed $default
  2772. * @return mixed
  2773. * @static
  2774. */
  2775. public static function get($key, $default = null)
  2776. {
  2777. /** @var \Illuminate\Cache\Repository $instance */
  2778. return $instance->get($key, $default);
  2779. }
  2780. /**
  2781. * Retrieve multiple items from the cache by key.
  2782. *
  2783. * Items not found in the cache will have a null value.
  2784. *
  2785. * @param array $keys
  2786. * @return array
  2787. * @static
  2788. */
  2789. public static function many($keys)
  2790. {
  2791. /** @var \Illuminate\Cache\Repository $instance */
  2792. return $instance->many($keys);
  2793. }
  2794. /**
  2795. * Obtains multiple cache items by their unique keys.
  2796. *
  2797. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2798. * @param mixed $default Default value to return for keys that do not exist.
  2799. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2800. * @throws \Psr\SimpleCache\InvalidArgumentException
  2801. * MUST be thrown if $keys is neither an array nor a Traversable,
  2802. * or if any of the $keys are not a legal value.
  2803. * @static
  2804. */
  2805. public static function getMultiple($keys, $default = null)
  2806. {
  2807. /** @var \Illuminate\Cache\Repository $instance */
  2808. return $instance->getMultiple($keys, $default);
  2809. }
  2810. /**
  2811. * Retrieve an item from the cache and delete it.
  2812. *
  2813. * @param string $key
  2814. * @param mixed $default
  2815. * @return mixed
  2816. * @static
  2817. */
  2818. public static function pull($key, $default = null)
  2819. {
  2820. /** @var \Illuminate\Cache\Repository $instance */
  2821. return $instance->pull($key, $default);
  2822. }
  2823. /**
  2824. * Store an item in the cache.
  2825. *
  2826. * @param string $key
  2827. * @param mixed $value
  2828. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2829. * @return bool
  2830. * @static
  2831. */
  2832. public static function put($key, $value, $ttl = null)
  2833. {
  2834. /** @var \Illuminate\Cache\Repository $instance */
  2835. return $instance->put($key, $value, $ttl);
  2836. }
  2837. /**
  2838. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2839. *
  2840. * @param string $key The key of the item to store.
  2841. * @param mixed $value The value of the item to store, must be serializable.
  2842. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2843. * the driver supports TTL then the library may set a default value
  2844. * for it or let the driver take care of that.
  2845. * @return bool True on success and false on failure.
  2846. * @throws \Psr\SimpleCache\InvalidArgumentException
  2847. * MUST be thrown if the $key string is not a legal value.
  2848. * @static
  2849. */
  2850. public static function set($key, $value, $ttl = null)
  2851. {
  2852. /** @var \Illuminate\Cache\Repository $instance */
  2853. return $instance->set($key, $value, $ttl);
  2854. }
  2855. /**
  2856. * Store multiple items in the cache for a given number of seconds.
  2857. *
  2858. * @param array $values
  2859. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2860. * @return bool
  2861. * @static
  2862. */
  2863. public static function putMany($values, $ttl = null)
  2864. {
  2865. /** @var \Illuminate\Cache\Repository $instance */
  2866. return $instance->putMany($values, $ttl);
  2867. }
  2868. /**
  2869. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2870. *
  2871. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2872. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2873. * the driver supports TTL then the library may set a default value
  2874. * for it or let the driver take care of that.
  2875. * @return bool True on success and false on failure.
  2876. * @throws \Psr\SimpleCache\InvalidArgumentException
  2877. * MUST be thrown if $values is neither an array nor a Traversable,
  2878. * or if any of the $values are not a legal value.
  2879. * @static
  2880. */
  2881. public static function setMultiple($values, $ttl = null)
  2882. {
  2883. /** @var \Illuminate\Cache\Repository $instance */
  2884. return $instance->setMultiple($values, $ttl);
  2885. }
  2886. /**
  2887. * Store an item in the cache if the key does not exist.
  2888. *
  2889. * @param string $key
  2890. * @param mixed $value
  2891. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2892. * @return bool
  2893. * @static
  2894. */
  2895. public static function add($key, $value, $ttl = null)
  2896. {
  2897. /** @var \Illuminate\Cache\Repository $instance */
  2898. return $instance->add($key, $value, $ttl);
  2899. }
  2900. /**
  2901. * Increment the value of an item in the cache.
  2902. *
  2903. * @param string $key
  2904. * @param mixed $value
  2905. * @return int|bool
  2906. * @static
  2907. */
  2908. public static function increment($key, $value = 1)
  2909. {
  2910. /** @var \Illuminate\Cache\Repository $instance */
  2911. return $instance->increment($key, $value);
  2912. }
  2913. /**
  2914. * Decrement the value of an item in the cache.
  2915. *
  2916. * @param string $key
  2917. * @param mixed $value
  2918. * @return int|bool
  2919. * @static
  2920. */
  2921. public static function decrement($key, $value = 1)
  2922. {
  2923. /** @var \Illuminate\Cache\Repository $instance */
  2924. return $instance->decrement($key, $value);
  2925. }
  2926. /**
  2927. * Store an item in the cache indefinitely.
  2928. *
  2929. * @param string $key
  2930. * @param mixed $value
  2931. * @return bool
  2932. * @static
  2933. */
  2934. public static function forever($key, $value)
  2935. {
  2936. /** @var \Illuminate\Cache\Repository $instance */
  2937. return $instance->forever($key, $value);
  2938. }
  2939. /**
  2940. * Get an item from the cache, or execute the given Closure and store the result.
  2941. *
  2942. * @param string $key
  2943. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2944. * @param \Closure $callback
  2945. * @return mixed
  2946. * @static
  2947. */
  2948. public static function remember($key, $ttl, $callback)
  2949. {
  2950. /** @var \Illuminate\Cache\Repository $instance */
  2951. return $instance->remember($key, $ttl, $callback);
  2952. }
  2953. /**
  2954. * Get an item from the cache, or execute the given Closure and store the result forever.
  2955. *
  2956. * @param string $key
  2957. * @param \Closure $callback
  2958. * @return mixed
  2959. * @static
  2960. */
  2961. public static function sear($key, $callback)
  2962. {
  2963. /** @var \Illuminate\Cache\Repository $instance */
  2964. return $instance->sear($key, $callback);
  2965. }
  2966. /**
  2967. * Get an item from the cache, or execute the given Closure and store the result forever.
  2968. *
  2969. * @param string $key
  2970. * @param \Closure $callback
  2971. * @return mixed
  2972. * @static
  2973. */
  2974. public static function rememberForever($key, $callback)
  2975. {
  2976. /** @var \Illuminate\Cache\Repository $instance */
  2977. return $instance->rememberForever($key, $callback);
  2978. }
  2979. /**
  2980. * Remove an item from the cache.
  2981. *
  2982. * @param string $key
  2983. * @return bool
  2984. * @static
  2985. */
  2986. public static function forget($key)
  2987. {
  2988. /** @var \Illuminate\Cache\Repository $instance */
  2989. return $instance->forget($key);
  2990. }
  2991. /**
  2992. * Delete an item from the cache by its unique key.
  2993. *
  2994. * @param string $key The unique cache key of the item to delete.
  2995. * @return bool True if the item was successfully removed. False if there was an error.
  2996. * @throws \Psr\SimpleCache\InvalidArgumentException
  2997. * MUST be thrown if the $key string is not a legal value.
  2998. * @static
  2999. */
  3000. public static function delete($key)
  3001. {
  3002. /** @var \Illuminate\Cache\Repository $instance */
  3003. return $instance->delete($key);
  3004. }
  3005. /**
  3006. * Deletes multiple cache items in a single operation.
  3007. *
  3008. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  3009. * @return bool True if the items were successfully removed. False if there was an error.
  3010. * @throws \Psr\SimpleCache\InvalidArgumentException
  3011. * MUST be thrown if $keys is neither an array nor a Traversable,
  3012. * or if any of the $keys are not a legal value.
  3013. * @static
  3014. */
  3015. public static function deleteMultiple($keys)
  3016. {
  3017. /** @var \Illuminate\Cache\Repository $instance */
  3018. return $instance->deleteMultiple($keys);
  3019. }
  3020. /**
  3021. * Wipes clean the entire cache's keys.
  3022. *
  3023. * @return bool True on success and false on failure.
  3024. * @static
  3025. */
  3026. public static function clear()
  3027. {
  3028. /** @var \Illuminate\Cache\Repository $instance */
  3029. return $instance->clear();
  3030. }
  3031. /**
  3032. * Begin executing a new tags operation if the store supports it.
  3033. *
  3034. * @param array|mixed $names
  3035. * @return \Illuminate\Cache\TaggedCache
  3036. * @throws \BadMethodCallException
  3037. * @static
  3038. */
  3039. public static function tags($names)
  3040. {
  3041. /** @var \Illuminate\Cache\Repository $instance */
  3042. return $instance->tags($names);
  3043. }
  3044. /**
  3045. * Get the default cache time.
  3046. *
  3047. * @return int|null
  3048. * @static
  3049. */
  3050. public static function getDefaultCacheTime()
  3051. {
  3052. /** @var \Illuminate\Cache\Repository $instance */
  3053. return $instance->getDefaultCacheTime();
  3054. }
  3055. /**
  3056. * Set the default cache time in seconds.
  3057. *
  3058. * @param int|null $seconds
  3059. * @return \Illuminate\Cache\Repository
  3060. * @static
  3061. */
  3062. public static function setDefaultCacheTime($seconds)
  3063. {
  3064. /** @var \Illuminate\Cache\Repository $instance */
  3065. return $instance->setDefaultCacheTime($seconds);
  3066. }
  3067. /**
  3068. * Get the cache store implementation.
  3069. *
  3070. * @return \Illuminate\Contracts\Cache\Store
  3071. * @static
  3072. */
  3073. public static function getStore()
  3074. {
  3075. /** @var \Illuminate\Cache\Repository $instance */
  3076. return $instance->getStore();
  3077. }
  3078. /**
  3079. * Get the event dispatcher instance.
  3080. *
  3081. * @return \Illuminate\Contracts\Events\Dispatcher
  3082. * @static
  3083. */
  3084. public static function getEventDispatcher()
  3085. {
  3086. /** @var \Illuminate\Cache\Repository $instance */
  3087. return $instance->getEventDispatcher();
  3088. }
  3089. /**
  3090. * Set the event dispatcher instance.
  3091. *
  3092. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3093. * @return void
  3094. * @static
  3095. */
  3096. public static function setEventDispatcher($events)
  3097. {
  3098. /** @var \Illuminate\Cache\Repository $instance */
  3099. $instance->setEventDispatcher($events);
  3100. }
  3101. /**
  3102. * Determine if a cached value exists.
  3103. *
  3104. * @param string $key
  3105. * @return bool
  3106. * @static
  3107. */
  3108. public static function offsetExists($key)
  3109. {
  3110. /** @var \Illuminate\Cache\Repository $instance */
  3111. return $instance->offsetExists($key);
  3112. }
  3113. /**
  3114. * Retrieve an item from the cache by key.
  3115. *
  3116. * @param string $key
  3117. * @return mixed
  3118. * @static
  3119. */
  3120. public static function offsetGet($key)
  3121. {
  3122. /** @var \Illuminate\Cache\Repository $instance */
  3123. return $instance->offsetGet($key);
  3124. }
  3125. /**
  3126. * Store an item in the cache for the default time.
  3127. *
  3128. * @param string $key
  3129. * @param mixed $value
  3130. * @return void
  3131. * @static
  3132. */
  3133. public static function offsetSet($key, $value)
  3134. {
  3135. /** @var \Illuminate\Cache\Repository $instance */
  3136. $instance->offsetSet($key, $value);
  3137. }
  3138. /**
  3139. * Remove an item from the cache.
  3140. *
  3141. * @param string $key
  3142. * @return void
  3143. * @static
  3144. */
  3145. public static function offsetUnset($key)
  3146. {
  3147. /** @var \Illuminate\Cache\Repository $instance */
  3148. $instance->offsetUnset($key);
  3149. }
  3150. /**
  3151. * Register a custom macro.
  3152. *
  3153. * @param string $name
  3154. * @param object|callable $macro
  3155. * @return void
  3156. * @static
  3157. */
  3158. public static function macro($name, $macro)
  3159. {
  3160. \Illuminate\Cache\Repository::macro($name, $macro);
  3161. }
  3162. /**
  3163. * Mix another object into the class.
  3164. *
  3165. * @param object $mixin
  3166. * @param bool $replace
  3167. * @return void
  3168. * @throws \ReflectionException
  3169. * @static
  3170. */
  3171. public static function mixin($mixin, $replace = true)
  3172. {
  3173. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3174. }
  3175. /**
  3176. * Checks if macro is registered.
  3177. *
  3178. * @param string $name
  3179. * @return bool
  3180. * @static
  3181. */
  3182. public static function hasMacro($name)
  3183. {
  3184. return \Illuminate\Cache\Repository::hasMacro($name);
  3185. }
  3186. /**
  3187. * Dynamically handle calls to the class.
  3188. *
  3189. * @param string $method
  3190. * @param array $parameters
  3191. * @return mixed
  3192. * @throws \BadMethodCallException
  3193. * @static
  3194. */
  3195. public static function macroCall($method, $parameters)
  3196. {
  3197. /** @var \Illuminate\Cache\Repository $instance */
  3198. return $instance->macroCall($method, $parameters);
  3199. }
  3200. /**
  3201. * Remove all items from the cache.
  3202. *
  3203. * @return bool
  3204. * @static
  3205. */
  3206. public static function flush()
  3207. {
  3208. /** @var \Illuminate\Cache\FileStore $instance */
  3209. return $instance->flush();
  3210. }
  3211. /**
  3212. * Get the Filesystem instance.
  3213. *
  3214. * @return \Illuminate\Filesystem\Filesystem
  3215. * @static
  3216. */
  3217. public static function getFilesystem()
  3218. {
  3219. /** @var \Illuminate\Cache\FileStore $instance */
  3220. return $instance->getFilesystem();
  3221. }
  3222. /**
  3223. * Get the working directory of the cache.
  3224. *
  3225. * @return string
  3226. * @static
  3227. */
  3228. public static function getDirectory()
  3229. {
  3230. /** @var \Illuminate\Cache\FileStore $instance */
  3231. return $instance->getDirectory();
  3232. }
  3233. /**
  3234. * Get the cache key prefix.
  3235. *
  3236. * @return string
  3237. * @static
  3238. */
  3239. public static function getPrefix()
  3240. {
  3241. /** @var \Illuminate\Cache\FileStore $instance */
  3242. return $instance->getPrefix();
  3243. }
  3244. }
  3245. /**
  3246. *
  3247. *
  3248. * @see \Illuminate\Config\Repository
  3249. */
  3250. class Config {
  3251. /**
  3252. * Determine if the given configuration value exists.
  3253. *
  3254. * @param string $key
  3255. * @return bool
  3256. * @static
  3257. */
  3258. public static function has($key)
  3259. {
  3260. /** @var \Illuminate\Config\Repository $instance */
  3261. return $instance->has($key);
  3262. }
  3263. /**
  3264. * Get the specified configuration value.
  3265. *
  3266. * @param array|string $key
  3267. * @param mixed $default
  3268. * @return mixed
  3269. * @static
  3270. */
  3271. public static function get($key, $default = null)
  3272. {
  3273. /** @var \Illuminate\Config\Repository $instance */
  3274. return $instance->get($key, $default);
  3275. }
  3276. /**
  3277. * Get many configuration values.
  3278. *
  3279. * @param array $keys
  3280. * @return array
  3281. * @static
  3282. */
  3283. public static function getMany($keys)
  3284. {
  3285. /** @var \Illuminate\Config\Repository $instance */
  3286. return $instance->getMany($keys);
  3287. }
  3288. /**
  3289. * Set a given configuration value.
  3290. *
  3291. * @param array|string $key
  3292. * @param mixed $value
  3293. * @return void
  3294. * @static
  3295. */
  3296. public static function set($key, $value = null)
  3297. {
  3298. /** @var \Illuminate\Config\Repository $instance */
  3299. $instance->set($key, $value);
  3300. }
  3301. /**
  3302. * Prepend a value onto an array configuration value.
  3303. *
  3304. * @param string $key
  3305. * @param mixed $value
  3306. * @return void
  3307. * @static
  3308. */
  3309. public static function prepend($key, $value)
  3310. {
  3311. /** @var \Illuminate\Config\Repository $instance */
  3312. $instance->prepend($key, $value);
  3313. }
  3314. /**
  3315. * Push a value onto an array configuration value.
  3316. *
  3317. * @param string $key
  3318. * @param mixed $value
  3319. * @return void
  3320. * @static
  3321. */
  3322. public static function push($key, $value)
  3323. {
  3324. /** @var \Illuminate\Config\Repository $instance */
  3325. $instance->push($key, $value);
  3326. }
  3327. /**
  3328. * Get all of the configuration items for the application.
  3329. *
  3330. * @return array
  3331. * @static
  3332. */
  3333. public static function all()
  3334. {
  3335. /** @var \Illuminate\Config\Repository $instance */
  3336. return $instance->all();
  3337. }
  3338. /**
  3339. * Determine if the given configuration option exists.
  3340. *
  3341. * @param string $key
  3342. * @return bool
  3343. * @static
  3344. */
  3345. public static function offsetExists($key)
  3346. {
  3347. /** @var \Illuminate\Config\Repository $instance */
  3348. return $instance->offsetExists($key);
  3349. }
  3350. /**
  3351. * Get a configuration option.
  3352. *
  3353. * @param string $key
  3354. * @return mixed
  3355. * @static
  3356. */
  3357. public static function offsetGet($key)
  3358. {
  3359. /** @var \Illuminate\Config\Repository $instance */
  3360. return $instance->offsetGet($key);
  3361. }
  3362. /**
  3363. * Set a configuration option.
  3364. *
  3365. * @param string $key
  3366. * @param mixed $value
  3367. * @return void
  3368. * @static
  3369. */
  3370. public static function offsetSet($key, $value)
  3371. {
  3372. /** @var \Illuminate\Config\Repository $instance */
  3373. $instance->offsetSet($key, $value);
  3374. }
  3375. /**
  3376. * Unset a configuration option.
  3377. *
  3378. * @param string $key
  3379. * @return void
  3380. * @static
  3381. */
  3382. public static function offsetUnset($key)
  3383. {
  3384. /** @var \Illuminate\Config\Repository $instance */
  3385. $instance->offsetUnset($key);
  3386. }
  3387. }
  3388. /**
  3389. *
  3390. *
  3391. * @see \Illuminate\Cookie\CookieJar
  3392. */
  3393. class Cookie {
  3394. /**
  3395. * Create a new cookie instance.
  3396. *
  3397. * @param string $name
  3398. * @param string $value
  3399. * @param int $minutes
  3400. * @param string|null $path
  3401. * @param string|null $domain
  3402. * @param bool|null $secure
  3403. * @param bool $httpOnly
  3404. * @param bool $raw
  3405. * @param string|null $sameSite
  3406. * @return \Symfony\Component\HttpFoundation\Cookie
  3407. * @static
  3408. */
  3409. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3410. {
  3411. /** @var \Illuminate\Cookie\CookieJar $instance */
  3412. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3413. }
  3414. /**
  3415. * Create a cookie that lasts "forever" (five years).
  3416. *
  3417. * @param string $name
  3418. * @param string $value
  3419. * @param string|null $path
  3420. * @param string|null $domain
  3421. * @param bool|null $secure
  3422. * @param bool $httpOnly
  3423. * @param bool $raw
  3424. * @param string|null $sameSite
  3425. * @return \Symfony\Component\HttpFoundation\Cookie
  3426. * @static
  3427. */
  3428. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3429. {
  3430. /** @var \Illuminate\Cookie\CookieJar $instance */
  3431. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3432. }
  3433. /**
  3434. * Expire the given cookie.
  3435. *
  3436. * @param string $name
  3437. * @param string|null $path
  3438. * @param string|null $domain
  3439. * @return \Symfony\Component\HttpFoundation\Cookie
  3440. * @static
  3441. */
  3442. public static function forget($name, $path = null, $domain = null)
  3443. {
  3444. /** @var \Illuminate\Cookie\CookieJar $instance */
  3445. return $instance->forget($name, $path, $domain);
  3446. }
  3447. /**
  3448. * Determine if a cookie has been queued.
  3449. *
  3450. * @param string $key
  3451. * @param string|null $path
  3452. * @return bool
  3453. * @static
  3454. */
  3455. public static function hasQueued($key, $path = null)
  3456. {
  3457. /** @var \Illuminate\Cookie\CookieJar $instance */
  3458. return $instance->hasQueued($key, $path);
  3459. }
  3460. /**
  3461. * Get a queued cookie instance.
  3462. *
  3463. * @param string $key
  3464. * @param mixed $default
  3465. * @param string|null $path
  3466. * @return \Symfony\Component\HttpFoundation\Cookie
  3467. * @static
  3468. */
  3469. public static function queued($key, $default = null, $path = null)
  3470. {
  3471. /** @var \Illuminate\Cookie\CookieJar $instance */
  3472. return $instance->queued($key, $default, $path);
  3473. }
  3474. /**
  3475. * Queue a cookie to send with the next response.
  3476. *
  3477. * @param array $parameters
  3478. * @return void
  3479. * @static
  3480. */
  3481. public static function queue(...$parameters)
  3482. {
  3483. /** @var \Illuminate\Cookie\CookieJar $instance */
  3484. $instance->queue(...$parameters);
  3485. }
  3486. /**
  3487. * Remove a cookie from the queue.
  3488. *
  3489. * @param string $name
  3490. * @param string|null $path
  3491. * @return void
  3492. * @static
  3493. */
  3494. public static function unqueue($name, $path = null)
  3495. {
  3496. /** @var \Illuminate\Cookie\CookieJar $instance */
  3497. $instance->unqueue($name, $path);
  3498. }
  3499. /**
  3500. * Set the default path and domain for the jar.
  3501. *
  3502. * @param string $path
  3503. * @param string $domain
  3504. * @param bool $secure
  3505. * @param string|null $sameSite
  3506. * @return \Illuminate\Cookie\CookieJar
  3507. * @static
  3508. */
  3509. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3510. {
  3511. /** @var \Illuminate\Cookie\CookieJar $instance */
  3512. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3513. }
  3514. /**
  3515. * Get the cookies which have been queued for the next request.
  3516. *
  3517. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3518. * @static
  3519. */
  3520. public static function getQueuedCookies()
  3521. {
  3522. /** @var \Illuminate\Cookie\CookieJar $instance */
  3523. return $instance->getQueuedCookies();
  3524. }
  3525. /**
  3526. * Register a custom macro.
  3527. *
  3528. * @param string $name
  3529. * @param object|callable $macro
  3530. * @return void
  3531. * @static
  3532. */
  3533. public static function macro($name, $macro)
  3534. {
  3535. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  3536. }
  3537. /**
  3538. * Mix another object into the class.
  3539. *
  3540. * @param object $mixin
  3541. * @param bool $replace
  3542. * @return void
  3543. * @throws \ReflectionException
  3544. * @static
  3545. */
  3546. public static function mixin($mixin, $replace = true)
  3547. {
  3548. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  3549. }
  3550. /**
  3551. * Checks if macro is registered.
  3552. *
  3553. * @param string $name
  3554. * @return bool
  3555. * @static
  3556. */
  3557. public static function hasMacro($name)
  3558. {
  3559. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  3560. }
  3561. }
  3562. /**
  3563. *
  3564. *
  3565. * @see \Illuminate\Encryption\Encrypter
  3566. */
  3567. class Crypt {
  3568. /**
  3569. * Determine if the given key and cipher combination is valid.
  3570. *
  3571. * @param string $key
  3572. * @param string $cipher
  3573. * @return bool
  3574. * @static
  3575. */
  3576. public static function supported($key, $cipher)
  3577. {
  3578. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3579. }
  3580. /**
  3581. * Create a new encryption key for the given cipher.
  3582. *
  3583. * @param string $cipher
  3584. * @return string
  3585. * @static
  3586. */
  3587. public static function generateKey($cipher)
  3588. {
  3589. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3590. }
  3591. /**
  3592. * Encrypt the given value.
  3593. *
  3594. * @param mixed $value
  3595. * @param bool $serialize
  3596. * @return string
  3597. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3598. * @static
  3599. */
  3600. public static function encrypt($value, $serialize = true)
  3601. {
  3602. /** @var \Illuminate\Encryption\Encrypter $instance */
  3603. return $instance->encrypt($value, $serialize);
  3604. }
  3605. /**
  3606. * Encrypt a string without serialization.
  3607. *
  3608. * @param string $value
  3609. * @return string
  3610. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3611. * @static
  3612. */
  3613. public static function encryptString($value)
  3614. {
  3615. /** @var \Illuminate\Encryption\Encrypter $instance */
  3616. return $instance->encryptString($value);
  3617. }
  3618. /**
  3619. * Decrypt the given value.
  3620. *
  3621. * @param string $payload
  3622. * @param bool $unserialize
  3623. * @return mixed
  3624. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3625. * @static
  3626. */
  3627. public static function decrypt($payload, $unserialize = true)
  3628. {
  3629. /** @var \Illuminate\Encryption\Encrypter $instance */
  3630. return $instance->decrypt($payload, $unserialize);
  3631. }
  3632. /**
  3633. * Decrypt the given string without unserialization.
  3634. *
  3635. * @param string $payload
  3636. * @return string
  3637. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3638. * @static
  3639. */
  3640. public static function decryptString($payload)
  3641. {
  3642. /** @var \Illuminate\Encryption\Encrypter $instance */
  3643. return $instance->decryptString($payload);
  3644. }
  3645. /**
  3646. * Get the encryption key.
  3647. *
  3648. * @return string
  3649. * @static
  3650. */
  3651. public static function getKey()
  3652. {
  3653. /** @var \Illuminate\Encryption\Encrypter $instance */
  3654. return $instance->getKey();
  3655. }
  3656. }
  3657. /**
  3658. *
  3659. *
  3660. * @see \Illuminate\Database\DatabaseManager
  3661. * @see \Illuminate\Database\Connection
  3662. */
  3663. class DB {
  3664. /**
  3665. * Get a database connection instance.
  3666. *
  3667. * @param string|null $name
  3668. * @return \Illuminate\Database\Connection
  3669. * @static
  3670. */
  3671. public static function connection($name = null)
  3672. {
  3673. /** @var \Illuminate\Database\DatabaseManager $instance */
  3674. return $instance->connection($name);
  3675. }
  3676. /**
  3677. * Disconnect from the given database and remove from local cache.
  3678. *
  3679. * @param string|null $name
  3680. * @return void
  3681. * @static
  3682. */
  3683. public static function purge($name = null)
  3684. {
  3685. /** @var \Illuminate\Database\DatabaseManager $instance */
  3686. $instance->purge($name);
  3687. }
  3688. /**
  3689. * Disconnect from the given database.
  3690. *
  3691. * @param string|null $name
  3692. * @return void
  3693. * @static
  3694. */
  3695. public static function disconnect($name = null)
  3696. {
  3697. /** @var \Illuminate\Database\DatabaseManager $instance */
  3698. $instance->disconnect($name);
  3699. }
  3700. /**
  3701. * Reconnect to the given database.
  3702. *
  3703. * @param string|null $name
  3704. * @return \Illuminate\Database\Connection
  3705. * @static
  3706. */
  3707. public static function reconnect($name = null)
  3708. {
  3709. /** @var \Illuminate\Database\DatabaseManager $instance */
  3710. return $instance->reconnect($name);
  3711. }
  3712. /**
  3713. * Get the default connection name.
  3714. *
  3715. * @return string
  3716. * @static
  3717. */
  3718. public static function getDefaultConnection()
  3719. {
  3720. /** @var \Illuminate\Database\DatabaseManager $instance */
  3721. return $instance->getDefaultConnection();
  3722. }
  3723. /**
  3724. * Set the default connection name.
  3725. *
  3726. * @param string $name
  3727. * @return void
  3728. * @static
  3729. */
  3730. public static function setDefaultConnection($name)
  3731. {
  3732. /** @var \Illuminate\Database\DatabaseManager $instance */
  3733. $instance->setDefaultConnection($name);
  3734. }
  3735. /**
  3736. * Get all of the support drivers.
  3737. *
  3738. * @return array
  3739. * @static
  3740. */
  3741. public static function supportedDrivers()
  3742. {
  3743. /** @var \Illuminate\Database\DatabaseManager $instance */
  3744. return $instance->supportedDrivers();
  3745. }
  3746. /**
  3747. * Get all of the drivers that are actually available.
  3748. *
  3749. * @return array
  3750. * @static
  3751. */
  3752. public static function availableDrivers()
  3753. {
  3754. /** @var \Illuminate\Database\DatabaseManager $instance */
  3755. return $instance->availableDrivers();
  3756. }
  3757. /**
  3758. * Register an extension connection resolver.
  3759. *
  3760. * @param string $name
  3761. * @param callable $resolver
  3762. * @return void
  3763. * @static
  3764. */
  3765. public static function extend($name, $resolver)
  3766. {
  3767. /** @var \Illuminate\Database\DatabaseManager $instance */
  3768. $instance->extend($name, $resolver);
  3769. }
  3770. /**
  3771. * Return all of the created connections.
  3772. *
  3773. * @return array
  3774. * @static
  3775. */
  3776. public static function getConnections()
  3777. {
  3778. /** @var \Illuminate\Database\DatabaseManager $instance */
  3779. return $instance->getConnections();
  3780. }
  3781. /**
  3782. * Set the database reconnector callback.
  3783. *
  3784. * @param callable $reconnector
  3785. * @return void
  3786. * @static
  3787. */
  3788. public static function setReconnector($reconnector)
  3789. {
  3790. /** @var \Illuminate\Database\DatabaseManager $instance */
  3791. $instance->setReconnector($reconnector);
  3792. }
  3793. /**
  3794. * Get a schema builder instance for the connection.
  3795. *
  3796. * @return \Illuminate\Database\Schema\MySqlBuilder
  3797. * @static
  3798. */
  3799. public static function getSchemaBuilder()
  3800. {
  3801. /** @var \Illuminate\Database\MySqlConnection $instance */
  3802. return $instance->getSchemaBuilder();
  3803. }
  3804. /**
  3805. * Set the query grammar to the default implementation.
  3806. *
  3807. * @return void
  3808. * @static
  3809. */
  3810. public static function useDefaultQueryGrammar()
  3811. { //Method inherited from \Illuminate\Database\Connection
  3812. /** @var \Illuminate\Database\MySqlConnection $instance */
  3813. $instance->useDefaultQueryGrammar();
  3814. }
  3815. /**
  3816. * Set the schema grammar to the default implementation.
  3817. *
  3818. * @return void
  3819. * @static
  3820. */
  3821. public static function useDefaultSchemaGrammar()
  3822. { //Method inherited from \Illuminate\Database\Connection
  3823. /** @var \Illuminate\Database\MySqlConnection $instance */
  3824. $instance->useDefaultSchemaGrammar();
  3825. }
  3826. /**
  3827. * Set the query post processor to the default implementation.
  3828. *
  3829. * @return void
  3830. * @static
  3831. */
  3832. public static function useDefaultPostProcessor()
  3833. { //Method inherited from \Illuminate\Database\Connection
  3834. /** @var \Illuminate\Database\MySqlConnection $instance */
  3835. $instance->useDefaultPostProcessor();
  3836. }
  3837. /**
  3838. * Begin a fluent query against a database table.
  3839. *
  3840. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  3841. * @param string|null $as
  3842. * @return \Illuminate\Database\Query\Builder
  3843. * @static
  3844. */
  3845. public static function table($table, $as = null)
  3846. { //Method inherited from \Illuminate\Database\Connection
  3847. /** @var \Illuminate\Database\MySqlConnection $instance */
  3848. return $instance->table($table, $as);
  3849. }
  3850. /**
  3851. * Get a new query builder instance.
  3852. *
  3853. * @return \Illuminate\Database\Query\Builder
  3854. * @static
  3855. */
  3856. public static function query()
  3857. { //Method inherited from \Illuminate\Database\Connection
  3858. /** @var \Illuminate\Database\MySqlConnection $instance */
  3859. return $instance->query();
  3860. }
  3861. /**
  3862. * Run a select statement and return a single result.
  3863. *
  3864. * @param string $query
  3865. * @param array $bindings
  3866. * @param bool $useReadPdo
  3867. * @return mixed
  3868. * @static
  3869. */
  3870. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  3871. { //Method inherited from \Illuminate\Database\Connection
  3872. /** @var \Illuminate\Database\MySqlConnection $instance */
  3873. return $instance->selectOne($query, $bindings, $useReadPdo);
  3874. }
  3875. /**
  3876. * Run a select statement against the database.
  3877. *
  3878. * @param string $query
  3879. * @param array $bindings
  3880. * @return array
  3881. * @static
  3882. */
  3883. public static function selectFromWriteConnection($query, $bindings = [])
  3884. { //Method inherited from \Illuminate\Database\Connection
  3885. /** @var \Illuminate\Database\MySqlConnection $instance */
  3886. return $instance->selectFromWriteConnection($query, $bindings);
  3887. }
  3888. /**
  3889. * Run a select statement against the database.
  3890. *
  3891. * @param string $query
  3892. * @param array $bindings
  3893. * @param bool $useReadPdo
  3894. * @return array
  3895. * @static
  3896. */
  3897. public static function select($query, $bindings = [], $useReadPdo = true)
  3898. { //Method inherited from \Illuminate\Database\Connection
  3899. /** @var \Illuminate\Database\MySqlConnection $instance */
  3900. return $instance->select($query, $bindings, $useReadPdo);
  3901. }
  3902. /**
  3903. * Run a select statement against the database and returns a generator.
  3904. *
  3905. * @param string $query
  3906. * @param array $bindings
  3907. * @param bool $useReadPdo
  3908. * @return \Generator
  3909. * @static
  3910. */
  3911. public static function cursor($query, $bindings = [], $useReadPdo = true)
  3912. { //Method inherited from \Illuminate\Database\Connection
  3913. /** @var \Illuminate\Database\MySqlConnection $instance */
  3914. return $instance->cursor($query, $bindings, $useReadPdo);
  3915. }
  3916. /**
  3917. * Run an insert statement against the database.
  3918. *
  3919. * @param string $query
  3920. * @param array $bindings
  3921. * @return bool
  3922. * @static
  3923. */
  3924. public static function insert($query, $bindings = [])
  3925. { //Method inherited from \Illuminate\Database\Connection
  3926. /** @var \Illuminate\Database\MySqlConnection $instance */
  3927. return $instance->insert($query, $bindings);
  3928. }
  3929. /**
  3930. * Run an update statement against the database.
  3931. *
  3932. * @param string $query
  3933. * @param array $bindings
  3934. * @return int
  3935. * @static
  3936. */
  3937. public static function update($query, $bindings = [])
  3938. { //Method inherited from \Illuminate\Database\Connection
  3939. /** @var \Illuminate\Database\MySqlConnection $instance */
  3940. return $instance->update($query, $bindings);
  3941. }
  3942. /**
  3943. * Run a delete statement against the database.
  3944. *
  3945. * @param string $query
  3946. * @param array $bindings
  3947. * @return int
  3948. * @static
  3949. */
  3950. public static function delete($query, $bindings = [])
  3951. { //Method inherited from \Illuminate\Database\Connection
  3952. /** @var \Illuminate\Database\MySqlConnection $instance */
  3953. return $instance->delete($query, $bindings);
  3954. }
  3955. /**
  3956. * Execute an SQL statement and return the boolean result.
  3957. *
  3958. * @param string $query
  3959. * @param array $bindings
  3960. * @return bool
  3961. * @static
  3962. */
  3963. public static function statement($query, $bindings = [])
  3964. { //Method inherited from \Illuminate\Database\Connection
  3965. /** @var \Illuminate\Database\MySqlConnection $instance */
  3966. return $instance->statement($query, $bindings);
  3967. }
  3968. /**
  3969. * Run an SQL statement and get the number of rows affected.
  3970. *
  3971. * @param string $query
  3972. * @param array $bindings
  3973. * @return int
  3974. * @static
  3975. */
  3976. public static function affectingStatement($query, $bindings = [])
  3977. { //Method inherited from \Illuminate\Database\Connection
  3978. /** @var \Illuminate\Database\MySqlConnection $instance */
  3979. return $instance->affectingStatement($query, $bindings);
  3980. }
  3981. /**
  3982. * Run a raw, unprepared query against the PDO connection.
  3983. *
  3984. * @param string $query
  3985. * @return bool
  3986. * @static
  3987. */
  3988. public static function unprepared($query)
  3989. { //Method inherited from \Illuminate\Database\Connection
  3990. /** @var \Illuminate\Database\MySqlConnection $instance */
  3991. return $instance->unprepared($query);
  3992. }
  3993. /**
  3994. * Execute the given callback in "dry run" mode.
  3995. *
  3996. * @param \Closure $callback
  3997. * @return array
  3998. * @static
  3999. */
  4000. public static function pretend($callback)
  4001. { //Method inherited from \Illuminate\Database\Connection
  4002. /** @var \Illuminate\Database\MySqlConnection $instance */
  4003. return $instance->pretend($callback);
  4004. }
  4005. /**
  4006. * Bind values to their parameters in the given statement.
  4007. *
  4008. * @param \PDOStatement $statement
  4009. * @param array $bindings
  4010. * @return void
  4011. * @static
  4012. */
  4013. public static function bindValues($statement, $bindings)
  4014. { //Method inherited from \Illuminate\Database\Connection
  4015. /** @var \Illuminate\Database\MySqlConnection $instance */
  4016. $instance->bindValues($statement, $bindings);
  4017. }
  4018. /**
  4019. * Prepare the query bindings for execution.
  4020. *
  4021. * @param array $bindings
  4022. * @return array
  4023. * @static
  4024. */
  4025. public static function prepareBindings($bindings)
  4026. { //Method inherited from \Illuminate\Database\Connection
  4027. /** @var \Illuminate\Database\MySqlConnection $instance */
  4028. return $instance->prepareBindings($bindings);
  4029. }
  4030. /**
  4031. * Log a query in the connection's query log.
  4032. *
  4033. * @param string $query
  4034. * @param array $bindings
  4035. * @param float|null $time
  4036. * @return void
  4037. * @static
  4038. */
  4039. public static function logQuery($query, $bindings, $time = null)
  4040. { //Method inherited from \Illuminate\Database\Connection
  4041. /** @var \Illuminate\Database\MySqlConnection $instance */
  4042. $instance->logQuery($query, $bindings, $time);
  4043. }
  4044. /**
  4045. * Register a database query listener with the connection.
  4046. *
  4047. * @param \Closure $callback
  4048. * @return void
  4049. * @static
  4050. */
  4051. public static function listen($callback)
  4052. { //Method inherited from \Illuminate\Database\Connection
  4053. /** @var \Illuminate\Database\MySqlConnection $instance */
  4054. $instance->listen($callback);
  4055. }
  4056. /**
  4057. * Get a new raw query expression.
  4058. *
  4059. * @param mixed $value
  4060. * @return \Illuminate\Database\Query\Expression
  4061. * @static
  4062. */
  4063. public static function raw($value)
  4064. { //Method inherited from \Illuminate\Database\Connection
  4065. /** @var \Illuminate\Database\MySqlConnection $instance */
  4066. return $instance->raw($value);
  4067. }
  4068. /**
  4069. * Indicate if any records have been modified.
  4070. *
  4071. * @param bool $value
  4072. * @return void
  4073. * @static
  4074. */
  4075. public static function recordsHaveBeenModified($value = true)
  4076. { //Method inherited from \Illuminate\Database\Connection
  4077. /** @var \Illuminate\Database\MySqlConnection $instance */
  4078. $instance->recordsHaveBeenModified($value);
  4079. }
  4080. /**
  4081. * Is Doctrine available?
  4082. *
  4083. * @return bool
  4084. * @static
  4085. */
  4086. public static function isDoctrineAvailable()
  4087. { //Method inherited from \Illuminate\Database\Connection
  4088. /** @var \Illuminate\Database\MySqlConnection $instance */
  4089. return $instance->isDoctrineAvailable();
  4090. }
  4091. /**
  4092. * Get a Doctrine Schema Column instance.
  4093. *
  4094. * @param string $table
  4095. * @param string $column
  4096. * @return \Doctrine\DBAL\Schema\Column
  4097. * @static
  4098. */
  4099. public static function getDoctrineColumn($table, $column)
  4100. { //Method inherited from \Illuminate\Database\Connection
  4101. /** @var \Illuminate\Database\MySqlConnection $instance */
  4102. return $instance->getDoctrineColumn($table, $column);
  4103. }
  4104. /**
  4105. * Get the Doctrine DBAL schema manager for the connection.
  4106. *
  4107. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  4108. * @static
  4109. */
  4110. public static function getDoctrineSchemaManager()
  4111. { //Method inherited from \Illuminate\Database\Connection
  4112. /** @var \Illuminate\Database\MySqlConnection $instance */
  4113. return $instance->getDoctrineSchemaManager();
  4114. }
  4115. /**
  4116. * Get the Doctrine DBAL database connection instance.
  4117. *
  4118. * @return \Doctrine\DBAL\Connection
  4119. * @static
  4120. */
  4121. public static function getDoctrineConnection()
  4122. { //Method inherited from \Illuminate\Database\Connection
  4123. /** @var \Illuminate\Database\MySqlConnection $instance */
  4124. return $instance->getDoctrineConnection();
  4125. }
  4126. /**
  4127. * Get the current PDO connection.
  4128. *
  4129. * @return \PDO
  4130. * @static
  4131. */
  4132. public static function getPdo()
  4133. { //Method inherited from \Illuminate\Database\Connection
  4134. /** @var \Illuminate\Database\MySqlConnection $instance */
  4135. return $instance->getPdo();
  4136. }
  4137. /**
  4138. * Get the current PDO connection parameter without executing any reconnect logic.
  4139. *
  4140. * @return \PDO|\Closure|null
  4141. * @static
  4142. */
  4143. public static function getRawPdo()
  4144. { //Method inherited from \Illuminate\Database\Connection
  4145. /** @var \Illuminate\Database\MySqlConnection $instance */
  4146. return $instance->getRawPdo();
  4147. }
  4148. /**
  4149. * Get the current PDO connection used for reading.
  4150. *
  4151. * @return \PDO
  4152. * @static
  4153. */
  4154. public static function getReadPdo()
  4155. { //Method inherited from \Illuminate\Database\Connection
  4156. /** @var \Illuminate\Database\MySqlConnection $instance */
  4157. return $instance->getReadPdo();
  4158. }
  4159. /**
  4160. * Get the current read PDO connection parameter without executing any reconnect logic.
  4161. *
  4162. * @return \PDO|\Closure|null
  4163. * @static
  4164. */
  4165. public static function getRawReadPdo()
  4166. { //Method inherited from \Illuminate\Database\Connection
  4167. /** @var \Illuminate\Database\MySqlConnection $instance */
  4168. return $instance->getRawReadPdo();
  4169. }
  4170. /**
  4171. * Set the PDO connection.
  4172. *
  4173. * @param \PDO|\Closure|null $pdo
  4174. * @return \Illuminate\Database\MySqlConnection
  4175. * @static
  4176. */
  4177. public static function setPdo($pdo)
  4178. { //Method inherited from \Illuminate\Database\Connection
  4179. /** @var \Illuminate\Database\MySqlConnection $instance */
  4180. return $instance->setPdo($pdo);
  4181. }
  4182. /**
  4183. * Set the PDO connection used for reading.
  4184. *
  4185. * @param \PDO|\Closure|null $pdo
  4186. * @return \Illuminate\Database\MySqlConnection
  4187. * @static
  4188. */
  4189. public static function setReadPdo($pdo)
  4190. { //Method inherited from \Illuminate\Database\Connection
  4191. /** @var \Illuminate\Database\MySqlConnection $instance */
  4192. return $instance->setReadPdo($pdo);
  4193. }
  4194. /**
  4195. * Get the database connection name.
  4196. *
  4197. * @return string|null
  4198. * @static
  4199. */
  4200. public static function getName()
  4201. { //Method inherited from \Illuminate\Database\Connection
  4202. /** @var \Illuminate\Database\MySqlConnection $instance */
  4203. return $instance->getName();
  4204. }
  4205. /**
  4206. * Get an option from the configuration options.
  4207. *
  4208. * @param string|null $option
  4209. * @return mixed
  4210. * @static
  4211. */
  4212. public static function getConfig($option = null)
  4213. { //Method inherited from \Illuminate\Database\Connection
  4214. /** @var \Illuminate\Database\MySqlConnection $instance */
  4215. return $instance->getConfig($option);
  4216. }
  4217. /**
  4218. * Get the PDO driver name.
  4219. *
  4220. * @return string
  4221. * @static
  4222. */
  4223. public static function getDriverName()
  4224. { //Method inherited from \Illuminate\Database\Connection
  4225. /** @var \Illuminate\Database\MySqlConnection $instance */
  4226. return $instance->getDriverName();
  4227. }
  4228. /**
  4229. * Get the query grammar used by the connection.
  4230. *
  4231. * @return \Illuminate\Database\Query\Grammars\Grammar
  4232. * @static
  4233. */
  4234. public static function getQueryGrammar()
  4235. { //Method inherited from \Illuminate\Database\Connection
  4236. /** @var \Illuminate\Database\MySqlConnection $instance */
  4237. return $instance->getQueryGrammar();
  4238. }
  4239. /**
  4240. * Set the query grammar used by the connection.
  4241. *
  4242. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4243. * @return \Illuminate\Database\MySqlConnection
  4244. * @static
  4245. */
  4246. public static function setQueryGrammar($grammar)
  4247. { //Method inherited from \Illuminate\Database\Connection
  4248. /** @var \Illuminate\Database\MySqlConnection $instance */
  4249. return $instance->setQueryGrammar($grammar);
  4250. }
  4251. /**
  4252. * Get the schema grammar used by the connection.
  4253. *
  4254. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4255. * @static
  4256. */
  4257. public static function getSchemaGrammar()
  4258. { //Method inherited from \Illuminate\Database\Connection
  4259. /** @var \Illuminate\Database\MySqlConnection $instance */
  4260. return $instance->getSchemaGrammar();
  4261. }
  4262. /**
  4263. * Set the schema grammar used by the connection.
  4264. *
  4265. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4266. * @return \Illuminate\Database\MySqlConnection
  4267. * @static
  4268. */
  4269. public static function setSchemaGrammar($grammar)
  4270. { //Method inherited from \Illuminate\Database\Connection
  4271. /** @var \Illuminate\Database\MySqlConnection $instance */
  4272. return $instance->setSchemaGrammar($grammar);
  4273. }
  4274. /**
  4275. * Get the query post processor used by the connection.
  4276. *
  4277. * @return \Illuminate\Database\Query\Processors\Processor
  4278. * @static
  4279. */
  4280. public static function getPostProcessor()
  4281. { //Method inherited from \Illuminate\Database\Connection
  4282. /** @var \Illuminate\Database\MySqlConnection $instance */
  4283. return $instance->getPostProcessor();
  4284. }
  4285. /**
  4286. * Set the query post processor used by the connection.
  4287. *
  4288. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4289. * @return \Illuminate\Database\MySqlConnection
  4290. * @static
  4291. */
  4292. public static function setPostProcessor($processor)
  4293. { //Method inherited from \Illuminate\Database\Connection
  4294. /** @var \Illuminate\Database\MySqlConnection $instance */
  4295. return $instance->setPostProcessor($processor);
  4296. }
  4297. /**
  4298. * Get the event dispatcher used by the connection.
  4299. *
  4300. * @return \Illuminate\Contracts\Events\Dispatcher
  4301. * @static
  4302. */
  4303. public static function getEventDispatcher()
  4304. { //Method inherited from \Illuminate\Database\Connection
  4305. /** @var \Illuminate\Database\MySqlConnection $instance */
  4306. return $instance->getEventDispatcher();
  4307. }
  4308. /**
  4309. * Set the event dispatcher instance on the connection.
  4310. *
  4311. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4312. * @return \Illuminate\Database\MySqlConnection
  4313. * @static
  4314. */
  4315. public static function setEventDispatcher($events)
  4316. { //Method inherited from \Illuminate\Database\Connection
  4317. /** @var \Illuminate\Database\MySqlConnection $instance */
  4318. return $instance->setEventDispatcher($events);
  4319. }
  4320. /**
  4321. * Unset the event dispatcher for this connection.
  4322. *
  4323. * @return void
  4324. * @static
  4325. */
  4326. public static function unsetEventDispatcher()
  4327. { //Method inherited from \Illuminate\Database\Connection
  4328. /** @var \Illuminate\Database\MySqlConnection $instance */
  4329. $instance->unsetEventDispatcher();
  4330. }
  4331. /**
  4332. * Determine if the connection is in a "dry run".
  4333. *
  4334. * @return bool
  4335. * @static
  4336. */
  4337. public static function pretending()
  4338. { //Method inherited from \Illuminate\Database\Connection
  4339. /** @var \Illuminate\Database\MySqlConnection $instance */
  4340. return $instance->pretending();
  4341. }
  4342. /**
  4343. * Get the connection query log.
  4344. *
  4345. * @return array
  4346. * @static
  4347. */
  4348. public static function getQueryLog()
  4349. { //Method inherited from \Illuminate\Database\Connection
  4350. /** @var \Illuminate\Database\MySqlConnection $instance */
  4351. return $instance->getQueryLog();
  4352. }
  4353. /**
  4354. * Clear the query log.
  4355. *
  4356. * @return void
  4357. * @static
  4358. */
  4359. public static function flushQueryLog()
  4360. { //Method inherited from \Illuminate\Database\Connection
  4361. /** @var \Illuminate\Database\MySqlConnection $instance */
  4362. $instance->flushQueryLog();
  4363. }
  4364. /**
  4365. * Enable the query log on the connection.
  4366. *
  4367. * @return void
  4368. * @static
  4369. */
  4370. public static function enableQueryLog()
  4371. { //Method inherited from \Illuminate\Database\Connection
  4372. /** @var \Illuminate\Database\MySqlConnection $instance */
  4373. $instance->enableQueryLog();
  4374. }
  4375. /**
  4376. * Disable the query log on the connection.
  4377. *
  4378. * @return void
  4379. * @static
  4380. */
  4381. public static function disableQueryLog()
  4382. { //Method inherited from \Illuminate\Database\Connection
  4383. /** @var \Illuminate\Database\MySqlConnection $instance */
  4384. $instance->disableQueryLog();
  4385. }
  4386. /**
  4387. * Determine whether we're logging queries.
  4388. *
  4389. * @return bool
  4390. * @static
  4391. */
  4392. public static function logging()
  4393. { //Method inherited from \Illuminate\Database\Connection
  4394. /** @var \Illuminate\Database\MySqlConnection $instance */
  4395. return $instance->logging();
  4396. }
  4397. /**
  4398. * Get the name of the connected database.
  4399. *
  4400. * @return string
  4401. * @static
  4402. */
  4403. public static function getDatabaseName()
  4404. { //Method inherited from \Illuminate\Database\Connection
  4405. /** @var \Illuminate\Database\MySqlConnection $instance */
  4406. return $instance->getDatabaseName();
  4407. }
  4408. /**
  4409. * Set the name of the connected database.
  4410. *
  4411. * @param string $database
  4412. * @return \Illuminate\Database\MySqlConnection
  4413. * @static
  4414. */
  4415. public static function setDatabaseName($database)
  4416. { //Method inherited from \Illuminate\Database\Connection
  4417. /** @var \Illuminate\Database\MySqlConnection $instance */
  4418. return $instance->setDatabaseName($database);
  4419. }
  4420. /**
  4421. * Get the table prefix for the connection.
  4422. *
  4423. * @return string
  4424. * @static
  4425. */
  4426. public static function getTablePrefix()
  4427. { //Method inherited from \Illuminate\Database\Connection
  4428. /** @var \Illuminate\Database\MySqlConnection $instance */
  4429. return $instance->getTablePrefix();
  4430. }
  4431. /**
  4432. * Set the table prefix in use by the connection.
  4433. *
  4434. * @param string $prefix
  4435. * @return \Illuminate\Database\MySqlConnection
  4436. * @static
  4437. */
  4438. public static function setTablePrefix($prefix)
  4439. { //Method inherited from \Illuminate\Database\Connection
  4440. /** @var \Illuminate\Database\MySqlConnection $instance */
  4441. return $instance->setTablePrefix($prefix);
  4442. }
  4443. /**
  4444. * Set the table prefix and return the grammar.
  4445. *
  4446. * @param \Illuminate\Database\Grammar $grammar
  4447. * @return \Illuminate\Database\Grammar
  4448. * @static
  4449. */
  4450. public static function withTablePrefix($grammar)
  4451. { //Method inherited from \Illuminate\Database\Connection
  4452. /** @var \Illuminate\Database\MySqlConnection $instance */
  4453. return $instance->withTablePrefix($grammar);
  4454. }
  4455. /**
  4456. * Register a connection resolver.
  4457. *
  4458. * @param string $driver
  4459. * @param \Closure $callback
  4460. * @return void
  4461. * @static
  4462. */
  4463. public static function resolverFor($driver, $callback)
  4464. { //Method inherited from \Illuminate\Database\Connection
  4465. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4466. }
  4467. /**
  4468. * Get the connection resolver for the given driver.
  4469. *
  4470. * @param string $driver
  4471. * @return mixed
  4472. * @static
  4473. */
  4474. public static function getResolver($driver)
  4475. { //Method inherited from \Illuminate\Database\Connection
  4476. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4477. }
  4478. /**
  4479. * Execute a Closure within a transaction.
  4480. *
  4481. * @param \Closure $callback
  4482. * @param int $attempts
  4483. * @return mixed
  4484. * @throws \Exception|\Throwable
  4485. * @static
  4486. */
  4487. public static function transaction($callback, $attempts = 1)
  4488. { //Method inherited from \Illuminate\Database\Connection
  4489. /** @var \Illuminate\Database\MySqlConnection $instance */
  4490. return $instance->transaction($callback, $attempts);
  4491. }
  4492. /**
  4493. * Start a new database transaction.
  4494. *
  4495. * @return void
  4496. * @throws \Exception
  4497. * @static
  4498. */
  4499. public static function beginTransaction()
  4500. { //Method inherited from \Illuminate\Database\Connection
  4501. /** @var \Illuminate\Database\MySqlConnection $instance */
  4502. $instance->beginTransaction();
  4503. }
  4504. /**
  4505. * Commit the active database transaction.
  4506. *
  4507. * @return void
  4508. * @static
  4509. */
  4510. public static function commit()
  4511. { //Method inherited from \Illuminate\Database\Connection
  4512. /** @var \Illuminate\Database\MySqlConnection $instance */
  4513. $instance->commit();
  4514. }
  4515. /**
  4516. * Rollback the active database transaction.
  4517. *
  4518. * @param int|null $toLevel
  4519. * @return void
  4520. * @throws \Exception
  4521. * @static
  4522. */
  4523. public static function rollBack($toLevel = null)
  4524. { //Method inherited from \Illuminate\Database\Connection
  4525. /** @var \Illuminate\Database\MySqlConnection $instance */
  4526. $instance->rollBack($toLevel);
  4527. }
  4528. /**
  4529. * Get the number of active transactions.
  4530. *
  4531. * @return int
  4532. * @static
  4533. */
  4534. public static function transactionLevel()
  4535. { //Method inherited from \Illuminate\Database\Connection
  4536. /** @var \Illuminate\Database\MySqlConnection $instance */
  4537. return $instance->transactionLevel();
  4538. }
  4539. }
  4540. /**
  4541. *
  4542. *
  4543. * @see \Illuminate\Events\Dispatcher
  4544. */
  4545. class Event {
  4546. /**
  4547. * Register an event listener with the dispatcher.
  4548. *
  4549. * @param string|array $events
  4550. * @param \Closure|string $listener
  4551. * @return void
  4552. * @static
  4553. */
  4554. public static function listen($events, $listener)
  4555. {
  4556. /** @var \Illuminate\Events\Dispatcher $instance */
  4557. $instance->listen($events, $listener);
  4558. }
  4559. /**
  4560. * Determine if a given event has listeners.
  4561. *
  4562. * @param string $eventName
  4563. * @return bool
  4564. * @static
  4565. */
  4566. public static function hasListeners($eventName)
  4567. {
  4568. /** @var \Illuminate\Events\Dispatcher $instance */
  4569. return $instance->hasListeners($eventName);
  4570. }
  4571. /**
  4572. * Determine if the given event has any wildcard listeners.
  4573. *
  4574. * @param string $eventName
  4575. * @return bool
  4576. * @static
  4577. */
  4578. public static function hasWildcardListeners($eventName)
  4579. {
  4580. /** @var \Illuminate\Events\Dispatcher $instance */
  4581. return $instance->hasWildcardListeners($eventName);
  4582. }
  4583. /**
  4584. * Register an event and payload to be fired later.
  4585. *
  4586. * @param string $event
  4587. * @param array $payload
  4588. * @return void
  4589. * @static
  4590. */
  4591. public static function push($event, $payload = [])
  4592. {
  4593. /** @var \Illuminate\Events\Dispatcher $instance */
  4594. $instance->push($event, $payload);
  4595. }
  4596. /**
  4597. * Flush a set of pushed events.
  4598. *
  4599. * @param string $event
  4600. * @return void
  4601. * @static
  4602. */
  4603. public static function flush($event)
  4604. {
  4605. /** @var \Illuminate\Events\Dispatcher $instance */
  4606. $instance->flush($event);
  4607. }
  4608. /**
  4609. * Register an event subscriber with the dispatcher.
  4610. *
  4611. * @param object|string $subscriber
  4612. * @return void
  4613. * @static
  4614. */
  4615. public static function subscribe($subscriber)
  4616. {
  4617. /** @var \Illuminate\Events\Dispatcher $instance */
  4618. $instance->subscribe($subscriber);
  4619. }
  4620. /**
  4621. * Fire an event until the first non-null response is returned.
  4622. *
  4623. * @param string|object $event
  4624. * @param mixed $payload
  4625. * @return array|null
  4626. * @static
  4627. */
  4628. public static function until($event, $payload = [])
  4629. {
  4630. /** @var \Illuminate\Events\Dispatcher $instance */
  4631. return $instance->until($event, $payload);
  4632. }
  4633. /**
  4634. * Fire an event and call the listeners.
  4635. *
  4636. * @param string|object $event
  4637. * @param mixed $payload
  4638. * @param bool $halt
  4639. * @return array|null
  4640. * @static
  4641. */
  4642. public static function dispatch($event, $payload = [], $halt = false)
  4643. {
  4644. /** @var \Illuminate\Events\Dispatcher $instance */
  4645. return $instance->dispatch($event, $payload, $halt);
  4646. }
  4647. /**
  4648. * Get all of the listeners for a given event name.
  4649. *
  4650. * @param string $eventName
  4651. * @return array
  4652. * @static
  4653. */
  4654. public static function getListeners($eventName)
  4655. {
  4656. /** @var \Illuminate\Events\Dispatcher $instance */
  4657. return $instance->getListeners($eventName);
  4658. }
  4659. /**
  4660. * Register an event listener with the dispatcher.
  4661. *
  4662. * @param \Closure|string $listener
  4663. * @param bool $wildcard
  4664. * @return \Closure
  4665. * @static
  4666. */
  4667. public static function makeListener($listener, $wildcard = false)
  4668. {
  4669. /** @var \Illuminate\Events\Dispatcher $instance */
  4670. return $instance->makeListener($listener, $wildcard);
  4671. }
  4672. /**
  4673. * Create a class based listener using the IoC container.
  4674. *
  4675. * @param string $listener
  4676. * @param bool $wildcard
  4677. * @return \Closure
  4678. * @static
  4679. */
  4680. public static function createClassListener($listener, $wildcard = false)
  4681. {
  4682. /** @var \Illuminate\Events\Dispatcher $instance */
  4683. return $instance->createClassListener($listener, $wildcard);
  4684. }
  4685. /**
  4686. * Remove a set of listeners from the dispatcher.
  4687. *
  4688. * @param string $event
  4689. * @return void
  4690. * @static
  4691. */
  4692. public static function forget($event)
  4693. {
  4694. /** @var \Illuminate\Events\Dispatcher $instance */
  4695. $instance->forget($event);
  4696. }
  4697. /**
  4698. * Forget all of the pushed listeners.
  4699. *
  4700. * @return void
  4701. * @static
  4702. */
  4703. public static function forgetPushed()
  4704. {
  4705. /** @var \Illuminate\Events\Dispatcher $instance */
  4706. $instance->forgetPushed();
  4707. }
  4708. /**
  4709. * Set the queue resolver implementation.
  4710. *
  4711. * @param callable $resolver
  4712. * @return \Illuminate\Events\Dispatcher
  4713. * @static
  4714. */
  4715. public static function setQueueResolver($resolver)
  4716. {
  4717. /** @var \Illuminate\Events\Dispatcher $instance */
  4718. return $instance->setQueueResolver($resolver);
  4719. }
  4720. /**
  4721. * Register a custom macro.
  4722. *
  4723. * @param string $name
  4724. * @param object|callable $macro
  4725. * @return void
  4726. * @static
  4727. */
  4728. public static function macro($name, $macro)
  4729. {
  4730. \Illuminate\Events\Dispatcher::macro($name, $macro);
  4731. }
  4732. /**
  4733. * Mix another object into the class.
  4734. *
  4735. * @param object $mixin
  4736. * @param bool $replace
  4737. * @return void
  4738. * @throws \ReflectionException
  4739. * @static
  4740. */
  4741. public static function mixin($mixin, $replace = true)
  4742. {
  4743. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  4744. }
  4745. /**
  4746. * Checks if macro is registered.
  4747. *
  4748. * @param string $name
  4749. * @return bool
  4750. * @static
  4751. */
  4752. public static function hasMacro($name)
  4753. {
  4754. return \Illuminate\Events\Dispatcher::hasMacro($name);
  4755. }
  4756. /**
  4757. * Assert if an event was dispatched based on a truth-test callback.
  4758. *
  4759. * @param string $event
  4760. * @param callable|int|null $callback
  4761. * @return void
  4762. * @static
  4763. */
  4764. public static function assertDispatched($event, $callback = null)
  4765. {
  4766. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4767. $instance->assertDispatched($event, $callback);
  4768. }
  4769. /**
  4770. * Assert if a event was dispatched a number of times.
  4771. *
  4772. * @param string $event
  4773. * @param int $times
  4774. * @return void
  4775. * @static
  4776. */
  4777. public static function assertDispatchedTimes($event, $times = 1)
  4778. {
  4779. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4780. $instance->assertDispatchedTimes($event, $times);
  4781. }
  4782. /**
  4783. * Determine if an event was dispatched based on a truth-test callback.
  4784. *
  4785. * @param string $event
  4786. * @param callable|null $callback
  4787. * @return void
  4788. * @static
  4789. */
  4790. public static function assertNotDispatched($event, $callback = null)
  4791. {
  4792. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4793. $instance->assertNotDispatched($event, $callback);
  4794. }
  4795. /**
  4796. * Get all of the events matching a truth-test callback.
  4797. *
  4798. * @param string $event
  4799. * @param callable|null $callback
  4800. * @return \Illuminate\Support\Collection
  4801. * @static
  4802. */
  4803. public static function dispatched($event, $callback = null)
  4804. {
  4805. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4806. return $instance->dispatched($event, $callback);
  4807. }
  4808. /**
  4809. * Determine if the given event has been dispatched.
  4810. *
  4811. * @param string $event
  4812. * @return bool
  4813. * @static
  4814. */
  4815. public static function hasDispatched($event)
  4816. {
  4817. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4818. return $instance->hasDispatched($event);
  4819. }
  4820. }
  4821. /**
  4822. *
  4823. *
  4824. * @see \Illuminate\Filesystem\Filesystem
  4825. */
  4826. class File {
  4827. /**
  4828. * Determine if a file or directory exists.
  4829. *
  4830. * @param string $path
  4831. * @return bool
  4832. * @static
  4833. */
  4834. public static function exists($path)
  4835. {
  4836. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4837. return $instance->exists($path);
  4838. }
  4839. /**
  4840. * Determine if a file or directory is missing.
  4841. *
  4842. * @param string $path
  4843. * @return bool
  4844. * @static
  4845. */
  4846. public static function missing($path)
  4847. {
  4848. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4849. return $instance->missing($path);
  4850. }
  4851. /**
  4852. * Get the contents of a file.
  4853. *
  4854. * @param string $path
  4855. * @param bool $lock
  4856. * @return string
  4857. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4858. * @static
  4859. */
  4860. public static function get($path, $lock = false)
  4861. {
  4862. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4863. return $instance->get($path, $lock);
  4864. }
  4865. /**
  4866. * Get contents of a file with shared access.
  4867. *
  4868. * @param string $path
  4869. * @return string
  4870. * @static
  4871. */
  4872. public static function sharedGet($path)
  4873. {
  4874. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4875. return $instance->sharedGet($path);
  4876. }
  4877. /**
  4878. * Get the returned value of a file.
  4879. *
  4880. * @param string $path
  4881. * @return mixed
  4882. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4883. * @static
  4884. */
  4885. public static function getRequire($path)
  4886. {
  4887. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4888. return $instance->getRequire($path);
  4889. }
  4890. /**
  4891. * Require the given file once.
  4892. *
  4893. * @param string $file
  4894. * @return mixed
  4895. * @static
  4896. */
  4897. public static function requireOnce($file)
  4898. {
  4899. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4900. return $instance->requireOnce($file);
  4901. }
  4902. /**
  4903. * Get the MD5 hash of the file at the given path.
  4904. *
  4905. * @param string $path
  4906. * @return string
  4907. * @static
  4908. */
  4909. public static function hash($path)
  4910. {
  4911. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4912. return $instance->hash($path);
  4913. }
  4914. /**
  4915. * Write the contents of a file.
  4916. *
  4917. * @param string $path
  4918. * @param string $contents
  4919. * @param bool $lock
  4920. * @return int|bool
  4921. * @static
  4922. */
  4923. public static function put($path, $contents, $lock = false)
  4924. {
  4925. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4926. return $instance->put($path, $contents, $lock);
  4927. }
  4928. /**
  4929. * Write the contents of a file, replacing it atomically if it already exists.
  4930. *
  4931. * @param string $path
  4932. * @param string $content
  4933. * @return void
  4934. * @static
  4935. */
  4936. public static function replace($path, $content)
  4937. {
  4938. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4939. $instance->replace($path, $content);
  4940. }
  4941. /**
  4942. * Prepend to a file.
  4943. *
  4944. * @param string $path
  4945. * @param string $data
  4946. * @return int
  4947. * @static
  4948. */
  4949. public static function prepend($path, $data)
  4950. {
  4951. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4952. return $instance->prepend($path, $data);
  4953. }
  4954. /**
  4955. * Append to a file.
  4956. *
  4957. * @param string $path
  4958. * @param string $data
  4959. * @return int
  4960. * @static
  4961. */
  4962. public static function append($path, $data)
  4963. {
  4964. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4965. return $instance->append($path, $data);
  4966. }
  4967. /**
  4968. * Get or set UNIX mode of a file or directory.
  4969. *
  4970. * @param string $path
  4971. * @param int|null $mode
  4972. * @return mixed
  4973. * @static
  4974. */
  4975. public static function chmod($path, $mode = null)
  4976. {
  4977. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4978. return $instance->chmod($path, $mode);
  4979. }
  4980. /**
  4981. * Delete the file at a given path.
  4982. *
  4983. * @param string|array $paths
  4984. * @return bool
  4985. * @static
  4986. */
  4987. public static function delete($paths)
  4988. {
  4989. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4990. return $instance->delete($paths);
  4991. }
  4992. /**
  4993. * Move a file to a new location.
  4994. *
  4995. * @param string $path
  4996. * @param string $target
  4997. * @return bool
  4998. * @static
  4999. */
  5000. public static function move($path, $target)
  5001. {
  5002. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5003. return $instance->move($path, $target);
  5004. }
  5005. /**
  5006. * Copy a file to a new location.
  5007. *
  5008. * @param string $path
  5009. * @param string $target
  5010. * @return bool
  5011. * @static
  5012. */
  5013. public static function copy($path, $target)
  5014. {
  5015. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5016. return $instance->copy($path, $target);
  5017. }
  5018. /**
  5019. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  5020. *
  5021. * @param string $target
  5022. * @param string $link
  5023. * @return void
  5024. * @static
  5025. */
  5026. public static function link($target, $link)
  5027. {
  5028. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5029. $instance->link($target, $link);
  5030. }
  5031. /**
  5032. * Extract the file name from a file path.
  5033. *
  5034. * @param string $path
  5035. * @return string
  5036. * @static
  5037. */
  5038. public static function name($path)
  5039. {
  5040. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5041. return $instance->name($path);
  5042. }
  5043. /**
  5044. * Extract the trailing name component from a file path.
  5045. *
  5046. * @param string $path
  5047. * @return string
  5048. * @static
  5049. */
  5050. public static function basename($path)
  5051. {
  5052. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5053. return $instance->basename($path);
  5054. }
  5055. /**
  5056. * Extract the parent directory from a file path.
  5057. *
  5058. * @param string $path
  5059. * @return string
  5060. * @static
  5061. */
  5062. public static function dirname($path)
  5063. {
  5064. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5065. return $instance->dirname($path);
  5066. }
  5067. /**
  5068. * Extract the file extension from a file path.
  5069. *
  5070. * @param string $path
  5071. * @return string
  5072. * @static
  5073. */
  5074. public static function extension($path)
  5075. {
  5076. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5077. return $instance->extension($path);
  5078. }
  5079. /**
  5080. * Get the file type of a given file.
  5081. *
  5082. * @param string $path
  5083. * @return string
  5084. * @static
  5085. */
  5086. public static function type($path)
  5087. {
  5088. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5089. return $instance->type($path);
  5090. }
  5091. /**
  5092. * Get the mime-type of a given file.
  5093. *
  5094. * @param string $path
  5095. * @return string|false
  5096. * @static
  5097. */
  5098. public static function mimeType($path)
  5099. {
  5100. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5101. return $instance->mimeType($path);
  5102. }
  5103. /**
  5104. * Get the file size of a given file.
  5105. *
  5106. * @param string $path
  5107. * @return int
  5108. * @static
  5109. */
  5110. public static function size($path)
  5111. {
  5112. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5113. return $instance->size($path);
  5114. }
  5115. /**
  5116. * Get the file's last modification time.
  5117. *
  5118. * @param string $path
  5119. * @return int
  5120. * @static
  5121. */
  5122. public static function lastModified($path)
  5123. {
  5124. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5125. return $instance->lastModified($path);
  5126. }
  5127. /**
  5128. * Determine if the given path is a directory.
  5129. *
  5130. * @param string $directory
  5131. * @return bool
  5132. * @static
  5133. */
  5134. public static function isDirectory($directory)
  5135. {
  5136. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5137. return $instance->isDirectory($directory);
  5138. }
  5139. /**
  5140. * Determine if the given path is readable.
  5141. *
  5142. * @param string $path
  5143. * @return bool
  5144. * @static
  5145. */
  5146. public static function isReadable($path)
  5147. {
  5148. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5149. return $instance->isReadable($path);
  5150. }
  5151. /**
  5152. * Determine if the given path is writable.
  5153. *
  5154. * @param string $path
  5155. * @return bool
  5156. * @static
  5157. */
  5158. public static function isWritable($path)
  5159. {
  5160. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5161. return $instance->isWritable($path);
  5162. }
  5163. /**
  5164. * Determine if the given path is a file.
  5165. *
  5166. * @param string $file
  5167. * @return bool
  5168. * @static
  5169. */
  5170. public static function isFile($file)
  5171. {
  5172. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5173. return $instance->isFile($file);
  5174. }
  5175. /**
  5176. * Find path names matching a given pattern.
  5177. *
  5178. * @param string $pattern
  5179. * @param int $flags
  5180. * @return array
  5181. * @static
  5182. */
  5183. public static function glob($pattern, $flags = 0)
  5184. {
  5185. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5186. return $instance->glob($pattern, $flags);
  5187. }
  5188. /**
  5189. * Get an array of all files in a directory.
  5190. *
  5191. * @param string $directory
  5192. * @param bool $hidden
  5193. * @return \Symfony\Component\Finder\SplFileInfo[]
  5194. * @static
  5195. */
  5196. public static function files($directory, $hidden = false)
  5197. {
  5198. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5199. return $instance->files($directory, $hidden);
  5200. }
  5201. /**
  5202. * Get all of the files from the given directory (recursive).
  5203. *
  5204. * @param string $directory
  5205. * @param bool $hidden
  5206. * @return \Symfony\Component\Finder\SplFileInfo[]
  5207. * @static
  5208. */
  5209. public static function allFiles($directory, $hidden = false)
  5210. {
  5211. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5212. return $instance->allFiles($directory, $hidden);
  5213. }
  5214. /**
  5215. * Get all of the directories within a given directory.
  5216. *
  5217. * @param string $directory
  5218. * @return array
  5219. * @static
  5220. */
  5221. public static function directories($directory)
  5222. {
  5223. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5224. return $instance->directories($directory);
  5225. }
  5226. /**
  5227. * Ensure a directory exists.
  5228. *
  5229. * @param string $path
  5230. * @param int $mode
  5231. * @param bool $recursive
  5232. * @return void
  5233. * @static
  5234. */
  5235. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  5236. {
  5237. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5238. $instance->ensureDirectoryExists($path, $mode, $recursive);
  5239. }
  5240. /**
  5241. * Create a directory.
  5242. *
  5243. * @param string $path
  5244. * @param int $mode
  5245. * @param bool $recursive
  5246. * @param bool $force
  5247. * @return bool
  5248. * @static
  5249. */
  5250. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  5251. {
  5252. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5253. return $instance->makeDirectory($path, $mode, $recursive, $force);
  5254. }
  5255. /**
  5256. * Move a directory.
  5257. *
  5258. * @param string $from
  5259. * @param string $to
  5260. * @param bool $overwrite
  5261. * @return bool
  5262. * @static
  5263. */
  5264. public static function moveDirectory($from, $to, $overwrite = false)
  5265. {
  5266. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5267. return $instance->moveDirectory($from, $to, $overwrite);
  5268. }
  5269. /**
  5270. * Copy a directory from one location to another.
  5271. *
  5272. * @param string $directory
  5273. * @param string $destination
  5274. * @param int|null $options
  5275. * @return bool
  5276. * @static
  5277. */
  5278. public static function copyDirectory($directory, $destination, $options = null)
  5279. {
  5280. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5281. return $instance->copyDirectory($directory, $destination, $options);
  5282. }
  5283. /**
  5284. * Recursively delete a directory.
  5285. *
  5286. * The directory itself may be optionally preserved.
  5287. *
  5288. * @param string $directory
  5289. * @param bool $preserve
  5290. * @return bool
  5291. * @static
  5292. */
  5293. public static function deleteDirectory($directory, $preserve = false)
  5294. {
  5295. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5296. return $instance->deleteDirectory($directory, $preserve);
  5297. }
  5298. /**
  5299. * Remove all of the directories within a given directory.
  5300. *
  5301. * @param string $directory
  5302. * @return bool
  5303. * @static
  5304. */
  5305. public static function deleteDirectories($directory)
  5306. {
  5307. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5308. return $instance->deleteDirectories($directory);
  5309. }
  5310. /**
  5311. * Empty the specified directory of all files and folders.
  5312. *
  5313. * @param string $directory
  5314. * @return bool
  5315. * @static
  5316. */
  5317. public static function cleanDirectory($directory)
  5318. {
  5319. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5320. return $instance->cleanDirectory($directory);
  5321. }
  5322. /**
  5323. * Register a custom macro.
  5324. *
  5325. * @param string $name
  5326. * @param object|callable $macro
  5327. * @return void
  5328. * @static
  5329. */
  5330. public static function macro($name, $macro)
  5331. {
  5332. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5333. }
  5334. /**
  5335. * Mix another object into the class.
  5336. *
  5337. * @param object $mixin
  5338. * @param bool $replace
  5339. * @return void
  5340. * @throws \ReflectionException
  5341. * @static
  5342. */
  5343. public static function mixin($mixin, $replace = true)
  5344. {
  5345. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  5346. }
  5347. /**
  5348. * Checks if macro is registered.
  5349. *
  5350. * @param string $name
  5351. * @return bool
  5352. * @static
  5353. */
  5354. public static function hasMacro($name)
  5355. {
  5356. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5357. }
  5358. }
  5359. /**
  5360. *
  5361. *
  5362. * @see \Illuminate\Contracts\Auth\Access\Gate
  5363. */
  5364. class Gate {
  5365. /**
  5366. * Determine if a given ability has been defined.
  5367. *
  5368. * @param string|array $ability
  5369. * @return bool
  5370. * @static
  5371. */
  5372. public static function has($ability)
  5373. {
  5374. /** @var \Illuminate\Auth\Access\Gate $instance */
  5375. return $instance->has($ability);
  5376. }
  5377. /**
  5378. * Define a new ability.
  5379. *
  5380. * @param string $ability
  5381. * @param callable|string $callback
  5382. * @return \Illuminate\Auth\Access\Gate
  5383. * @throws \InvalidArgumentException
  5384. * @static
  5385. */
  5386. public static function define($ability, $callback)
  5387. {
  5388. /** @var \Illuminate\Auth\Access\Gate $instance */
  5389. return $instance->define($ability, $callback);
  5390. }
  5391. /**
  5392. * Define abilities for a resource.
  5393. *
  5394. * @param string $name
  5395. * @param string $class
  5396. * @param array|null $abilities
  5397. * @return \Illuminate\Auth\Access\Gate
  5398. * @static
  5399. */
  5400. public static function resource($name, $class, $abilities = null)
  5401. {
  5402. /** @var \Illuminate\Auth\Access\Gate $instance */
  5403. return $instance->resource($name, $class, $abilities);
  5404. }
  5405. /**
  5406. * Define a policy class for a given class type.
  5407. *
  5408. * @param string $class
  5409. * @param string $policy
  5410. * @return \Illuminate\Auth\Access\Gate
  5411. * @static
  5412. */
  5413. public static function policy($class, $policy)
  5414. {
  5415. /** @var \Illuminate\Auth\Access\Gate $instance */
  5416. return $instance->policy($class, $policy);
  5417. }
  5418. /**
  5419. * Register a callback to run before all Gate checks.
  5420. *
  5421. * @param callable $callback
  5422. * @return \Illuminate\Auth\Access\Gate
  5423. * @static
  5424. */
  5425. public static function before($callback)
  5426. {
  5427. /** @var \Illuminate\Auth\Access\Gate $instance */
  5428. return $instance->before($callback);
  5429. }
  5430. /**
  5431. * Register a callback to run after all Gate checks.
  5432. *
  5433. * @param callable $callback
  5434. * @return \Illuminate\Auth\Access\Gate
  5435. * @static
  5436. */
  5437. public static function after($callback)
  5438. {
  5439. /** @var \Illuminate\Auth\Access\Gate $instance */
  5440. return $instance->after($callback);
  5441. }
  5442. /**
  5443. * Determine if the given ability should be granted for the current user.
  5444. *
  5445. * @param string $ability
  5446. * @param array|mixed $arguments
  5447. * @return bool
  5448. * @static
  5449. */
  5450. public static function allows($ability, $arguments = [])
  5451. {
  5452. /** @var \Illuminate\Auth\Access\Gate $instance */
  5453. return $instance->allows($ability, $arguments);
  5454. }
  5455. /**
  5456. * Determine if the given ability should be denied for the current user.
  5457. *
  5458. * @param string $ability
  5459. * @param array|mixed $arguments
  5460. * @return bool
  5461. * @static
  5462. */
  5463. public static function denies($ability, $arguments = [])
  5464. {
  5465. /** @var \Illuminate\Auth\Access\Gate $instance */
  5466. return $instance->denies($ability, $arguments);
  5467. }
  5468. /**
  5469. * Determine if all of the given abilities should be granted for the current user.
  5470. *
  5471. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5472. * @param array|mixed $arguments
  5473. * @return bool
  5474. * @static
  5475. */
  5476. public static function check($abilities, $arguments = [])
  5477. {
  5478. /** @var \Illuminate\Auth\Access\Gate $instance */
  5479. return $instance->check($abilities, $arguments);
  5480. }
  5481. /**
  5482. * Determine if any one of the given abilities should be granted for the current user.
  5483. *
  5484. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5485. * @param array|mixed $arguments
  5486. * @return bool
  5487. * @static
  5488. */
  5489. public static function any($abilities, $arguments = [])
  5490. {
  5491. /** @var \Illuminate\Auth\Access\Gate $instance */
  5492. return $instance->any($abilities, $arguments);
  5493. }
  5494. /**
  5495. * Determine if all of the given abilities should be denied for the current user.
  5496. *
  5497. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5498. * @param array|mixed $arguments
  5499. * @return bool
  5500. * @static
  5501. */
  5502. public static function none($abilities, $arguments = [])
  5503. {
  5504. /** @var \Illuminate\Auth\Access\Gate $instance */
  5505. return $instance->none($abilities, $arguments);
  5506. }
  5507. /**
  5508. * Determine if the given ability should be granted for the current user.
  5509. *
  5510. * @param string $ability
  5511. * @param array|mixed $arguments
  5512. * @return \Illuminate\Auth\Access\Response
  5513. * @throws \Illuminate\Auth\Access\AuthorizationException
  5514. * @static
  5515. */
  5516. public static function authorize($ability, $arguments = [])
  5517. {
  5518. /** @var \Illuminate\Auth\Access\Gate $instance */
  5519. return $instance->authorize($ability, $arguments);
  5520. }
  5521. /**
  5522. * Inspect the user for the given ability.
  5523. *
  5524. * @param string $ability
  5525. * @param array|mixed $arguments
  5526. * @return \Illuminate\Auth\Access\Response
  5527. * @static
  5528. */
  5529. public static function inspect($ability, $arguments = [])
  5530. {
  5531. /** @var \Illuminate\Auth\Access\Gate $instance */
  5532. return $instance->inspect($ability, $arguments);
  5533. }
  5534. /**
  5535. * Get the raw result from the authorization callback.
  5536. *
  5537. * @param string $ability
  5538. * @param array|mixed $arguments
  5539. * @return mixed
  5540. * @throws \Illuminate\Auth\Access\AuthorizationException
  5541. * @static
  5542. */
  5543. public static function raw($ability, $arguments = [])
  5544. {
  5545. /** @var \Illuminate\Auth\Access\Gate $instance */
  5546. return $instance->raw($ability, $arguments);
  5547. }
  5548. /**
  5549. * Get a policy instance for a given class.
  5550. *
  5551. * @param object|string $class
  5552. * @return mixed
  5553. * @static
  5554. */
  5555. public static function getPolicyFor($class)
  5556. {
  5557. /** @var \Illuminate\Auth\Access\Gate $instance */
  5558. return $instance->getPolicyFor($class);
  5559. }
  5560. /**
  5561. * Specify a callback to be used to guess policy names.
  5562. *
  5563. * @param callable $callback
  5564. * @return \Illuminate\Auth\Access\Gate
  5565. * @static
  5566. */
  5567. public static function guessPolicyNamesUsing($callback)
  5568. {
  5569. /** @var \Illuminate\Auth\Access\Gate $instance */
  5570. return $instance->guessPolicyNamesUsing($callback);
  5571. }
  5572. /**
  5573. * Build a policy class instance of the given type.
  5574. *
  5575. * @param object|string $class
  5576. * @return mixed
  5577. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  5578. * @static
  5579. */
  5580. public static function resolvePolicy($class)
  5581. {
  5582. /** @var \Illuminate\Auth\Access\Gate $instance */
  5583. return $instance->resolvePolicy($class);
  5584. }
  5585. /**
  5586. * Get a gate instance for the given user.
  5587. *
  5588. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5589. * @return static
  5590. * @static
  5591. */
  5592. public static function forUser($user)
  5593. {
  5594. /** @var \Illuminate\Auth\Access\Gate $instance */
  5595. return $instance->forUser($user);
  5596. }
  5597. /**
  5598. * Get all of the defined abilities.
  5599. *
  5600. * @return array
  5601. * @static
  5602. */
  5603. public static function abilities()
  5604. {
  5605. /** @var \Illuminate\Auth\Access\Gate $instance */
  5606. return $instance->abilities();
  5607. }
  5608. /**
  5609. * Get all of the defined policies.
  5610. *
  5611. * @return array
  5612. * @static
  5613. */
  5614. public static function policies()
  5615. {
  5616. /** @var \Illuminate\Auth\Access\Gate $instance */
  5617. return $instance->policies();
  5618. }
  5619. }
  5620. /**
  5621. *
  5622. *
  5623. * @see \Illuminate\Hashing\HashManager
  5624. */
  5625. class Hash {
  5626. /**
  5627. * Create an instance of the Bcrypt hash Driver.
  5628. *
  5629. * @return \Illuminate\Hashing\BcryptHasher
  5630. * @static
  5631. */
  5632. public static function createBcryptDriver()
  5633. {
  5634. /** @var \Illuminate\Hashing\HashManager $instance */
  5635. return $instance->createBcryptDriver();
  5636. }
  5637. /**
  5638. * Create an instance of the Argon2i hash Driver.
  5639. *
  5640. * @return \Illuminate\Hashing\ArgonHasher
  5641. * @static
  5642. */
  5643. public static function createArgonDriver()
  5644. {
  5645. /** @var \Illuminate\Hashing\HashManager $instance */
  5646. return $instance->createArgonDriver();
  5647. }
  5648. /**
  5649. * Create an instance of the Argon2id hash Driver.
  5650. *
  5651. * @return \Illuminate\Hashing\Argon2IdHasher
  5652. * @static
  5653. */
  5654. public static function createArgon2idDriver()
  5655. {
  5656. /** @var \Illuminate\Hashing\HashManager $instance */
  5657. return $instance->createArgon2idDriver();
  5658. }
  5659. /**
  5660. * Get information about the given hashed value.
  5661. *
  5662. * @param string $hashedValue
  5663. * @return array
  5664. * @static
  5665. */
  5666. public static function info($hashedValue)
  5667. {
  5668. /** @var \Illuminate\Hashing\HashManager $instance */
  5669. return $instance->info($hashedValue);
  5670. }
  5671. /**
  5672. * Hash the given value.
  5673. *
  5674. * @param string $value
  5675. * @param array $options
  5676. * @return string
  5677. * @static
  5678. */
  5679. public static function make($value, $options = [])
  5680. {
  5681. /** @var \Illuminate\Hashing\HashManager $instance */
  5682. return $instance->make($value, $options);
  5683. }
  5684. /**
  5685. * Check the given plain value against a hash.
  5686. *
  5687. * @param string $value
  5688. * @param string $hashedValue
  5689. * @param array $options
  5690. * @return bool
  5691. * @static
  5692. */
  5693. public static function check($value, $hashedValue, $options = [])
  5694. {
  5695. /** @var \Illuminate\Hashing\HashManager $instance */
  5696. return $instance->check($value, $hashedValue, $options);
  5697. }
  5698. /**
  5699. * Check if the given hash has been hashed using the given options.
  5700. *
  5701. * @param string $hashedValue
  5702. * @param array $options
  5703. * @return bool
  5704. * @static
  5705. */
  5706. public static function needsRehash($hashedValue, $options = [])
  5707. {
  5708. /** @var \Illuminate\Hashing\HashManager $instance */
  5709. return $instance->needsRehash($hashedValue, $options);
  5710. }
  5711. /**
  5712. * Get the default driver name.
  5713. *
  5714. * @return string
  5715. * @static
  5716. */
  5717. public static function getDefaultDriver()
  5718. {
  5719. /** @var \Illuminate\Hashing\HashManager $instance */
  5720. return $instance->getDefaultDriver();
  5721. }
  5722. /**
  5723. * Get a driver instance.
  5724. *
  5725. * @param string $driver
  5726. * @return mixed
  5727. * @throws \InvalidArgumentException
  5728. * @static
  5729. */
  5730. public static function driver($driver = null)
  5731. { //Method inherited from \Illuminate\Support\Manager
  5732. /** @var \Illuminate\Hashing\HashManager $instance */
  5733. return $instance->driver($driver);
  5734. }
  5735. /**
  5736. * Register a custom driver creator Closure.
  5737. *
  5738. * @param string $driver
  5739. * @param \Closure $callback
  5740. * @return \Illuminate\Hashing\HashManager
  5741. * @static
  5742. */
  5743. public static function extend($driver, $callback)
  5744. { //Method inherited from \Illuminate\Support\Manager
  5745. /** @var \Illuminate\Hashing\HashManager $instance */
  5746. return $instance->extend($driver, $callback);
  5747. }
  5748. /**
  5749. * Get all of the created "drivers".
  5750. *
  5751. * @return array
  5752. * @static
  5753. */
  5754. public static function getDrivers()
  5755. { //Method inherited from \Illuminate\Support\Manager
  5756. /** @var \Illuminate\Hashing\HashManager $instance */
  5757. return $instance->getDrivers();
  5758. }
  5759. }
  5760. /**
  5761. *
  5762. *
  5763. * @see \Illuminate\Translation\Translator
  5764. */
  5765. class Lang {
  5766. /**
  5767. * Determine if a translation exists for a given locale.
  5768. *
  5769. * @param string $key
  5770. * @param string|null $locale
  5771. * @return bool
  5772. * @static
  5773. */
  5774. public static function hasForLocale($key, $locale = null)
  5775. {
  5776. /** @var \Illuminate\Translation\Translator $instance */
  5777. return $instance->hasForLocale($key, $locale);
  5778. }
  5779. /**
  5780. * Determine if a translation exists.
  5781. *
  5782. * @param string $key
  5783. * @param string|null $locale
  5784. * @param bool $fallback
  5785. * @return bool
  5786. * @static
  5787. */
  5788. public static function has($key, $locale = null, $fallback = true)
  5789. {
  5790. /** @var \Illuminate\Translation\Translator $instance */
  5791. return $instance->has($key, $locale, $fallback);
  5792. }
  5793. /**
  5794. * Get the translation for the given key.
  5795. *
  5796. * @param string $key
  5797. * @param array $replace
  5798. * @param string|null $locale
  5799. * @param bool $fallback
  5800. * @return string|array
  5801. * @static
  5802. */
  5803. public static function get($key, $replace = [], $locale = null, $fallback = true)
  5804. {
  5805. /** @var \Illuminate\Translation\Translator $instance */
  5806. return $instance->get($key, $replace, $locale, $fallback);
  5807. }
  5808. /**
  5809. * Get a translation according to an integer value.
  5810. *
  5811. * @param string $key
  5812. * @param \Countable|int|array $number
  5813. * @param array $replace
  5814. * @param string|null $locale
  5815. * @return string
  5816. * @static
  5817. */
  5818. public static function choice($key, $number, $replace = [], $locale = null)
  5819. {
  5820. /** @var \Illuminate\Translation\Translator $instance */
  5821. return $instance->choice($key, $number, $replace, $locale);
  5822. }
  5823. /**
  5824. * Add translation lines to the given locale.
  5825. *
  5826. * @param array $lines
  5827. * @param string $locale
  5828. * @param string $namespace
  5829. * @return void
  5830. * @static
  5831. */
  5832. public static function addLines($lines, $locale, $namespace = '*')
  5833. {
  5834. /** @var \Illuminate\Translation\Translator $instance */
  5835. $instance->addLines($lines, $locale, $namespace);
  5836. }
  5837. /**
  5838. * Load the specified language group.
  5839. *
  5840. * @param string $namespace
  5841. * @param string $group
  5842. * @param string $locale
  5843. * @return void
  5844. * @static
  5845. */
  5846. public static function load($namespace, $group, $locale)
  5847. {
  5848. /** @var \Illuminate\Translation\Translator $instance */
  5849. $instance->load($namespace, $group, $locale);
  5850. }
  5851. /**
  5852. * Add a new namespace to the loader.
  5853. *
  5854. * @param string $namespace
  5855. * @param string $hint
  5856. * @return void
  5857. * @static
  5858. */
  5859. public static function addNamespace($namespace, $hint)
  5860. {
  5861. /** @var \Illuminate\Translation\Translator $instance */
  5862. $instance->addNamespace($namespace, $hint);
  5863. }
  5864. /**
  5865. * Add a new JSON path to the loader.
  5866. *
  5867. * @param string $path
  5868. * @return void
  5869. * @static
  5870. */
  5871. public static function addJsonPath($path)
  5872. {
  5873. /** @var \Illuminate\Translation\Translator $instance */
  5874. $instance->addJsonPath($path);
  5875. }
  5876. /**
  5877. * Parse a key into namespace, group, and item.
  5878. *
  5879. * @param string $key
  5880. * @return array
  5881. * @static
  5882. */
  5883. public static function parseKey($key)
  5884. {
  5885. /** @var \Illuminate\Translation\Translator $instance */
  5886. return $instance->parseKey($key);
  5887. }
  5888. /**
  5889. * Get the message selector instance.
  5890. *
  5891. * @return \Illuminate\Translation\MessageSelector
  5892. * @static
  5893. */
  5894. public static function getSelector()
  5895. {
  5896. /** @var \Illuminate\Translation\Translator $instance */
  5897. return $instance->getSelector();
  5898. }
  5899. /**
  5900. * Set the message selector instance.
  5901. *
  5902. * @param \Illuminate\Translation\MessageSelector $selector
  5903. * @return void
  5904. * @static
  5905. */
  5906. public static function setSelector($selector)
  5907. {
  5908. /** @var \Illuminate\Translation\Translator $instance */
  5909. $instance->setSelector($selector);
  5910. }
  5911. /**
  5912. * Get the language line loader implementation.
  5913. *
  5914. * @return \Illuminate\Contracts\Translation\Loader
  5915. * @static
  5916. */
  5917. public static function getLoader()
  5918. {
  5919. /** @var \Illuminate\Translation\Translator $instance */
  5920. return $instance->getLoader();
  5921. }
  5922. /**
  5923. * Get the default locale being used.
  5924. *
  5925. * @return string
  5926. * @static
  5927. */
  5928. public static function locale()
  5929. {
  5930. /** @var \Illuminate\Translation\Translator $instance */
  5931. return $instance->locale();
  5932. }
  5933. /**
  5934. * Get the default locale being used.
  5935. *
  5936. * @return string
  5937. * @static
  5938. */
  5939. public static function getLocale()
  5940. {
  5941. /** @var \Illuminate\Translation\Translator $instance */
  5942. return $instance->getLocale();
  5943. }
  5944. /**
  5945. * Set the default locale.
  5946. *
  5947. * @param string $locale
  5948. * @return void
  5949. * @static
  5950. */
  5951. public static function setLocale($locale)
  5952. {
  5953. /** @var \Illuminate\Translation\Translator $instance */
  5954. $instance->setLocale($locale);
  5955. }
  5956. /**
  5957. * Get the fallback locale being used.
  5958. *
  5959. * @return string
  5960. * @static
  5961. */
  5962. public static function getFallback()
  5963. {
  5964. /** @var \Illuminate\Translation\Translator $instance */
  5965. return $instance->getFallback();
  5966. }
  5967. /**
  5968. * Set the fallback locale being used.
  5969. *
  5970. * @param string $fallback
  5971. * @return void
  5972. * @static
  5973. */
  5974. public static function setFallback($fallback)
  5975. {
  5976. /** @var \Illuminate\Translation\Translator $instance */
  5977. $instance->setFallback($fallback);
  5978. }
  5979. /**
  5980. * Set the loaded translation groups.
  5981. *
  5982. * @param array $loaded
  5983. * @return void
  5984. * @static
  5985. */
  5986. public static function setLoaded($loaded)
  5987. {
  5988. /** @var \Illuminate\Translation\Translator $instance */
  5989. $instance->setLoaded($loaded);
  5990. }
  5991. /**
  5992. * Set the parsed value of a key.
  5993. *
  5994. * @param string $key
  5995. * @param array $parsed
  5996. * @return void
  5997. * @static
  5998. */
  5999. public static function setParsedKey($key, $parsed)
  6000. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  6001. /** @var \Illuminate\Translation\Translator $instance */
  6002. $instance->setParsedKey($key, $parsed);
  6003. }
  6004. /**
  6005. * Register a custom macro.
  6006. *
  6007. * @param string $name
  6008. * @param object|callable $macro
  6009. * @return void
  6010. * @static
  6011. */
  6012. public static function macro($name, $macro)
  6013. {
  6014. \Illuminate\Translation\Translator::macro($name, $macro);
  6015. }
  6016. /**
  6017. * Mix another object into the class.
  6018. *
  6019. * @param object $mixin
  6020. * @param bool $replace
  6021. * @return void
  6022. * @throws \ReflectionException
  6023. * @static
  6024. */
  6025. public static function mixin($mixin, $replace = true)
  6026. {
  6027. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  6028. }
  6029. /**
  6030. * Checks if macro is registered.
  6031. *
  6032. * @param string $name
  6033. * @return bool
  6034. * @static
  6035. */
  6036. public static function hasMacro($name)
  6037. {
  6038. return \Illuminate\Translation\Translator::hasMacro($name);
  6039. }
  6040. }
  6041. /**
  6042. *
  6043. *
  6044. * @see \Illuminate\Log\Logger
  6045. */
  6046. class Log {
  6047. /**
  6048. * Create a new, on-demand aggregate logger instance.
  6049. *
  6050. * @param array $channels
  6051. * @param string|null $channel
  6052. * @return \Psr\Log\LoggerInterface
  6053. * @static
  6054. */
  6055. public static function stack($channels, $channel = null)
  6056. {
  6057. /** @var \Illuminate\Log\LogManager $instance */
  6058. return $instance->stack($channels, $channel);
  6059. }
  6060. /**
  6061. * Get a log channel instance.
  6062. *
  6063. * @param string|null $channel
  6064. * @return \Psr\Log\LoggerInterface
  6065. * @static
  6066. */
  6067. public static function channel($channel = null)
  6068. {
  6069. /** @var \Illuminate\Log\LogManager $instance */
  6070. return $instance->channel($channel);
  6071. }
  6072. /**
  6073. * Get a log driver instance.
  6074. *
  6075. * @param string|null $driver
  6076. * @return \Psr\Log\LoggerInterface
  6077. * @static
  6078. */
  6079. public static function driver($driver = null)
  6080. {
  6081. /** @var \Illuminate\Log\LogManager $instance */
  6082. return $instance->driver($driver);
  6083. }
  6084. /**
  6085. *
  6086. *
  6087. * @return array
  6088. * @static
  6089. */
  6090. public static function getChannels()
  6091. {
  6092. /** @var \Illuminate\Log\LogManager $instance */
  6093. return $instance->getChannels();
  6094. }
  6095. /**
  6096. * Get the default log driver name.
  6097. *
  6098. * @return string
  6099. * @static
  6100. */
  6101. public static function getDefaultDriver()
  6102. {
  6103. /** @var \Illuminate\Log\LogManager $instance */
  6104. return $instance->getDefaultDriver();
  6105. }
  6106. /**
  6107. * Set the default log driver name.
  6108. *
  6109. * @param string $name
  6110. * @return void
  6111. * @static
  6112. */
  6113. public static function setDefaultDriver($name)
  6114. {
  6115. /** @var \Illuminate\Log\LogManager $instance */
  6116. $instance->setDefaultDriver($name);
  6117. }
  6118. /**
  6119. * Register a custom driver creator Closure.
  6120. *
  6121. * @param string $driver
  6122. * @param \Closure $callback
  6123. * @return \Illuminate\Log\LogManager
  6124. * @static
  6125. */
  6126. public static function extend($driver, $callback)
  6127. {
  6128. /** @var \Illuminate\Log\LogManager $instance */
  6129. return $instance->extend($driver, $callback);
  6130. }
  6131. /**
  6132. * Unset the given channel instance.
  6133. *
  6134. * @param string|null $driver
  6135. * @return \Illuminate\Log\LogManager
  6136. * @static
  6137. */
  6138. public static function forgetChannel($driver = null)
  6139. {
  6140. /** @var \Illuminate\Log\LogManager $instance */
  6141. return $instance->forgetChannel($driver);
  6142. }
  6143. /**
  6144. * System is unusable.
  6145. *
  6146. * @param string $message
  6147. * @param array $context
  6148. * @return void
  6149. * @static
  6150. */
  6151. public static function emergency($message, $context = [])
  6152. {
  6153. /** @var \Illuminate\Log\LogManager $instance */
  6154. $instance->emergency($message, $context);
  6155. }
  6156. /**
  6157. * Action must be taken immediately.
  6158. *
  6159. * Example: Entire website down, database unavailable, etc. This should
  6160. * trigger the SMS alerts and wake you up.
  6161. *
  6162. * @param string $message
  6163. * @param array $context
  6164. * @return void
  6165. * @static
  6166. */
  6167. public static function alert($message, $context = [])
  6168. {
  6169. /** @var \Illuminate\Log\LogManager $instance */
  6170. $instance->alert($message, $context);
  6171. }
  6172. /**
  6173. * Critical conditions.
  6174. *
  6175. * Example: Application component unavailable, unexpected exception.
  6176. *
  6177. * @param string $message
  6178. * @param array $context
  6179. * @return void
  6180. * @static
  6181. */
  6182. public static function critical($message, $context = [])
  6183. {
  6184. /** @var \Illuminate\Log\LogManager $instance */
  6185. $instance->critical($message, $context);
  6186. }
  6187. /**
  6188. * Runtime errors that do not require immediate action but should typically
  6189. * be logged and monitored.
  6190. *
  6191. * @param string $message
  6192. * @param array $context
  6193. * @return void
  6194. * @static
  6195. */
  6196. public static function error($message, $context = [])
  6197. {
  6198. /** @var \Illuminate\Log\LogManager $instance */
  6199. $instance->error($message, $context);
  6200. }
  6201. /**
  6202. * Exceptional occurrences that are not errors.
  6203. *
  6204. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  6205. * that are not necessarily wrong.
  6206. *
  6207. * @param string $message
  6208. * @param array $context
  6209. * @return void
  6210. * @static
  6211. */
  6212. public static function warning($message, $context = [])
  6213. {
  6214. /** @var \Illuminate\Log\LogManager $instance */
  6215. $instance->warning($message, $context);
  6216. }
  6217. /**
  6218. * Normal but significant events.
  6219. *
  6220. * @param string $message
  6221. * @param array $context
  6222. * @return void
  6223. * @static
  6224. */
  6225. public static function notice($message, $context = [])
  6226. {
  6227. /** @var \Illuminate\Log\LogManager $instance */
  6228. $instance->notice($message, $context);
  6229. }
  6230. /**
  6231. * Interesting events.
  6232. *
  6233. * Example: User logs in, SQL logs.
  6234. *
  6235. * @param string $message
  6236. * @param array $context
  6237. * @return void
  6238. * @static
  6239. */
  6240. public static function info($message, $context = [])
  6241. {
  6242. /** @var \Illuminate\Log\LogManager $instance */
  6243. $instance->info($message, $context);
  6244. }
  6245. /**
  6246. * Detailed debug information.
  6247. *
  6248. * @param string $message
  6249. * @param array $context
  6250. * @return void
  6251. * @static
  6252. */
  6253. public static function debug($message, $context = [])
  6254. {
  6255. /** @var \Illuminate\Log\LogManager $instance */
  6256. $instance->debug($message, $context);
  6257. }
  6258. /**
  6259. * Logs with an arbitrary level.
  6260. *
  6261. * @param mixed $level
  6262. * @param string $message
  6263. * @param array $context
  6264. * @return void
  6265. * @static
  6266. */
  6267. public static function log($level, $message, $context = [])
  6268. {
  6269. /** @var \Illuminate\Log\LogManager $instance */
  6270. $instance->log($level, $message, $context);
  6271. }
  6272. }
  6273. /**
  6274. *
  6275. *
  6276. * @see \Illuminate\Mail\Mailer
  6277. * @see \Illuminate\Support\Testing\Fakes\MailFake
  6278. */
  6279. class Mail {
  6280. /**
  6281. * Set the global from address and name.
  6282. *
  6283. * @param string $address
  6284. * @param string|null $name
  6285. * @return void
  6286. * @static
  6287. */
  6288. public static function alwaysFrom($address, $name = null)
  6289. {
  6290. /** @var \Illuminate\Mail\Mailer $instance */
  6291. $instance->alwaysFrom($address, $name);
  6292. }
  6293. /**
  6294. * Set the global reply-to address and name.
  6295. *
  6296. * @param string $address
  6297. * @param string|null $name
  6298. * @return void
  6299. * @static
  6300. */
  6301. public static function alwaysReplyTo($address, $name = null)
  6302. {
  6303. /** @var \Illuminate\Mail\Mailer $instance */
  6304. $instance->alwaysReplyTo($address, $name);
  6305. }
  6306. /**
  6307. * Set the global to address and name.
  6308. *
  6309. * @param string $address
  6310. * @param string|null $name
  6311. * @return void
  6312. * @static
  6313. */
  6314. public static function alwaysTo($address, $name = null)
  6315. {
  6316. /** @var \Illuminate\Mail\Mailer $instance */
  6317. $instance->alwaysTo($address, $name);
  6318. }
  6319. /**
  6320. * Begin the process of mailing a mailable class instance.
  6321. *
  6322. * @param mixed $users
  6323. * @return \Illuminate\Mail\PendingMail
  6324. * @static
  6325. */
  6326. public static function to($users)
  6327. {
  6328. /** @var \Illuminate\Mail\Mailer $instance */
  6329. return $instance->to($users);
  6330. }
  6331. /**
  6332. * Begin the process of mailing a mailable class instance.
  6333. *
  6334. * @param mixed $users
  6335. * @return \Illuminate\Mail\PendingMail
  6336. * @static
  6337. */
  6338. public static function cc($users)
  6339. {
  6340. /** @var \Illuminate\Mail\Mailer $instance */
  6341. return $instance->cc($users);
  6342. }
  6343. /**
  6344. * Begin the process of mailing a mailable class instance.
  6345. *
  6346. * @param mixed $users
  6347. * @return \Illuminate\Mail\PendingMail
  6348. * @static
  6349. */
  6350. public static function bcc($users)
  6351. {
  6352. /** @var \Illuminate\Mail\Mailer $instance */
  6353. return $instance->bcc($users);
  6354. }
  6355. /**
  6356. * Send a new message with only an HTML part.
  6357. *
  6358. * @param string $html
  6359. * @param mixed $callback
  6360. * @return void
  6361. * @static
  6362. */
  6363. public static function html($html, $callback)
  6364. {
  6365. /** @var \Illuminate\Mail\Mailer $instance */
  6366. $instance->html($html, $callback);
  6367. }
  6368. /**
  6369. * Send a new message with only a raw text part.
  6370. *
  6371. * @param string $text
  6372. * @param mixed $callback
  6373. * @return void
  6374. * @static
  6375. */
  6376. public static function raw($text, $callback)
  6377. {
  6378. /** @var \Illuminate\Mail\Mailer $instance */
  6379. $instance->raw($text, $callback);
  6380. }
  6381. /**
  6382. * Send a new message with only a plain part.
  6383. *
  6384. * @param string $view
  6385. * @param array $data
  6386. * @param mixed $callback
  6387. * @return void
  6388. * @static
  6389. */
  6390. public static function plain($view, $data, $callback)
  6391. {
  6392. /** @var \Illuminate\Mail\Mailer $instance */
  6393. $instance->plain($view, $data, $callback);
  6394. }
  6395. /**
  6396. * Render the given message as a view.
  6397. *
  6398. * @param string|array $view
  6399. * @param array $data
  6400. * @return string
  6401. * @static
  6402. */
  6403. public static function render($view, $data = [])
  6404. {
  6405. /** @var \Illuminate\Mail\Mailer $instance */
  6406. return $instance->render($view, $data);
  6407. }
  6408. /**
  6409. * Send a new message using a view.
  6410. *
  6411. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  6412. * @param array $data
  6413. * @param \Closure|string|null $callback
  6414. * @return void
  6415. * @static
  6416. */
  6417. public static function send($view, $data = [], $callback = null)
  6418. {
  6419. /** @var \Illuminate\Mail\Mailer $instance */
  6420. $instance->send($view, $data, $callback);
  6421. }
  6422. /**
  6423. * Queue a new e-mail message for sending.
  6424. *
  6425. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  6426. * @param string|null $queue
  6427. * @return mixed
  6428. * @throws \InvalidArgumentException
  6429. * @static
  6430. */
  6431. public static function queue($view, $queue = null)
  6432. {
  6433. /** @var \Illuminate\Mail\Mailer $instance */
  6434. return $instance->queue($view, $queue);
  6435. }
  6436. /**
  6437. * Queue a new e-mail message for sending on the given queue.
  6438. *
  6439. * @param string $queue
  6440. * @param \Illuminate\Contracts\Mail\Mailable $view
  6441. * @return mixed
  6442. * @static
  6443. */
  6444. public static function onQueue($queue, $view)
  6445. {
  6446. /** @var \Illuminate\Mail\Mailer $instance */
  6447. return $instance->onQueue($queue, $view);
  6448. }
  6449. /**
  6450. * Queue a new e-mail message for sending on the given queue.
  6451. *
  6452. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6453. *
  6454. * @param string $queue
  6455. * @param \Illuminate\Contracts\Mail\Mailable $view
  6456. * @return mixed
  6457. * @static
  6458. */
  6459. public static function queueOn($queue, $view)
  6460. {
  6461. /** @var \Illuminate\Mail\Mailer $instance */
  6462. return $instance->queueOn($queue, $view);
  6463. }
  6464. /**
  6465. * Queue a new e-mail message for sending after (n) seconds.
  6466. *
  6467. * @param \DateTimeInterface|\DateInterval|int $delay
  6468. * @param \Illuminate\Contracts\Mail\Mailable $view
  6469. * @param string|null $queue
  6470. * @return mixed
  6471. * @throws \InvalidArgumentException
  6472. * @static
  6473. */
  6474. public static function later($delay, $view, $queue = null)
  6475. {
  6476. /** @var \Illuminate\Mail\Mailer $instance */
  6477. return $instance->later($delay, $view, $queue);
  6478. }
  6479. /**
  6480. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6481. *
  6482. * @param string $queue
  6483. * @param \DateTimeInterface|\DateInterval|int $delay
  6484. * @param \Illuminate\Contracts\Mail\Mailable $view
  6485. * @return mixed
  6486. * @static
  6487. */
  6488. public static function laterOn($queue, $delay, $view)
  6489. {
  6490. /** @var \Illuminate\Mail\Mailer $instance */
  6491. return $instance->laterOn($queue, $delay, $view);
  6492. }
  6493. /**
  6494. * Get the array of failed recipients.
  6495. *
  6496. * @return array
  6497. * @static
  6498. */
  6499. public static function failures()
  6500. {
  6501. /** @var \Illuminate\Mail\Mailer $instance */
  6502. return $instance->failures();
  6503. }
  6504. /**
  6505. * Get the Swift Mailer instance.
  6506. *
  6507. * @return \Swift_Mailer
  6508. * @static
  6509. */
  6510. public static function getSwiftMailer()
  6511. {
  6512. /** @var \Illuminate\Mail\Mailer $instance */
  6513. return $instance->getSwiftMailer();
  6514. }
  6515. /**
  6516. * Get the view factory instance.
  6517. *
  6518. * @return \Illuminate\Contracts\View\Factory
  6519. * @static
  6520. */
  6521. public static function getViewFactory()
  6522. {
  6523. /** @var \Illuminate\Mail\Mailer $instance */
  6524. return $instance->getViewFactory();
  6525. }
  6526. /**
  6527. * Set the Swift Mailer instance.
  6528. *
  6529. * @param \Swift_Mailer $swift
  6530. * @return void
  6531. * @static
  6532. */
  6533. public static function setSwiftMailer($swift)
  6534. {
  6535. /** @var \Illuminate\Mail\Mailer $instance */
  6536. $instance->setSwiftMailer($swift);
  6537. }
  6538. /**
  6539. * Set the queue manager instance.
  6540. *
  6541. * @param \Illuminate\Contracts\Queue\Factory $queue
  6542. * @return \Illuminate\Mail\Mailer
  6543. * @static
  6544. */
  6545. public static function setQueue($queue)
  6546. {
  6547. /** @var \Illuminate\Mail\Mailer $instance */
  6548. return $instance->setQueue($queue);
  6549. }
  6550. /**
  6551. * Register a custom macro.
  6552. *
  6553. * @param string $name
  6554. * @param object|callable $macro
  6555. * @return void
  6556. * @static
  6557. */
  6558. public static function macro($name, $macro)
  6559. {
  6560. \Illuminate\Mail\Mailer::macro($name, $macro);
  6561. }
  6562. /**
  6563. * Mix another object into the class.
  6564. *
  6565. * @param object $mixin
  6566. * @param bool $replace
  6567. * @return void
  6568. * @throws \ReflectionException
  6569. * @static
  6570. */
  6571. public static function mixin($mixin, $replace = true)
  6572. {
  6573. \Illuminate\Mail\Mailer::mixin($mixin, $replace);
  6574. }
  6575. /**
  6576. * Checks if macro is registered.
  6577. *
  6578. * @param string $name
  6579. * @return bool
  6580. * @static
  6581. */
  6582. public static function hasMacro($name)
  6583. {
  6584. return \Illuminate\Mail\Mailer::hasMacro($name);
  6585. }
  6586. /**
  6587. * Assert if a mailable was sent based on a truth-test callback.
  6588. *
  6589. * @param string $mailable
  6590. * @param callable|int|null $callback
  6591. * @return void
  6592. * @static
  6593. */
  6594. public static function assertSent($mailable, $callback = null)
  6595. {
  6596. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6597. $instance->assertSent($mailable, $callback);
  6598. }
  6599. /**
  6600. * Determine if a mailable was not sent based on a truth-test callback.
  6601. *
  6602. * @param string $mailable
  6603. * @param callable|null $callback
  6604. * @return void
  6605. * @static
  6606. */
  6607. public static function assertNotSent($mailable, $callback = null)
  6608. {
  6609. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6610. $instance->assertNotSent($mailable, $callback);
  6611. }
  6612. /**
  6613. * Assert that no mailables were sent.
  6614. *
  6615. * @return void
  6616. * @static
  6617. */
  6618. public static function assertNothingSent()
  6619. {
  6620. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6621. $instance->assertNothingSent();
  6622. }
  6623. /**
  6624. * Assert if a mailable was queued based on a truth-test callback.
  6625. *
  6626. * @param string $mailable
  6627. * @param callable|int|null $callback
  6628. * @return void
  6629. * @static
  6630. */
  6631. public static function assertQueued($mailable, $callback = null)
  6632. {
  6633. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6634. $instance->assertQueued($mailable, $callback);
  6635. }
  6636. /**
  6637. * Determine if a mailable was not queued based on a truth-test callback.
  6638. *
  6639. * @param string $mailable
  6640. * @param callable|null $callback
  6641. * @return void
  6642. * @static
  6643. */
  6644. public static function assertNotQueued($mailable, $callback = null)
  6645. {
  6646. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6647. $instance->assertNotQueued($mailable, $callback);
  6648. }
  6649. /**
  6650. * Assert that no mailables were queued.
  6651. *
  6652. * @return void
  6653. * @static
  6654. */
  6655. public static function assertNothingQueued()
  6656. {
  6657. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6658. $instance->assertNothingQueued();
  6659. }
  6660. /**
  6661. * Get all of the mailables matching a truth-test callback.
  6662. *
  6663. * @param string $mailable
  6664. * @param callable|null $callback
  6665. * @return \Illuminate\Support\Collection
  6666. * @static
  6667. */
  6668. public static function sent($mailable, $callback = null)
  6669. {
  6670. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6671. return $instance->sent($mailable, $callback);
  6672. }
  6673. /**
  6674. * Determine if the given mailable has been sent.
  6675. *
  6676. * @param string $mailable
  6677. * @return bool
  6678. * @static
  6679. */
  6680. public static function hasSent($mailable)
  6681. {
  6682. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6683. return $instance->hasSent($mailable);
  6684. }
  6685. /**
  6686. * Get all of the queued mailables matching a truth-test callback.
  6687. *
  6688. * @param string $mailable
  6689. * @param callable|null $callback
  6690. * @return \Illuminate\Support\Collection
  6691. * @static
  6692. */
  6693. public static function queued($mailable, $callback = null)
  6694. {
  6695. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6696. return $instance->queued($mailable, $callback);
  6697. }
  6698. /**
  6699. * Determine if the given mailable has been queued.
  6700. *
  6701. * @param string $mailable
  6702. * @return bool
  6703. * @static
  6704. */
  6705. public static function hasQueued($mailable)
  6706. {
  6707. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6708. return $instance->hasQueued($mailable);
  6709. }
  6710. }
  6711. /**
  6712. *
  6713. *
  6714. * @see \Illuminate\Notifications\ChannelManager
  6715. */
  6716. class Notification {
  6717. /**
  6718. * Send the given notification to the given notifiable entities.
  6719. *
  6720. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6721. * @param mixed $notification
  6722. * @return void
  6723. * @static
  6724. */
  6725. public static function send($notifiables, $notification)
  6726. {
  6727. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6728. $instance->send($notifiables, $notification);
  6729. }
  6730. /**
  6731. * Send the given notification immediately.
  6732. *
  6733. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6734. * @param mixed $notification
  6735. * @param array|null $channels
  6736. * @return void
  6737. * @static
  6738. */
  6739. public static function sendNow($notifiables, $notification, $channels = null)
  6740. {
  6741. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6742. $instance->sendNow($notifiables, $notification, $channels);
  6743. }
  6744. /**
  6745. * Get a channel instance.
  6746. *
  6747. * @param string|null $name
  6748. * @return mixed
  6749. * @static
  6750. */
  6751. public static function channel($name = null)
  6752. {
  6753. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6754. return $instance->channel($name);
  6755. }
  6756. /**
  6757. * Get the default channel driver name.
  6758. *
  6759. * @return string
  6760. * @static
  6761. */
  6762. public static function getDefaultDriver()
  6763. {
  6764. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6765. return $instance->getDefaultDriver();
  6766. }
  6767. /**
  6768. * Get the default channel driver name.
  6769. *
  6770. * @return string
  6771. * @static
  6772. */
  6773. public static function deliversVia()
  6774. {
  6775. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6776. return $instance->deliversVia();
  6777. }
  6778. /**
  6779. * Set the default channel driver name.
  6780. *
  6781. * @param string $channel
  6782. * @return void
  6783. * @static
  6784. */
  6785. public static function deliverVia($channel)
  6786. {
  6787. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6788. $instance->deliverVia($channel);
  6789. }
  6790. /**
  6791. * Set the locale of notifications.
  6792. *
  6793. * @param string $locale
  6794. * @return \Illuminate\Notifications\ChannelManager
  6795. * @static
  6796. */
  6797. public static function locale($locale)
  6798. {
  6799. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6800. return $instance->locale($locale);
  6801. }
  6802. /**
  6803. * Get a driver instance.
  6804. *
  6805. * @param string $driver
  6806. * @return mixed
  6807. * @throws \InvalidArgumentException
  6808. * @static
  6809. */
  6810. public static function driver($driver = null)
  6811. { //Method inherited from \Illuminate\Support\Manager
  6812. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6813. return $instance->driver($driver);
  6814. }
  6815. /**
  6816. * Register a custom driver creator Closure.
  6817. *
  6818. * @param string $driver
  6819. * @param \Closure $callback
  6820. * @return \Illuminate\Notifications\ChannelManager
  6821. * @static
  6822. */
  6823. public static function extend($driver, $callback)
  6824. { //Method inherited from \Illuminate\Support\Manager
  6825. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6826. return $instance->extend($driver, $callback);
  6827. }
  6828. /**
  6829. * Get all of the created "drivers".
  6830. *
  6831. * @return array
  6832. * @static
  6833. */
  6834. public static function getDrivers()
  6835. { //Method inherited from \Illuminate\Support\Manager
  6836. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6837. return $instance->getDrivers();
  6838. }
  6839. /**
  6840. * Assert if a notification was sent based on a truth-test callback.
  6841. *
  6842. * @param mixed $notifiable
  6843. * @param string $notification
  6844. * @param callable|null $callback
  6845. * @return void
  6846. * @throws \Exception
  6847. * @static
  6848. */
  6849. public static function assertSentTo($notifiable, $notification, $callback = null)
  6850. {
  6851. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6852. $instance->assertSentTo($notifiable, $notification, $callback);
  6853. }
  6854. /**
  6855. * Assert if a notification was sent a number of times.
  6856. *
  6857. * @param mixed $notifiable
  6858. * @param string $notification
  6859. * @param int $times
  6860. * @return void
  6861. * @static
  6862. */
  6863. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6864. {
  6865. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6866. $instance->assertSentToTimes($notifiable, $notification, $times);
  6867. }
  6868. /**
  6869. * Determine if a notification was sent based on a truth-test callback.
  6870. *
  6871. * @param mixed $notifiable
  6872. * @param string $notification
  6873. * @param callable|null $callback
  6874. * @return void
  6875. * @throws \Exception
  6876. * @static
  6877. */
  6878. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6879. {
  6880. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6881. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6882. }
  6883. /**
  6884. * Assert that no notifications were sent.
  6885. *
  6886. * @return void
  6887. * @static
  6888. */
  6889. public static function assertNothingSent()
  6890. {
  6891. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6892. $instance->assertNothingSent();
  6893. }
  6894. /**
  6895. * Assert the total amount of times a notification was sent.
  6896. *
  6897. * @param int $expectedCount
  6898. * @param string $notification
  6899. * @return void
  6900. * @static
  6901. */
  6902. public static function assertTimesSent($expectedCount, $notification)
  6903. {
  6904. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6905. $instance->assertTimesSent($expectedCount, $notification);
  6906. }
  6907. /**
  6908. * Get all of the notifications matching a truth-test callback.
  6909. *
  6910. * @param mixed $notifiable
  6911. * @param string $notification
  6912. * @param callable|null $callback
  6913. * @return \Illuminate\Support\Collection
  6914. * @static
  6915. */
  6916. public static function sent($notifiable, $notification, $callback = null)
  6917. {
  6918. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6919. return $instance->sent($notifiable, $notification, $callback);
  6920. }
  6921. /**
  6922. * Determine if there are more notifications left to inspect.
  6923. *
  6924. * @param mixed $notifiable
  6925. * @param string $notification
  6926. * @return bool
  6927. * @static
  6928. */
  6929. public static function hasSent($notifiable, $notification)
  6930. {
  6931. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6932. return $instance->hasSent($notifiable, $notification);
  6933. }
  6934. /**
  6935. * Register a custom macro.
  6936. *
  6937. * @param string $name
  6938. * @param object|callable $macro
  6939. * @return void
  6940. * @static
  6941. */
  6942. public static function macro($name, $macro)
  6943. {
  6944. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  6945. }
  6946. /**
  6947. * Mix another object into the class.
  6948. *
  6949. * @param object $mixin
  6950. * @param bool $replace
  6951. * @return void
  6952. * @throws \ReflectionException
  6953. * @static
  6954. */
  6955. public static function mixin($mixin, $replace = true)
  6956. {
  6957. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  6958. }
  6959. /**
  6960. * Checks if macro is registered.
  6961. *
  6962. * @param string $name
  6963. * @return bool
  6964. * @static
  6965. */
  6966. public static function hasMacro($name)
  6967. {
  6968. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  6969. }
  6970. }
  6971. /**
  6972. *
  6973. *
  6974. * @method static string sendResetLink(array $credentials)
  6975. * @method static mixed reset(array $credentials, \Closure $callback)
  6976. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6977. */
  6978. class Password {
  6979. /**
  6980. * Attempt to get the broker from the local cache.
  6981. *
  6982. * @param string|null $name
  6983. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6984. * @static
  6985. */
  6986. public static function broker($name = null)
  6987. {
  6988. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6989. return $instance->broker($name);
  6990. }
  6991. /**
  6992. * Get the default password broker name.
  6993. *
  6994. * @return string
  6995. * @static
  6996. */
  6997. public static function getDefaultDriver()
  6998. {
  6999. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  7000. return $instance->getDefaultDriver();
  7001. }
  7002. /**
  7003. * Set the default password broker name.
  7004. *
  7005. * @param string $name
  7006. * @return void
  7007. * @static
  7008. */
  7009. public static function setDefaultDriver($name)
  7010. {
  7011. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  7012. $instance->setDefaultDriver($name);
  7013. }
  7014. }
  7015. /**
  7016. *
  7017. *
  7018. * @see \Illuminate\Queue\QueueManager
  7019. * @see \Illuminate\Queue\Queue
  7020. */
  7021. class Queue {
  7022. /**
  7023. * Register an event listener for the before job event.
  7024. *
  7025. * @param mixed $callback
  7026. * @return void
  7027. * @static
  7028. */
  7029. public static function before($callback)
  7030. {
  7031. /** @var \Illuminate\Queue\QueueManager $instance */
  7032. $instance->before($callback);
  7033. }
  7034. /**
  7035. * Register an event listener for the after job event.
  7036. *
  7037. * @param mixed $callback
  7038. * @return void
  7039. * @static
  7040. */
  7041. public static function after($callback)
  7042. {
  7043. /** @var \Illuminate\Queue\QueueManager $instance */
  7044. $instance->after($callback);
  7045. }
  7046. /**
  7047. * Register an event listener for the exception occurred job event.
  7048. *
  7049. * @param mixed $callback
  7050. * @return void
  7051. * @static
  7052. */
  7053. public static function exceptionOccurred($callback)
  7054. {
  7055. /** @var \Illuminate\Queue\QueueManager $instance */
  7056. $instance->exceptionOccurred($callback);
  7057. }
  7058. /**
  7059. * Register an event listener for the daemon queue loop.
  7060. *
  7061. * @param mixed $callback
  7062. * @return void
  7063. * @static
  7064. */
  7065. public static function looping($callback)
  7066. {
  7067. /** @var \Illuminate\Queue\QueueManager $instance */
  7068. $instance->looping($callback);
  7069. }
  7070. /**
  7071. * Register an event listener for the failed job event.
  7072. *
  7073. * @param mixed $callback
  7074. * @return void
  7075. * @static
  7076. */
  7077. public static function failing($callback)
  7078. {
  7079. /** @var \Illuminate\Queue\QueueManager $instance */
  7080. $instance->failing($callback);
  7081. }
  7082. /**
  7083. * Register an event listener for the daemon queue stopping.
  7084. *
  7085. * @param mixed $callback
  7086. * @return void
  7087. * @static
  7088. */
  7089. public static function stopping($callback)
  7090. {
  7091. /** @var \Illuminate\Queue\QueueManager $instance */
  7092. $instance->stopping($callback);
  7093. }
  7094. /**
  7095. * Determine if the driver is connected.
  7096. *
  7097. * @param string|null $name
  7098. * @return bool
  7099. * @static
  7100. */
  7101. public static function connected($name = null)
  7102. {
  7103. /** @var \Illuminate\Queue\QueueManager $instance */
  7104. return $instance->connected($name);
  7105. }
  7106. /**
  7107. * Resolve a queue connection instance.
  7108. *
  7109. * @param string|null $name
  7110. * @return \Illuminate\Contracts\Queue\Queue
  7111. * @static
  7112. */
  7113. public static function connection($name = null)
  7114. {
  7115. /** @var \Illuminate\Queue\QueueManager $instance */
  7116. return $instance->connection($name);
  7117. }
  7118. /**
  7119. * Add a queue connection resolver.
  7120. *
  7121. * @param string $driver
  7122. * @param \Closure $resolver
  7123. * @return void
  7124. * @static
  7125. */
  7126. public static function extend($driver, $resolver)
  7127. {
  7128. /** @var \Illuminate\Queue\QueueManager $instance */
  7129. $instance->extend($driver, $resolver);
  7130. }
  7131. /**
  7132. * Add a queue connection resolver.
  7133. *
  7134. * @param string $driver
  7135. * @param \Closure $resolver
  7136. * @return void
  7137. * @static
  7138. */
  7139. public static function addConnector($driver, $resolver)
  7140. {
  7141. /** @var \Illuminate\Queue\QueueManager $instance */
  7142. $instance->addConnector($driver, $resolver);
  7143. }
  7144. /**
  7145. * Get the name of the default queue connection.
  7146. *
  7147. * @return string
  7148. * @static
  7149. */
  7150. public static function getDefaultDriver()
  7151. {
  7152. /** @var \Illuminate\Queue\QueueManager $instance */
  7153. return $instance->getDefaultDriver();
  7154. }
  7155. /**
  7156. * Set the name of the default queue connection.
  7157. *
  7158. * @param string $name
  7159. * @return void
  7160. * @static
  7161. */
  7162. public static function setDefaultDriver($name)
  7163. {
  7164. /** @var \Illuminate\Queue\QueueManager $instance */
  7165. $instance->setDefaultDriver($name);
  7166. }
  7167. /**
  7168. * Get the full name for the given connection.
  7169. *
  7170. * @param string|null $connection
  7171. * @return string
  7172. * @static
  7173. */
  7174. public static function getName($connection = null)
  7175. {
  7176. /** @var \Illuminate\Queue\QueueManager $instance */
  7177. return $instance->getName($connection);
  7178. }
  7179. /**
  7180. * Assert if a job was pushed based on a truth-test callback.
  7181. *
  7182. * @param string $job
  7183. * @param callable|int|null $callback
  7184. * @return void
  7185. * @static
  7186. */
  7187. public static function assertPushed($job, $callback = null)
  7188. {
  7189. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7190. $instance->assertPushed($job, $callback);
  7191. }
  7192. /**
  7193. * Assert if a job was pushed based on a truth-test callback.
  7194. *
  7195. * @param string $queue
  7196. * @param string $job
  7197. * @param callable|null $callback
  7198. * @return void
  7199. * @static
  7200. */
  7201. public static function assertPushedOn($queue, $job, $callback = null)
  7202. {
  7203. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7204. $instance->assertPushedOn($queue, $job, $callback);
  7205. }
  7206. /**
  7207. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  7208. *
  7209. * @param string $job
  7210. * @param array $expectedChain
  7211. * @param callable|null $callback
  7212. * @return void
  7213. * @static
  7214. */
  7215. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  7216. {
  7217. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7218. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  7219. }
  7220. /**
  7221. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  7222. *
  7223. * @param string $job
  7224. * @param callable|null $callback
  7225. * @return void
  7226. * @static
  7227. */
  7228. public static function assertPushedWithoutChain($job, $callback = null)
  7229. {
  7230. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7231. $instance->assertPushedWithoutChain($job, $callback);
  7232. }
  7233. /**
  7234. * Determine if a job was pushed based on a truth-test callback.
  7235. *
  7236. * @param string $job
  7237. * @param callable|null $callback
  7238. * @return void
  7239. * @static
  7240. */
  7241. public static function assertNotPushed($job, $callback = null)
  7242. {
  7243. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7244. $instance->assertNotPushed($job, $callback);
  7245. }
  7246. /**
  7247. * Assert that no jobs were pushed.
  7248. *
  7249. * @return void
  7250. * @static
  7251. */
  7252. public static function assertNothingPushed()
  7253. {
  7254. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7255. $instance->assertNothingPushed();
  7256. }
  7257. /**
  7258. * Get all of the jobs matching a truth-test callback.
  7259. *
  7260. * @param string $job
  7261. * @param callable|null $callback
  7262. * @return \Illuminate\Support\Collection
  7263. * @static
  7264. */
  7265. public static function pushed($job, $callback = null)
  7266. {
  7267. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7268. return $instance->pushed($job, $callback);
  7269. }
  7270. /**
  7271. * Determine if there are any stored jobs for a given class.
  7272. *
  7273. * @param string $job
  7274. * @return bool
  7275. * @static
  7276. */
  7277. public static function hasPushed($job)
  7278. {
  7279. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7280. return $instance->hasPushed($job);
  7281. }
  7282. /**
  7283. * Get the size of the queue.
  7284. *
  7285. * @param string|null $queue
  7286. * @return int
  7287. * @static
  7288. */
  7289. public static function size($queue = null)
  7290. {
  7291. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7292. return $instance->size($queue);
  7293. }
  7294. /**
  7295. * Push a new job onto the queue.
  7296. *
  7297. * @param string $job
  7298. * @param mixed $data
  7299. * @param string|null $queue
  7300. * @return mixed
  7301. * @static
  7302. */
  7303. public static function push($job, $data = '', $queue = null)
  7304. {
  7305. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7306. return $instance->push($job, $data, $queue);
  7307. }
  7308. /**
  7309. * Push a raw payload onto the queue.
  7310. *
  7311. * @param string $payload
  7312. * @param string|null $queue
  7313. * @param array $options
  7314. * @return mixed
  7315. * @static
  7316. */
  7317. public static function pushRaw($payload, $queue = null, $options = [])
  7318. {
  7319. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7320. return $instance->pushRaw($payload, $queue, $options);
  7321. }
  7322. /**
  7323. * Push a new job onto the queue after a delay.
  7324. *
  7325. * @param \DateTimeInterface|\DateInterval|int $delay
  7326. * @param string $job
  7327. * @param mixed $data
  7328. * @param string|null $queue
  7329. * @return mixed
  7330. * @static
  7331. */
  7332. public static function later($delay, $job, $data = '', $queue = null)
  7333. {
  7334. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7335. return $instance->later($delay, $job, $data, $queue);
  7336. }
  7337. /**
  7338. * Push a new job onto the queue.
  7339. *
  7340. * @param string $queue
  7341. * @param string $job
  7342. * @param mixed $data
  7343. * @return mixed
  7344. * @static
  7345. */
  7346. public static function pushOn($queue, $job, $data = '')
  7347. {
  7348. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7349. return $instance->pushOn($queue, $job, $data);
  7350. }
  7351. /**
  7352. * Push a new job onto the queue after a delay.
  7353. *
  7354. * @param string $queue
  7355. * @param \DateTimeInterface|\DateInterval|int $delay
  7356. * @param string $job
  7357. * @param mixed $data
  7358. * @return mixed
  7359. * @static
  7360. */
  7361. public static function laterOn($queue, $delay, $job, $data = '')
  7362. {
  7363. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7364. return $instance->laterOn($queue, $delay, $job, $data);
  7365. }
  7366. /**
  7367. * Pop the next job off of the queue.
  7368. *
  7369. * @param string|null $queue
  7370. * @return \Illuminate\Contracts\Queue\Job|null
  7371. * @static
  7372. */
  7373. public static function pop($queue = null)
  7374. {
  7375. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7376. return $instance->pop($queue);
  7377. }
  7378. /**
  7379. * Push an array of jobs onto the queue.
  7380. *
  7381. * @param array $jobs
  7382. * @param mixed $data
  7383. * @param string|null $queue
  7384. * @return mixed
  7385. * @static
  7386. */
  7387. public static function bulk($jobs, $data = '', $queue = null)
  7388. {
  7389. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7390. return $instance->bulk($jobs, $data, $queue);
  7391. }
  7392. /**
  7393. * Get the jobs that have been pushed.
  7394. *
  7395. * @return array
  7396. * @static
  7397. */
  7398. public static function pushedJobs()
  7399. {
  7400. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7401. return $instance->pushedJobs();
  7402. }
  7403. /**
  7404. * Get the connection name for the queue.
  7405. *
  7406. * @return string
  7407. * @static
  7408. */
  7409. public static function getConnectionName()
  7410. {
  7411. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7412. return $instance->getConnectionName();
  7413. }
  7414. /**
  7415. * Set the connection name for the queue.
  7416. *
  7417. * @param string $name
  7418. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  7419. * @static
  7420. */
  7421. public static function setConnectionName($name)
  7422. {
  7423. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7424. return $instance->setConnectionName($name);
  7425. }
  7426. /**
  7427. * Get the retry delay for an object-based queue handler.
  7428. *
  7429. * @param mixed $job
  7430. * @return mixed
  7431. * @static
  7432. */
  7433. public static function getJobRetryDelay($job)
  7434. { //Method inherited from \Illuminate\Queue\Queue
  7435. /** @var \Illuminate\Queue\SyncQueue $instance */
  7436. return $instance->getJobRetryDelay($job);
  7437. }
  7438. /**
  7439. * Get the expiration timestamp for an object-based queue handler.
  7440. *
  7441. * @param mixed $job
  7442. * @return mixed
  7443. * @static
  7444. */
  7445. public static function getJobExpiration($job)
  7446. { //Method inherited from \Illuminate\Queue\Queue
  7447. /** @var \Illuminate\Queue\SyncQueue $instance */
  7448. return $instance->getJobExpiration($job);
  7449. }
  7450. /**
  7451. * Register a callback to be executed when creating job payloads.
  7452. *
  7453. * @param callable $callback
  7454. * @return void
  7455. * @static
  7456. */
  7457. public static function createPayloadUsing($callback)
  7458. { //Method inherited from \Illuminate\Queue\Queue
  7459. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  7460. }
  7461. /**
  7462. * Set the IoC container instance.
  7463. *
  7464. * @param \Illuminate\Container\Container $container
  7465. * @return void
  7466. * @static
  7467. */
  7468. public static function setContainer($container)
  7469. { //Method inherited from \Illuminate\Queue\Queue
  7470. /** @var \Illuminate\Queue\SyncQueue $instance */
  7471. $instance->setContainer($container);
  7472. }
  7473. }
  7474. /**
  7475. *
  7476. *
  7477. * @see \Illuminate\Routing\Redirector
  7478. */
  7479. class Redirect {
  7480. /**
  7481. * Create a new redirect response to the "home" route.
  7482. *
  7483. * @param int $status
  7484. * @return \Illuminate\Http\RedirectResponse
  7485. * @static
  7486. */
  7487. public static function home($status = 302)
  7488. {
  7489. /** @var \Illuminate\Routing\Redirector $instance */
  7490. return $instance->home($status);
  7491. }
  7492. /**
  7493. * Create a new redirect response to the previous location.
  7494. *
  7495. * @param int $status
  7496. * @param array $headers
  7497. * @param mixed $fallback
  7498. * @return \Illuminate\Http\RedirectResponse
  7499. * @static
  7500. */
  7501. public static function back($status = 302, $headers = [], $fallback = false)
  7502. {
  7503. /** @var \Illuminate\Routing\Redirector $instance */
  7504. return $instance->back($status, $headers, $fallback);
  7505. }
  7506. /**
  7507. * Create a new redirect response to the current URI.
  7508. *
  7509. * @param int $status
  7510. * @param array $headers
  7511. * @return \Illuminate\Http\RedirectResponse
  7512. * @static
  7513. */
  7514. public static function refresh($status = 302, $headers = [])
  7515. {
  7516. /** @var \Illuminate\Routing\Redirector $instance */
  7517. return $instance->refresh($status, $headers);
  7518. }
  7519. /**
  7520. * Create a new redirect response, while putting the current URL in the session.
  7521. *
  7522. * @param string $path
  7523. * @param int $status
  7524. * @param array $headers
  7525. * @param bool|null $secure
  7526. * @return \Illuminate\Http\RedirectResponse
  7527. * @static
  7528. */
  7529. public static function guest($path, $status = 302, $headers = [], $secure = null)
  7530. {
  7531. /** @var \Illuminate\Routing\Redirector $instance */
  7532. return $instance->guest($path, $status, $headers, $secure);
  7533. }
  7534. /**
  7535. * Create a new redirect response to the previously intended location.
  7536. *
  7537. * @param string $default
  7538. * @param int $status
  7539. * @param array $headers
  7540. * @param bool|null $secure
  7541. * @return \Illuminate\Http\RedirectResponse
  7542. * @static
  7543. */
  7544. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  7545. {
  7546. /** @var \Illuminate\Routing\Redirector $instance */
  7547. return $instance->intended($default, $status, $headers, $secure);
  7548. }
  7549. /**
  7550. * Set the intended url.
  7551. *
  7552. * @param string $url
  7553. * @return void
  7554. * @static
  7555. */
  7556. public static function setIntendedUrl($url)
  7557. {
  7558. /** @var \Illuminate\Routing\Redirector $instance */
  7559. $instance->setIntendedUrl($url);
  7560. }
  7561. /**
  7562. * Create a new redirect response to the given path.
  7563. *
  7564. * @param string $path
  7565. * @param int $status
  7566. * @param array $headers
  7567. * @param bool|null $secure
  7568. * @return \Illuminate\Http\RedirectResponse
  7569. * @static
  7570. */
  7571. public static function to($path, $status = 302, $headers = [], $secure = null)
  7572. {
  7573. /** @var \Illuminate\Routing\Redirector $instance */
  7574. return $instance->to($path, $status, $headers, $secure);
  7575. }
  7576. /**
  7577. * Create a new redirect response to an external URL (no validation).
  7578. *
  7579. * @param string $path
  7580. * @param int $status
  7581. * @param array $headers
  7582. * @return \Illuminate\Http\RedirectResponse
  7583. * @static
  7584. */
  7585. public static function away($path, $status = 302, $headers = [])
  7586. {
  7587. /** @var \Illuminate\Routing\Redirector $instance */
  7588. return $instance->away($path, $status, $headers);
  7589. }
  7590. /**
  7591. * Create a new redirect response to the given HTTPS path.
  7592. *
  7593. * @param string $path
  7594. * @param int $status
  7595. * @param array $headers
  7596. * @return \Illuminate\Http\RedirectResponse
  7597. * @static
  7598. */
  7599. public static function secure($path, $status = 302, $headers = [])
  7600. {
  7601. /** @var \Illuminate\Routing\Redirector $instance */
  7602. return $instance->secure($path, $status, $headers);
  7603. }
  7604. /**
  7605. * Create a new redirect response to a named route.
  7606. *
  7607. * @param string $route
  7608. * @param mixed $parameters
  7609. * @param int $status
  7610. * @param array $headers
  7611. * @return \Illuminate\Http\RedirectResponse
  7612. * @static
  7613. */
  7614. public static function route($route, $parameters = [], $status = 302, $headers = [])
  7615. {
  7616. /** @var \Illuminate\Routing\Redirector $instance */
  7617. return $instance->route($route, $parameters, $status, $headers);
  7618. }
  7619. /**
  7620. * Create a new redirect response to a controller action.
  7621. *
  7622. * @param string|array $action
  7623. * @param mixed $parameters
  7624. * @param int $status
  7625. * @param array $headers
  7626. * @return \Illuminate\Http\RedirectResponse
  7627. * @static
  7628. */
  7629. public static function action($action, $parameters = [], $status = 302, $headers = [])
  7630. {
  7631. /** @var \Illuminate\Routing\Redirector $instance */
  7632. return $instance->action($action, $parameters, $status, $headers);
  7633. }
  7634. /**
  7635. * Get the URL generator instance.
  7636. *
  7637. * @return \Illuminate\Routing\UrlGenerator
  7638. * @static
  7639. */
  7640. public static function getUrlGenerator()
  7641. {
  7642. /** @var \Illuminate\Routing\Redirector $instance */
  7643. return $instance->getUrlGenerator();
  7644. }
  7645. /**
  7646. * Set the active session store.
  7647. *
  7648. * @param \Illuminate\Session\Store $session
  7649. * @return void
  7650. * @static
  7651. */
  7652. public static function setSession($session)
  7653. {
  7654. /** @var \Illuminate\Routing\Redirector $instance */
  7655. $instance->setSession($session);
  7656. }
  7657. /**
  7658. * Register a custom macro.
  7659. *
  7660. * @param string $name
  7661. * @param object|callable $macro
  7662. * @return void
  7663. * @static
  7664. */
  7665. public static function macro($name, $macro)
  7666. {
  7667. \Illuminate\Routing\Redirector::macro($name, $macro);
  7668. }
  7669. /**
  7670. * Mix another object into the class.
  7671. *
  7672. * @param object $mixin
  7673. * @param bool $replace
  7674. * @return void
  7675. * @throws \ReflectionException
  7676. * @static
  7677. */
  7678. public static function mixin($mixin, $replace = true)
  7679. {
  7680. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  7681. }
  7682. /**
  7683. * Checks if macro is registered.
  7684. *
  7685. * @param string $name
  7686. * @return bool
  7687. * @static
  7688. */
  7689. public static function hasMacro($name)
  7690. {
  7691. return \Illuminate\Routing\Redirector::hasMacro($name);
  7692. }
  7693. }
  7694. /**
  7695. *
  7696. *
  7697. * @method static mixed filterFiles(mixed $files)
  7698. * @see \Illuminate\Http\Request
  7699. */
  7700. class Request {
  7701. /**
  7702. * Create a new Illuminate HTTP request from server variables.
  7703. *
  7704. * @return static
  7705. * @static
  7706. */
  7707. public static function capture()
  7708. {
  7709. return \Illuminate\Http\Request::capture();
  7710. }
  7711. /**
  7712. * Return the Request instance.
  7713. *
  7714. * @return \Illuminate\Http\Request
  7715. * @static
  7716. */
  7717. public static function instance()
  7718. {
  7719. /** @var \Illuminate\Http\Request $instance */
  7720. return $instance->instance();
  7721. }
  7722. /**
  7723. * Get the request method.
  7724. *
  7725. * @return string
  7726. * @static
  7727. */
  7728. public static function method()
  7729. {
  7730. /** @var \Illuminate\Http\Request $instance */
  7731. return $instance->method();
  7732. }
  7733. /**
  7734. * Get the root URL for the application.
  7735. *
  7736. * @return string
  7737. * @static
  7738. */
  7739. public static function root()
  7740. {
  7741. /** @var \Illuminate\Http\Request $instance */
  7742. return $instance->root();
  7743. }
  7744. /**
  7745. * Get the URL (no query string) for the request.
  7746. *
  7747. * @return string
  7748. * @static
  7749. */
  7750. public static function url()
  7751. {
  7752. /** @var \Illuminate\Http\Request $instance */
  7753. return $instance->url();
  7754. }
  7755. /**
  7756. * Get the full URL for the request.
  7757. *
  7758. * @return string
  7759. * @static
  7760. */
  7761. public static function fullUrl()
  7762. {
  7763. /** @var \Illuminate\Http\Request $instance */
  7764. return $instance->fullUrl();
  7765. }
  7766. /**
  7767. * Get the full URL for the request with the added query string parameters.
  7768. *
  7769. * @param array $query
  7770. * @return string
  7771. * @static
  7772. */
  7773. public static function fullUrlWithQuery($query)
  7774. {
  7775. /** @var \Illuminate\Http\Request $instance */
  7776. return $instance->fullUrlWithQuery($query);
  7777. }
  7778. /**
  7779. * Get the current path info for the request.
  7780. *
  7781. * @return string
  7782. * @static
  7783. */
  7784. public static function path()
  7785. {
  7786. /** @var \Illuminate\Http\Request $instance */
  7787. return $instance->path();
  7788. }
  7789. /**
  7790. * Get the current decoded path info for the request.
  7791. *
  7792. * @return string
  7793. * @static
  7794. */
  7795. public static function decodedPath()
  7796. {
  7797. /** @var \Illuminate\Http\Request $instance */
  7798. return $instance->decodedPath();
  7799. }
  7800. /**
  7801. * Get a segment from the URI (1 based index).
  7802. *
  7803. * @param int $index
  7804. * @param string|null $default
  7805. * @return string|null
  7806. * @static
  7807. */
  7808. public static function segment($index, $default = null)
  7809. {
  7810. /** @var \Illuminate\Http\Request $instance */
  7811. return $instance->segment($index, $default);
  7812. }
  7813. /**
  7814. * Get all of the segments for the request path.
  7815. *
  7816. * @return array
  7817. * @static
  7818. */
  7819. public static function segments()
  7820. {
  7821. /** @var \Illuminate\Http\Request $instance */
  7822. return $instance->segments();
  7823. }
  7824. /**
  7825. * Determine if the current request URI matches a pattern.
  7826. *
  7827. * @param mixed $patterns
  7828. * @return bool
  7829. * @static
  7830. */
  7831. public static function is(...$patterns)
  7832. {
  7833. /** @var \Illuminate\Http\Request $instance */
  7834. return $instance->is(...$patterns);
  7835. }
  7836. /**
  7837. * Determine if the route name matches a given pattern.
  7838. *
  7839. * @param mixed $patterns
  7840. * @return bool
  7841. * @static
  7842. */
  7843. public static function routeIs(...$patterns)
  7844. {
  7845. /** @var \Illuminate\Http\Request $instance */
  7846. return $instance->routeIs(...$patterns);
  7847. }
  7848. /**
  7849. * Determine if the current request URL and query string matches a pattern.
  7850. *
  7851. * @param mixed $patterns
  7852. * @return bool
  7853. * @static
  7854. */
  7855. public static function fullUrlIs(...$patterns)
  7856. {
  7857. /** @var \Illuminate\Http\Request $instance */
  7858. return $instance->fullUrlIs(...$patterns);
  7859. }
  7860. /**
  7861. * Determine if the request is the result of an AJAX call.
  7862. *
  7863. * @return bool
  7864. * @static
  7865. */
  7866. public static function ajax()
  7867. {
  7868. /** @var \Illuminate\Http\Request $instance */
  7869. return $instance->ajax();
  7870. }
  7871. /**
  7872. * Determine if the request is the result of an PJAX call.
  7873. *
  7874. * @return bool
  7875. * @static
  7876. */
  7877. public static function pjax()
  7878. {
  7879. /** @var \Illuminate\Http\Request $instance */
  7880. return $instance->pjax();
  7881. }
  7882. /**
  7883. * Determine if the request is the result of an prefetch call.
  7884. *
  7885. * @return bool
  7886. * @static
  7887. */
  7888. public static function prefetch()
  7889. {
  7890. /** @var \Illuminate\Http\Request $instance */
  7891. return $instance->prefetch();
  7892. }
  7893. /**
  7894. * Determine if the request is over HTTPS.
  7895. *
  7896. * @return bool
  7897. * @static
  7898. */
  7899. public static function secure()
  7900. {
  7901. /** @var \Illuminate\Http\Request $instance */
  7902. return $instance->secure();
  7903. }
  7904. /**
  7905. * Get the client IP address.
  7906. *
  7907. * @return string|null
  7908. * @static
  7909. */
  7910. public static function ip()
  7911. {
  7912. /** @var \Illuminate\Http\Request $instance */
  7913. return $instance->ip();
  7914. }
  7915. /**
  7916. * Get the client IP addresses.
  7917. *
  7918. * @return array
  7919. * @static
  7920. */
  7921. public static function ips()
  7922. {
  7923. /** @var \Illuminate\Http\Request $instance */
  7924. return $instance->ips();
  7925. }
  7926. /**
  7927. * Get the client user agent.
  7928. *
  7929. * @return string|null
  7930. * @static
  7931. */
  7932. public static function userAgent()
  7933. {
  7934. /** @var \Illuminate\Http\Request $instance */
  7935. return $instance->userAgent();
  7936. }
  7937. /**
  7938. * Merge new input into the current request's input array.
  7939. *
  7940. * @param array $input
  7941. * @return \Illuminate\Http\Request
  7942. * @static
  7943. */
  7944. public static function merge($input)
  7945. {
  7946. /** @var \Illuminate\Http\Request $instance */
  7947. return $instance->merge($input);
  7948. }
  7949. /**
  7950. * Replace the input for the current request.
  7951. *
  7952. * @param array $input
  7953. * @return \Illuminate\Http\Request
  7954. * @static
  7955. */
  7956. public static function replace($input)
  7957. {
  7958. /** @var \Illuminate\Http\Request $instance */
  7959. return $instance->replace($input);
  7960. }
  7961. /**
  7962. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  7963. *
  7964. * Instead, you may use the "input" method.
  7965. *
  7966. * @param string $key
  7967. * @param mixed $default
  7968. * @return mixed
  7969. * @static
  7970. */
  7971. public static function get($key, $default = null)
  7972. {
  7973. /** @var \Illuminate\Http\Request $instance */
  7974. return $instance->get($key, $default);
  7975. }
  7976. /**
  7977. * Get the JSON payload for the request.
  7978. *
  7979. * @param string|null $key
  7980. * @param mixed $default
  7981. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7982. * @static
  7983. */
  7984. public static function json($key = null, $default = null)
  7985. {
  7986. /** @var \Illuminate\Http\Request $instance */
  7987. return $instance->json($key, $default);
  7988. }
  7989. /**
  7990. * Create a new request instance from the given Laravel request.
  7991. *
  7992. * @param \Illuminate\Http\Request $from
  7993. * @param \Illuminate\Http\Request|null $to
  7994. * @return static
  7995. * @static
  7996. */
  7997. public static function createFrom($from, $to = null)
  7998. {
  7999. return \Illuminate\Http\Request::createFrom($from, $to);
  8000. }
  8001. /**
  8002. * Create an Illuminate request from a Symfony instance.
  8003. *
  8004. * @param \Symfony\Component\HttpFoundation\Request $request
  8005. * @return static
  8006. * @static
  8007. */
  8008. public static function createFromBase($request)
  8009. {
  8010. return \Illuminate\Http\Request::createFromBase($request);
  8011. }
  8012. /**
  8013. * Clones a request and overrides some of its parameters.
  8014. *
  8015. * @param array $query The GET parameters
  8016. * @param array $request The POST parameters
  8017. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8018. * @param array $cookies The COOKIE parameters
  8019. * @param array $files The FILES parameters
  8020. * @param array $server The SERVER parameters
  8021. * @return static
  8022. * @static
  8023. */
  8024. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  8025. {
  8026. /** @var \Illuminate\Http\Request $instance */
  8027. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  8028. }
  8029. /**
  8030. * Get the session associated with the request.
  8031. *
  8032. * @return \Illuminate\Session\Store
  8033. * @throws \RuntimeException
  8034. * @static
  8035. */
  8036. public static function session()
  8037. {
  8038. /** @var \Illuminate\Http\Request $instance */
  8039. return $instance->session();
  8040. }
  8041. /**
  8042. * Get the session associated with the request.
  8043. *
  8044. * @return \Illuminate\Session\Store|null
  8045. * @static
  8046. */
  8047. public static function getSession()
  8048. {
  8049. /** @var \Illuminate\Http\Request $instance */
  8050. return $instance->getSession();
  8051. }
  8052. /**
  8053. * Set the session instance on the request.
  8054. *
  8055. * @param \Illuminate\Contracts\Session\Session $session
  8056. * @return void
  8057. * @static
  8058. */
  8059. public static function setLaravelSession($session)
  8060. {
  8061. /** @var \Illuminate\Http\Request $instance */
  8062. $instance->setLaravelSession($session);
  8063. }
  8064. /**
  8065. * Get the user making the request.
  8066. *
  8067. * @param string|null $guard
  8068. * @return mixed
  8069. * @static
  8070. */
  8071. public static function user($guard = null)
  8072. {
  8073. /** @var \Illuminate\Http\Request $instance */
  8074. return $instance->user($guard);
  8075. }
  8076. /**
  8077. * Get the route handling the request.
  8078. *
  8079. * @param string|null $param
  8080. * @param mixed $default
  8081. * @return \Illuminate\Routing\Route|object|string|null
  8082. * @static
  8083. */
  8084. public static function route($param = null, $default = null)
  8085. {
  8086. /** @var \Illuminate\Http\Request $instance */
  8087. return $instance->route($param, $default);
  8088. }
  8089. /**
  8090. * Get a unique fingerprint for the request / route / IP address.
  8091. *
  8092. * @return string
  8093. * @throws \RuntimeException
  8094. * @static
  8095. */
  8096. public static function fingerprint()
  8097. {
  8098. /** @var \Illuminate\Http\Request $instance */
  8099. return $instance->fingerprint();
  8100. }
  8101. /**
  8102. * Set the JSON payload for the request.
  8103. *
  8104. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  8105. * @return \Illuminate\Http\Request
  8106. * @static
  8107. */
  8108. public static function setJson($json)
  8109. {
  8110. /** @var \Illuminate\Http\Request $instance */
  8111. return $instance->setJson($json);
  8112. }
  8113. /**
  8114. * Get the user resolver callback.
  8115. *
  8116. * @return \Closure
  8117. * @static
  8118. */
  8119. public static function getUserResolver()
  8120. {
  8121. /** @var \Illuminate\Http\Request $instance */
  8122. return $instance->getUserResolver();
  8123. }
  8124. /**
  8125. * Set the user resolver callback.
  8126. *
  8127. * @param \Closure $callback
  8128. * @return \Illuminate\Http\Request
  8129. * @static
  8130. */
  8131. public static function setUserResolver($callback)
  8132. {
  8133. /** @var \Illuminate\Http\Request $instance */
  8134. return $instance->setUserResolver($callback);
  8135. }
  8136. /**
  8137. * Get the route resolver callback.
  8138. *
  8139. * @return \Closure
  8140. * @static
  8141. */
  8142. public static function getRouteResolver()
  8143. {
  8144. /** @var \Illuminate\Http\Request $instance */
  8145. return $instance->getRouteResolver();
  8146. }
  8147. /**
  8148. * Set the route resolver callback.
  8149. *
  8150. * @param \Closure $callback
  8151. * @return \Illuminate\Http\Request
  8152. * @static
  8153. */
  8154. public static function setRouteResolver($callback)
  8155. {
  8156. /** @var \Illuminate\Http\Request $instance */
  8157. return $instance->setRouteResolver($callback);
  8158. }
  8159. /**
  8160. * Get all of the input and files for the request.
  8161. *
  8162. * @return array
  8163. * @static
  8164. */
  8165. public static function toArray()
  8166. {
  8167. /** @var \Illuminate\Http\Request $instance */
  8168. return $instance->toArray();
  8169. }
  8170. /**
  8171. * Determine if the given offset exists.
  8172. *
  8173. * @param string $offset
  8174. * @return bool
  8175. * @static
  8176. */
  8177. public static function offsetExists($offset)
  8178. {
  8179. /** @var \Illuminate\Http\Request $instance */
  8180. return $instance->offsetExists($offset);
  8181. }
  8182. /**
  8183. * Get the value at the given offset.
  8184. *
  8185. * @param string $offset
  8186. * @return mixed
  8187. * @static
  8188. */
  8189. public static function offsetGet($offset)
  8190. {
  8191. /** @var \Illuminate\Http\Request $instance */
  8192. return $instance->offsetGet($offset);
  8193. }
  8194. /**
  8195. * Set the value at the given offset.
  8196. *
  8197. * @param string $offset
  8198. * @param mixed $value
  8199. * @return void
  8200. * @static
  8201. */
  8202. public static function offsetSet($offset, $value)
  8203. {
  8204. /** @var \Illuminate\Http\Request $instance */
  8205. $instance->offsetSet($offset, $value);
  8206. }
  8207. /**
  8208. * Remove the value at the given offset.
  8209. *
  8210. * @param string $offset
  8211. * @return void
  8212. * @static
  8213. */
  8214. public static function offsetUnset($offset)
  8215. {
  8216. /** @var \Illuminate\Http\Request $instance */
  8217. $instance->offsetUnset($offset);
  8218. }
  8219. /**
  8220. * Sets the parameters for this request.
  8221. *
  8222. * This method also re-initializes all properties.
  8223. *
  8224. * @param array $query The GET parameters
  8225. * @param array $request The POST parameters
  8226. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8227. * @param array $cookies The COOKIE parameters
  8228. * @param array $files The FILES parameters
  8229. * @param array $server The SERVER parameters
  8230. * @param string|resource|null $content The raw body data
  8231. * @static
  8232. */
  8233. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  8234. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8235. /** @var \Illuminate\Http\Request $instance */
  8236. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  8237. }
  8238. /**
  8239. * Creates a new request with values from PHP's super globals.
  8240. *
  8241. * @return static
  8242. * @static
  8243. */
  8244. public static function createFromGlobals()
  8245. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8246. return \Illuminate\Http\Request::createFromGlobals();
  8247. }
  8248. /**
  8249. * Creates a Request based on a given URI and configuration.
  8250. *
  8251. * The information contained in the URI always take precedence
  8252. * over the other information (server and parameters).
  8253. *
  8254. * @param string $uri The URI
  8255. * @param string $method The HTTP method
  8256. * @param array $parameters The query (GET) or request (POST) parameters
  8257. * @param array $cookies The request cookies ($_COOKIE)
  8258. * @param array $files The request files ($_FILES)
  8259. * @param array $server The server parameters ($_SERVER)
  8260. * @param string|resource|null $content The raw body data
  8261. * @return static
  8262. * @static
  8263. */
  8264. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  8265. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8266. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  8267. }
  8268. /**
  8269. * Sets a callable able to create a Request instance.
  8270. *
  8271. * This is mainly useful when you need to override the Request class
  8272. * to keep BC with an existing system. It should not be used for any
  8273. * other purpose.
  8274. *
  8275. * @param callable|null $callable A PHP callable
  8276. * @static
  8277. */
  8278. public static function setFactory($callable)
  8279. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8280. return \Illuminate\Http\Request::setFactory($callable);
  8281. }
  8282. /**
  8283. * Overrides the PHP global variables according to this request instance.
  8284. *
  8285. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  8286. * $_FILES is never overridden, see rfc1867
  8287. *
  8288. * @static
  8289. */
  8290. public static function overrideGlobals()
  8291. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8292. /** @var \Illuminate\Http\Request $instance */
  8293. return $instance->overrideGlobals();
  8294. }
  8295. /**
  8296. * Sets a list of trusted proxies.
  8297. *
  8298. * You should only list the reverse proxies that you manage directly.
  8299. *
  8300. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  8301. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  8302. * @static
  8303. */
  8304. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8305. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8306. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8307. }
  8308. /**
  8309. * Gets the list of trusted proxies.
  8310. *
  8311. * @return array An array of trusted proxies
  8312. * @static
  8313. */
  8314. public static function getTrustedProxies()
  8315. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8316. return \Illuminate\Http\Request::getTrustedProxies();
  8317. }
  8318. /**
  8319. * Gets the set of trusted headers from trusted proxies.
  8320. *
  8321. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8322. * @static
  8323. */
  8324. public static function getTrustedHeaderSet()
  8325. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8326. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8327. }
  8328. /**
  8329. * Sets a list of trusted host patterns.
  8330. *
  8331. * You should only list the hosts you manage using regexs.
  8332. *
  8333. * @param array $hostPatterns A list of trusted host patterns
  8334. * @static
  8335. */
  8336. public static function setTrustedHosts($hostPatterns)
  8337. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8338. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8339. }
  8340. /**
  8341. * Gets the list of trusted host patterns.
  8342. *
  8343. * @return array An array of trusted host patterns
  8344. * @static
  8345. */
  8346. public static function getTrustedHosts()
  8347. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8348. return \Illuminate\Http\Request::getTrustedHosts();
  8349. }
  8350. /**
  8351. * Normalizes a query string.
  8352. *
  8353. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8354. * have consistent escaping and unneeded delimiters are removed.
  8355. *
  8356. * @param string $qs Query string
  8357. * @return string A normalized query string for the Request
  8358. * @static
  8359. */
  8360. public static function normalizeQueryString($qs)
  8361. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8362. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8363. }
  8364. /**
  8365. * Enables support for the _method request parameter to determine the intended HTTP method.
  8366. *
  8367. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8368. * Check that you are using CSRF tokens when required.
  8369. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8370. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8371. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8372. *
  8373. * The HTTP method can only be overridden when the real HTTP method is POST.
  8374. *
  8375. * @static
  8376. */
  8377. public static function enableHttpMethodParameterOverride()
  8378. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8379. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8380. }
  8381. /**
  8382. * Checks whether support for the _method request parameter is enabled.
  8383. *
  8384. * @return bool True when the _method request parameter is enabled, false otherwise
  8385. * @static
  8386. */
  8387. public static function getHttpMethodParameterOverride()
  8388. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8389. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8390. }
  8391. /**
  8392. * Whether the request contains a Session which was started in one of the
  8393. * previous requests.
  8394. *
  8395. * @return bool
  8396. * @static
  8397. */
  8398. public static function hasPreviousSession()
  8399. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8400. /** @var \Illuminate\Http\Request $instance */
  8401. return $instance->hasPreviousSession();
  8402. }
  8403. /**
  8404. * Whether the request contains a Session object.
  8405. *
  8406. * This method does not give any information about the state of the session object,
  8407. * like whether the session is started or not. It is just a way to check if this Request
  8408. * is associated with a Session instance.
  8409. *
  8410. * @return bool true when the Request contains a Session object, false otherwise
  8411. * @static
  8412. */
  8413. public static function hasSession()
  8414. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8415. /** @var \Illuminate\Http\Request $instance */
  8416. return $instance->hasSession();
  8417. }
  8418. /**
  8419. *
  8420. *
  8421. * @static
  8422. */
  8423. public static function setSession($session)
  8424. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8425. /** @var \Illuminate\Http\Request $instance */
  8426. return $instance->setSession($session);
  8427. }
  8428. /**
  8429. *
  8430. *
  8431. * @internal
  8432. * @static
  8433. */
  8434. public static function setSessionFactory($factory)
  8435. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8436. /** @var \Illuminate\Http\Request $instance */
  8437. return $instance->setSessionFactory($factory);
  8438. }
  8439. /**
  8440. * Returns the client IP addresses.
  8441. *
  8442. * In the returned array the most trusted IP address is first, and the
  8443. * least trusted one last. The "real" client IP address is the last one,
  8444. * but this is also the least trusted one. Trusted proxies are stripped.
  8445. *
  8446. * Use this method carefully; you should use getClientIp() instead.
  8447. *
  8448. * @return array The client IP addresses
  8449. * @see getClientIp()
  8450. * @static
  8451. */
  8452. public static function getClientIps()
  8453. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8454. /** @var \Illuminate\Http\Request $instance */
  8455. return $instance->getClientIps();
  8456. }
  8457. /**
  8458. * Returns the client IP address.
  8459. *
  8460. * This method can read the client IP address from the "X-Forwarded-For" header
  8461. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8462. * header value is a comma+space separated list of IP addresses, the left-most
  8463. * being the original client, and each successive proxy that passed the request
  8464. * adding the IP address where it received the request from.
  8465. *
  8466. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  8467. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  8468. * argument of the Request::setTrustedProxies() method instead.
  8469. *
  8470. * @return string|null The client IP address
  8471. * @see getClientIps()
  8472. * @see https://wikipedia.org/wiki/X-Forwarded-For
  8473. * @static
  8474. */
  8475. public static function getClientIp()
  8476. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8477. /** @var \Illuminate\Http\Request $instance */
  8478. return $instance->getClientIp();
  8479. }
  8480. /**
  8481. * Returns current script name.
  8482. *
  8483. * @return string
  8484. * @static
  8485. */
  8486. public static function getScriptName()
  8487. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8488. /** @var \Illuminate\Http\Request $instance */
  8489. return $instance->getScriptName();
  8490. }
  8491. /**
  8492. * Returns the path being requested relative to the executed script.
  8493. *
  8494. * The path info always starts with a /.
  8495. *
  8496. * Suppose this request is instantiated from /mysite on localhost:
  8497. *
  8498. * * http://localhost/mysite returns an empty string
  8499. * * http://localhost/mysite/about returns '/about'
  8500. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8501. * * http://localhost/mysite/about?var=1 returns '/about'
  8502. *
  8503. * @return string The raw path (i.e. not urldecoded)
  8504. * @static
  8505. */
  8506. public static function getPathInfo()
  8507. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8508. /** @var \Illuminate\Http\Request $instance */
  8509. return $instance->getPathInfo();
  8510. }
  8511. /**
  8512. * Returns the root path from which this request is executed.
  8513. *
  8514. * Suppose that an index.php file instantiates this request object:
  8515. *
  8516. * * http://localhost/index.php returns an empty string
  8517. * * http://localhost/index.php/page returns an empty string
  8518. * * http://localhost/web/index.php returns '/web'
  8519. * * http://localhost/we%20b/index.php returns '/we%20b'
  8520. *
  8521. * @return string The raw path (i.e. not urldecoded)
  8522. * @static
  8523. */
  8524. public static function getBasePath()
  8525. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8526. /** @var \Illuminate\Http\Request $instance */
  8527. return $instance->getBasePath();
  8528. }
  8529. /**
  8530. * Returns the root URL from which this request is executed.
  8531. *
  8532. * The base URL never ends with a /.
  8533. *
  8534. * This is similar to getBasePath(), except that it also includes the
  8535. * script filename (e.g. index.php) if one exists.
  8536. *
  8537. * @return string The raw URL (i.e. not urldecoded)
  8538. * @static
  8539. */
  8540. public static function getBaseUrl()
  8541. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8542. /** @var \Illuminate\Http\Request $instance */
  8543. return $instance->getBaseUrl();
  8544. }
  8545. /**
  8546. * Gets the request's scheme.
  8547. *
  8548. * @return string
  8549. * @static
  8550. */
  8551. public static function getScheme()
  8552. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8553. /** @var \Illuminate\Http\Request $instance */
  8554. return $instance->getScheme();
  8555. }
  8556. /**
  8557. * Returns the port on which the request is made.
  8558. *
  8559. * This method can read the client port from the "X-Forwarded-Port" header
  8560. * when trusted proxies were set via "setTrustedProxies()".
  8561. *
  8562. * The "X-Forwarded-Port" header must contain the client port.
  8563. *
  8564. * @return int|string can be a string if fetched from the server bag
  8565. * @static
  8566. */
  8567. public static function getPort()
  8568. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8569. /** @var \Illuminate\Http\Request $instance */
  8570. return $instance->getPort();
  8571. }
  8572. /**
  8573. * Returns the user.
  8574. *
  8575. * @return string|null
  8576. * @static
  8577. */
  8578. public static function getUser()
  8579. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8580. /** @var \Illuminate\Http\Request $instance */
  8581. return $instance->getUser();
  8582. }
  8583. /**
  8584. * Returns the password.
  8585. *
  8586. * @return string|null
  8587. * @static
  8588. */
  8589. public static function getPassword()
  8590. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8591. /** @var \Illuminate\Http\Request $instance */
  8592. return $instance->getPassword();
  8593. }
  8594. /**
  8595. * Gets the user info.
  8596. *
  8597. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  8598. * @static
  8599. */
  8600. public static function getUserInfo()
  8601. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8602. /** @var \Illuminate\Http\Request $instance */
  8603. return $instance->getUserInfo();
  8604. }
  8605. /**
  8606. * Returns the HTTP host being requested.
  8607. *
  8608. * The port name will be appended to the host if it's non-standard.
  8609. *
  8610. * @return string
  8611. * @static
  8612. */
  8613. public static function getHttpHost()
  8614. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8615. /** @var \Illuminate\Http\Request $instance */
  8616. return $instance->getHttpHost();
  8617. }
  8618. /**
  8619. * Returns the requested URI (path and query string).
  8620. *
  8621. * @return string The raw URI (i.e. not URI decoded)
  8622. * @static
  8623. */
  8624. public static function getRequestUri()
  8625. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8626. /** @var \Illuminate\Http\Request $instance */
  8627. return $instance->getRequestUri();
  8628. }
  8629. /**
  8630. * Gets the scheme and HTTP host.
  8631. *
  8632. * If the URL was called with basic authentication, the user
  8633. * and the password are not added to the generated string.
  8634. *
  8635. * @return string The scheme and HTTP host
  8636. * @static
  8637. */
  8638. public static function getSchemeAndHttpHost()
  8639. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8640. /** @var \Illuminate\Http\Request $instance */
  8641. return $instance->getSchemeAndHttpHost();
  8642. }
  8643. /**
  8644. * Generates a normalized URI (URL) for the Request.
  8645. *
  8646. * @return string A normalized URI (URL) for the Request
  8647. * @see getQueryString()
  8648. * @static
  8649. */
  8650. public static function getUri()
  8651. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8652. /** @var \Illuminate\Http\Request $instance */
  8653. return $instance->getUri();
  8654. }
  8655. /**
  8656. * Generates a normalized URI for the given path.
  8657. *
  8658. * @param string $path A path to use instead of the current one
  8659. * @return string The normalized URI for the path
  8660. * @static
  8661. */
  8662. public static function getUriForPath($path)
  8663. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8664. /** @var \Illuminate\Http\Request $instance */
  8665. return $instance->getUriForPath($path);
  8666. }
  8667. /**
  8668. * Returns the path as relative reference from the current Request path.
  8669. *
  8670. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8671. * Both paths must be absolute and not contain relative parts.
  8672. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8673. * Furthermore, they can be used to reduce the link size in documents.
  8674. *
  8675. * Example target paths, given a base path of "/a/b/c/d":
  8676. * - "/a/b/c/d" -> ""
  8677. * - "/a/b/c/" -> "./"
  8678. * - "/a/b/" -> "../"
  8679. * - "/a/b/c/other" -> "other"
  8680. * - "/a/x/y" -> "../../x/y"
  8681. *
  8682. * @param string $path The target path
  8683. * @return string The relative target path
  8684. * @static
  8685. */
  8686. public static function getRelativeUriForPath($path)
  8687. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8688. /** @var \Illuminate\Http\Request $instance */
  8689. return $instance->getRelativeUriForPath($path);
  8690. }
  8691. /**
  8692. * Generates the normalized query string for the Request.
  8693. *
  8694. * It builds a normalized query string, where keys/value pairs are alphabetized
  8695. * and have consistent escaping.
  8696. *
  8697. * @return string|null A normalized query string for the Request
  8698. * @static
  8699. */
  8700. public static function getQueryString()
  8701. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8702. /** @var \Illuminate\Http\Request $instance */
  8703. return $instance->getQueryString();
  8704. }
  8705. /**
  8706. * Checks whether the request is secure or not.
  8707. *
  8708. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8709. * when trusted proxies were set via "setTrustedProxies()".
  8710. *
  8711. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8712. *
  8713. * @return bool
  8714. * @static
  8715. */
  8716. public static function isSecure()
  8717. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8718. /** @var \Illuminate\Http\Request $instance */
  8719. return $instance->isSecure();
  8720. }
  8721. /**
  8722. * Returns the host name.
  8723. *
  8724. * This method can read the client host name from the "X-Forwarded-Host" header
  8725. * when trusted proxies were set via "setTrustedProxies()".
  8726. *
  8727. * The "X-Forwarded-Host" header must contain the client host name.
  8728. *
  8729. * @return string
  8730. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8731. * @static
  8732. */
  8733. public static function getHost()
  8734. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8735. /** @var \Illuminate\Http\Request $instance */
  8736. return $instance->getHost();
  8737. }
  8738. /**
  8739. * Sets the request method.
  8740. *
  8741. * @param string $method
  8742. * @static
  8743. */
  8744. public static function setMethod($method)
  8745. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8746. /** @var \Illuminate\Http\Request $instance */
  8747. return $instance->setMethod($method);
  8748. }
  8749. /**
  8750. * Gets the request "intended" method.
  8751. *
  8752. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8753. * then it is used to determine the "real" intended HTTP method.
  8754. *
  8755. * The _method request parameter can also be used to determine the HTTP method,
  8756. * but only if enableHttpMethodParameterOverride() has been called.
  8757. *
  8758. * The method is always an uppercased string.
  8759. *
  8760. * @return string The request method
  8761. * @see getRealMethod()
  8762. * @static
  8763. */
  8764. public static function getMethod()
  8765. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8766. /** @var \Illuminate\Http\Request $instance */
  8767. return $instance->getMethod();
  8768. }
  8769. /**
  8770. * Gets the "real" request method.
  8771. *
  8772. * @return string The request method
  8773. * @see getMethod()
  8774. * @static
  8775. */
  8776. public static function getRealMethod()
  8777. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8778. /** @var \Illuminate\Http\Request $instance */
  8779. return $instance->getRealMethod();
  8780. }
  8781. /**
  8782. * Gets the mime type associated with the format.
  8783. *
  8784. * @param string $format The format
  8785. * @return string|null The associated mime type (null if not found)
  8786. * @static
  8787. */
  8788. public static function getMimeType($format)
  8789. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8790. /** @var \Illuminate\Http\Request $instance */
  8791. return $instance->getMimeType($format);
  8792. }
  8793. /**
  8794. * Gets the mime types associated with the format.
  8795. *
  8796. * @param string $format The format
  8797. * @return array The associated mime types
  8798. * @static
  8799. */
  8800. public static function getMimeTypes($format)
  8801. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8802. return \Illuminate\Http\Request::getMimeTypes($format);
  8803. }
  8804. /**
  8805. * Gets the format associated with the mime type.
  8806. *
  8807. * @param string $mimeType The associated mime type
  8808. * @return string|null The format (null if not found)
  8809. * @static
  8810. */
  8811. public static function getFormat($mimeType)
  8812. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8813. /** @var \Illuminate\Http\Request $instance */
  8814. return $instance->getFormat($mimeType);
  8815. }
  8816. /**
  8817. * Associates a format with mime types.
  8818. *
  8819. * @param string $format The format
  8820. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8821. * @static
  8822. */
  8823. public static function setFormat($format, $mimeTypes)
  8824. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8825. /** @var \Illuminate\Http\Request $instance */
  8826. return $instance->setFormat($format, $mimeTypes);
  8827. }
  8828. /**
  8829. * Gets the request format.
  8830. *
  8831. * Here is the process to determine the format:
  8832. *
  8833. * * format defined by the user (with setRequestFormat())
  8834. * * _format request attribute
  8835. * * $default
  8836. *
  8837. * @see getPreferredFormat
  8838. * @param string|null $default The default format
  8839. * @return string|null The request format
  8840. * @static
  8841. */
  8842. public static function getRequestFormat($default = 'html')
  8843. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8844. /** @var \Illuminate\Http\Request $instance */
  8845. return $instance->getRequestFormat($default);
  8846. }
  8847. /**
  8848. * Sets the request format.
  8849. *
  8850. * @param string $format The request format
  8851. * @static
  8852. */
  8853. public static function setRequestFormat($format)
  8854. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8855. /** @var \Illuminate\Http\Request $instance */
  8856. return $instance->setRequestFormat($format);
  8857. }
  8858. /**
  8859. * Gets the format associated with the request.
  8860. *
  8861. * @return string|null The format (null if no content type is present)
  8862. * @static
  8863. */
  8864. public static function getContentType()
  8865. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8866. /** @var \Illuminate\Http\Request $instance */
  8867. return $instance->getContentType();
  8868. }
  8869. /**
  8870. * Sets the default locale.
  8871. *
  8872. * @param string $locale
  8873. * @static
  8874. */
  8875. public static function setDefaultLocale($locale)
  8876. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8877. /** @var \Illuminate\Http\Request $instance */
  8878. return $instance->setDefaultLocale($locale);
  8879. }
  8880. /**
  8881. * Get the default locale.
  8882. *
  8883. * @return string
  8884. * @static
  8885. */
  8886. public static function getDefaultLocale()
  8887. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8888. /** @var \Illuminate\Http\Request $instance */
  8889. return $instance->getDefaultLocale();
  8890. }
  8891. /**
  8892. * Sets the locale.
  8893. *
  8894. * @param string $locale
  8895. * @static
  8896. */
  8897. public static function setLocale($locale)
  8898. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8899. /** @var \Illuminate\Http\Request $instance */
  8900. return $instance->setLocale($locale);
  8901. }
  8902. /**
  8903. * Get the locale.
  8904. *
  8905. * @return string
  8906. * @static
  8907. */
  8908. public static function getLocale()
  8909. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8910. /** @var \Illuminate\Http\Request $instance */
  8911. return $instance->getLocale();
  8912. }
  8913. /**
  8914. * Checks if the request method is of specified type.
  8915. *
  8916. * @param string $method Uppercase request method (GET, POST etc)
  8917. * @return bool
  8918. * @static
  8919. */
  8920. public static function isMethod($method)
  8921. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8922. /** @var \Illuminate\Http\Request $instance */
  8923. return $instance->isMethod($method);
  8924. }
  8925. /**
  8926. * Checks whether or not the method is safe.
  8927. *
  8928. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8929. * @return bool
  8930. * @static
  8931. */
  8932. public static function isMethodSafe()
  8933. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8934. /** @var \Illuminate\Http\Request $instance */
  8935. return $instance->isMethodSafe();
  8936. }
  8937. /**
  8938. * Checks whether or not the method is idempotent.
  8939. *
  8940. * @return bool
  8941. * @static
  8942. */
  8943. public static function isMethodIdempotent()
  8944. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8945. /** @var \Illuminate\Http\Request $instance */
  8946. return $instance->isMethodIdempotent();
  8947. }
  8948. /**
  8949. * Checks whether the method is cacheable or not.
  8950. *
  8951. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8952. * @return bool True for GET and HEAD, false otherwise
  8953. * @static
  8954. */
  8955. public static function isMethodCacheable()
  8956. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8957. /** @var \Illuminate\Http\Request $instance */
  8958. return $instance->isMethodCacheable();
  8959. }
  8960. /**
  8961. * Returns the protocol version.
  8962. *
  8963. * If the application is behind a proxy, the protocol version used in the
  8964. * requests between the client and the proxy and between the proxy and the
  8965. * server might be different. This returns the former (from the "Via" header)
  8966. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8967. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8968. *
  8969. * @return string|null
  8970. * @static
  8971. */
  8972. public static function getProtocolVersion()
  8973. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8974. /** @var \Illuminate\Http\Request $instance */
  8975. return $instance->getProtocolVersion();
  8976. }
  8977. /**
  8978. * Returns the request body content.
  8979. *
  8980. * @param bool $asResource If true, a resource will be returned
  8981. * @return string|resource The request body content or a resource to read the body stream
  8982. * @static
  8983. */
  8984. public static function getContent($asResource = false)
  8985. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8986. /** @var \Illuminate\Http\Request $instance */
  8987. return $instance->getContent($asResource);
  8988. }
  8989. /**
  8990. * Gets the Etags.
  8991. *
  8992. * @return array The entity tags
  8993. * @static
  8994. */
  8995. public static function getETags()
  8996. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8997. /** @var \Illuminate\Http\Request $instance */
  8998. return $instance->getETags();
  8999. }
  9000. /**
  9001. *
  9002. *
  9003. * @return bool
  9004. * @static
  9005. */
  9006. public static function isNoCache()
  9007. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9008. /** @var \Illuminate\Http\Request $instance */
  9009. return $instance->isNoCache();
  9010. }
  9011. /**
  9012. * Gets the preferred format for the response by inspecting, in the following order:
  9013. * * the request format set using setRequestFormat
  9014. * * the values of the Accept HTTP header.
  9015. *
  9016. * Note that if you use this method, you should send the "Vary: Accept" header
  9017. * in the response to prevent any issues with intermediary HTTP caches.
  9018. *
  9019. * @static
  9020. */
  9021. public static function getPreferredFormat($default = 'html')
  9022. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9023. /** @var \Illuminate\Http\Request $instance */
  9024. return $instance->getPreferredFormat($default);
  9025. }
  9026. /**
  9027. * Returns the preferred language.
  9028. *
  9029. * @param string[] $locales An array of ordered available locales
  9030. * @return string|null The preferred locale
  9031. * @static
  9032. */
  9033. public static function getPreferredLanguage($locales = null)
  9034. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9035. /** @var \Illuminate\Http\Request $instance */
  9036. return $instance->getPreferredLanguage($locales);
  9037. }
  9038. /**
  9039. * Gets a list of languages acceptable by the client browser.
  9040. *
  9041. * @return array Languages ordered in the user browser preferences
  9042. * @static
  9043. */
  9044. public static function getLanguages()
  9045. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9046. /** @var \Illuminate\Http\Request $instance */
  9047. return $instance->getLanguages();
  9048. }
  9049. /**
  9050. * Gets a list of charsets acceptable by the client browser.
  9051. *
  9052. * @return array List of charsets in preferable order
  9053. * @static
  9054. */
  9055. public static function getCharsets()
  9056. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9057. /** @var \Illuminate\Http\Request $instance */
  9058. return $instance->getCharsets();
  9059. }
  9060. /**
  9061. * Gets a list of encodings acceptable by the client browser.
  9062. *
  9063. * @return array List of encodings in preferable order
  9064. * @static
  9065. */
  9066. public static function getEncodings()
  9067. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9068. /** @var \Illuminate\Http\Request $instance */
  9069. return $instance->getEncodings();
  9070. }
  9071. /**
  9072. * Gets a list of content types acceptable by the client browser.
  9073. *
  9074. * @return array List of content types in preferable order
  9075. * @static
  9076. */
  9077. public static function getAcceptableContentTypes()
  9078. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9079. /** @var \Illuminate\Http\Request $instance */
  9080. return $instance->getAcceptableContentTypes();
  9081. }
  9082. /**
  9083. * Returns true if the request is an XMLHttpRequest.
  9084. *
  9085. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  9086. * It is known to work with common JavaScript frameworks:
  9087. *
  9088. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  9089. * @return bool true if the request is an XMLHttpRequest, false otherwise
  9090. * @static
  9091. */
  9092. public static function isXmlHttpRequest()
  9093. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9094. /** @var \Illuminate\Http\Request $instance */
  9095. return $instance->isXmlHttpRequest();
  9096. }
  9097. /**
  9098. * Indicates whether this request originated from a trusted proxy.
  9099. *
  9100. * This can be useful to determine whether or not to trust the
  9101. * contents of a proxy-specific header.
  9102. *
  9103. * @return bool true if the request came from a trusted proxy, false otherwise
  9104. * @static
  9105. */
  9106. public static function isFromTrustedProxy()
  9107. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9108. /** @var \Illuminate\Http\Request $instance */
  9109. return $instance->isFromTrustedProxy();
  9110. }
  9111. /**
  9112. * Determine if the given content types match.
  9113. *
  9114. * @param string $actual
  9115. * @param string $type
  9116. * @return bool
  9117. * @static
  9118. */
  9119. public static function matchesType($actual, $type)
  9120. {
  9121. return \Illuminate\Http\Request::matchesType($actual, $type);
  9122. }
  9123. /**
  9124. * Determine if the request is sending JSON.
  9125. *
  9126. * @return bool
  9127. * @static
  9128. */
  9129. public static function isJson()
  9130. {
  9131. /** @var \Illuminate\Http\Request $instance */
  9132. return $instance->isJson();
  9133. }
  9134. /**
  9135. * Determine if the current request probably expects a JSON response.
  9136. *
  9137. * @return bool
  9138. * @static
  9139. */
  9140. public static function expectsJson()
  9141. {
  9142. /** @var \Illuminate\Http\Request $instance */
  9143. return $instance->expectsJson();
  9144. }
  9145. /**
  9146. * Determine if the current request is asking for JSON.
  9147. *
  9148. * @return bool
  9149. * @static
  9150. */
  9151. public static function wantsJson()
  9152. {
  9153. /** @var \Illuminate\Http\Request $instance */
  9154. return $instance->wantsJson();
  9155. }
  9156. /**
  9157. * Determines whether the current requests accepts a given content type.
  9158. *
  9159. * @param string|array $contentTypes
  9160. * @return bool
  9161. * @static
  9162. */
  9163. public static function accepts($contentTypes)
  9164. {
  9165. /** @var \Illuminate\Http\Request $instance */
  9166. return $instance->accepts($contentTypes);
  9167. }
  9168. /**
  9169. * Return the most suitable content type from the given array based on content negotiation.
  9170. *
  9171. * @param string|array $contentTypes
  9172. * @return string|null
  9173. * @static
  9174. */
  9175. public static function prefers($contentTypes)
  9176. {
  9177. /** @var \Illuminate\Http\Request $instance */
  9178. return $instance->prefers($contentTypes);
  9179. }
  9180. /**
  9181. * Determine if the current request accepts any content type.
  9182. *
  9183. * @return bool
  9184. * @static
  9185. */
  9186. public static function acceptsAnyContentType()
  9187. {
  9188. /** @var \Illuminate\Http\Request $instance */
  9189. return $instance->acceptsAnyContentType();
  9190. }
  9191. /**
  9192. * Determines whether a request accepts JSON.
  9193. *
  9194. * @return bool
  9195. * @static
  9196. */
  9197. public static function acceptsJson()
  9198. {
  9199. /** @var \Illuminate\Http\Request $instance */
  9200. return $instance->acceptsJson();
  9201. }
  9202. /**
  9203. * Determines whether a request accepts HTML.
  9204. *
  9205. * @return bool
  9206. * @static
  9207. */
  9208. public static function acceptsHtml()
  9209. {
  9210. /** @var \Illuminate\Http\Request $instance */
  9211. return $instance->acceptsHtml();
  9212. }
  9213. /**
  9214. * Get the data format expected in the response.
  9215. *
  9216. * @param string $default
  9217. * @return string
  9218. * @static
  9219. */
  9220. public static function format($default = 'html')
  9221. {
  9222. /** @var \Illuminate\Http\Request $instance */
  9223. return $instance->format($default);
  9224. }
  9225. /**
  9226. * Retrieve an old input item.
  9227. *
  9228. * @param string|null $key
  9229. * @param string|array|null $default
  9230. * @return string|array
  9231. * @static
  9232. */
  9233. public static function old($key = null, $default = null)
  9234. {
  9235. /** @var \Illuminate\Http\Request $instance */
  9236. return $instance->old($key, $default);
  9237. }
  9238. /**
  9239. * Flash the input for the current request to the session.
  9240. *
  9241. * @return void
  9242. * @static
  9243. */
  9244. public static function flash()
  9245. {
  9246. /** @var \Illuminate\Http\Request $instance */
  9247. $instance->flash();
  9248. }
  9249. /**
  9250. * Flash only some of the input to the session.
  9251. *
  9252. * @param array|mixed $keys
  9253. * @return void
  9254. * @static
  9255. */
  9256. public static function flashOnly($keys)
  9257. {
  9258. /** @var \Illuminate\Http\Request $instance */
  9259. $instance->flashOnly($keys);
  9260. }
  9261. /**
  9262. * Flash only some of the input to the session.
  9263. *
  9264. * @param array|mixed $keys
  9265. * @return void
  9266. * @static
  9267. */
  9268. public static function flashExcept($keys)
  9269. {
  9270. /** @var \Illuminate\Http\Request $instance */
  9271. $instance->flashExcept($keys);
  9272. }
  9273. /**
  9274. * Flush all of the old input from the session.
  9275. *
  9276. * @return void
  9277. * @static
  9278. */
  9279. public static function flush()
  9280. {
  9281. /** @var \Illuminate\Http\Request $instance */
  9282. $instance->flush();
  9283. }
  9284. /**
  9285. * Retrieve a server variable from the request.
  9286. *
  9287. * @param string|null $key
  9288. * @param string|array|null $default
  9289. * @return string|array|null
  9290. * @static
  9291. */
  9292. public static function server($key = null, $default = null)
  9293. {
  9294. /** @var \Illuminate\Http\Request $instance */
  9295. return $instance->server($key, $default);
  9296. }
  9297. /**
  9298. * Determine if a header is set on the request.
  9299. *
  9300. * @param string $key
  9301. * @return bool
  9302. * @static
  9303. */
  9304. public static function hasHeader($key)
  9305. {
  9306. /** @var \Illuminate\Http\Request $instance */
  9307. return $instance->hasHeader($key);
  9308. }
  9309. /**
  9310. * Retrieve a header from the request.
  9311. *
  9312. * @param string|null $key
  9313. * @param string|array|null $default
  9314. * @return string|array|null
  9315. * @static
  9316. */
  9317. public static function header($key = null, $default = null)
  9318. {
  9319. /** @var \Illuminate\Http\Request $instance */
  9320. return $instance->header($key, $default);
  9321. }
  9322. /**
  9323. * Get the bearer token from the request headers.
  9324. *
  9325. * @return string|null
  9326. * @static
  9327. */
  9328. public static function bearerToken()
  9329. {
  9330. /** @var \Illuminate\Http\Request $instance */
  9331. return $instance->bearerToken();
  9332. }
  9333. /**
  9334. * Determine if the request contains a given input item key.
  9335. *
  9336. * @param string|array $key
  9337. * @return bool
  9338. * @static
  9339. */
  9340. public static function exists($key)
  9341. {
  9342. /** @var \Illuminate\Http\Request $instance */
  9343. return $instance->exists($key);
  9344. }
  9345. /**
  9346. * Determine if the request contains a given input item key.
  9347. *
  9348. * @param string|array $key
  9349. * @return bool
  9350. * @static
  9351. */
  9352. public static function has($key)
  9353. {
  9354. /** @var \Illuminate\Http\Request $instance */
  9355. return $instance->has($key);
  9356. }
  9357. /**
  9358. * Determine if the request contains any of the given inputs.
  9359. *
  9360. * @param string|array $keys
  9361. * @return bool
  9362. * @static
  9363. */
  9364. public static function hasAny($keys)
  9365. {
  9366. /** @var \Illuminate\Http\Request $instance */
  9367. return $instance->hasAny($keys);
  9368. }
  9369. /**
  9370. * Determine if the request contains a non-empty value for an input item.
  9371. *
  9372. * @param string|array $key
  9373. * @return bool
  9374. * @static
  9375. */
  9376. public static function filled($key)
  9377. {
  9378. /** @var \Illuminate\Http\Request $instance */
  9379. return $instance->filled($key);
  9380. }
  9381. /**
  9382. * Determine if the request contains a non-empty value for any of the given inputs.
  9383. *
  9384. * @param string|array $keys
  9385. * @return bool
  9386. * @static
  9387. */
  9388. public static function anyFilled($keys)
  9389. {
  9390. /** @var \Illuminate\Http\Request $instance */
  9391. return $instance->anyFilled($keys);
  9392. }
  9393. /**
  9394. * Determine if the request is missing a given input item key.
  9395. *
  9396. * @param string|array $key
  9397. * @return bool
  9398. * @static
  9399. */
  9400. public static function missing($key)
  9401. {
  9402. /** @var \Illuminate\Http\Request $instance */
  9403. return $instance->missing($key);
  9404. }
  9405. /**
  9406. * Get the keys for all of the input and files.
  9407. *
  9408. * @return array
  9409. * @static
  9410. */
  9411. public static function keys()
  9412. {
  9413. /** @var \Illuminate\Http\Request $instance */
  9414. return $instance->keys();
  9415. }
  9416. /**
  9417. * Get all of the input and files for the request.
  9418. *
  9419. * @param array|mixed|null $keys
  9420. * @return array
  9421. * @static
  9422. */
  9423. public static function all($keys = null)
  9424. {
  9425. /** @var \Illuminate\Http\Request $instance */
  9426. return $instance->all($keys);
  9427. }
  9428. /**
  9429. * Retrieve an input item from the request.
  9430. *
  9431. * @param string|null $key
  9432. * @param mixed $default
  9433. * @return mixed
  9434. * @static
  9435. */
  9436. public static function input($key = null, $default = null)
  9437. {
  9438. /** @var \Illuminate\Http\Request $instance */
  9439. return $instance->input($key, $default);
  9440. }
  9441. /**
  9442. * Retrieve input as a boolean value.
  9443. *
  9444. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  9445. *
  9446. * @param string|null $key
  9447. * @param bool $default
  9448. * @return bool
  9449. * @static
  9450. */
  9451. public static function boolean($key = null, $default = false)
  9452. {
  9453. /** @var \Illuminate\Http\Request $instance */
  9454. return $instance->boolean($key, $default);
  9455. }
  9456. /**
  9457. * Get a subset containing the provided keys with values from the input data.
  9458. *
  9459. * @param array|mixed $keys
  9460. * @return array
  9461. * @static
  9462. */
  9463. public static function only($keys)
  9464. {
  9465. /** @var \Illuminate\Http\Request $instance */
  9466. return $instance->only($keys);
  9467. }
  9468. /**
  9469. * Get all of the input except for a specified array of items.
  9470. *
  9471. * @param array|mixed $keys
  9472. * @return array
  9473. * @static
  9474. */
  9475. public static function except($keys)
  9476. {
  9477. /** @var \Illuminate\Http\Request $instance */
  9478. return $instance->except($keys);
  9479. }
  9480. /**
  9481. * Retrieve a query string item from the request.
  9482. *
  9483. * @param string|null $key
  9484. * @param string|array|null $default
  9485. * @return string|array|null
  9486. * @static
  9487. */
  9488. public static function query($key = null, $default = null)
  9489. {
  9490. /** @var \Illuminate\Http\Request $instance */
  9491. return $instance->query($key, $default);
  9492. }
  9493. /**
  9494. * Retrieve a request payload item from the request.
  9495. *
  9496. * @param string|null $key
  9497. * @param string|array|null $default
  9498. * @return string|array|null
  9499. * @static
  9500. */
  9501. public static function post($key = null, $default = null)
  9502. {
  9503. /** @var \Illuminate\Http\Request $instance */
  9504. return $instance->post($key, $default);
  9505. }
  9506. /**
  9507. * Determine if a cookie is set on the request.
  9508. *
  9509. * @param string $key
  9510. * @return bool
  9511. * @static
  9512. */
  9513. public static function hasCookie($key)
  9514. {
  9515. /** @var \Illuminate\Http\Request $instance */
  9516. return $instance->hasCookie($key);
  9517. }
  9518. /**
  9519. * Retrieve a cookie from the request.
  9520. *
  9521. * @param string|null $key
  9522. * @param string|array|null $default
  9523. * @return string|array|null
  9524. * @static
  9525. */
  9526. public static function cookie($key = null, $default = null)
  9527. {
  9528. /** @var \Illuminate\Http\Request $instance */
  9529. return $instance->cookie($key, $default);
  9530. }
  9531. /**
  9532. * Get an array of all of the files on the request.
  9533. *
  9534. * @return array
  9535. * @static
  9536. */
  9537. public static function allFiles()
  9538. {
  9539. /** @var \Illuminate\Http\Request $instance */
  9540. return $instance->allFiles();
  9541. }
  9542. /**
  9543. * Determine if the uploaded data contains a file.
  9544. *
  9545. * @param string $key
  9546. * @return bool
  9547. * @static
  9548. */
  9549. public static function hasFile($key)
  9550. {
  9551. /** @var \Illuminate\Http\Request $instance */
  9552. return $instance->hasFile($key);
  9553. }
  9554. /**
  9555. * Retrieve a file from the request.
  9556. *
  9557. * @param string|null $key
  9558. * @param mixed $default
  9559. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  9560. * @static
  9561. */
  9562. public static function file($key = null, $default = null)
  9563. {
  9564. /** @var \Illuminate\Http\Request $instance */
  9565. return $instance->file($key, $default);
  9566. }
  9567. /**
  9568. * Register a custom macro.
  9569. *
  9570. * @param string $name
  9571. * @param object|callable $macro
  9572. * @return void
  9573. * @static
  9574. */
  9575. public static function macro($name, $macro)
  9576. {
  9577. \Illuminate\Http\Request::macro($name, $macro);
  9578. }
  9579. /**
  9580. * Mix another object into the class.
  9581. *
  9582. * @param object $mixin
  9583. * @param bool $replace
  9584. * @return void
  9585. * @throws \ReflectionException
  9586. * @static
  9587. */
  9588. public static function mixin($mixin, $replace = true)
  9589. {
  9590. \Illuminate\Http\Request::mixin($mixin, $replace);
  9591. }
  9592. /**
  9593. * Checks if macro is registered.
  9594. *
  9595. * @param string $name
  9596. * @return bool
  9597. * @static
  9598. */
  9599. public static function hasMacro($name)
  9600. {
  9601. return \Illuminate\Http\Request::hasMacro($name);
  9602. }
  9603. /**
  9604. *
  9605. *
  9606. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  9607. * @param array $rules
  9608. * @param mixed $params
  9609. * @static
  9610. */
  9611. public static function validate($rules, ...$params)
  9612. {
  9613. return \Illuminate\Http\Request::validate($rules, ...$params);
  9614. }
  9615. /**
  9616. *
  9617. *
  9618. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  9619. * @param string $errorBag
  9620. * @param array $rules
  9621. * @param mixed $params
  9622. * @static
  9623. */
  9624. public static function validateWithBag($errorBag, $rules, ...$params)
  9625. {
  9626. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  9627. }
  9628. /**
  9629. *
  9630. *
  9631. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  9632. * @param mixed $absolute
  9633. * @static
  9634. */
  9635. public static function hasValidSignature($absolute = true)
  9636. {
  9637. return \Illuminate\Http\Request::hasValidSignature($absolute);
  9638. }
  9639. }
  9640. /**
  9641. *
  9642. *
  9643. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9644. */
  9645. class Response {
  9646. /**
  9647. * Create a new response instance.
  9648. *
  9649. * @param string $content
  9650. * @param int $status
  9651. * @param array $headers
  9652. * @return \Illuminate\Http\Response
  9653. * @static
  9654. */
  9655. public static function make($content = '', $status = 200, $headers = [])
  9656. {
  9657. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9658. return $instance->make($content, $status, $headers);
  9659. }
  9660. /**
  9661. * Create a new "no content" response.
  9662. *
  9663. * @param int $status
  9664. * @param array $headers
  9665. * @return \Illuminate\Http\Response
  9666. * @static
  9667. */
  9668. public static function noContent($status = 204, $headers = [])
  9669. {
  9670. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9671. return $instance->noContent($status, $headers);
  9672. }
  9673. /**
  9674. * Create a new response for a given view.
  9675. *
  9676. * @param string|array $view
  9677. * @param array $data
  9678. * @param int $status
  9679. * @param array $headers
  9680. * @return \Illuminate\Http\Response
  9681. * @static
  9682. */
  9683. public static function view($view, $data = [], $status = 200, $headers = [])
  9684. {
  9685. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9686. return $instance->view($view, $data, $status, $headers);
  9687. }
  9688. /**
  9689. * Create a new JSON response instance.
  9690. *
  9691. * @param mixed $data
  9692. * @param int $status
  9693. * @param array $headers
  9694. * @param int $options
  9695. * @return \Illuminate\Http\JsonResponse
  9696. * @static
  9697. */
  9698. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  9699. {
  9700. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9701. return $instance->json($data, $status, $headers, $options);
  9702. }
  9703. /**
  9704. * Create a new JSONP response instance.
  9705. *
  9706. * @param string $callback
  9707. * @param mixed $data
  9708. * @param int $status
  9709. * @param array $headers
  9710. * @param int $options
  9711. * @return \Illuminate\Http\JsonResponse
  9712. * @static
  9713. */
  9714. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  9715. {
  9716. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9717. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9718. }
  9719. /**
  9720. * Create a new streamed response instance.
  9721. *
  9722. * @param \Closure $callback
  9723. * @param int $status
  9724. * @param array $headers
  9725. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9726. * @static
  9727. */
  9728. public static function stream($callback, $status = 200, $headers = [])
  9729. {
  9730. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9731. return $instance->stream($callback, $status, $headers);
  9732. }
  9733. /**
  9734. * Create a new streamed response instance as a file download.
  9735. *
  9736. * @param \Closure $callback
  9737. * @param string|null $name
  9738. * @param array $headers
  9739. * @param string|null $disposition
  9740. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9741. * @static
  9742. */
  9743. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  9744. {
  9745. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9746. return $instance->streamDownload($callback, $name, $headers, $disposition);
  9747. }
  9748. /**
  9749. * Create a new file download response.
  9750. *
  9751. * @param \SplFileInfo|string $file
  9752. * @param string|null $name
  9753. * @param array $headers
  9754. * @param string|null $disposition
  9755. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9756. * @static
  9757. */
  9758. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  9759. {
  9760. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9761. return $instance->download($file, $name, $headers, $disposition);
  9762. }
  9763. /**
  9764. * Return the raw contents of a binary file.
  9765. *
  9766. * @param \SplFileInfo|string $file
  9767. * @param array $headers
  9768. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9769. * @static
  9770. */
  9771. public static function file($file, $headers = [])
  9772. {
  9773. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9774. return $instance->file($file, $headers);
  9775. }
  9776. /**
  9777. * Create a new redirect response to the given path.
  9778. *
  9779. * @param string $path
  9780. * @param int $status
  9781. * @param array $headers
  9782. * @param bool|null $secure
  9783. * @return \Illuminate\Http\RedirectResponse
  9784. * @static
  9785. */
  9786. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  9787. {
  9788. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9789. return $instance->redirectTo($path, $status, $headers, $secure);
  9790. }
  9791. /**
  9792. * Create a new redirect response to a named route.
  9793. *
  9794. * @param string $route
  9795. * @param array $parameters
  9796. * @param int $status
  9797. * @param array $headers
  9798. * @return \Illuminate\Http\RedirectResponse
  9799. * @static
  9800. */
  9801. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  9802. {
  9803. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9804. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9805. }
  9806. /**
  9807. * Create a new redirect response to a controller action.
  9808. *
  9809. * @param string $action
  9810. * @param array $parameters
  9811. * @param int $status
  9812. * @param array $headers
  9813. * @return \Illuminate\Http\RedirectResponse
  9814. * @static
  9815. */
  9816. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  9817. {
  9818. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9819. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9820. }
  9821. /**
  9822. * Create a new redirect response, while putting the current URL in the session.
  9823. *
  9824. * @param string $path
  9825. * @param int $status
  9826. * @param array $headers
  9827. * @param bool|null $secure
  9828. * @return \Illuminate\Http\RedirectResponse
  9829. * @static
  9830. */
  9831. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  9832. {
  9833. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9834. return $instance->redirectGuest($path, $status, $headers, $secure);
  9835. }
  9836. /**
  9837. * Create a new redirect response to the previously intended location.
  9838. *
  9839. * @param string $default
  9840. * @param int $status
  9841. * @param array $headers
  9842. * @param bool|null $secure
  9843. * @return \Illuminate\Http\RedirectResponse
  9844. * @static
  9845. */
  9846. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  9847. {
  9848. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9849. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9850. }
  9851. /**
  9852. * Register a custom macro.
  9853. *
  9854. * @param string $name
  9855. * @param object|callable $macro
  9856. * @return void
  9857. * @static
  9858. */
  9859. public static function macro($name, $macro)
  9860. {
  9861. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9862. }
  9863. /**
  9864. * Mix another object into the class.
  9865. *
  9866. * @param object $mixin
  9867. * @param bool $replace
  9868. * @return void
  9869. * @throws \ReflectionException
  9870. * @static
  9871. */
  9872. public static function mixin($mixin, $replace = true)
  9873. {
  9874. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  9875. }
  9876. /**
  9877. * Checks if macro is registered.
  9878. *
  9879. * @param string $name
  9880. * @return bool
  9881. * @static
  9882. */
  9883. public static function hasMacro($name)
  9884. {
  9885. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9886. }
  9887. }
  9888. /**
  9889. *
  9890. *
  9891. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  9892. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  9893. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9894. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  9895. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  9896. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  9897. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  9898. * @see \Illuminate\Routing\Router
  9899. */
  9900. class Route {
  9901. /**
  9902. * Register a new GET route with the router.
  9903. *
  9904. * @param string $uri
  9905. * @param \Closure|array|string|callable|null $action
  9906. * @return \Illuminate\Routing\Route
  9907. * @static
  9908. */
  9909. public static function get($uri, $action = null)
  9910. {
  9911. /** @var \Illuminate\Routing\Router $instance */
  9912. return $instance->get($uri, $action);
  9913. }
  9914. /**
  9915. * Register a new POST route with the router.
  9916. *
  9917. * @param string $uri
  9918. * @param \Closure|array|string|callable|null $action
  9919. * @return \Illuminate\Routing\Route
  9920. * @static
  9921. */
  9922. public static function post($uri, $action = null)
  9923. {
  9924. /** @var \Illuminate\Routing\Router $instance */
  9925. return $instance->post($uri, $action);
  9926. }
  9927. /**
  9928. * Register a new PUT route with the router.
  9929. *
  9930. * @param string $uri
  9931. * @param \Closure|array|string|callable|null $action
  9932. * @return \Illuminate\Routing\Route
  9933. * @static
  9934. */
  9935. public static function put($uri, $action = null)
  9936. {
  9937. /** @var \Illuminate\Routing\Router $instance */
  9938. return $instance->put($uri, $action);
  9939. }
  9940. /**
  9941. * Register a new PATCH route with the router.
  9942. *
  9943. * @param string $uri
  9944. * @param \Closure|array|string|callable|null $action
  9945. * @return \Illuminate\Routing\Route
  9946. * @static
  9947. */
  9948. public static function patch($uri, $action = null)
  9949. {
  9950. /** @var \Illuminate\Routing\Router $instance */
  9951. return $instance->patch($uri, $action);
  9952. }
  9953. /**
  9954. * Register a new DELETE route with the router.
  9955. *
  9956. * @param string $uri
  9957. * @param \Closure|array|string|callable|null $action
  9958. * @return \Illuminate\Routing\Route
  9959. * @static
  9960. */
  9961. public static function delete($uri, $action = null)
  9962. {
  9963. /** @var \Illuminate\Routing\Router $instance */
  9964. return $instance->delete($uri, $action);
  9965. }
  9966. /**
  9967. * Register a new OPTIONS route with the router.
  9968. *
  9969. * @param string $uri
  9970. * @param \Closure|array|string|callable|null $action
  9971. * @return \Illuminate\Routing\Route
  9972. * @static
  9973. */
  9974. public static function options($uri, $action = null)
  9975. {
  9976. /** @var \Illuminate\Routing\Router $instance */
  9977. return $instance->options($uri, $action);
  9978. }
  9979. /**
  9980. * Register a new route responding to all verbs.
  9981. *
  9982. * @param string $uri
  9983. * @param \Closure|array|string|callable|null $action
  9984. * @return \Illuminate\Routing\Route
  9985. * @static
  9986. */
  9987. public static function any($uri, $action = null)
  9988. {
  9989. /** @var \Illuminate\Routing\Router $instance */
  9990. return $instance->any($uri, $action);
  9991. }
  9992. /**
  9993. * Register a new Fallback route with the router.
  9994. *
  9995. * @param \Closure|array|string|callable|null $action
  9996. * @return \Illuminate\Routing\Route
  9997. * @static
  9998. */
  9999. public static function fallback($action)
  10000. {
  10001. /** @var \Illuminate\Routing\Router $instance */
  10002. return $instance->fallback($action);
  10003. }
  10004. /**
  10005. * Create a redirect from one URI to another.
  10006. *
  10007. * @param string $uri
  10008. * @param string $destination
  10009. * @param int $status
  10010. * @return \Illuminate\Routing\Route
  10011. * @static
  10012. */
  10013. public static function redirect($uri, $destination, $status = 302)
  10014. {
  10015. /** @var \Illuminate\Routing\Router $instance */
  10016. return $instance->redirect($uri, $destination, $status);
  10017. }
  10018. /**
  10019. * Create a permanent redirect from one URI to another.
  10020. *
  10021. * @param string $uri
  10022. * @param string $destination
  10023. * @return \Illuminate\Routing\Route
  10024. * @static
  10025. */
  10026. public static function permanentRedirect($uri, $destination)
  10027. {
  10028. /** @var \Illuminate\Routing\Router $instance */
  10029. return $instance->permanentRedirect($uri, $destination);
  10030. }
  10031. /**
  10032. * Register a new route that returns a view.
  10033. *
  10034. * @param string $uri
  10035. * @param string $view
  10036. * @param array $data
  10037. * @return \Illuminate\Routing\Route
  10038. * @static
  10039. */
  10040. public static function view($uri, $view, $data = [])
  10041. {
  10042. /** @var \Illuminate\Routing\Router $instance */
  10043. return $instance->view($uri, $view, $data);
  10044. }
  10045. /**
  10046. * Register a new route with the given verbs.
  10047. *
  10048. * @param array|string $methods
  10049. * @param string $uri
  10050. * @param \Closure|array|string|callable|null $action
  10051. * @return \Illuminate\Routing\Route
  10052. * @static
  10053. */
  10054. public static function match($methods, $uri, $action = null)
  10055. {
  10056. /** @var \Illuminate\Routing\Router $instance */
  10057. return $instance->match($methods, $uri, $action);
  10058. }
  10059. /**
  10060. * Register an array of resource controllers.
  10061. *
  10062. * @param array $resources
  10063. * @param array $options
  10064. * @return void
  10065. * @static
  10066. */
  10067. public static function resources($resources, $options = [])
  10068. {
  10069. /** @var \Illuminate\Routing\Router $instance */
  10070. $instance->resources($resources, $options);
  10071. }
  10072. /**
  10073. * Route a resource to a controller.
  10074. *
  10075. * @param string $name
  10076. * @param string $controller
  10077. * @param array $options
  10078. * @return \Illuminate\Routing\PendingResourceRegistration
  10079. * @static
  10080. */
  10081. public static function resource($name, $controller, $options = [])
  10082. {
  10083. /** @var \Illuminate\Routing\Router $instance */
  10084. return $instance->resource($name, $controller, $options);
  10085. }
  10086. /**
  10087. * Register an array of API resource controllers.
  10088. *
  10089. * @param array $resources
  10090. * @param array $options
  10091. * @return void
  10092. * @static
  10093. */
  10094. public static function apiResources($resources, $options = [])
  10095. {
  10096. /** @var \Illuminate\Routing\Router $instance */
  10097. $instance->apiResources($resources, $options);
  10098. }
  10099. /**
  10100. * Route an API resource to a controller.
  10101. *
  10102. * @param string $name
  10103. * @param string $controller
  10104. * @param array $options
  10105. * @return \Illuminate\Routing\PendingResourceRegistration
  10106. * @static
  10107. */
  10108. public static function apiResource($name, $controller, $options = [])
  10109. {
  10110. /** @var \Illuminate\Routing\Router $instance */
  10111. return $instance->apiResource($name, $controller, $options);
  10112. }
  10113. /**
  10114. * Create a route group with shared attributes.
  10115. *
  10116. * @param array $attributes
  10117. * @param \Closure|string $routes
  10118. * @return void
  10119. * @static
  10120. */
  10121. public static function group($attributes, $routes)
  10122. {
  10123. /** @var \Illuminate\Routing\Router $instance */
  10124. $instance->group($attributes, $routes);
  10125. }
  10126. /**
  10127. * Merge the given array with the last group stack.
  10128. *
  10129. * @param array $new
  10130. * @return array
  10131. * @static
  10132. */
  10133. public static function mergeWithLastGroup($new)
  10134. {
  10135. /** @var \Illuminate\Routing\Router $instance */
  10136. return $instance->mergeWithLastGroup($new);
  10137. }
  10138. /**
  10139. * Get the prefix from the last group on the stack.
  10140. *
  10141. * @return string
  10142. * @static
  10143. */
  10144. public static function getLastGroupPrefix()
  10145. {
  10146. /** @var \Illuminate\Routing\Router $instance */
  10147. return $instance->getLastGroupPrefix();
  10148. }
  10149. /**
  10150. * Add a route to the underlying route collection.
  10151. *
  10152. * @param array|string $methods
  10153. * @param string $uri
  10154. * @param \Closure|array|string|callable|null $action
  10155. * @return \Illuminate\Routing\Route
  10156. * @static
  10157. */
  10158. public static function addRoute($methods, $uri, $action)
  10159. {
  10160. /** @var \Illuminate\Routing\Router $instance */
  10161. return $instance->addRoute($methods, $uri, $action);
  10162. }
  10163. /**
  10164. * Return the response returned by the given route.
  10165. *
  10166. * @param string $name
  10167. * @return \Symfony\Component\HttpFoundation\Response
  10168. * @static
  10169. */
  10170. public static function respondWithRoute($name)
  10171. {
  10172. /** @var \Illuminate\Routing\Router $instance */
  10173. return $instance->respondWithRoute($name);
  10174. }
  10175. /**
  10176. * Dispatch the request to the application.
  10177. *
  10178. * @param \Illuminate\Http\Request $request
  10179. * @return \Symfony\Component\HttpFoundation\Response
  10180. * @static
  10181. */
  10182. public static function dispatch($request)
  10183. {
  10184. /** @var \Illuminate\Routing\Router $instance */
  10185. return $instance->dispatch($request);
  10186. }
  10187. /**
  10188. * Dispatch the request to a route and return the response.
  10189. *
  10190. * @param \Illuminate\Http\Request $request
  10191. * @return \Symfony\Component\HttpFoundation\Response
  10192. * @static
  10193. */
  10194. public static function dispatchToRoute($request)
  10195. {
  10196. /** @var \Illuminate\Routing\Router $instance */
  10197. return $instance->dispatchToRoute($request);
  10198. }
  10199. /**
  10200. * Gather the middleware for the given route with resolved class names.
  10201. *
  10202. * @param \Illuminate\Routing\Route $route
  10203. * @return array
  10204. * @static
  10205. */
  10206. public static function gatherRouteMiddleware($route)
  10207. {
  10208. /** @var \Illuminate\Routing\Router $instance */
  10209. return $instance->gatherRouteMiddleware($route);
  10210. }
  10211. /**
  10212. * Create a response instance from the given value.
  10213. *
  10214. * @param \Symfony\Component\HttpFoundation\Request $request
  10215. * @param mixed $response
  10216. * @return \Symfony\Component\HttpFoundation\Response
  10217. * @static
  10218. */
  10219. public static function prepareResponse($request, $response)
  10220. {
  10221. /** @var \Illuminate\Routing\Router $instance */
  10222. return $instance->prepareResponse($request, $response);
  10223. }
  10224. /**
  10225. * Static version of prepareResponse.
  10226. *
  10227. * @param \Symfony\Component\HttpFoundation\Request $request
  10228. * @param mixed $response
  10229. * @return \Symfony\Component\HttpFoundation\Response
  10230. * @static
  10231. */
  10232. public static function toResponse($request, $response)
  10233. {
  10234. return \Illuminate\Routing\Router::toResponse($request, $response);
  10235. }
  10236. /**
  10237. * Substitute the route bindings onto the route.
  10238. *
  10239. * @param \Illuminate\Routing\Route $route
  10240. * @return \Illuminate\Routing\Route
  10241. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10242. * @static
  10243. */
  10244. public static function substituteBindings($route)
  10245. {
  10246. /** @var \Illuminate\Routing\Router $instance */
  10247. return $instance->substituteBindings($route);
  10248. }
  10249. /**
  10250. * Substitute the implicit Eloquent model bindings for the route.
  10251. *
  10252. * @param \Illuminate\Routing\Route $route
  10253. * @return void
  10254. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10255. * @static
  10256. */
  10257. public static function substituteImplicitBindings($route)
  10258. {
  10259. /** @var \Illuminate\Routing\Router $instance */
  10260. $instance->substituteImplicitBindings($route);
  10261. }
  10262. /**
  10263. * Register a route matched event listener.
  10264. *
  10265. * @param string|callable $callback
  10266. * @return void
  10267. * @static
  10268. */
  10269. public static function matched($callback)
  10270. {
  10271. /** @var \Illuminate\Routing\Router $instance */
  10272. $instance->matched($callback);
  10273. }
  10274. /**
  10275. * Get all of the defined middleware short-hand names.
  10276. *
  10277. * @return array
  10278. * @static
  10279. */
  10280. public static function getMiddleware()
  10281. {
  10282. /** @var \Illuminate\Routing\Router $instance */
  10283. return $instance->getMiddleware();
  10284. }
  10285. /**
  10286. * Register a short-hand name for a middleware.
  10287. *
  10288. * @param string $name
  10289. * @param string $class
  10290. * @return \Illuminate\Routing\Router
  10291. * @static
  10292. */
  10293. public static function aliasMiddleware($name, $class)
  10294. {
  10295. /** @var \Illuminate\Routing\Router $instance */
  10296. return $instance->aliasMiddleware($name, $class);
  10297. }
  10298. /**
  10299. * Check if a middlewareGroup with the given name exists.
  10300. *
  10301. * @param string $name
  10302. * @return bool
  10303. * @static
  10304. */
  10305. public static function hasMiddlewareGroup($name)
  10306. {
  10307. /** @var \Illuminate\Routing\Router $instance */
  10308. return $instance->hasMiddlewareGroup($name);
  10309. }
  10310. /**
  10311. * Get all of the defined middleware groups.
  10312. *
  10313. * @return array
  10314. * @static
  10315. */
  10316. public static function getMiddlewareGroups()
  10317. {
  10318. /** @var \Illuminate\Routing\Router $instance */
  10319. return $instance->getMiddlewareGroups();
  10320. }
  10321. /**
  10322. * Register a group of middleware.
  10323. *
  10324. * @param string $name
  10325. * @param array $middleware
  10326. * @return \Illuminate\Routing\Router
  10327. * @static
  10328. */
  10329. public static function middlewareGroup($name, $middleware)
  10330. {
  10331. /** @var \Illuminate\Routing\Router $instance */
  10332. return $instance->middlewareGroup($name, $middleware);
  10333. }
  10334. /**
  10335. * Add a middleware to the beginning of a middleware group.
  10336. *
  10337. * If the middleware is already in the group, it will not be added again.
  10338. *
  10339. * @param string $group
  10340. * @param string $middleware
  10341. * @return \Illuminate\Routing\Router
  10342. * @static
  10343. */
  10344. public static function prependMiddlewareToGroup($group, $middleware)
  10345. {
  10346. /** @var \Illuminate\Routing\Router $instance */
  10347. return $instance->prependMiddlewareToGroup($group, $middleware);
  10348. }
  10349. /**
  10350. * Add a middleware to the end of a middleware group.
  10351. *
  10352. * If the middleware is already in the group, it will not be added again.
  10353. *
  10354. * @param string $group
  10355. * @param string $middleware
  10356. * @return \Illuminate\Routing\Router
  10357. * @static
  10358. */
  10359. public static function pushMiddlewareToGroup($group, $middleware)
  10360. {
  10361. /** @var \Illuminate\Routing\Router $instance */
  10362. return $instance->pushMiddlewareToGroup($group, $middleware);
  10363. }
  10364. /**
  10365. * Add a new route parameter binder.
  10366. *
  10367. * @param string $key
  10368. * @param string|callable $binder
  10369. * @return void
  10370. * @static
  10371. */
  10372. public static function bind($key, $binder)
  10373. {
  10374. /** @var \Illuminate\Routing\Router $instance */
  10375. $instance->bind($key, $binder);
  10376. }
  10377. /**
  10378. * Register a model binder for a wildcard.
  10379. *
  10380. * @param string $key
  10381. * @param string $class
  10382. * @param \Closure|null $callback
  10383. * @return void
  10384. * @static
  10385. */
  10386. public static function model($key, $class, $callback = null)
  10387. {
  10388. /** @var \Illuminate\Routing\Router $instance */
  10389. $instance->model($key, $class, $callback);
  10390. }
  10391. /**
  10392. * Get the binding callback for a given binding.
  10393. *
  10394. * @param string $key
  10395. * @return \Closure|null
  10396. * @static
  10397. */
  10398. public static function getBindingCallback($key)
  10399. {
  10400. /** @var \Illuminate\Routing\Router $instance */
  10401. return $instance->getBindingCallback($key);
  10402. }
  10403. /**
  10404. * Get the global "where" patterns.
  10405. *
  10406. * @return array
  10407. * @static
  10408. */
  10409. public static function getPatterns()
  10410. {
  10411. /** @var \Illuminate\Routing\Router $instance */
  10412. return $instance->getPatterns();
  10413. }
  10414. /**
  10415. * Set a global where pattern on all routes.
  10416. *
  10417. * @param string $key
  10418. * @param string $pattern
  10419. * @return void
  10420. * @static
  10421. */
  10422. public static function pattern($key, $pattern)
  10423. {
  10424. /** @var \Illuminate\Routing\Router $instance */
  10425. $instance->pattern($key, $pattern);
  10426. }
  10427. /**
  10428. * Set a group of global where patterns on all routes.
  10429. *
  10430. * @param array $patterns
  10431. * @return void
  10432. * @static
  10433. */
  10434. public static function patterns($patterns)
  10435. {
  10436. /** @var \Illuminate\Routing\Router $instance */
  10437. $instance->patterns($patterns);
  10438. }
  10439. /**
  10440. * Determine if the router currently has a group stack.
  10441. *
  10442. * @return bool
  10443. * @static
  10444. */
  10445. public static function hasGroupStack()
  10446. {
  10447. /** @var \Illuminate\Routing\Router $instance */
  10448. return $instance->hasGroupStack();
  10449. }
  10450. /**
  10451. * Get the current group stack for the router.
  10452. *
  10453. * @return array
  10454. * @static
  10455. */
  10456. public static function getGroupStack()
  10457. {
  10458. /** @var \Illuminate\Routing\Router $instance */
  10459. return $instance->getGroupStack();
  10460. }
  10461. /**
  10462. * Get a route parameter for the current route.
  10463. *
  10464. * @param string $key
  10465. * @param string|null $default
  10466. * @return mixed
  10467. * @static
  10468. */
  10469. public static function input($key, $default = null)
  10470. {
  10471. /** @var \Illuminate\Routing\Router $instance */
  10472. return $instance->input($key, $default);
  10473. }
  10474. /**
  10475. * Get the request currently being dispatched.
  10476. *
  10477. * @return \Illuminate\Http\Request
  10478. * @static
  10479. */
  10480. public static function getCurrentRequest()
  10481. {
  10482. /** @var \Illuminate\Routing\Router $instance */
  10483. return $instance->getCurrentRequest();
  10484. }
  10485. /**
  10486. * Get the currently dispatched route instance.
  10487. *
  10488. * @return \Illuminate\Routing\Route
  10489. * @static
  10490. */
  10491. public static function getCurrentRoute()
  10492. {
  10493. /** @var \Illuminate\Routing\Router $instance */
  10494. return $instance->getCurrentRoute();
  10495. }
  10496. /**
  10497. * Get the currently dispatched route instance.
  10498. *
  10499. * @return \Illuminate\Routing\Route|null
  10500. * @static
  10501. */
  10502. public static function current()
  10503. {
  10504. /** @var \Illuminate\Routing\Router $instance */
  10505. return $instance->current();
  10506. }
  10507. /**
  10508. * Check if a route with the given name exists.
  10509. *
  10510. * @param string $name
  10511. * @return bool
  10512. * @static
  10513. */
  10514. public static function has($name)
  10515. {
  10516. /** @var \Illuminate\Routing\Router $instance */
  10517. return $instance->has($name);
  10518. }
  10519. /**
  10520. * Get the current route name.
  10521. *
  10522. * @return string|null
  10523. * @static
  10524. */
  10525. public static function currentRouteName()
  10526. {
  10527. /** @var \Illuminate\Routing\Router $instance */
  10528. return $instance->currentRouteName();
  10529. }
  10530. /**
  10531. * Alias for the "currentRouteNamed" method.
  10532. *
  10533. * @param mixed $patterns
  10534. * @return bool
  10535. * @static
  10536. */
  10537. public static function is(...$patterns)
  10538. {
  10539. /** @var \Illuminate\Routing\Router $instance */
  10540. return $instance->is(...$patterns);
  10541. }
  10542. /**
  10543. * Determine if the current route matches a pattern.
  10544. *
  10545. * @param mixed $patterns
  10546. * @return bool
  10547. * @static
  10548. */
  10549. public static function currentRouteNamed(...$patterns)
  10550. {
  10551. /** @var \Illuminate\Routing\Router $instance */
  10552. return $instance->currentRouteNamed(...$patterns);
  10553. }
  10554. /**
  10555. * Get the current route action.
  10556. *
  10557. * @return string|null
  10558. * @static
  10559. */
  10560. public static function currentRouteAction()
  10561. {
  10562. /** @var \Illuminate\Routing\Router $instance */
  10563. return $instance->currentRouteAction();
  10564. }
  10565. /**
  10566. * Alias for the "currentRouteUses" method.
  10567. *
  10568. * @param array $patterns
  10569. * @return bool
  10570. * @static
  10571. */
  10572. public static function uses(...$patterns)
  10573. {
  10574. /** @var \Illuminate\Routing\Router $instance */
  10575. return $instance->uses(...$patterns);
  10576. }
  10577. /**
  10578. * Determine if the current route action matches a given action.
  10579. *
  10580. * @param string $action
  10581. * @return bool
  10582. * @static
  10583. */
  10584. public static function currentRouteUses($action)
  10585. {
  10586. /** @var \Illuminate\Routing\Router $instance */
  10587. return $instance->currentRouteUses($action);
  10588. }
  10589. /**
  10590. * Register the typical authentication routes for an application.
  10591. *
  10592. * @param array $options
  10593. * @return void
  10594. * @static
  10595. */
  10596. public static function auth($options = [])
  10597. {
  10598. /** @var \Illuminate\Routing\Router $instance */
  10599. $instance->auth($options);
  10600. }
  10601. /**
  10602. * Register the typical reset password routes for an application.
  10603. *
  10604. * @return void
  10605. * @static
  10606. */
  10607. public static function resetPassword()
  10608. {
  10609. /** @var \Illuminate\Routing\Router $instance */
  10610. $instance->resetPassword();
  10611. }
  10612. /**
  10613. * Register the typical confirm password routes for an application.
  10614. *
  10615. * @return void
  10616. * @static
  10617. */
  10618. public static function confirmPassword()
  10619. {
  10620. /** @var \Illuminate\Routing\Router $instance */
  10621. $instance->confirmPassword();
  10622. }
  10623. /**
  10624. * Register the typical email verification routes for an application.
  10625. *
  10626. * @return void
  10627. * @static
  10628. */
  10629. public static function emailVerification()
  10630. {
  10631. /** @var \Illuminate\Routing\Router $instance */
  10632. $instance->emailVerification();
  10633. }
  10634. /**
  10635. * Set the unmapped global resource parameters to singular.
  10636. *
  10637. * @param bool $singular
  10638. * @return void
  10639. * @static
  10640. */
  10641. public static function singularResourceParameters($singular = true)
  10642. {
  10643. /** @var \Illuminate\Routing\Router $instance */
  10644. $instance->singularResourceParameters($singular);
  10645. }
  10646. /**
  10647. * Set the global resource parameter mapping.
  10648. *
  10649. * @param array $parameters
  10650. * @return void
  10651. * @static
  10652. */
  10653. public static function resourceParameters($parameters = [])
  10654. {
  10655. /** @var \Illuminate\Routing\Router $instance */
  10656. $instance->resourceParameters($parameters);
  10657. }
  10658. /**
  10659. * Get or set the verbs used in the resource URIs.
  10660. *
  10661. * @param array $verbs
  10662. * @return array|null
  10663. * @static
  10664. */
  10665. public static function resourceVerbs($verbs = [])
  10666. {
  10667. /** @var \Illuminate\Routing\Router $instance */
  10668. return $instance->resourceVerbs($verbs);
  10669. }
  10670. /**
  10671. * Get the underlying route collection.
  10672. *
  10673. * @return \Illuminate\Routing\RouteCollection
  10674. * @static
  10675. */
  10676. public static function getRoutes()
  10677. {
  10678. /** @var \Illuminate\Routing\Router $instance */
  10679. return $instance->getRoutes();
  10680. }
  10681. /**
  10682. * Set the route collection instance.
  10683. *
  10684. * @param \Illuminate\Routing\RouteCollection $routes
  10685. * @return void
  10686. * @static
  10687. */
  10688. public static function setRoutes($routes)
  10689. {
  10690. /** @var \Illuminate\Routing\Router $instance */
  10691. $instance->setRoutes($routes);
  10692. }
  10693. /**
  10694. * Remove any duplicate middleware from the given array.
  10695. *
  10696. * @param array $middleware
  10697. * @return array
  10698. * @static
  10699. */
  10700. public static function uniqueMiddleware($middleware)
  10701. {
  10702. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  10703. }
  10704. /**
  10705. * Register a custom macro.
  10706. *
  10707. * @param string $name
  10708. * @param object|callable $macro
  10709. * @return void
  10710. * @static
  10711. */
  10712. public static function macro($name, $macro)
  10713. {
  10714. \Illuminate\Routing\Router::macro($name, $macro);
  10715. }
  10716. /**
  10717. * Mix another object into the class.
  10718. *
  10719. * @param object $mixin
  10720. * @param bool $replace
  10721. * @return void
  10722. * @throws \ReflectionException
  10723. * @static
  10724. */
  10725. public static function mixin($mixin, $replace = true)
  10726. {
  10727. \Illuminate\Routing\Router::mixin($mixin, $replace);
  10728. }
  10729. /**
  10730. * Checks if macro is registered.
  10731. *
  10732. * @param string $name
  10733. * @return bool
  10734. * @static
  10735. */
  10736. public static function hasMacro($name)
  10737. {
  10738. return \Illuminate\Routing\Router::hasMacro($name);
  10739. }
  10740. /**
  10741. * Dynamically handle calls to the class.
  10742. *
  10743. * @param string $method
  10744. * @param array $parameters
  10745. * @return mixed
  10746. * @throws \BadMethodCallException
  10747. * @static
  10748. */
  10749. public static function macroCall($method, $parameters)
  10750. {
  10751. /** @var \Illuminate\Routing\Router $instance */
  10752. return $instance->macroCall($method, $parameters);
  10753. }
  10754. }
  10755. /**
  10756. *
  10757. *
  10758. * @see \Illuminate\Database\Schema\Builder
  10759. */
  10760. class Schema {
  10761. /**
  10762. * Determine if the given table exists.
  10763. *
  10764. * @param string $table
  10765. * @return bool
  10766. * @static
  10767. */
  10768. public static function hasTable($table)
  10769. {
  10770. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10771. return $instance->hasTable($table);
  10772. }
  10773. /**
  10774. * Get the column listing for a given table.
  10775. *
  10776. * @param string $table
  10777. * @return array
  10778. * @static
  10779. */
  10780. public static function getColumnListing($table)
  10781. {
  10782. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10783. return $instance->getColumnListing($table);
  10784. }
  10785. /**
  10786. * Drop all tables from the database.
  10787. *
  10788. * @return void
  10789. * @static
  10790. */
  10791. public static function dropAllTables()
  10792. {
  10793. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10794. $instance->dropAllTables();
  10795. }
  10796. /**
  10797. * Drop all views from the database.
  10798. *
  10799. * @return void
  10800. * @static
  10801. */
  10802. public static function dropAllViews()
  10803. {
  10804. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10805. $instance->dropAllViews();
  10806. }
  10807. /**
  10808. * Get all of the table names for the database.
  10809. *
  10810. * @return array
  10811. * @static
  10812. */
  10813. public static function getAllTables()
  10814. {
  10815. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10816. return $instance->getAllTables();
  10817. }
  10818. /**
  10819. * Get all of the view names for the database.
  10820. *
  10821. * @return array
  10822. * @static
  10823. */
  10824. public static function getAllViews()
  10825. {
  10826. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10827. return $instance->getAllViews();
  10828. }
  10829. /**
  10830. * Set the default string length for migrations.
  10831. *
  10832. * @param int $length
  10833. * @return void
  10834. * @static
  10835. */
  10836. public static function defaultStringLength($length)
  10837. { //Method inherited from \Illuminate\Database\Schema\Builder
  10838. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10839. }
  10840. /**
  10841. * Determine if the given table has a given column.
  10842. *
  10843. * @param string $table
  10844. * @param string $column
  10845. * @return bool
  10846. * @static
  10847. */
  10848. public static function hasColumn($table, $column)
  10849. { //Method inherited from \Illuminate\Database\Schema\Builder
  10850. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10851. return $instance->hasColumn($table, $column);
  10852. }
  10853. /**
  10854. * Determine if the given table has given columns.
  10855. *
  10856. * @param string $table
  10857. * @param array $columns
  10858. * @return bool
  10859. * @static
  10860. */
  10861. public static function hasColumns($table, $columns)
  10862. { //Method inherited from \Illuminate\Database\Schema\Builder
  10863. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10864. return $instance->hasColumns($table, $columns);
  10865. }
  10866. /**
  10867. * Get the data type for the given column name.
  10868. *
  10869. * @param string $table
  10870. * @param string $column
  10871. * @return string
  10872. * @static
  10873. */
  10874. public static function getColumnType($table, $column)
  10875. { //Method inherited from \Illuminate\Database\Schema\Builder
  10876. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10877. return $instance->getColumnType($table, $column);
  10878. }
  10879. /**
  10880. * Modify a table on the schema.
  10881. *
  10882. * @param string $table
  10883. * @param \Closure $callback
  10884. * @return void
  10885. * @static
  10886. */
  10887. public static function table($table, $callback)
  10888. { //Method inherited from \Illuminate\Database\Schema\Builder
  10889. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10890. $instance->table($table, $callback);
  10891. }
  10892. /**
  10893. * Create a new table on the schema.
  10894. *
  10895. * @param string $table
  10896. * @param \Closure $callback
  10897. * @return void
  10898. * @static
  10899. */
  10900. public static function create($table, $callback)
  10901. { //Method inherited from \Illuminate\Database\Schema\Builder
  10902. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10903. $instance->create($table, $callback);
  10904. }
  10905. /**
  10906. * Drop a table from the schema.
  10907. *
  10908. * @param string $table
  10909. * @return void
  10910. * @static
  10911. */
  10912. public static function drop($table)
  10913. { //Method inherited from \Illuminate\Database\Schema\Builder
  10914. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10915. $instance->drop($table);
  10916. }
  10917. /**
  10918. * Drop a table from the schema if it exists.
  10919. *
  10920. * @param string $table
  10921. * @return void
  10922. * @static
  10923. */
  10924. public static function dropIfExists($table)
  10925. { //Method inherited from \Illuminate\Database\Schema\Builder
  10926. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10927. $instance->dropIfExists($table);
  10928. }
  10929. /**
  10930. * Drop all types from the database.
  10931. *
  10932. * @return void
  10933. * @throws \LogicException
  10934. * @static
  10935. */
  10936. public static function dropAllTypes()
  10937. { //Method inherited from \Illuminate\Database\Schema\Builder
  10938. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10939. $instance->dropAllTypes();
  10940. }
  10941. /**
  10942. * Rename a table on the schema.
  10943. *
  10944. * @param string $from
  10945. * @param string $to
  10946. * @return void
  10947. * @static
  10948. */
  10949. public static function rename($from, $to)
  10950. { //Method inherited from \Illuminate\Database\Schema\Builder
  10951. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10952. $instance->rename($from, $to);
  10953. }
  10954. /**
  10955. * Enable foreign key constraints.
  10956. *
  10957. * @return bool
  10958. * @static
  10959. */
  10960. public static function enableForeignKeyConstraints()
  10961. { //Method inherited from \Illuminate\Database\Schema\Builder
  10962. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10963. return $instance->enableForeignKeyConstraints();
  10964. }
  10965. /**
  10966. * Disable foreign key constraints.
  10967. *
  10968. * @return bool
  10969. * @static
  10970. */
  10971. public static function disableForeignKeyConstraints()
  10972. { //Method inherited from \Illuminate\Database\Schema\Builder
  10973. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10974. return $instance->disableForeignKeyConstraints();
  10975. }
  10976. /**
  10977. * Register a custom Doctrine mapping type.
  10978. *
  10979. * @param string $class
  10980. * @param string $name
  10981. * @param string $type
  10982. * @return void
  10983. * @throws \Doctrine\DBAL\DBALException
  10984. * @throws \RuntimeException
  10985. * @static
  10986. */
  10987. public static function registerCustomDoctrineType($class, $name, $type)
  10988. { //Method inherited from \Illuminate\Database\Schema\Builder
  10989. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10990. $instance->registerCustomDoctrineType($class, $name, $type);
  10991. }
  10992. /**
  10993. * Get the database connection instance.
  10994. *
  10995. * @return \Illuminate\Database\Connection
  10996. * @static
  10997. */
  10998. public static function getConnection()
  10999. { //Method inherited from \Illuminate\Database\Schema\Builder
  11000. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11001. return $instance->getConnection();
  11002. }
  11003. /**
  11004. * Set the database connection instance.
  11005. *
  11006. * @param \Illuminate\Database\Connection $connection
  11007. * @return \Illuminate\Database\Schema\MySqlBuilder
  11008. * @static
  11009. */
  11010. public static function setConnection($connection)
  11011. { //Method inherited from \Illuminate\Database\Schema\Builder
  11012. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11013. return $instance->setConnection($connection);
  11014. }
  11015. /**
  11016. * Set the Schema Blueprint resolver callback.
  11017. *
  11018. * @param \Closure $resolver
  11019. * @return void
  11020. * @static
  11021. */
  11022. public static function blueprintResolver($resolver)
  11023. { //Method inherited from \Illuminate\Database\Schema\Builder
  11024. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11025. $instance->blueprintResolver($resolver);
  11026. }
  11027. }
  11028. /**
  11029. *
  11030. *
  11031. * @see \Illuminate\Session\SessionManager
  11032. * @see \Illuminate\Session\Store
  11033. */
  11034. class Session {
  11035. /**
  11036. * Get the session configuration.
  11037. *
  11038. * @return array
  11039. * @static
  11040. */
  11041. public static function getSessionConfig()
  11042. {
  11043. /** @var \Illuminate\Session\SessionManager $instance */
  11044. return $instance->getSessionConfig();
  11045. }
  11046. /**
  11047. * Get the default session driver name.
  11048. *
  11049. * @return string
  11050. * @static
  11051. */
  11052. public static function getDefaultDriver()
  11053. {
  11054. /** @var \Illuminate\Session\SessionManager $instance */
  11055. return $instance->getDefaultDriver();
  11056. }
  11057. /**
  11058. * Set the default session driver name.
  11059. *
  11060. * @param string $name
  11061. * @return void
  11062. * @static
  11063. */
  11064. public static function setDefaultDriver($name)
  11065. {
  11066. /** @var \Illuminate\Session\SessionManager $instance */
  11067. $instance->setDefaultDriver($name);
  11068. }
  11069. /**
  11070. * Get a driver instance.
  11071. *
  11072. * @param string $driver
  11073. * @return mixed
  11074. * @throws \InvalidArgumentException
  11075. * @static
  11076. */
  11077. public static function driver($driver = null)
  11078. { //Method inherited from \Illuminate\Support\Manager
  11079. /** @var \Illuminate\Session\SessionManager $instance */
  11080. return $instance->driver($driver);
  11081. }
  11082. /**
  11083. * Register a custom driver creator Closure.
  11084. *
  11085. * @param string $driver
  11086. * @param \Closure $callback
  11087. * @return \Illuminate\Session\SessionManager
  11088. * @static
  11089. */
  11090. public static function extend($driver, $callback)
  11091. { //Method inherited from \Illuminate\Support\Manager
  11092. /** @var \Illuminate\Session\SessionManager $instance */
  11093. return $instance->extend($driver, $callback);
  11094. }
  11095. /**
  11096. * Get all of the created "drivers".
  11097. *
  11098. * @return array
  11099. * @static
  11100. */
  11101. public static function getDrivers()
  11102. { //Method inherited from \Illuminate\Support\Manager
  11103. /** @var \Illuminate\Session\SessionManager $instance */
  11104. return $instance->getDrivers();
  11105. }
  11106. /**
  11107. * Start the session, reading the data from a handler.
  11108. *
  11109. * @return bool
  11110. * @static
  11111. */
  11112. public static function start()
  11113. {
  11114. /** @var \Illuminate\Session\Store $instance */
  11115. return $instance->start();
  11116. }
  11117. /**
  11118. * Save the session data to storage.
  11119. *
  11120. * @return void
  11121. * @static
  11122. */
  11123. public static function save()
  11124. {
  11125. /** @var \Illuminate\Session\Store $instance */
  11126. $instance->save();
  11127. }
  11128. /**
  11129. * Age the flash data for the session.
  11130. *
  11131. * @return void
  11132. * @static
  11133. */
  11134. public static function ageFlashData()
  11135. {
  11136. /** @var \Illuminate\Session\Store $instance */
  11137. $instance->ageFlashData();
  11138. }
  11139. /**
  11140. * Get all of the session data.
  11141. *
  11142. * @return array
  11143. * @static
  11144. */
  11145. public static function all()
  11146. {
  11147. /** @var \Illuminate\Session\Store $instance */
  11148. return $instance->all();
  11149. }
  11150. /**
  11151. * Get a subset of the session data.
  11152. *
  11153. * @param array $keys
  11154. * @return array
  11155. * @static
  11156. */
  11157. public static function only($keys)
  11158. {
  11159. /** @var \Illuminate\Session\Store $instance */
  11160. return $instance->only($keys);
  11161. }
  11162. /**
  11163. * Checks if a key exists.
  11164. *
  11165. * @param string|array $key
  11166. * @return bool
  11167. * @static
  11168. */
  11169. public static function exists($key)
  11170. {
  11171. /** @var \Illuminate\Session\Store $instance */
  11172. return $instance->exists($key);
  11173. }
  11174. /**
  11175. * Checks if a key is present and not null.
  11176. *
  11177. * @param string|array $key
  11178. * @return bool
  11179. * @static
  11180. */
  11181. public static function has($key)
  11182. {
  11183. /** @var \Illuminate\Session\Store $instance */
  11184. return $instance->has($key);
  11185. }
  11186. /**
  11187. * Get an item from the session.
  11188. *
  11189. * @param string $key
  11190. * @param mixed $default
  11191. * @return mixed
  11192. * @static
  11193. */
  11194. public static function get($key, $default = null)
  11195. {
  11196. /** @var \Illuminate\Session\Store $instance */
  11197. return $instance->get($key, $default);
  11198. }
  11199. /**
  11200. * Get the value of a given key and then forget it.
  11201. *
  11202. * @param string $key
  11203. * @param string|null $default
  11204. * @return mixed
  11205. * @static
  11206. */
  11207. public static function pull($key, $default = null)
  11208. {
  11209. /** @var \Illuminate\Session\Store $instance */
  11210. return $instance->pull($key, $default);
  11211. }
  11212. /**
  11213. * Determine if the session contains old input.
  11214. *
  11215. * @param string|null $key
  11216. * @return bool
  11217. * @static
  11218. */
  11219. public static function hasOldInput($key = null)
  11220. {
  11221. /** @var \Illuminate\Session\Store $instance */
  11222. return $instance->hasOldInput($key);
  11223. }
  11224. /**
  11225. * Get the requested item from the flashed input array.
  11226. *
  11227. * @param string|null $key
  11228. * @param mixed $default
  11229. * @return mixed
  11230. * @static
  11231. */
  11232. public static function getOldInput($key = null, $default = null)
  11233. {
  11234. /** @var \Illuminate\Session\Store $instance */
  11235. return $instance->getOldInput($key, $default);
  11236. }
  11237. /**
  11238. * Replace the given session attributes entirely.
  11239. *
  11240. * @param array $attributes
  11241. * @return void
  11242. * @static
  11243. */
  11244. public static function replace($attributes)
  11245. {
  11246. /** @var \Illuminate\Session\Store $instance */
  11247. $instance->replace($attributes);
  11248. }
  11249. /**
  11250. * Put a key / value pair or array of key / value pairs in the session.
  11251. *
  11252. * @param string|array $key
  11253. * @param mixed $value
  11254. * @return void
  11255. * @static
  11256. */
  11257. public static function put($key, $value = null)
  11258. {
  11259. /** @var \Illuminate\Session\Store $instance */
  11260. $instance->put($key, $value);
  11261. }
  11262. /**
  11263. * Get an item from the session, or store the default value.
  11264. *
  11265. * @param string $key
  11266. * @param \Closure $callback
  11267. * @return mixed
  11268. * @static
  11269. */
  11270. public static function remember($key, $callback)
  11271. {
  11272. /** @var \Illuminate\Session\Store $instance */
  11273. return $instance->remember($key, $callback);
  11274. }
  11275. /**
  11276. * Push a value onto a session array.
  11277. *
  11278. * @param string $key
  11279. * @param mixed $value
  11280. * @return void
  11281. * @static
  11282. */
  11283. public static function push($key, $value)
  11284. {
  11285. /** @var \Illuminate\Session\Store $instance */
  11286. $instance->push($key, $value);
  11287. }
  11288. /**
  11289. * Increment the value of an item in the session.
  11290. *
  11291. * @param string $key
  11292. * @param int $amount
  11293. * @return mixed
  11294. * @static
  11295. */
  11296. public static function increment($key, $amount = 1)
  11297. {
  11298. /** @var \Illuminate\Session\Store $instance */
  11299. return $instance->increment($key, $amount);
  11300. }
  11301. /**
  11302. * Decrement the value of an item in the session.
  11303. *
  11304. * @param string $key
  11305. * @param int $amount
  11306. * @return int
  11307. * @static
  11308. */
  11309. public static function decrement($key, $amount = 1)
  11310. {
  11311. /** @var \Illuminate\Session\Store $instance */
  11312. return $instance->decrement($key, $amount);
  11313. }
  11314. /**
  11315. * Flash a key / value pair to the session.
  11316. *
  11317. * @param string $key
  11318. * @param mixed $value
  11319. * @return void
  11320. * @static
  11321. */
  11322. public static function flash($key, $value = true)
  11323. {
  11324. /** @var \Illuminate\Session\Store $instance */
  11325. $instance->flash($key, $value);
  11326. }
  11327. /**
  11328. * Flash a key / value pair to the session for immediate use.
  11329. *
  11330. * @param string $key
  11331. * @param mixed $value
  11332. * @return void
  11333. * @static
  11334. */
  11335. public static function now($key, $value)
  11336. {
  11337. /** @var \Illuminate\Session\Store $instance */
  11338. $instance->now($key, $value);
  11339. }
  11340. /**
  11341. * Reflash all of the session flash data.
  11342. *
  11343. * @return void
  11344. * @static
  11345. */
  11346. public static function reflash()
  11347. {
  11348. /** @var \Illuminate\Session\Store $instance */
  11349. $instance->reflash();
  11350. }
  11351. /**
  11352. * Reflash a subset of the current flash data.
  11353. *
  11354. * @param array|mixed $keys
  11355. * @return void
  11356. * @static
  11357. */
  11358. public static function keep($keys = null)
  11359. {
  11360. /** @var \Illuminate\Session\Store $instance */
  11361. $instance->keep($keys);
  11362. }
  11363. /**
  11364. * Flash an input array to the session.
  11365. *
  11366. * @param array $value
  11367. * @return void
  11368. * @static
  11369. */
  11370. public static function flashInput($value)
  11371. {
  11372. /** @var \Illuminate\Session\Store $instance */
  11373. $instance->flashInput($value);
  11374. }
  11375. /**
  11376. * Remove an item from the session, returning its value.
  11377. *
  11378. * @param string $key
  11379. * @return mixed
  11380. * @static
  11381. */
  11382. public static function remove($key)
  11383. {
  11384. /** @var \Illuminate\Session\Store $instance */
  11385. return $instance->remove($key);
  11386. }
  11387. /**
  11388. * Remove one or many items from the session.
  11389. *
  11390. * @param string|array $keys
  11391. * @return void
  11392. * @static
  11393. */
  11394. public static function forget($keys)
  11395. {
  11396. /** @var \Illuminate\Session\Store $instance */
  11397. $instance->forget($keys);
  11398. }
  11399. /**
  11400. * Remove all of the items from the session.
  11401. *
  11402. * @return void
  11403. * @static
  11404. */
  11405. public static function flush()
  11406. {
  11407. /** @var \Illuminate\Session\Store $instance */
  11408. $instance->flush();
  11409. }
  11410. /**
  11411. * Flush the session data and regenerate the ID.
  11412. *
  11413. * @return bool
  11414. * @static
  11415. */
  11416. public static function invalidate()
  11417. {
  11418. /** @var \Illuminate\Session\Store $instance */
  11419. return $instance->invalidate();
  11420. }
  11421. /**
  11422. * Generate a new session identifier.
  11423. *
  11424. * @param bool $destroy
  11425. * @return bool
  11426. * @static
  11427. */
  11428. public static function regenerate($destroy = false)
  11429. {
  11430. /** @var \Illuminate\Session\Store $instance */
  11431. return $instance->regenerate($destroy);
  11432. }
  11433. /**
  11434. * Generate a new session ID for the session.
  11435. *
  11436. * @param bool $destroy
  11437. * @return bool
  11438. * @static
  11439. */
  11440. public static function migrate($destroy = false)
  11441. {
  11442. /** @var \Illuminate\Session\Store $instance */
  11443. return $instance->migrate($destroy);
  11444. }
  11445. /**
  11446. * Determine if the session has been started.
  11447. *
  11448. * @return bool
  11449. * @static
  11450. */
  11451. public static function isStarted()
  11452. {
  11453. /** @var \Illuminate\Session\Store $instance */
  11454. return $instance->isStarted();
  11455. }
  11456. /**
  11457. * Get the name of the session.
  11458. *
  11459. * @return string
  11460. * @static
  11461. */
  11462. public static function getName()
  11463. {
  11464. /** @var \Illuminate\Session\Store $instance */
  11465. return $instance->getName();
  11466. }
  11467. /**
  11468. * Set the name of the session.
  11469. *
  11470. * @param string $name
  11471. * @return void
  11472. * @static
  11473. */
  11474. public static function setName($name)
  11475. {
  11476. /** @var \Illuminate\Session\Store $instance */
  11477. $instance->setName($name);
  11478. }
  11479. /**
  11480. * Get the current session ID.
  11481. *
  11482. * @return string
  11483. * @static
  11484. */
  11485. public static function getId()
  11486. {
  11487. /** @var \Illuminate\Session\Store $instance */
  11488. return $instance->getId();
  11489. }
  11490. /**
  11491. * Set the session ID.
  11492. *
  11493. * @param string $id
  11494. * @return void
  11495. * @static
  11496. */
  11497. public static function setId($id)
  11498. {
  11499. /** @var \Illuminate\Session\Store $instance */
  11500. $instance->setId($id);
  11501. }
  11502. /**
  11503. * Determine if this is a valid session ID.
  11504. *
  11505. * @param string $id
  11506. * @return bool
  11507. * @static
  11508. */
  11509. public static function isValidId($id)
  11510. {
  11511. /** @var \Illuminate\Session\Store $instance */
  11512. return $instance->isValidId($id);
  11513. }
  11514. /**
  11515. * Set the existence of the session on the handler if applicable.
  11516. *
  11517. * @param bool $value
  11518. * @return void
  11519. * @static
  11520. */
  11521. public static function setExists($value)
  11522. {
  11523. /** @var \Illuminate\Session\Store $instance */
  11524. $instance->setExists($value);
  11525. }
  11526. /**
  11527. * Get the CSRF token value.
  11528. *
  11529. * @return string
  11530. * @static
  11531. */
  11532. public static function token()
  11533. {
  11534. /** @var \Illuminate\Session\Store $instance */
  11535. return $instance->token();
  11536. }
  11537. /**
  11538. * Regenerate the CSRF token value.
  11539. *
  11540. * @return void
  11541. * @static
  11542. */
  11543. public static function regenerateToken()
  11544. {
  11545. /** @var \Illuminate\Session\Store $instance */
  11546. $instance->regenerateToken();
  11547. }
  11548. /**
  11549. * Get the previous URL from the session.
  11550. *
  11551. * @return string|null
  11552. * @static
  11553. */
  11554. public static function previousUrl()
  11555. {
  11556. /** @var \Illuminate\Session\Store $instance */
  11557. return $instance->previousUrl();
  11558. }
  11559. /**
  11560. * Set the "previous" URL in the session.
  11561. *
  11562. * @param string $url
  11563. * @return void
  11564. * @static
  11565. */
  11566. public static function setPreviousUrl($url)
  11567. {
  11568. /** @var \Illuminate\Session\Store $instance */
  11569. $instance->setPreviousUrl($url);
  11570. }
  11571. /**
  11572. * Get the underlying session handler implementation.
  11573. *
  11574. * @return \SessionHandlerInterface
  11575. * @static
  11576. */
  11577. public static function getHandler()
  11578. {
  11579. /** @var \Illuminate\Session\Store $instance */
  11580. return $instance->getHandler();
  11581. }
  11582. /**
  11583. * Determine if the session handler needs a request.
  11584. *
  11585. * @return bool
  11586. * @static
  11587. */
  11588. public static function handlerNeedsRequest()
  11589. {
  11590. /** @var \Illuminate\Session\Store $instance */
  11591. return $instance->handlerNeedsRequest();
  11592. }
  11593. /**
  11594. * Set the request on the handler instance.
  11595. *
  11596. * @param \Illuminate\Http\Request $request
  11597. * @return void
  11598. * @static
  11599. */
  11600. public static function setRequestOnHandler($request)
  11601. {
  11602. /** @var \Illuminate\Session\Store $instance */
  11603. $instance->setRequestOnHandler($request);
  11604. }
  11605. }
  11606. /**
  11607. *
  11608. *
  11609. * @see \Illuminate\Filesystem\FilesystemManager
  11610. */
  11611. class Storage {
  11612. /**
  11613. * Get a filesystem instance.
  11614. *
  11615. * @param string|null $name
  11616. * @return \Illuminate\Filesystem\FilesystemAdapter
  11617. * @static
  11618. */
  11619. public static function drive($name = null)
  11620. {
  11621. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11622. return $instance->drive($name);
  11623. }
  11624. /**
  11625. * Get a filesystem instance.
  11626. *
  11627. * @param string|null $name
  11628. * @return \Illuminate\Filesystem\FilesystemAdapter
  11629. * @static
  11630. */
  11631. public static function disk($name = null)
  11632. {
  11633. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11634. return $instance->disk($name);
  11635. }
  11636. /**
  11637. * Get a default cloud filesystem instance.
  11638. *
  11639. * @return \Illuminate\Filesystem\FilesystemAdapter
  11640. * @static
  11641. */
  11642. public static function cloud()
  11643. {
  11644. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11645. return $instance->cloud();
  11646. }
  11647. /**
  11648. * Create an instance of the local driver.
  11649. *
  11650. * @param array $config
  11651. * @return \Illuminate\Filesystem\FilesystemAdapter
  11652. * @static
  11653. */
  11654. public static function createLocalDriver($config)
  11655. {
  11656. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11657. return $instance->createLocalDriver($config);
  11658. }
  11659. /**
  11660. * Create an instance of the ftp driver.
  11661. *
  11662. * @param array $config
  11663. * @return \Illuminate\Filesystem\FilesystemAdapter
  11664. * @static
  11665. */
  11666. public static function createFtpDriver($config)
  11667. {
  11668. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11669. return $instance->createFtpDriver($config);
  11670. }
  11671. /**
  11672. * Create an instance of the sftp driver.
  11673. *
  11674. * @param array $config
  11675. * @return \Illuminate\Filesystem\FilesystemAdapter
  11676. * @static
  11677. */
  11678. public static function createSftpDriver($config)
  11679. {
  11680. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11681. return $instance->createSftpDriver($config);
  11682. }
  11683. /**
  11684. * Create an instance of the Amazon S3 driver.
  11685. *
  11686. * @param array $config
  11687. * @return \Illuminate\Contracts\Filesystem\Cloud
  11688. * @static
  11689. */
  11690. public static function createS3Driver($config)
  11691. {
  11692. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11693. return $instance->createS3Driver($config);
  11694. }
  11695. /**
  11696. * Set the given disk instance.
  11697. *
  11698. * @param string $name
  11699. * @param mixed $disk
  11700. * @return \Illuminate\Filesystem\FilesystemManager
  11701. * @static
  11702. */
  11703. public static function set($name, $disk)
  11704. {
  11705. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11706. return $instance->set($name, $disk);
  11707. }
  11708. /**
  11709. * Get the default driver name.
  11710. *
  11711. * @return string
  11712. * @static
  11713. */
  11714. public static function getDefaultDriver()
  11715. {
  11716. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11717. return $instance->getDefaultDriver();
  11718. }
  11719. /**
  11720. * Get the default cloud driver name.
  11721. *
  11722. * @return string
  11723. * @static
  11724. */
  11725. public static function getDefaultCloudDriver()
  11726. {
  11727. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11728. return $instance->getDefaultCloudDriver();
  11729. }
  11730. /**
  11731. * Unset the given disk instances.
  11732. *
  11733. * @param array|string $disk
  11734. * @return \Illuminate\Filesystem\FilesystemManager
  11735. * @static
  11736. */
  11737. public static function forgetDisk($disk)
  11738. {
  11739. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11740. return $instance->forgetDisk($disk);
  11741. }
  11742. /**
  11743. * Register a custom driver creator Closure.
  11744. *
  11745. * @param string $driver
  11746. * @param \Closure $callback
  11747. * @return \Illuminate\Filesystem\FilesystemManager
  11748. * @static
  11749. */
  11750. public static function extend($driver, $callback)
  11751. {
  11752. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11753. return $instance->extend($driver, $callback);
  11754. }
  11755. /**
  11756. * Assert that the given file exists.
  11757. *
  11758. * @param string|array $path
  11759. * @return \Illuminate\Filesystem\FilesystemAdapter
  11760. * @static
  11761. */
  11762. public static function assertExists($path)
  11763. {
  11764. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11765. return $instance->assertExists($path);
  11766. }
  11767. /**
  11768. * Assert that the given file does not exist.
  11769. *
  11770. * @param string|array $path
  11771. * @return \Illuminate\Filesystem\FilesystemAdapter
  11772. * @static
  11773. */
  11774. public static function assertMissing($path)
  11775. {
  11776. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11777. return $instance->assertMissing($path);
  11778. }
  11779. /**
  11780. * Determine if a file exists.
  11781. *
  11782. * @param string $path
  11783. * @return bool
  11784. * @static
  11785. */
  11786. public static function exists($path)
  11787. {
  11788. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11789. return $instance->exists($path);
  11790. }
  11791. /**
  11792. * Determine if a file or directory is missing.
  11793. *
  11794. * @param string $path
  11795. * @return bool
  11796. * @static
  11797. */
  11798. public static function missing($path)
  11799. {
  11800. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11801. return $instance->missing($path);
  11802. }
  11803. /**
  11804. * Get the full path for the file at the given "short" path.
  11805. *
  11806. * @param string $path
  11807. * @return string
  11808. * @static
  11809. */
  11810. public static function path($path)
  11811. {
  11812. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11813. return $instance->path($path);
  11814. }
  11815. /**
  11816. * Get the contents of a file.
  11817. *
  11818. * @param string $path
  11819. * @return string
  11820. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11821. * @static
  11822. */
  11823. public static function get($path)
  11824. {
  11825. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11826. return $instance->get($path);
  11827. }
  11828. /**
  11829. * Create a streamed response for a given file.
  11830. *
  11831. * @param string $path
  11832. * @param string|null $name
  11833. * @param array|null $headers
  11834. * @param string|null $disposition
  11835. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11836. * @static
  11837. */
  11838. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  11839. {
  11840. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11841. return $instance->response($path, $name, $headers, $disposition);
  11842. }
  11843. /**
  11844. * Create a streamed download response for a given file.
  11845. *
  11846. * @param string $path
  11847. * @param string|null $name
  11848. * @param array|null $headers
  11849. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11850. * @static
  11851. */
  11852. public static function download($path, $name = null, $headers = [])
  11853. {
  11854. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11855. return $instance->download($path, $name, $headers);
  11856. }
  11857. /**
  11858. * Write the contents of a file.
  11859. *
  11860. * @param string $path
  11861. * @param string|resource $contents
  11862. * @param mixed $options
  11863. * @return bool
  11864. * @static
  11865. */
  11866. public static function put($path, $contents, $options = [])
  11867. {
  11868. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11869. return $instance->put($path, $contents, $options);
  11870. }
  11871. /**
  11872. * Store the uploaded file on the disk.
  11873. *
  11874. * @param string $path
  11875. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  11876. * @param mixed $options
  11877. * @return string|false
  11878. * @static
  11879. */
  11880. public static function putFile($path, $file, $options = [])
  11881. {
  11882. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11883. return $instance->putFile($path, $file, $options);
  11884. }
  11885. /**
  11886. * Store the uploaded file on the disk with a given name.
  11887. *
  11888. * @param string $path
  11889. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  11890. * @param string $name
  11891. * @param mixed $options
  11892. * @return string|false
  11893. * @static
  11894. */
  11895. public static function putFileAs($path, $file, $name, $options = [])
  11896. {
  11897. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11898. return $instance->putFileAs($path, $file, $name, $options);
  11899. }
  11900. /**
  11901. * Get the visibility for the given path.
  11902. *
  11903. * @param string $path
  11904. * @return string
  11905. * @static
  11906. */
  11907. public static function getVisibility($path)
  11908. {
  11909. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11910. return $instance->getVisibility($path);
  11911. }
  11912. /**
  11913. * Set the visibility for the given path.
  11914. *
  11915. * @param string $path
  11916. * @param string $visibility
  11917. * @return bool
  11918. * @static
  11919. */
  11920. public static function setVisibility($path, $visibility)
  11921. {
  11922. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11923. return $instance->setVisibility($path, $visibility);
  11924. }
  11925. /**
  11926. * Prepend to a file.
  11927. *
  11928. * @param string $path
  11929. * @param string $data
  11930. * @param string $separator
  11931. * @return bool
  11932. * @static
  11933. */
  11934. public static function prepend($path, $data, $separator = '
  11935. ')
  11936. {
  11937. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11938. return $instance->prepend($path, $data, $separator);
  11939. }
  11940. /**
  11941. * Append to a file.
  11942. *
  11943. * @param string $path
  11944. * @param string $data
  11945. * @param string $separator
  11946. * @return bool
  11947. * @static
  11948. */
  11949. public static function append($path, $data, $separator = '
  11950. ')
  11951. {
  11952. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11953. return $instance->append($path, $data, $separator);
  11954. }
  11955. /**
  11956. * Delete the file at a given path.
  11957. *
  11958. * @param string|array $paths
  11959. * @return bool
  11960. * @static
  11961. */
  11962. public static function delete($paths)
  11963. {
  11964. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11965. return $instance->delete($paths);
  11966. }
  11967. /**
  11968. * Copy a file to a new location.
  11969. *
  11970. * @param string $from
  11971. * @param string $to
  11972. * @return bool
  11973. * @static
  11974. */
  11975. public static function copy($from, $to)
  11976. {
  11977. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11978. return $instance->copy($from, $to);
  11979. }
  11980. /**
  11981. * Move a file to a new location.
  11982. *
  11983. * @param string $from
  11984. * @param string $to
  11985. * @return bool
  11986. * @static
  11987. */
  11988. public static function move($from, $to)
  11989. {
  11990. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11991. return $instance->move($from, $to);
  11992. }
  11993. /**
  11994. * Get the file size of a given file.
  11995. *
  11996. * @param string $path
  11997. * @return int
  11998. * @static
  11999. */
  12000. public static function size($path)
  12001. {
  12002. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12003. return $instance->size($path);
  12004. }
  12005. /**
  12006. * Get the mime-type of a given file.
  12007. *
  12008. * @param string $path
  12009. * @return string|false
  12010. * @static
  12011. */
  12012. public static function mimeType($path)
  12013. {
  12014. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12015. return $instance->mimeType($path);
  12016. }
  12017. /**
  12018. * Get the file's last modification time.
  12019. *
  12020. * @param string $path
  12021. * @return int
  12022. * @static
  12023. */
  12024. public static function lastModified($path)
  12025. {
  12026. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12027. return $instance->lastModified($path);
  12028. }
  12029. /**
  12030. * Get the URL for the file at the given path.
  12031. *
  12032. * @param string $path
  12033. * @return string
  12034. * @throws \RuntimeException
  12035. * @static
  12036. */
  12037. public static function url($path)
  12038. {
  12039. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12040. return $instance->url($path);
  12041. }
  12042. /**
  12043. * Get a resource to read the file.
  12044. *
  12045. * @param string $path
  12046. * @return resource|null The path resource or null on failure.
  12047. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  12048. * @static
  12049. */
  12050. public static function readStream($path)
  12051. {
  12052. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12053. return $instance->readStream($path);
  12054. }
  12055. /**
  12056. * Write a new file using a stream.
  12057. *
  12058. * @param string $path
  12059. * @param resource $resource
  12060. * @param array $options
  12061. * @return bool
  12062. * @throws \InvalidArgumentException If $resource is not a file handle.
  12063. * @throws \Illuminate\Contracts\Filesystem\FileExistsException
  12064. * @static
  12065. */
  12066. public static function writeStream($path, $resource, $options = [])
  12067. {
  12068. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12069. return $instance->writeStream($path, $resource, $options);
  12070. }
  12071. /**
  12072. * Get a temporary URL for the file at the given path.
  12073. *
  12074. * @param string $path
  12075. * @param \DateTimeInterface $expiration
  12076. * @param array $options
  12077. * @return string
  12078. * @throws \RuntimeException
  12079. * @static
  12080. */
  12081. public static function temporaryUrl($path, $expiration, $options = [])
  12082. {
  12083. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12084. return $instance->temporaryUrl($path, $expiration, $options);
  12085. }
  12086. /**
  12087. * Get a temporary URL for the file at the given path.
  12088. *
  12089. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  12090. * @param string $path
  12091. * @param \DateTimeInterface $expiration
  12092. * @param array $options
  12093. * @return string
  12094. * @static
  12095. */
  12096. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  12097. {
  12098. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12099. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  12100. }
  12101. /**
  12102. * Get an array of all files in a directory.
  12103. *
  12104. * @param string|null $directory
  12105. * @param bool $recursive
  12106. * @return array
  12107. * @static
  12108. */
  12109. public static function files($directory = null, $recursive = false)
  12110. {
  12111. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12112. return $instance->files($directory, $recursive);
  12113. }
  12114. /**
  12115. * Get all of the files from the given directory (recursive).
  12116. *
  12117. * @param string|null $directory
  12118. * @return array
  12119. * @static
  12120. */
  12121. public static function allFiles($directory = null)
  12122. {
  12123. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12124. return $instance->allFiles($directory);
  12125. }
  12126. /**
  12127. * Get all of the directories within a given directory.
  12128. *
  12129. * @param string|null $directory
  12130. * @param bool $recursive
  12131. * @return array
  12132. * @static
  12133. */
  12134. public static function directories($directory = null, $recursive = false)
  12135. {
  12136. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12137. return $instance->directories($directory, $recursive);
  12138. }
  12139. /**
  12140. * Get all (recursive) of the directories within a given directory.
  12141. *
  12142. * @param string|null $directory
  12143. * @return array
  12144. * @static
  12145. */
  12146. public static function allDirectories($directory = null)
  12147. {
  12148. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12149. return $instance->allDirectories($directory);
  12150. }
  12151. /**
  12152. * Create a directory.
  12153. *
  12154. * @param string $path
  12155. * @return bool
  12156. * @static
  12157. */
  12158. public static function makeDirectory($path)
  12159. {
  12160. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12161. return $instance->makeDirectory($path);
  12162. }
  12163. /**
  12164. * Recursively delete a directory.
  12165. *
  12166. * @param string $directory
  12167. * @return bool
  12168. * @static
  12169. */
  12170. public static function deleteDirectory($directory)
  12171. {
  12172. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12173. return $instance->deleteDirectory($directory);
  12174. }
  12175. /**
  12176. * Flush the Flysystem cache.
  12177. *
  12178. * @return void
  12179. * @static
  12180. */
  12181. public static function flushCache()
  12182. {
  12183. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12184. $instance->flushCache();
  12185. }
  12186. /**
  12187. * Get the Flysystem driver.
  12188. *
  12189. * @return \League\Flysystem\FilesystemInterface
  12190. * @static
  12191. */
  12192. public static function getDriver()
  12193. {
  12194. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12195. return $instance->getDriver();
  12196. }
  12197. }
  12198. /**
  12199. *
  12200. *
  12201. * @see \Illuminate\Routing\UrlGenerator
  12202. */
  12203. class URL {
  12204. /**
  12205. * Get the full URL for the current request.
  12206. *
  12207. * @return string
  12208. * @static
  12209. */
  12210. public static function full()
  12211. {
  12212. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12213. return $instance->full();
  12214. }
  12215. /**
  12216. * Get the current URL for the request.
  12217. *
  12218. * @return string
  12219. * @static
  12220. */
  12221. public static function current()
  12222. {
  12223. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12224. return $instance->current();
  12225. }
  12226. /**
  12227. * Get the URL for the previous request.
  12228. *
  12229. * @param mixed $fallback
  12230. * @return string
  12231. * @static
  12232. */
  12233. public static function previous($fallback = false)
  12234. {
  12235. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12236. return $instance->previous($fallback);
  12237. }
  12238. /**
  12239. * Generate an absolute URL to the given path.
  12240. *
  12241. * @param string $path
  12242. * @param mixed $extra
  12243. * @param bool|null $secure
  12244. * @return string
  12245. * @static
  12246. */
  12247. public static function to($path, $extra = [], $secure = null)
  12248. {
  12249. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12250. return $instance->to($path, $extra, $secure);
  12251. }
  12252. /**
  12253. * Generate a secure, absolute URL to the given path.
  12254. *
  12255. * @param string $path
  12256. * @param array $parameters
  12257. * @return string
  12258. * @static
  12259. */
  12260. public static function secure($path, $parameters = [])
  12261. {
  12262. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12263. return $instance->secure($path, $parameters);
  12264. }
  12265. /**
  12266. * Generate the URL to an application asset.
  12267. *
  12268. * @param string $path
  12269. * @param bool|null $secure
  12270. * @return string
  12271. * @static
  12272. */
  12273. public static function asset($path, $secure = null)
  12274. {
  12275. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12276. return $instance->asset($path, $secure);
  12277. }
  12278. /**
  12279. * Generate the URL to a secure asset.
  12280. *
  12281. * @param string $path
  12282. * @return string
  12283. * @static
  12284. */
  12285. public static function secureAsset($path)
  12286. {
  12287. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12288. return $instance->secureAsset($path);
  12289. }
  12290. /**
  12291. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  12292. *
  12293. * @param string $root
  12294. * @param string $path
  12295. * @param bool|null $secure
  12296. * @return string
  12297. * @static
  12298. */
  12299. public static function assetFrom($root, $path, $secure = null)
  12300. {
  12301. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12302. return $instance->assetFrom($root, $path, $secure);
  12303. }
  12304. /**
  12305. * Get the default scheme for a raw URL.
  12306. *
  12307. * @param bool|null $secure
  12308. * @return string
  12309. * @static
  12310. */
  12311. public static function formatScheme($secure = null)
  12312. {
  12313. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12314. return $instance->formatScheme($secure);
  12315. }
  12316. /**
  12317. * Create a signed route URL for a named route.
  12318. *
  12319. * @param string $name
  12320. * @param mixed $parameters
  12321. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  12322. * @param bool $absolute
  12323. * @return string
  12324. * @throws \InvalidArgumentException
  12325. * @static
  12326. */
  12327. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  12328. {
  12329. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12330. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  12331. }
  12332. /**
  12333. * Create a temporary signed route URL for a named route.
  12334. *
  12335. * @param string $name
  12336. * @param \DateTimeInterface|\DateInterval|int $expiration
  12337. * @param array $parameters
  12338. * @param bool $absolute
  12339. * @return string
  12340. * @static
  12341. */
  12342. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  12343. {
  12344. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12345. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  12346. }
  12347. /**
  12348. * Determine if the given request has a valid signature.
  12349. *
  12350. * @param \Illuminate\Http\Request $request
  12351. * @param bool $absolute
  12352. * @return bool
  12353. * @static
  12354. */
  12355. public static function hasValidSignature($request, $absolute = true)
  12356. {
  12357. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12358. return $instance->hasValidSignature($request, $absolute);
  12359. }
  12360. /**
  12361. * Determine if the signature from the given request matches the URL.
  12362. *
  12363. * @param \Illuminate\Http\Request $request
  12364. * @param bool $absolute
  12365. * @return bool
  12366. * @static
  12367. */
  12368. public static function hasCorrectSignature($request, $absolute = true)
  12369. {
  12370. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12371. return $instance->hasCorrectSignature($request, $absolute);
  12372. }
  12373. /**
  12374. * Determine if the expires timestamp from the given request is not from the past.
  12375. *
  12376. * @param \Illuminate\Http\Request $request
  12377. * @return bool
  12378. * @static
  12379. */
  12380. public static function signatureHasNotExpired($request)
  12381. {
  12382. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12383. return $instance->signatureHasNotExpired($request);
  12384. }
  12385. /**
  12386. * Get the URL to a named route.
  12387. *
  12388. * @param string $name
  12389. * @param mixed $parameters
  12390. * @param bool $absolute
  12391. * @return string
  12392. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  12393. * @static
  12394. */
  12395. public static function route($name, $parameters = [], $absolute = true)
  12396. {
  12397. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12398. return $instance->route($name, $parameters, $absolute);
  12399. }
  12400. /**
  12401. * Get the URL for a given route instance.
  12402. *
  12403. * @param \Illuminate\Routing\Route $route
  12404. * @param mixed $parameters
  12405. * @param bool $absolute
  12406. * @return string
  12407. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  12408. * @static
  12409. */
  12410. public static function toRoute($route, $parameters, $absolute)
  12411. {
  12412. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12413. return $instance->toRoute($route, $parameters, $absolute);
  12414. }
  12415. /**
  12416. * Get the URL to a controller action.
  12417. *
  12418. * @param string|array $action
  12419. * @param mixed $parameters
  12420. * @param bool $absolute
  12421. * @return string
  12422. * @throws \InvalidArgumentException
  12423. * @static
  12424. */
  12425. public static function action($action, $parameters = [], $absolute = true)
  12426. {
  12427. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12428. return $instance->action($action, $parameters, $absolute);
  12429. }
  12430. /**
  12431. * Format the array of URL parameters.
  12432. *
  12433. * @param mixed|array $parameters
  12434. * @return array
  12435. * @static
  12436. */
  12437. public static function formatParameters($parameters)
  12438. {
  12439. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12440. return $instance->formatParameters($parameters);
  12441. }
  12442. /**
  12443. * Get the base URL for the request.
  12444. *
  12445. * @param string $scheme
  12446. * @param string|null $root
  12447. * @return string
  12448. * @static
  12449. */
  12450. public static function formatRoot($scheme, $root = null)
  12451. {
  12452. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12453. return $instance->formatRoot($scheme, $root);
  12454. }
  12455. /**
  12456. * Format the given URL segments into a single URL.
  12457. *
  12458. * @param string $root
  12459. * @param string $path
  12460. * @param \Illuminate\Routing\Route|null $route
  12461. * @return string
  12462. * @static
  12463. */
  12464. public static function format($root, $path, $route = null)
  12465. {
  12466. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12467. return $instance->format($root, $path, $route);
  12468. }
  12469. /**
  12470. * Determine if the given path is a valid URL.
  12471. *
  12472. * @param string $path
  12473. * @return bool
  12474. * @static
  12475. */
  12476. public static function isValidUrl($path)
  12477. {
  12478. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12479. return $instance->isValidUrl($path);
  12480. }
  12481. /**
  12482. * Set the default named parameters used by the URL generator.
  12483. *
  12484. * @param array $defaults
  12485. * @return void
  12486. * @static
  12487. */
  12488. public static function defaults($defaults)
  12489. {
  12490. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12491. $instance->defaults($defaults);
  12492. }
  12493. /**
  12494. * Get the default named parameters used by the URL generator.
  12495. *
  12496. * @return array
  12497. * @static
  12498. */
  12499. public static function getDefaultParameters()
  12500. {
  12501. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12502. return $instance->getDefaultParameters();
  12503. }
  12504. /**
  12505. * Force the scheme for URLs.
  12506. *
  12507. * @param string $scheme
  12508. * @return void
  12509. * @static
  12510. */
  12511. public static function forceScheme($scheme)
  12512. {
  12513. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12514. $instance->forceScheme($scheme);
  12515. }
  12516. /**
  12517. * Set the forced root URL.
  12518. *
  12519. * @param string $root
  12520. * @return void
  12521. * @static
  12522. */
  12523. public static function forceRootUrl($root)
  12524. {
  12525. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12526. $instance->forceRootUrl($root);
  12527. }
  12528. /**
  12529. * Set a callback to be used to format the host of generated URLs.
  12530. *
  12531. * @param \Closure $callback
  12532. * @return \Illuminate\Routing\UrlGenerator
  12533. * @static
  12534. */
  12535. public static function formatHostUsing($callback)
  12536. {
  12537. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12538. return $instance->formatHostUsing($callback);
  12539. }
  12540. /**
  12541. * Set a callback to be used to format the path of generated URLs.
  12542. *
  12543. * @param \Closure $callback
  12544. * @return \Illuminate\Routing\UrlGenerator
  12545. * @static
  12546. */
  12547. public static function formatPathUsing($callback)
  12548. {
  12549. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12550. return $instance->formatPathUsing($callback);
  12551. }
  12552. /**
  12553. * Get the path formatter being used by the URL generator.
  12554. *
  12555. * @return \Closure
  12556. * @static
  12557. */
  12558. public static function pathFormatter()
  12559. {
  12560. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12561. return $instance->pathFormatter();
  12562. }
  12563. /**
  12564. * Get the request instance.
  12565. *
  12566. * @return \Illuminate\Http\Request
  12567. * @static
  12568. */
  12569. public static function getRequest()
  12570. {
  12571. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12572. return $instance->getRequest();
  12573. }
  12574. /**
  12575. * Set the current request instance.
  12576. *
  12577. * @param \Illuminate\Http\Request $request
  12578. * @return void
  12579. * @static
  12580. */
  12581. public static function setRequest($request)
  12582. {
  12583. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12584. $instance->setRequest($request);
  12585. }
  12586. /**
  12587. * Set the route collection.
  12588. *
  12589. * @param \Illuminate\Routing\RouteCollection $routes
  12590. * @return \Illuminate\Routing\UrlGenerator
  12591. * @static
  12592. */
  12593. public static function setRoutes($routes)
  12594. {
  12595. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12596. return $instance->setRoutes($routes);
  12597. }
  12598. /**
  12599. * Set the session resolver for the generator.
  12600. *
  12601. * @param callable $sessionResolver
  12602. * @return \Illuminate\Routing\UrlGenerator
  12603. * @static
  12604. */
  12605. public static function setSessionResolver($sessionResolver)
  12606. {
  12607. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12608. return $instance->setSessionResolver($sessionResolver);
  12609. }
  12610. /**
  12611. * Set the encryption key resolver.
  12612. *
  12613. * @param callable $keyResolver
  12614. * @return \Illuminate\Routing\UrlGenerator
  12615. * @static
  12616. */
  12617. public static function setKeyResolver($keyResolver)
  12618. {
  12619. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12620. return $instance->setKeyResolver($keyResolver);
  12621. }
  12622. /**
  12623. * Set the root controller namespace.
  12624. *
  12625. * @param string $rootNamespace
  12626. * @return \Illuminate\Routing\UrlGenerator
  12627. * @static
  12628. */
  12629. public static function setRootControllerNamespace($rootNamespace)
  12630. {
  12631. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12632. return $instance->setRootControllerNamespace($rootNamespace);
  12633. }
  12634. /**
  12635. * Register a custom macro.
  12636. *
  12637. * @param string $name
  12638. * @param object|callable $macro
  12639. * @return void
  12640. * @static
  12641. */
  12642. public static function macro($name, $macro)
  12643. {
  12644. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  12645. }
  12646. /**
  12647. * Mix another object into the class.
  12648. *
  12649. * @param object $mixin
  12650. * @param bool $replace
  12651. * @return void
  12652. * @throws \ReflectionException
  12653. * @static
  12654. */
  12655. public static function mixin($mixin, $replace = true)
  12656. {
  12657. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  12658. }
  12659. /**
  12660. * Checks if macro is registered.
  12661. *
  12662. * @param string $name
  12663. * @return bool
  12664. * @static
  12665. */
  12666. public static function hasMacro($name)
  12667. {
  12668. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  12669. }
  12670. }
  12671. /**
  12672. *
  12673. *
  12674. * @see \Illuminate\Validation\Factory
  12675. */
  12676. class Validator {
  12677. /**
  12678. * Create a new Validator instance.
  12679. *
  12680. * @param array $data
  12681. * @param array $rules
  12682. * @param array $messages
  12683. * @param array $customAttributes
  12684. * @return \Illuminate\Validation\Validator
  12685. * @static
  12686. */
  12687. public static function make($data, $rules, $messages = [], $customAttributes = [])
  12688. {
  12689. /** @var \Illuminate\Validation\Factory $instance */
  12690. return $instance->make($data, $rules, $messages, $customAttributes);
  12691. }
  12692. /**
  12693. * Validate the given data against the provided rules.
  12694. *
  12695. * @param array $data
  12696. * @param array $rules
  12697. * @param array $messages
  12698. * @param array $customAttributes
  12699. * @return array
  12700. * @throws \Illuminate\Validation\ValidationException
  12701. * @static
  12702. */
  12703. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  12704. {
  12705. /** @var \Illuminate\Validation\Factory $instance */
  12706. return $instance->validate($data, $rules, $messages, $customAttributes);
  12707. }
  12708. /**
  12709. * Register a custom validator extension.
  12710. *
  12711. * @param string $rule
  12712. * @param \Closure|string $extension
  12713. * @param string|null $message
  12714. * @return void
  12715. * @static
  12716. */
  12717. public static function extend($rule, $extension, $message = null)
  12718. {
  12719. /** @var \Illuminate\Validation\Factory $instance */
  12720. $instance->extend($rule, $extension, $message);
  12721. }
  12722. /**
  12723. * Register a custom implicit validator extension.
  12724. *
  12725. * @param string $rule
  12726. * @param \Closure|string $extension
  12727. * @param string|null $message
  12728. * @return void
  12729. * @static
  12730. */
  12731. public static function extendImplicit($rule, $extension, $message = null)
  12732. {
  12733. /** @var \Illuminate\Validation\Factory $instance */
  12734. $instance->extendImplicit($rule, $extension, $message);
  12735. }
  12736. /**
  12737. * Register a custom dependent validator extension.
  12738. *
  12739. * @param string $rule
  12740. * @param \Closure|string $extension
  12741. * @param string|null $message
  12742. * @return void
  12743. * @static
  12744. */
  12745. public static function extendDependent($rule, $extension, $message = null)
  12746. {
  12747. /** @var \Illuminate\Validation\Factory $instance */
  12748. $instance->extendDependent($rule, $extension, $message);
  12749. }
  12750. /**
  12751. * Register a custom validator message replacer.
  12752. *
  12753. * @param string $rule
  12754. * @param \Closure|string $replacer
  12755. * @return void
  12756. * @static
  12757. */
  12758. public static function replacer($rule, $replacer)
  12759. {
  12760. /** @var \Illuminate\Validation\Factory $instance */
  12761. $instance->replacer($rule, $replacer);
  12762. }
  12763. /**
  12764. * Set the Validator instance resolver.
  12765. *
  12766. * @param \Closure $resolver
  12767. * @return void
  12768. * @static
  12769. */
  12770. public static function resolver($resolver)
  12771. {
  12772. /** @var \Illuminate\Validation\Factory $instance */
  12773. $instance->resolver($resolver);
  12774. }
  12775. /**
  12776. * Get the Translator implementation.
  12777. *
  12778. * @return \Illuminate\Contracts\Translation\Translator
  12779. * @static
  12780. */
  12781. public static function getTranslator()
  12782. {
  12783. /** @var \Illuminate\Validation\Factory $instance */
  12784. return $instance->getTranslator();
  12785. }
  12786. /**
  12787. * Get the Presence Verifier implementation.
  12788. *
  12789. * @return \Illuminate\Validation\PresenceVerifierInterface
  12790. * @static
  12791. */
  12792. public static function getPresenceVerifier()
  12793. {
  12794. /** @var \Illuminate\Validation\Factory $instance */
  12795. return $instance->getPresenceVerifier();
  12796. }
  12797. /**
  12798. * Set the Presence Verifier implementation.
  12799. *
  12800. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  12801. * @return void
  12802. * @static
  12803. */
  12804. public static function setPresenceVerifier($presenceVerifier)
  12805. {
  12806. /** @var \Illuminate\Validation\Factory $instance */
  12807. $instance->setPresenceVerifier($presenceVerifier);
  12808. }
  12809. }
  12810. /**
  12811. *
  12812. *
  12813. * @see \Illuminate\View\Factory
  12814. */
  12815. class View {
  12816. /**
  12817. * Get the evaluated view contents for the given view.
  12818. *
  12819. * @param string $path
  12820. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12821. * @param array $mergeData
  12822. * @return \Illuminate\Contracts\View\View
  12823. * @static
  12824. */
  12825. public static function file($path, $data = [], $mergeData = [])
  12826. {
  12827. /** @var \Illuminate\View\Factory $instance */
  12828. return $instance->file($path, $data, $mergeData);
  12829. }
  12830. /**
  12831. * Get the evaluated view contents for the given view.
  12832. *
  12833. * @param string $view
  12834. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12835. * @param array $mergeData
  12836. * @return \Illuminate\Contracts\View\View
  12837. * @static
  12838. */
  12839. public static function make($view, $data = [], $mergeData = [])
  12840. {
  12841. /** @var \Illuminate\View\Factory $instance */
  12842. return $instance->make($view, $data, $mergeData);
  12843. }
  12844. /**
  12845. * Get the first view that actually exists from the given list.
  12846. *
  12847. * @param array $views
  12848. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12849. * @param array $mergeData
  12850. * @return \Illuminate\Contracts\View\View
  12851. * @throws \InvalidArgumentException
  12852. * @static
  12853. */
  12854. public static function first($views, $data = [], $mergeData = [])
  12855. {
  12856. /** @var \Illuminate\View\Factory $instance */
  12857. return $instance->first($views, $data, $mergeData);
  12858. }
  12859. /**
  12860. * Get the rendered content of the view based on a given condition.
  12861. *
  12862. * @param bool $condition
  12863. * @param string $view
  12864. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12865. * @param array $mergeData
  12866. * @return string
  12867. * @static
  12868. */
  12869. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  12870. {
  12871. /** @var \Illuminate\View\Factory $instance */
  12872. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12873. }
  12874. /**
  12875. * Get the rendered contents of a partial from a loop.
  12876. *
  12877. * @param string $view
  12878. * @param array $data
  12879. * @param string $iterator
  12880. * @param string $empty
  12881. * @return string
  12882. * @static
  12883. */
  12884. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12885. {
  12886. /** @var \Illuminate\View\Factory $instance */
  12887. return $instance->renderEach($view, $data, $iterator, $empty);
  12888. }
  12889. /**
  12890. * Determine if a given view exists.
  12891. *
  12892. * @param string $view
  12893. * @return bool
  12894. * @static
  12895. */
  12896. public static function exists($view)
  12897. {
  12898. /** @var \Illuminate\View\Factory $instance */
  12899. return $instance->exists($view);
  12900. }
  12901. /**
  12902. * Get the appropriate view engine for the given path.
  12903. *
  12904. * @param string $path
  12905. * @return \Illuminate\Contracts\View\Engine
  12906. * @throws \InvalidArgumentException
  12907. * @static
  12908. */
  12909. public static function getEngineFromPath($path)
  12910. {
  12911. /** @var \Illuminate\View\Factory $instance */
  12912. return $instance->getEngineFromPath($path);
  12913. }
  12914. /**
  12915. * Add a piece of shared data to the environment.
  12916. *
  12917. * @param array|string $key
  12918. * @param mixed|null $value
  12919. * @return mixed
  12920. * @static
  12921. */
  12922. public static function share($key, $value = null)
  12923. {
  12924. /** @var \Illuminate\View\Factory $instance */
  12925. return $instance->share($key, $value);
  12926. }
  12927. /**
  12928. * Increment the rendering counter.
  12929. *
  12930. * @return void
  12931. * @static
  12932. */
  12933. public static function incrementRender()
  12934. {
  12935. /** @var \Illuminate\View\Factory $instance */
  12936. $instance->incrementRender();
  12937. }
  12938. /**
  12939. * Decrement the rendering counter.
  12940. *
  12941. * @return void
  12942. * @static
  12943. */
  12944. public static function decrementRender()
  12945. {
  12946. /** @var \Illuminate\View\Factory $instance */
  12947. $instance->decrementRender();
  12948. }
  12949. /**
  12950. * Check if there are no active render operations.
  12951. *
  12952. * @return bool
  12953. * @static
  12954. */
  12955. public static function doneRendering()
  12956. {
  12957. /** @var \Illuminate\View\Factory $instance */
  12958. return $instance->doneRendering();
  12959. }
  12960. /**
  12961. * Add a location to the array of view locations.
  12962. *
  12963. * @param string $location
  12964. * @return void
  12965. * @static
  12966. */
  12967. public static function addLocation($location)
  12968. {
  12969. /** @var \Illuminate\View\Factory $instance */
  12970. $instance->addLocation($location);
  12971. }
  12972. /**
  12973. * Add a new namespace to the loader.
  12974. *
  12975. * @param string $namespace
  12976. * @param string|array $hints
  12977. * @return \Illuminate\View\Factory
  12978. * @static
  12979. */
  12980. public static function addNamespace($namespace, $hints)
  12981. {
  12982. /** @var \Illuminate\View\Factory $instance */
  12983. return $instance->addNamespace($namespace, $hints);
  12984. }
  12985. /**
  12986. * Prepend a new namespace to the loader.
  12987. *
  12988. * @param string $namespace
  12989. * @param string|array $hints
  12990. * @return \Illuminate\View\Factory
  12991. * @static
  12992. */
  12993. public static function prependNamespace($namespace, $hints)
  12994. {
  12995. /** @var \Illuminate\View\Factory $instance */
  12996. return $instance->prependNamespace($namespace, $hints);
  12997. }
  12998. /**
  12999. * Replace the namespace hints for the given namespace.
  13000. *
  13001. * @param string $namespace
  13002. * @param string|array $hints
  13003. * @return \Illuminate\View\Factory
  13004. * @static
  13005. */
  13006. public static function replaceNamespace($namespace, $hints)
  13007. {
  13008. /** @var \Illuminate\View\Factory $instance */
  13009. return $instance->replaceNamespace($namespace, $hints);
  13010. }
  13011. /**
  13012. * Register a valid view extension and its engine.
  13013. *
  13014. * @param string $extension
  13015. * @param string $engine
  13016. * @param \Closure|null $resolver
  13017. * @return void
  13018. * @static
  13019. */
  13020. public static function addExtension($extension, $engine, $resolver = null)
  13021. {
  13022. /** @var \Illuminate\View\Factory $instance */
  13023. $instance->addExtension($extension, $engine, $resolver);
  13024. }
  13025. /**
  13026. * Flush all of the factory state like sections and stacks.
  13027. *
  13028. * @return void
  13029. * @static
  13030. */
  13031. public static function flushState()
  13032. {
  13033. /** @var \Illuminate\View\Factory $instance */
  13034. $instance->flushState();
  13035. }
  13036. /**
  13037. * Flush all of the section contents if done rendering.
  13038. *
  13039. * @return void
  13040. * @static
  13041. */
  13042. public static function flushStateIfDoneRendering()
  13043. {
  13044. /** @var \Illuminate\View\Factory $instance */
  13045. $instance->flushStateIfDoneRendering();
  13046. }
  13047. /**
  13048. * Get the extension to engine bindings.
  13049. *
  13050. * @return array
  13051. * @static
  13052. */
  13053. public static function getExtensions()
  13054. {
  13055. /** @var \Illuminate\View\Factory $instance */
  13056. return $instance->getExtensions();
  13057. }
  13058. /**
  13059. * Get the engine resolver instance.
  13060. *
  13061. * @return \Illuminate\View\Engines\EngineResolver
  13062. * @static
  13063. */
  13064. public static function getEngineResolver()
  13065. {
  13066. /** @var \Illuminate\View\Factory $instance */
  13067. return $instance->getEngineResolver();
  13068. }
  13069. /**
  13070. * Get the view finder instance.
  13071. *
  13072. * @return \Illuminate\View\ViewFinderInterface
  13073. * @static
  13074. */
  13075. public static function getFinder()
  13076. {
  13077. /** @var \Illuminate\View\Factory $instance */
  13078. return $instance->getFinder();
  13079. }
  13080. /**
  13081. * Set the view finder instance.
  13082. *
  13083. * @param \Illuminate\View\ViewFinderInterface $finder
  13084. * @return void
  13085. * @static
  13086. */
  13087. public static function setFinder($finder)
  13088. {
  13089. /** @var \Illuminate\View\Factory $instance */
  13090. $instance->setFinder($finder);
  13091. }
  13092. /**
  13093. * Flush the cache of views located by the finder.
  13094. *
  13095. * @return void
  13096. * @static
  13097. */
  13098. public static function flushFinderCache()
  13099. {
  13100. /** @var \Illuminate\View\Factory $instance */
  13101. $instance->flushFinderCache();
  13102. }
  13103. /**
  13104. * Get the event dispatcher instance.
  13105. *
  13106. * @return \Illuminate\Contracts\Events\Dispatcher
  13107. * @static
  13108. */
  13109. public static function getDispatcher()
  13110. {
  13111. /** @var \Illuminate\View\Factory $instance */
  13112. return $instance->getDispatcher();
  13113. }
  13114. /**
  13115. * Set the event dispatcher instance.
  13116. *
  13117. * @param \Illuminate\Contracts\Events\Dispatcher $events
  13118. * @return void
  13119. * @static
  13120. */
  13121. public static function setDispatcher($events)
  13122. {
  13123. /** @var \Illuminate\View\Factory $instance */
  13124. $instance->setDispatcher($events);
  13125. }
  13126. /**
  13127. * Get the IoC container instance.
  13128. *
  13129. * @return \Illuminate\Contracts\Container\Container
  13130. * @static
  13131. */
  13132. public static function getContainer()
  13133. {
  13134. /** @var \Illuminate\View\Factory $instance */
  13135. return $instance->getContainer();
  13136. }
  13137. /**
  13138. * Set the IoC container instance.
  13139. *
  13140. * @param \Illuminate\Contracts\Container\Container $container
  13141. * @return void
  13142. * @static
  13143. */
  13144. public static function setContainer($container)
  13145. {
  13146. /** @var \Illuminate\View\Factory $instance */
  13147. $instance->setContainer($container);
  13148. }
  13149. /**
  13150. * Get an item from the shared data.
  13151. *
  13152. * @param string $key
  13153. * @param mixed $default
  13154. * @return mixed
  13155. * @static
  13156. */
  13157. public static function shared($key, $default = null)
  13158. {
  13159. /** @var \Illuminate\View\Factory $instance */
  13160. return $instance->shared($key, $default);
  13161. }
  13162. /**
  13163. * Get all of the shared data for the environment.
  13164. *
  13165. * @return array
  13166. * @static
  13167. */
  13168. public static function getShared()
  13169. {
  13170. /** @var \Illuminate\View\Factory $instance */
  13171. return $instance->getShared();
  13172. }
  13173. /**
  13174. * Register a custom macro.
  13175. *
  13176. * @param string $name
  13177. * @param object|callable $macro
  13178. * @return void
  13179. * @static
  13180. */
  13181. public static function macro($name, $macro)
  13182. {
  13183. \Illuminate\View\Factory::macro($name, $macro);
  13184. }
  13185. /**
  13186. * Mix another object into the class.
  13187. *
  13188. * @param object $mixin
  13189. * @param bool $replace
  13190. * @return void
  13191. * @throws \ReflectionException
  13192. * @static
  13193. */
  13194. public static function mixin($mixin, $replace = true)
  13195. {
  13196. \Illuminate\View\Factory::mixin($mixin, $replace);
  13197. }
  13198. /**
  13199. * Checks if macro is registered.
  13200. *
  13201. * @param string $name
  13202. * @return bool
  13203. * @static
  13204. */
  13205. public static function hasMacro($name)
  13206. {
  13207. return \Illuminate\View\Factory::hasMacro($name);
  13208. }
  13209. /**
  13210. * Start a component rendering process.
  13211. *
  13212. * @param string $name
  13213. * @param array $data
  13214. * @return void
  13215. * @static
  13216. */
  13217. public static function startComponent($name, $data = [])
  13218. {
  13219. /** @var \Illuminate\View\Factory $instance */
  13220. $instance->startComponent($name, $data);
  13221. }
  13222. /**
  13223. * Get the first view that actually exists from the given list, and start a component.
  13224. *
  13225. * @param array $names
  13226. * @param array $data
  13227. * @return void
  13228. * @static
  13229. */
  13230. public static function startComponentFirst($names, $data = [])
  13231. {
  13232. /** @var \Illuminate\View\Factory $instance */
  13233. $instance->startComponentFirst($names, $data);
  13234. }
  13235. /**
  13236. * Render the current component.
  13237. *
  13238. * @return string
  13239. * @static
  13240. */
  13241. public static function renderComponent()
  13242. {
  13243. /** @var \Illuminate\View\Factory $instance */
  13244. return $instance->renderComponent();
  13245. }
  13246. /**
  13247. * Start the slot rendering process.
  13248. *
  13249. * @param string $name
  13250. * @param string|null $content
  13251. * @return void
  13252. * @static
  13253. */
  13254. public static function slot($name, $content = null)
  13255. {
  13256. /** @var \Illuminate\View\Factory $instance */
  13257. $instance->slot($name, $content);
  13258. }
  13259. /**
  13260. * Save the slot content for rendering.
  13261. *
  13262. * @return void
  13263. * @static
  13264. */
  13265. public static function endSlot()
  13266. {
  13267. /** @var \Illuminate\View\Factory $instance */
  13268. $instance->endSlot();
  13269. }
  13270. /**
  13271. * Register a view creator event.
  13272. *
  13273. * @param array|string $views
  13274. * @param \Closure|string $callback
  13275. * @return array
  13276. * @static
  13277. */
  13278. public static function creator($views, $callback)
  13279. {
  13280. /** @var \Illuminate\View\Factory $instance */
  13281. return $instance->creator($views, $callback);
  13282. }
  13283. /**
  13284. * Register multiple view composers via an array.
  13285. *
  13286. * @param array $composers
  13287. * @return array
  13288. * @static
  13289. */
  13290. public static function composers($composers)
  13291. {
  13292. /** @var \Illuminate\View\Factory $instance */
  13293. return $instance->composers($composers);
  13294. }
  13295. /**
  13296. * Register a view composer event.
  13297. *
  13298. * @param array|string $views
  13299. * @param \Closure|string $callback
  13300. * @return array
  13301. * @static
  13302. */
  13303. public static function composer($views, $callback)
  13304. {
  13305. /** @var \Illuminate\View\Factory $instance */
  13306. return $instance->composer($views, $callback);
  13307. }
  13308. /**
  13309. * Call the composer for a given view.
  13310. *
  13311. * @param \Illuminate\Contracts\View\View $view
  13312. * @return void
  13313. * @static
  13314. */
  13315. public static function callComposer($view)
  13316. {
  13317. /** @var \Illuminate\View\Factory $instance */
  13318. $instance->callComposer($view);
  13319. }
  13320. /**
  13321. * Call the creator for a given view.
  13322. *
  13323. * @param \Illuminate\Contracts\View\View $view
  13324. * @return void
  13325. * @static
  13326. */
  13327. public static function callCreator($view)
  13328. {
  13329. /** @var \Illuminate\View\Factory $instance */
  13330. $instance->callCreator($view);
  13331. }
  13332. /**
  13333. * Start injecting content into a section.
  13334. *
  13335. * @param string $section
  13336. * @param string|null $content
  13337. * @return void
  13338. * @static
  13339. */
  13340. public static function startSection($section, $content = null)
  13341. {
  13342. /** @var \Illuminate\View\Factory $instance */
  13343. $instance->startSection($section, $content);
  13344. }
  13345. /**
  13346. * Inject inline content into a section.
  13347. *
  13348. * @param string $section
  13349. * @param string $content
  13350. * @return void
  13351. * @static
  13352. */
  13353. public static function inject($section, $content)
  13354. {
  13355. /** @var \Illuminate\View\Factory $instance */
  13356. $instance->inject($section, $content);
  13357. }
  13358. /**
  13359. * Stop injecting content into a section and return its contents.
  13360. *
  13361. * @return string
  13362. * @static
  13363. */
  13364. public static function yieldSection()
  13365. {
  13366. /** @var \Illuminate\View\Factory $instance */
  13367. return $instance->yieldSection();
  13368. }
  13369. /**
  13370. * Stop injecting content into a section.
  13371. *
  13372. * @param bool $overwrite
  13373. * @return string
  13374. * @throws \InvalidArgumentException
  13375. * @static
  13376. */
  13377. public static function stopSection($overwrite = false)
  13378. {
  13379. /** @var \Illuminate\View\Factory $instance */
  13380. return $instance->stopSection($overwrite);
  13381. }
  13382. /**
  13383. * Stop injecting content into a section and append it.
  13384. *
  13385. * @return string
  13386. * @throws \InvalidArgumentException
  13387. * @static
  13388. */
  13389. public static function appendSection()
  13390. {
  13391. /** @var \Illuminate\View\Factory $instance */
  13392. return $instance->appendSection();
  13393. }
  13394. /**
  13395. * Get the string contents of a section.
  13396. *
  13397. * @param string $section
  13398. * @param string $default
  13399. * @return string
  13400. * @static
  13401. */
  13402. public static function yieldContent($section, $default = '')
  13403. {
  13404. /** @var \Illuminate\View\Factory $instance */
  13405. return $instance->yieldContent($section, $default);
  13406. }
  13407. /**
  13408. * Get the parent placeholder for the current request.
  13409. *
  13410. * @param string $section
  13411. * @return string
  13412. * @static
  13413. */
  13414. public static function parentPlaceholder($section = '')
  13415. {
  13416. return \Illuminate\View\Factory::parentPlaceholder($section);
  13417. }
  13418. /**
  13419. * Check if section exists.
  13420. *
  13421. * @param string $name
  13422. * @return bool
  13423. * @static
  13424. */
  13425. public static function hasSection($name)
  13426. {
  13427. /** @var \Illuminate\View\Factory $instance */
  13428. return $instance->hasSection($name);
  13429. }
  13430. /**
  13431. * Get the contents of a section.
  13432. *
  13433. * @param string $name
  13434. * @param string|null $default
  13435. * @return mixed
  13436. * @static
  13437. */
  13438. public static function getSection($name, $default = null)
  13439. {
  13440. /** @var \Illuminate\View\Factory $instance */
  13441. return $instance->getSection($name, $default);
  13442. }
  13443. /**
  13444. * Get the entire array of sections.
  13445. *
  13446. * @return array
  13447. * @static
  13448. */
  13449. public static function getSections()
  13450. {
  13451. /** @var \Illuminate\View\Factory $instance */
  13452. return $instance->getSections();
  13453. }
  13454. /**
  13455. * Flush all of the sections.
  13456. *
  13457. * @return void
  13458. * @static
  13459. */
  13460. public static function flushSections()
  13461. {
  13462. /** @var \Illuminate\View\Factory $instance */
  13463. $instance->flushSections();
  13464. }
  13465. /**
  13466. * Add new loop to the stack.
  13467. *
  13468. * @param \Countable|array $data
  13469. * @return void
  13470. * @static
  13471. */
  13472. public static function addLoop($data)
  13473. {
  13474. /** @var \Illuminate\View\Factory $instance */
  13475. $instance->addLoop($data);
  13476. }
  13477. /**
  13478. * Increment the top loop's indices.
  13479. *
  13480. * @return void
  13481. * @static
  13482. */
  13483. public static function incrementLoopIndices()
  13484. {
  13485. /** @var \Illuminate\View\Factory $instance */
  13486. $instance->incrementLoopIndices();
  13487. }
  13488. /**
  13489. * Pop a loop from the top of the loop stack.
  13490. *
  13491. * @return void
  13492. * @static
  13493. */
  13494. public static function popLoop()
  13495. {
  13496. /** @var \Illuminate\View\Factory $instance */
  13497. $instance->popLoop();
  13498. }
  13499. /**
  13500. * Get an instance of the last loop in the stack.
  13501. *
  13502. * @return \stdClass|null
  13503. * @static
  13504. */
  13505. public static function getLastLoop()
  13506. {
  13507. /** @var \Illuminate\View\Factory $instance */
  13508. return $instance->getLastLoop();
  13509. }
  13510. /**
  13511. * Get the entire loop stack.
  13512. *
  13513. * @return array
  13514. * @static
  13515. */
  13516. public static function getLoopStack()
  13517. {
  13518. /** @var \Illuminate\View\Factory $instance */
  13519. return $instance->getLoopStack();
  13520. }
  13521. /**
  13522. * Start injecting content into a push section.
  13523. *
  13524. * @param string $section
  13525. * @param string $content
  13526. * @return void
  13527. * @static
  13528. */
  13529. public static function startPush($section, $content = '')
  13530. {
  13531. /** @var \Illuminate\View\Factory $instance */
  13532. $instance->startPush($section, $content);
  13533. }
  13534. /**
  13535. * Stop injecting content into a push section.
  13536. *
  13537. * @return string
  13538. * @throws \InvalidArgumentException
  13539. * @static
  13540. */
  13541. public static function stopPush()
  13542. {
  13543. /** @var \Illuminate\View\Factory $instance */
  13544. return $instance->stopPush();
  13545. }
  13546. /**
  13547. * Start prepending content into a push section.
  13548. *
  13549. * @param string $section
  13550. * @param string $content
  13551. * @return void
  13552. * @static
  13553. */
  13554. public static function startPrepend($section, $content = '')
  13555. {
  13556. /** @var \Illuminate\View\Factory $instance */
  13557. $instance->startPrepend($section, $content);
  13558. }
  13559. /**
  13560. * Stop prepending content into a push section.
  13561. *
  13562. * @return string
  13563. * @throws \InvalidArgumentException
  13564. * @static
  13565. */
  13566. public static function stopPrepend()
  13567. {
  13568. /** @var \Illuminate\View\Factory $instance */
  13569. return $instance->stopPrepend();
  13570. }
  13571. /**
  13572. * Get the string contents of a push section.
  13573. *
  13574. * @param string $section
  13575. * @param string $default
  13576. * @return string
  13577. * @static
  13578. */
  13579. public static function yieldPushContent($section, $default = '')
  13580. {
  13581. /** @var \Illuminate\View\Factory $instance */
  13582. return $instance->yieldPushContent($section, $default);
  13583. }
  13584. /**
  13585. * Flush all of the stacks.
  13586. *
  13587. * @return void
  13588. * @static
  13589. */
  13590. public static function flushStacks()
  13591. {
  13592. /** @var \Illuminate\View\Factory $instance */
  13593. $instance->flushStacks();
  13594. }
  13595. /**
  13596. * Start a translation block.
  13597. *
  13598. * @param array $replacements
  13599. * @return void
  13600. * @static
  13601. */
  13602. public static function startTranslation($replacements = [])
  13603. {
  13604. /** @var \Illuminate\View\Factory $instance */
  13605. $instance->startTranslation($replacements);
  13606. }
  13607. /**
  13608. * Render the current translation.
  13609. *
  13610. * @return string
  13611. * @static
  13612. */
  13613. public static function renderTranslation()
  13614. {
  13615. /** @var \Illuminate\View\Factory $instance */
  13616. return $instance->renderTranslation();
  13617. }
  13618. }
  13619. }
  13620. namespace Illuminate\Support {
  13621. /**
  13622. *
  13623. *
  13624. */
  13625. class Arr {
  13626. }
  13627. /**
  13628. *
  13629. *
  13630. */
  13631. class Str {
  13632. }
  13633. /**
  13634. *
  13635. *
  13636. */
  13637. class Collection {
  13638. /**
  13639. *
  13640. *
  13641. * @see \Maatwebsite\Excel\Mixins\DownloadCollection::downloadExcel()
  13642. * @param string $fileName
  13643. * @param string|null $writerType
  13644. * @param mixed $withHeadings
  13645. * @static
  13646. */
  13647. public static function downloadExcel($fileName, $writerType = null, $withHeadings = false)
  13648. {
  13649. return \Illuminate\Support\Collection::downloadExcel($fileName, $writerType, $withHeadings);
  13650. }
  13651. /**
  13652. *
  13653. *
  13654. * @see \Maatwebsite\Excel\Mixins\StoreCollection::storeExcel()
  13655. * @param string $filePath
  13656. * @param string|null $disk
  13657. * @param string|null $writerType
  13658. * @param mixed $withHeadings
  13659. * @static
  13660. */
  13661. public static function storeExcel($filePath, $disk = null, $writerType = null, $withHeadings = false)
  13662. {
  13663. return \Illuminate\Support\Collection::storeExcel($filePath, $disk, $writerType, $withHeadings);
  13664. }
  13665. }
  13666. }
  13667. namespace Facade\Ignition\Facades {
  13668. /**
  13669. * Class Flare.
  13670. *
  13671. * @see \Facade\FlareClient\Flare
  13672. */
  13673. class Flare {
  13674. /**
  13675. *
  13676. *
  13677. * @static
  13678. */
  13679. public static function register($apiKey, $apiSecret = null, $contextDetector = null, $container = null)
  13680. {
  13681. return \Facade\FlareClient\Flare::register($apiKey, $apiSecret, $contextDetector, $container);
  13682. }
  13683. /**
  13684. *
  13685. *
  13686. * @static
  13687. */
  13688. public static function determineVersionUsing($determineVersionCallable)
  13689. {
  13690. /** @var \Facade\FlareClient\Flare $instance */
  13691. return $instance->determineVersionUsing($determineVersionCallable);
  13692. }
  13693. /**
  13694. *
  13695. *
  13696. * @static
  13697. */
  13698. public static function reportErrorLevels($reportErrorLevels)
  13699. {
  13700. /** @var \Facade\FlareClient\Flare $instance */
  13701. return $instance->reportErrorLevels($reportErrorLevels);
  13702. }
  13703. /**
  13704. *
  13705. *
  13706. * @static
  13707. */
  13708. public static function filterExceptionsUsing($filterExceptionsCallable)
  13709. {
  13710. /** @var \Facade\FlareClient\Flare $instance */
  13711. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  13712. }
  13713. /**
  13714. *
  13715. *
  13716. * @return null|string
  13717. * @static
  13718. */
  13719. public static function version()
  13720. {
  13721. /** @var \Facade\FlareClient\Flare $instance */
  13722. return $instance->version();
  13723. }
  13724. /**
  13725. *
  13726. *
  13727. * @static
  13728. */
  13729. public static function getMiddleware()
  13730. {
  13731. /** @var \Facade\FlareClient\Flare $instance */
  13732. return $instance->getMiddleware();
  13733. }
  13734. /**
  13735. *
  13736. *
  13737. * @static
  13738. */
  13739. public static function registerFlareHandlers()
  13740. {
  13741. /** @var \Facade\FlareClient\Flare $instance */
  13742. return $instance->registerFlareHandlers();
  13743. }
  13744. /**
  13745. *
  13746. *
  13747. * @static
  13748. */
  13749. public static function registerExceptionHandler()
  13750. {
  13751. /** @var \Facade\FlareClient\Flare $instance */
  13752. return $instance->registerExceptionHandler();
  13753. }
  13754. /**
  13755. *
  13756. *
  13757. * @static
  13758. */
  13759. public static function registerErrorHandler()
  13760. {
  13761. /** @var \Facade\FlareClient\Flare $instance */
  13762. return $instance->registerErrorHandler();
  13763. }
  13764. /**
  13765. *
  13766. *
  13767. * @static
  13768. */
  13769. public static function registerMiddleware($callable)
  13770. {
  13771. /** @var \Facade\FlareClient\Flare $instance */
  13772. return $instance->registerMiddleware($callable);
  13773. }
  13774. /**
  13775. *
  13776. *
  13777. * @static
  13778. */
  13779. public static function getMiddlewares()
  13780. {
  13781. /** @var \Facade\FlareClient\Flare $instance */
  13782. return $instance->getMiddlewares();
  13783. }
  13784. /**
  13785. *
  13786. *
  13787. * @static
  13788. */
  13789. public static function glow($name, $messageLevel = 'info', $metaData = [])
  13790. {
  13791. /** @var \Facade\FlareClient\Flare $instance */
  13792. return $instance->glow($name, $messageLevel, $metaData);
  13793. }
  13794. /**
  13795. *
  13796. *
  13797. * @static
  13798. */
  13799. public static function handleException($throwable)
  13800. {
  13801. /** @var \Facade\FlareClient\Flare $instance */
  13802. return $instance->handleException($throwable);
  13803. }
  13804. /**
  13805. *
  13806. *
  13807. * @static
  13808. */
  13809. public static function handleError($code, $message, $file = '', $line = 0)
  13810. {
  13811. /** @var \Facade\FlareClient\Flare $instance */
  13812. return $instance->handleError($code, $message, $file, $line);
  13813. }
  13814. /**
  13815. *
  13816. *
  13817. * @static
  13818. */
  13819. public static function applicationPath($applicationPath)
  13820. {
  13821. /** @var \Facade\FlareClient\Flare $instance */
  13822. return $instance->applicationPath($applicationPath);
  13823. }
  13824. /**
  13825. *
  13826. *
  13827. * @static
  13828. */
  13829. public static function report($throwable, $callback = null)
  13830. {
  13831. /** @var \Facade\FlareClient\Flare $instance */
  13832. return $instance->report($throwable, $callback);
  13833. }
  13834. /**
  13835. *
  13836. *
  13837. * @static
  13838. */
  13839. public static function reportMessage($message, $logLevel, $callback = null)
  13840. {
  13841. /** @var \Facade\FlareClient\Flare $instance */
  13842. return $instance->reportMessage($message, $logLevel, $callback);
  13843. }
  13844. /**
  13845. *
  13846. *
  13847. * @static
  13848. */
  13849. public static function sendTestReport($throwable)
  13850. {
  13851. /** @var \Facade\FlareClient\Flare $instance */
  13852. return $instance->sendTestReport($throwable);
  13853. }
  13854. /**
  13855. *
  13856. *
  13857. * @static
  13858. */
  13859. public static function reset()
  13860. {
  13861. /** @var \Facade\FlareClient\Flare $instance */
  13862. return $instance->reset();
  13863. }
  13864. /**
  13865. *
  13866. *
  13867. * @static
  13868. */
  13869. public static function anonymizeIp()
  13870. {
  13871. /** @var \Facade\FlareClient\Flare $instance */
  13872. return $instance->anonymizeIp();
  13873. }
  13874. /**
  13875. *
  13876. *
  13877. * @static
  13878. */
  13879. public static function censorRequestBodyFields($fieldNames)
  13880. {
  13881. /** @var \Facade\FlareClient\Flare $instance */
  13882. return $instance->censorRequestBodyFields($fieldNames);
  13883. }
  13884. /**
  13885. *
  13886. *
  13887. * @static
  13888. */
  13889. public static function createReport($throwable)
  13890. {
  13891. /** @var \Facade\FlareClient\Flare $instance */
  13892. return $instance->createReport($throwable);
  13893. }
  13894. /**
  13895. *
  13896. *
  13897. * @static
  13898. */
  13899. public static function createReportFromMessage($message, $logLevel)
  13900. {
  13901. /** @var \Facade\FlareClient\Flare $instance */
  13902. return $instance->createReportFromMessage($message, $logLevel);
  13903. }
  13904. /**
  13905. *
  13906. *
  13907. * @static
  13908. */
  13909. public static function stage($stage)
  13910. {
  13911. /** @var \Facade\FlareClient\Flare $instance */
  13912. return $instance->stage($stage);
  13913. }
  13914. /**
  13915. *
  13916. *
  13917. * @static
  13918. */
  13919. public static function messageLevel($messageLevel)
  13920. {
  13921. /** @var \Facade\FlareClient\Flare $instance */
  13922. return $instance->messageLevel($messageLevel);
  13923. }
  13924. /**
  13925. *
  13926. *
  13927. * @static
  13928. */
  13929. public static function getGroup($groupName = 'context', $default = [])
  13930. {
  13931. /** @var \Facade\FlareClient\Flare $instance */
  13932. return $instance->getGroup($groupName, $default);
  13933. }
  13934. /**
  13935. *
  13936. *
  13937. * @static
  13938. */
  13939. public static function context($key, $value)
  13940. {
  13941. /** @var \Facade\FlareClient\Flare $instance */
  13942. return $instance->context($key, $value);
  13943. }
  13944. /**
  13945. *
  13946. *
  13947. * @static
  13948. */
  13949. public static function group($groupName, $properties)
  13950. {
  13951. /** @var \Facade\FlareClient\Flare $instance */
  13952. return $instance->group($groupName, $properties);
  13953. }
  13954. }
  13955. }
  13956. namespace Intervention\Image\Facades {
  13957. /**
  13958. *
  13959. *
  13960. */
  13961. class Image {
  13962. /**
  13963. * Overrides configuration settings
  13964. *
  13965. * @param array $config
  13966. * @return self
  13967. * @static
  13968. */
  13969. public static function configure($config = [])
  13970. {
  13971. /** @var \Intervention\Image\ImageManager $instance */
  13972. return $instance->configure($config);
  13973. }
  13974. /**
  13975. * Initiates an Image instance from different input types
  13976. *
  13977. * @param mixed $data
  13978. * @return \Intervention\Image\Image
  13979. * @static
  13980. */
  13981. public static function make($data)
  13982. {
  13983. /** @var \Intervention\Image\ImageManager $instance */
  13984. return $instance->make($data);
  13985. }
  13986. /**
  13987. * Creates an empty image canvas
  13988. *
  13989. * @param int $width
  13990. * @param int $height
  13991. * @param mixed $background
  13992. * @return \Intervention\Image\Image
  13993. * @static
  13994. */
  13995. public static function canvas($width, $height, $background = null)
  13996. {
  13997. /** @var \Intervention\Image\ImageManager $instance */
  13998. return $instance->canvas($width, $height, $background);
  13999. }
  14000. /**
  14001. * Create new cached image and run callback
  14002. * (requires additional package intervention/imagecache)
  14003. *
  14004. * @param \Closure $callback
  14005. * @param int $lifetime
  14006. * @param boolean $returnObj
  14007. * @return \Image
  14008. * @static
  14009. */
  14010. public static function cache($callback, $lifetime = null, $returnObj = false)
  14011. {
  14012. /** @var \Intervention\Image\ImageManager $instance */
  14013. return $instance->cache($callback, $lifetime, $returnObj);
  14014. }
  14015. }
  14016. }
  14017. namespace Maatwebsite\Excel\Facades {
  14018. /**
  14019. *
  14020. *
  14021. */
  14022. class Excel {
  14023. /**
  14024. *
  14025. *
  14026. * @param object $export
  14027. * @param string|null $fileName
  14028. * @param string $writerType
  14029. * @param array $headers
  14030. * @throws \PhpOffice\PhpSpreadsheet\Exception
  14031. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  14032. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  14033. * @static
  14034. */
  14035. public static function download($export, $fileName, $writerType = null, $headers = [])
  14036. {
  14037. /** @var \Maatwebsite\Excel\Excel $instance */
  14038. return $instance->download($export, $fileName, $writerType, $headers);
  14039. }
  14040. /**
  14041. *
  14042. *
  14043. * @param object $export
  14044. * @param string $filePath
  14045. * @param string|null $disk
  14046. * @param string $writerType
  14047. * @param mixed $diskOptions
  14048. * @throws \PhpOffice\PhpSpreadsheet\Exception
  14049. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  14050. * @return bool
  14051. * @static
  14052. */
  14053. public static function store($export, $filePath, $diskName = null, $writerType = null, $diskOptions = [])
  14054. {
  14055. /** @var \Maatwebsite\Excel\Excel $instance */
  14056. return $instance->store($export, $filePath, $diskName, $writerType, $diskOptions);
  14057. }
  14058. /**
  14059. *
  14060. *
  14061. * @param object $export
  14062. * @param string $filePath
  14063. * @param string|null $disk
  14064. * @param string $writerType
  14065. * @param mixed $diskOptions
  14066. * @return \Illuminate\Foundation\Bus\PendingDispatch
  14067. * @static
  14068. */
  14069. public static function queue($export, $filePath, $disk = null, $writerType = null, $diskOptions = [])
  14070. {
  14071. /** @var \Maatwebsite\Excel\Excel $instance */
  14072. return $instance->queue($export, $filePath, $disk, $writerType, $diskOptions);
  14073. }
  14074. /**
  14075. *
  14076. *
  14077. * @param object $export
  14078. * @param string $writerType
  14079. * @return string
  14080. * @static
  14081. */
  14082. public static function raw($export, $writerType)
  14083. {
  14084. /** @var \Maatwebsite\Excel\Excel $instance */
  14085. return $instance->raw($export, $writerType);
  14086. }
  14087. /**
  14088. *
  14089. *
  14090. * @param object $import
  14091. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  14092. * @param string|null $disk
  14093. * @param string|null $readerType
  14094. * @return \Maatwebsite\Excel\Reader|\Illuminate\Foundation\Bus\PendingDispatch
  14095. * @static
  14096. */
  14097. public static function import($import, $filePath, $disk = null, $readerType = null)
  14098. {
  14099. /** @var \Maatwebsite\Excel\Excel $instance */
  14100. return $instance->import($import, $filePath, $disk, $readerType);
  14101. }
  14102. /**
  14103. *
  14104. *
  14105. * @param object $import
  14106. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  14107. * @param string|null $disk
  14108. * @param string|null $readerType
  14109. * @return array
  14110. * @static
  14111. */
  14112. public static function toArray($import, $filePath, $disk = null, $readerType = null)
  14113. {
  14114. /** @var \Maatwebsite\Excel\Excel $instance */
  14115. return $instance->toArray($import, $filePath, $disk, $readerType);
  14116. }
  14117. /**
  14118. *
  14119. *
  14120. * @param object $import
  14121. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  14122. * @param string|null $disk
  14123. * @param string|null $readerType
  14124. * @return \Maatwebsite\Excel\Collection
  14125. * @static
  14126. */
  14127. public static function toCollection($import, $filePath, $disk = null, $readerType = null)
  14128. {
  14129. /** @var \Maatwebsite\Excel\Excel $instance */
  14130. return $instance->toCollection($import, $filePath, $disk, $readerType);
  14131. }
  14132. /**
  14133. *
  14134. *
  14135. * @param \Maatwebsite\Excel\ShouldQueue $import
  14136. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  14137. * @param string|null $disk
  14138. * @param string $readerType
  14139. * @return \Illuminate\Foundation\Bus\PendingDispatch
  14140. * @static
  14141. */
  14142. public static function queueImport($import, $filePath, $disk = null, $readerType = null)
  14143. {
  14144. /** @var \Maatwebsite\Excel\Excel $instance */
  14145. return $instance->queueImport($import, $filePath, $disk, $readerType);
  14146. }
  14147. /**
  14148. *
  14149. *
  14150. * @param string $concern
  14151. * @param callable $handler
  14152. * @param string $event
  14153. * @static
  14154. */
  14155. public static function extend($concern, $handler, $event = 'Maatwebsite\\Excel\\Events\\BeforeWriting')
  14156. {
  14157. return \Maatwebsite\Excel\Excel::extend($concern, $handler, $event);
  14158. }
  14159. /**
  14160. * When asserting downloaded, stored, queued or imported, use regular expression
  14161. * to look for a matching file path.
  14162. *
  14163. * @return void
  14164. * @static
  14165. */
  14166. public static function matchByRegex()
  14167. {
  14168. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14169. $instance->matchByRegex();
  14170. }
  14171. /**
  14172. * When asserting downloaded, stored, queued or imported, use regular string
  14173. * comparison for matching file path.
  14174. *
  14175. * @return void
  14176. * @static
  14177. */
  14178. public static function doNotMatchByRegex()
  14179. {
  14180. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14181. $instance->doNotMatchByRegex();
  14182. }
  14183. /**
  14184. *
  14185. *
  14186. * @param string $fileName
  14187. * @param callable|null $callback
  14188. * @static
  14189. */
  14190. public static function assertDownloaded($fileName, $callback = null)
  14191. {
  14192. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14193. return $instance->assertDownloaded($fileName, $callback);
  14194. }
  14195. /**
  14196. *
  14197. *
  14198. * @param string $filePath
  14199. * @param string|callable|null $disk
  14200. * @param callable|null $callback
  14201. * @static
  14202. */
  14203. public static function assertStored($filePath, $disk = null, $callback = null)
  14204. {
  14205. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14206. return $instance->assertStored($filePath, $disk, $callback);
  14207. }
  14208. /**
  14209. *
  14210. *
  14211. * @param string $filePath
  14212. * @param string|callable|null $disk
  14213. * @param callable|null $callback
  14214. * @static
  14215. */
  14216. public static function assertQueued($filePath, $disk = null, $callback = null)
  14217. {
  14218. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14219. return $instance->assertQueued($filePath, $disk, $callback);
  14220. }
  14221. /**
  14222. *
  14223. *
  14224. * @static
  14225. */
  14226. public static function assertQueuedWithChain($chain)
  14227. {
  14228. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14229. return $instance->assertQueuedWithChain($chain);
  14230. }
  14231. /**
  14232. *
  14233. *
  14234. * @param string $classname
  14235. * @param callable|null $callback
  14236. * @static
  14237. */
  14238. public static function assertExportedInRaw($classname, $callback = null)
  14239. {
  14240. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14241. return $instance->assertExportedInRaw($classname, $callback);
  14242. }
  14243. /**
  14244. *
  14245. *
  14246. * @param string $filePath
  14247. * @param string|callable|null $disk
  14248. * @param callable|null $callback
  14249. * @static
  14250. */
  14251. public static function assertImported($filePath, $disk = null, $callback = null)
  14252. {
  14253. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14254. return $instance->assertImported($filePath, $disk, $callback);
  14255. }
  14256. }
  14257. }
  14258. namespace Mews\Captcha\Facades {
  14259. /**
  14260. *
  14261. *
  14262. * @see \Mews\Captcha\Captcha
  14263. */
  14264. class Captcha {
  14265. /**
  14266. * Create captcha image
  14267. *
  14268. * @param string $config
  14269. * @param bool $api
  14270. * @return array|mixed
  14271. * @throws Exception
  14272. * @static
  14273. */
  14274. public static function create($config = 'default', $api = false)
  14275. {
  14276. /** @var \Mews\Captcha\Captcha $instance */
  14277. return $instance->create($config, $api);
  14278. }
  14279. /**
  14280. * Captcha check
  14281. *
  14282. * @param string $value
  14283. * @return bool
  14284. * @static
  14285. */
  14286. public static function check($value)
  14287. {
  14288. /** @var \Mews\Captcha\Captcha $instance */
  14289. return $instance->check($value);
  14290. }
  14291. /**
  14292. * Captcha check
  14293. *
  14294. * @param string $value
  14295. * @param string $key
  14296. * @param string $config
  14297. * @return bool
  14298. * @static
  14299. */
  14300. public static function check_api($value, $key, $config = 'default')
  14301. {
  14302. /** @var \Mews\Captcha\Captcha $instance */
  14303. return $instance->check_api($value, $key, $config);
  14304. }
  14305. /**
  14306. * Generate captcha image source
  14307. *
  14308. * @param string $config
  14309. * @return string
  14310. * @static
  14311. */
  14312. public static function src($config = 'default')
  14313. {
  14314. /** @var \Mews\Captcha\Captcha $instance */
  14315. return $instance->src($config);
  14316. }
  14317. /**
  14318. * Generate captcha image html tag
  14319. *
  14320. * @param string $config
  14321. * @param array $attrs $attrs -> HTML attributes supplied to the image tag where key is the attribute and the value is the attribute value
  14322. * @return string
  14323. * @static
  14324. */
  14325. public static function img($config = 'default', $attrs = [])
  14326. {
  14327. /** @var \Mews\Captcha\Captcha $instance */
  14328. return $instance->img($config, $attrs);
  14329. }
  14330. }
  14331. }
  14332. namespace Overtrue\LaravelPinyin\Facades {
  14333. /**
  14334. *
  14335. *
  14336. */
  14337. class Pinyin {
  14338. /**
  14339. * Convert string to pinyin.
  14340. *
  14341. * @param string $string
  14342. * @param int $option
  14343. * @return array
  14344. * @static
  14345. */
  14346. public static function convert($string, $option = 4096)
  14347. {
  14348. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14349. return $instance->convert($string, $option);
  14350. }
  14351. /**
  14352. * Convert string (person name) to pinyin.
  14353. *
  14354. * @param string $stringName
  14355. * @param int $option
  14356. * @return array
  14357. * @static
  14358. */
  14359. public static function name($stringName, $option = 16)
  14360. {
  14361. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14362. return $instance->name($stringName, $option);
  14363. }
  14364. /**
  14365. * Return a pinyin permalink from string.
  14366. *
  14367. * @param string $string
  14368. * @param string $delimiter
  14369. * @param int $option
  14370. * @return string
  14371. * @static
  14372. */
  14373. public static function permalink($string, $delimiter = '-', $option = 4096)
  14374. {
  14375. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14376. return $instance->permalink($string, $delimiter, $option);
  14377. }
  14378. /**
  14379. * Return first letters.
  14380. *
  14381. * @param string $string
  14382. * @param string $delimiter
  14383. * @param int $option
  14384. * @return string
  14385. * @static
  14386. */
  14387. public static function abbr($string, $delimiter = '', $option = 4096)
  14388. {
  14389. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14390. return $instance->abbr($string, $delimiter, $option);
  14391. }
  14392. /**
  14393. * Chinese phrase to pinyin.
  14394. *
  14395. * @param string $string
  14396. * @param string $delimiter
  14397. * @param int $option
  14398. * @return string
  14399. * @static
  14400. */
  14401. public static function phrase($string, $delimiter = ' ', $option = 4096)
  14402. {
  14403. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14404. return $instance->phrase($string, $delimiter, $option);
  14405. }
  14406. /**
  14407. * Chinese to pinyin sentence.
  14408. *
  14409. * @param string $string
  14410. * @param string $delimiter
  14411. * @param int $option
  14412. * @return string
  14413. * @static
  14414. */
  14415. public static function sentence($string, $delimiter = ' ', $option = 4)
  14416. {
  14417. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14418. return $instance->sentence($string, $delimiter, $option);
  14419. }
  14420. /**
  14421. * Loader setter.
  14422. *
  14423. * @param \Overtrue\Pinyin\DictLoaderInterface $loader
  14424. * @return \Overtrue\Pinyin\Pinyin
  14425. * @static
  14426. */
  14427. public static function setLoader($loader)
  14428. {
  14429. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14430. return $instance->setLoader($loader);
  14431. }
  14432. /**
  14433. * Return dict loader,.
  14434. *
  14435. * @return \Overtrue\Pinyin\DictLoaderInterface
  14436. * @static
  14437. */
  14438. public static function getLoader()
  14439. {
  14440. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14441. return $instance->getLoader();
  14442. }
  14443. /**
  14444. *
  14445. *
  14446. * @param int $option
  14447. * @param int $check
  14448. * @return bool
  14449. * @static
  14450. */
  14451. public static function hasOption($option, $check)
  14452. {
  14453. /** @var \Overtrue\Pinyin\Pinyin $instance */
  14454. return $instance->hasOption($option, $check);
  14455. }
  14456. }
  14457. }
  14458. namespace Zhuzhichao\IpLocationZh {
  14459. /**
  14460. *
  14461. *
  14462. */
  14463. class Ip {
  14464. }
  14465. }
  14466. namespace Illuminate\Http {
  14467. /**
  14468. *
  14469. *
  14470. */
  14471. class Request {
  14472. /**
  14473. *
  14474. *
  14475. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  14476. * @param array $rules
  14477. * @param mixed $params
  14478. * @static
  14479. */
  14480. public static function validate($rules, ...$params)
  14481. {
  14482. return \Illuminate\Http\Request::validate($rules, ...$params);
  14483. }
  14484. /**
  14485. *
  14486. *
  14487. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  14488. * @param string $errorBag
  14489. * @param array $rules
  14490. * @param mixed $params
  14491. * @static
  14492. */
  14493. public static function validateWithBag($errorBag, $rules, ...$params)
  14494. {
  14495. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  14496. }
  14497. /**
  14498. *
  14499. *
  14500. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  14501. * @param mixed $absolute
  14502. * @static
  14503. */
  14504. public static function hasValidSignature($absolute = true)
  14505. {
  14506. return \Illuminate\Http\Request::hasValidSignature($absolute);
  14507. }
  14508. }
  14509. }
  14510. namespace {
  14511. class App extends \Illuminate\Support\Facades\App {}
  14512. class Arr extends \Illuminate\Support\Arr {}
  14513. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  14514. class Auth extends \Illuminate\Support\Facades\Auth {}
  14515. class Blade extends \Illuminate\Support\Facades\Blade {}
  14516. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  14517. class Bus extends \Illuminate\Support\Facades\Bus {}
  14518. class Cache extends \Illuminate\Support\Facades\Cache {}
  14519. class Config extends \Illuminate\Support\Facades\Config {}
  14520. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  14521. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  14522. class DB extends \Illuminate\Support\Facades\DB {}
  14523. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  14524. /**
  14525. * Create and return an un-saved model instance.
  14526. *
  14527. * @param array $attributes
  14528. * @return \Illuminate\Database\Eloquent\Model|static
  14529. * @static
  14530. */
  14531. public static function make($attributes = [])
  14532. {
  14533. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14534. return $instance->make($attributes);
  14535. }
  14536. /**
  14537. * Register a new global scope.
  14538. *
  14539. * @param string $identifier
  14540. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  14541. * @return \Illuminate\Database\Eloquent\Builder|static
  14542. * @static
  14543. */
  14544. public static function withGlobalScope($identifier, $scope)
  14545. {
  14546. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14547. return $instance->withGlobalScope($identifier, $scope);
  14548. }
  14549. /**
  14550. * Remove a registered global scope.
  14551. *
  14552. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  14553. * @return \Illuminate\Database\Eloquent\Builder|static
  14554. * @static
  14555. */
  14556. public static function withoutGlobalScope($scope)
  14557. {
  14558. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14559. return $instance->withoutGlobalScope($scope);
  14560. }
  14561. /**
  14562. * Remove all or passed registered global scopes.
  14563. *
  14564. * @param array|null $scopes
  14565. * @return \Illuminate\Database\Eloquent\Builder|static
  14566. * @static
  14567. */
  14568. public static function withoutGlobalScopes($scopes = null)
  14569. {
  14570. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14571. return $instance->withoutGlobalScopes($scopes);
  14572. }
  14573. /**
  14574. * Get an array of global scopes that were removed from the query.
  14575. *
  14576. * @return array
  14577. * @static
  14578. */
  14579. public static function removedScopes()
  14580. {
  14581. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14582. return $instance->removedScopes();
  14583. }
  14584. /**
  14585. * Add a where clause on the primary key to the query.
  14586. *
  14587. * @param mixed $id
  14588. * @return \Illuminate\Database\Eloquent\Builder|static
  14589. * @static
  14590. */
  14591. public static function whereKey($id)
  14592. {
  14593. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14594. return $instance->whereKey($id);
  14595. }
  14596. /**
  14597. * Add a where clause on the primary key to the query.
  14598. *
  14599. * @param mixed $id
  14600. * @return \Illuminate\Database\Eloquent\Builder|static
  14601. * @static
  14602. */
  14603. public static function whereKeyNot($id)
  14604. {
  14605. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14606. return $instance->whereKeyNot($id);
  14607. }
  14608. /**
  14609. * Add a basic where clause to the query.
  14610. *
  14611. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  14612. * @param mixed $operator
  14613. * @param mixed $value
  14614. * @param string $boolean
  14615. * @return \Illuminate\Database\Eloquent\Builder|static
  14616. * @static
  14617. */
  14618. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  14619. {
  14620. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14621. return $instance->where($column, $operator, $value, $boolean);
  14622. }
  14623. /**
  14624. * Add a basic where clause to the query, and return the first result.
  14625. *
  14626. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  14627. * @param mixed $operator
  14628. * @param mixed $value
  14629. * @param string $boolean
  14630. * @return \Illuminate\Database\Eloquent\Model|static
  14631. * @static
  14632. */
  14633. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  14634. {
  14635. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14636. return $instance->firstWhere($column, $operator, $value, $boolean);
  14637. }
  14638. /**
  14639. * Add an "or where" clause to the query.
  14640. *
  14641. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  14642. * @param mixed $operator
  14643. * @param mixed $value
  14644. * @return \Illuminate\Database\Eloquent\Builder|static
  14645. * @static
  14646. */
  14647. public static function orWhere($column, $operator = null, $value = null)
  14648. {
  14649. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14650. return $instance->orWhere($column, $operator, $value);
  14651. }
  14652. /**
  14653. * Add an "order by" clause for a timestamp to the query.
  14654. *
  14655. * @param string|\Illuminate\Database\Query\Expression $column
  14656. * @return \Illuminate\Database\Eloquent\Builder|static
  14657. * @static
  14658. */
  14659. public static function latest($column = null)
  14660. {
  14661. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14662. return $instance->latest($column);
  14663. }
  14664. /**
  14665. * Add an "order by" clause for a timestamp to the query.
  14666. *
  14667. * @param string|\Illuminate\Database\Query\Expression $column
  14668. * @return \Illuminate\Database\Eloquent\Builder|static
  14669. * @static
  14670. */
  14671. public static function oldest($column = null)
  14672. {
  14673. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14674. return $instance->oldest($column);
  14675. }
  14676. /**
  14677. * Create a collection of models from plain arrays.
  14678. *
  14679. * @param array $items
  14680. * @return \Illuminate\Database\Eloquent\Collection
  14681. * @static
  14682. */
  14683. public static function hydrate($items)
  14684. {
  14685. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14686. return $instance->hydrate($items);
  14687. }
  14688. /**
  14689. * Create a collection of models from a raw query.
  14690. *
  14691. * @param string $query
  14692. * @param array $bindings
  14693. * @return \Illuminate\Database\Eloquent\Collection
  14694. * @static
  14695. */
  14696. public static function fromQuery($query, $bindings = [])
  14697. {
  14698. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14699. return $instance->fromQuery($query, $bindings);
  14700. }
  14701. /**
  14702. * Find a model by its primary key.
  14703. *
  14704. * @param mixed $id
  14705. * @param array $columns
  14706. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  14707. * @static
  14708. */
  14709. public static function find($id, $columns = [])
  14710. {
  14711. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14712. return $instance->find($id, $columns);
  14713. }
  14714. /**
  14715. * Find multiple models by their primary keys.
  14716. *
  14717. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  14718. * @param array $columns
  14719. * @return \Illuminate\Database\Eloquent\Collection
  14720. * @static
  14721. */
  14722. public static function findMany($ids, $columns = [])
  14723. {
  14724. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14725. return $instance->findMany($ids, $columns);
  14726. }
  14727. /**
  14728. * Find a model by its primary key or throw an exception.
  14729. *
  14730. * @param mixed $id
  14731. * @param array $columns
  14732. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  14733. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14734. * @static
  14735. */
  14736. public static function findOrFail($id, $columns = [])
  14737. {
  14738. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14739. return $instance->findOrFail($id, $columns);
  14740. }
  14741. /**
  14742. * Find a model by its primary key or return fresh model instance.
  14743. *
  14744. * @param mixed $id
  14745. * @param array $columns
  14746. * @return \Illuminate\Database\Eloquent\Model|static
  14747. * @static
  14748. */
  14749. public static function findOrNew($id, $columns = [])
  14750. {
  14751. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14752. return $instance->findOrNew($id, $columns);
  14753. }
  14754. /**
  14755. * Get the first record matching the attributes or instantiate it.
  14756. *
  14757. * @param array $attributes
  14758. * @param array $values
  14759. * @return \Illuminate\Database\Eloquent\Model|static
  14760. * @static
  14761. */
  14762. public static function firstOrNew($attributes, $values = [])
  14763. {
  14764. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14765. return $instance->firstOrNew($attributes, $values);
  14766. }
  14767. /**
  14768. * Get the first record matching the attributes or create it.
  14769. *
  14770. * @param array $attributes
  14771. * @param array $values
  14772. * @return \Illuminate\Database\Eloquent\Model|static
  14773. * @static
  14774. */
  14775. public static function firstOrCreate($attributes, $values = [])
  14776. {
  14777. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14778. return $instance->firstOrCreate($attributes, $values);
  14779. }
  14780. /**
  14781. * Create or update a record matching the attributes, and fill it with values.
  14782. *
  14783. * @param array $attributes
  14784. * @param array $values
  14785. * @return \Illuminate\Database\Eloquent\Model|static
  14786. * @static
  14787. */
  14788. public static function updateOrCreate($attributes, $values = [])
  14789. {
  14790. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14791. return $instance->updateOrCreate($attributes, $values);
  14792. }
  14793. /**
  14794. * Execute the query and get the first result or throw an exception.
  14795. *
  14796. * @param array $columns
  14797. * @return \Illuminate\Database\Eloquent\Model|static
  14798. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14799. * @static
  14800. */
  14801. public static function firstOrFail($columns = [])
  14802. {
  14803. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14804. return $instance->firstOrFail($columns);
  14805. }
  14806. /**
  14807. * Execute the query and get the first result or call a callback.
  14808. *
  14809. * @param \Closure|array $columns
  14810. * @param \Closure|null $callback
  14811. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  14812. * @static
  14813. */
  14814. public static function firstOr($columns = [], $callback = null)
  14815. {
  14816. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14817. return $instance->firstOr($columns, $callback);
  14818. }
  14819. /**
  14820. * Get a single column's value from the first result of a query.
  14821. *
  14822. * @param string|\Illuminate\Database\Query\Expression $column
  14823. * @return mixed
  14824. * @static
  14825. */
  14826. public static function value($column)
  14827. {
  14828. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14829. return $instance->value($column);
  14830. }
  14831. /**
  14832. * Execute the query as a "select" statement.
  14833. *
  14834. * @param array|string $columns
  14835. * @return \Illuminate\Database\Eloquent\Collection|static[]
  14836. * @static
  14837. */
  14838. public static function get($columns = [])
  14839. {
  14840. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14841. return $instance->get($columns);
  14842. }
  14843. /**
  14844. * Get the hydrated models without eager loading.
  14845. *
  14846. * @param array|string $columns
  14847. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  14848. * @static
  14849. */
  14850. public static function getModels($columns = [])
  14851. {
  14852. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14853. return $instance->getModels($columns);
  14854. }
  14855. /**
  14856. * Eager load the relationships for the models.
  14857. *
  14858. * @param array $models
  14859. * @return array
  14860. * @static
  14861. */
  14862. public static function eagerLoadRelations($models)
  14863. {
  14864. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14865. return $instance->eagerLoadRelations($models);
  14866. }
  14867. /**
  14868. * Get a lazy collection for the given query.
  14869. *
  14870. * @return \Illuminate\Support\LazyCollection
  14871. * @static
  14872. */
  14873. public static function cursor()
  14874. {
  14875. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14876. return $instance->cursor();
  14877. }
  14878. /**
  14879. * Get an array with the values of a given column.
  14880. *
  14881. * @param string|\Illuminate\Database\Query\Expression $column
  14882. * @param string|null $key
  14883. * @return \Illuminate\Support\Collection
  14884. * @static
  14885. */
  14886. public static function pluck($column, $key = null)
  14887. {
  14888. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14889. return $instance->pluck($column, $key);
  14890. }
  14891. /**
  14892. * Paginate the given query.
  14893. *
  14894. * @param int|null $perPage
  14895. * @param array $columns
  14896. * @param string $pageName
  14897. * @param int|null $page
  14898. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  14899. * @throws \InvalidArgumentException
  14900. * @static
  14901. */
  14902. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  14903. {
  14904. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14905. return $instance->paginate($perPage, $columns, $pageName, $page);
  14906. }
  14907. /**
  14908. * Paginate the given query into a simple paginator.
  14909. *
  14910. * @param int|null $perPage
  14911. * @param array $columns
  14912. * @param string $pageName
  14913. * @param int|null $page
  14914. * @return \Illuminate\Contracts\Pagination\Paginator
  14915. * @static
  14916. */
  14917. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  14918. {
  14919. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14920. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  14921. }
  14922. /**
  14923. * Save a new model and return the instance.
  14924. *
  14925. * @param array $attributes
  14926. * @return \Illuminate\Database\Eloquent\Model|$this
  14927. * @static
  14928. */
  14929. public static function create($attributes = [])
  14930. {
  14931. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14932. return $instance->create($attributes);
  14933. }
  14934. /**
  14935. * Save a new model and return the instance. Allow mass-assignment.
  14936. *
  14937. * @param array $attributes
  14938. * @return \Illuminate\Database\Eloquent\Model|$this
  14939. * @static
  14940. */
  14941. public static function forceCreate($attributes)
  14942. {
  14943. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14944. return $instance->forceCreate($attributes);
  14945. }
  14946. /**
  14947. * Register a replacement for the default delete function.
  14948. *
  14949. * @param \Closure $callback
  14950. * @return void
  14951. * @static
  14952. */
  14953. public static function onDelete($callback)
  14954. {
  14955. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14956. $instance->onDelete($callback);
  14957. }
  14958. /**
  14959. * Call the given local model scopes.
  14960. *
  14961. * @param array|string $scopes
  14962. * @return static|mixed
  14963. * @static
  14964. */
  14965. public static function scopes($scopes)
  14966. {
  14967. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14968. return $instance->scopes($scopes);
  14969. }
  14970. /**
  14971. * Apply the scopes to the Eloquent builder instance and return it.
  14972. *
  14973. * @return static
  14974. * @static
  14975. */
  14976. public static function applyScopes()
  14977. {
  14978. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14979. return $instance->applyScopes();
  14980. }
  14981. /**
  14982. * Prevent the specified relations from being eager loaded.
  14983. *
  14984. * @param mixed $relations
  14985. * @return \Illuminate\Database\Eloquent\Builder|static
  14986. * @static
  14987. */
  14988. public static function without($relations)
  14989. {
  14990. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14991. return $instance->without($relations);
  14992. }
  14993. /**
  14994. * Create a new instance of the model being queried.
  14995. *
  14996. * @param array $attributes
  14997. * @return \Illuminate\Database\Eloquent\Model|static
  14998. * @static
  14999. */
  15000. public static function newModelInstance($attributes = [])
  15001. {
  15002. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15003. return $instance->newModelInstance($attributes);
  15004. }
  15005. /**
  15006. * Get the underlying query builder instance.
  15007. *
  15008. * @return \Illuminate\Database\Query\Builder
  15009. * @static
  15010. */
  15011. public static function getQuery()
  15012. {
  15013. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15014. return $instance->getQuery();
  15015. }
  15016. /**
  15017. * Set the underlying query builder instance.
  15018. *
  15019. * @param \Illuminate\Database\Query\Builder $query
  15020. * @return \Illuminate\Database\Eloquent\Builder|static
  15021. * @static
  15022. */
  15023. public static function setQuery($query)
  15024. {
  15025. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15026. return $instance->setQuery($query);
  15027. }
  15028. /**
  15029. * Get a base query builder instance.
  15030. *
  15031. * @return \Illuminate\Database\Query\Builder
  15032. * @static
  15033. */
  15034. public static function toBase()
  15035. {
  15036. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15037. return $instance->toBase();
  15038. }
  15039. /**
  15040. * Get the relationships being eagerly loaded.
  15041. *
  15042. * @return array
  15043. * @static
  15044. */
  15045. public static function getEagerLoads()
  15046. {
  15047. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15048. return $instance->getEagerLoads();
  15049. }
  15050. /**
  15051. * Set the relationships being eagerly loaded.
  15052. *
  15053. * @param array $eagerLoad
  15054. * @return \Illuminate\Database\Eloquent\Builder|static
  15055. * @static
  15056. */
  15057. public static function setEagerLoads($eagerLoad)
  15058. {
  15059. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15060. return $instance->setEagerLoads($eagerLoad);
  15061. }
  15062. /**
  15063. * Get the model instance being queried.
  15064. *
  15065. * @return \Illuminate\Database\Eloquent\Model|static
  15066. * @static
  15067. */
  15068. public static function getModel()
  15069. {
  15070. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15071. return $instance->getModel();
  15072. }
  15073. /**
  15074. * Set a model instance for the model being queried.
  15075. *
  15076. * @param \Illuminate\Database\Eloquent\Model $model
  15077. * @return \Illuminate\Database\Eloquent\Builder|static
  15078. * @static
  15079. */
  15080. public static function setModel($model)
  15081. {
  15082. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15083. return $instance->setModel($model);
  15084. }
  15085. /**
  15086. * Get the given macro by name.
  15087. *
  15088. * @param string $name
  15089. * @return \Closure
  15090. * @static
  15091. */
  15092. public static function getMacro($name)
  15093. {
  15094. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15095. return $instance->getMacro($name);
  15096. }
  15097. /**
  15098. * Checks if a macro is registered.
  15099. *
  15100. * @param string $name
  15101. * @return bool
  15102. * @static
  15103. */
  15104. public static function hasMacro($name)
  15105. {
  15106. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15107. return $instance->hasMacro($name);
  15108. }
  15109. /**
  15110. * Get the given global macro by name.
  15111. *
  15112. * @param string $name
  15113. * @return \Closure
  15114. * @static
  15115. */
  15116. public static function getGlobalMacro($name)
  15117. {
  15118. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  15119. }
  15120. /**
  15121. * Checks if a global macro is registered.
  15122. *
  15123. * @param string $name
  15124. * @return bool
  15125. * @static
  15126. */
  15127. public static function hasGlobalMacro($name)
  15128. {
  15129. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  15130. }
  15131. /**
  15132. * Chunk the results of the query.
  15133. *
  15134. * @param int $count
  15135. * @param callable $callback
  15136. * @return bool
  15137. * @static
  15138. */
  15139. public static function chunk($count, $callback)
  15140. {
  15141. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15142. return $instance->chunk($count, $callback);
  15143. }
  15144. /**
  15145. * Execute a callback over each item while chunking.
  15146. *
  15147. * @param callable $callback
  15148. * @param int $count
  15149. * @return bool
  15150. * @static
  15151. */
  15152. public static function each($callback, $count = 1000)
  15153. {
  15154. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15155. return $instance->each($callback, $count);
  15156. }
  15157. /**
  15158. * Chunk the results of a query by comparing IDs.
  15159. *
  15160. * @param int $count
  15161. * @param callable $callback
  15162. * @param string|null $column
  15163. * @param string|null $alias
  15164. * @return bool
  15165. * @static
  15166. */
  15167. public static function chunkById($count, $callback, $column = null, $alias = null)
  15168. {
  15169. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15170. return $instance->chunkById($count, $callback, $column, $alias);
  15171. }
  15172. /**
  15173. * Execute a callback over each item while chunking by id.
  15174. *
  15175. * @param callable $callback
  15176. * @param int $count
  15177. * @param string|null $column
  15178. * @param string|null $alias
  15179. * @return bool
  15180. * @static
  15181. */
  15182. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  15183. {
  15184. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15185. return $instance->eachById($callback, $count, $column, $alias);
  15186. }
  15187. /**
  15188. * Execute the query and get the first result.
  15189. *
  15190. * @param array|string $columns
  15191. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15192. * @static
  15193. */
  15194. public static function first($columns = [])
  15195. {
  15196. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15197. return $instance->first($columns);
  15198. }
  15199. /**
  15200. * Apply the callback's query changes if the given "value" is true.
  15201. *
  15202. * @param mixed $value
  15203. * @param callable $callback
  15204. * @param callable|null $default
  15205. * @return mixed|$this
  15206. * @static
  15207. */
  15208. public static function when($value, $callback, $default = null)
  15209. {
  15210. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15211. return $instance->when($value, $callback, $default);
  15212. }
  15213. /**
  15214. * Pass the query to a given callback.
  15215. *
  15216. * @param callable $callback
  15217. * @return \Illuminate\Database\Eloquent\Builder|static
  15218. * @static
  15219. */
  15220. public static function tap($callback)
  15221. {
  15222. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15223. return $instance->tap($callback);
  15224. }
  15225. /**
  15226. * Apply the callback's query changes if the given "value" is false.
  15227. *
  15228. * @param mixed $value
  15229. * @param callable $callback
  15230. * @param callable|null $default
  15231. * @return mixed|$this
  15232. * @static
  15233. */
  15234. public static function unless($value, $callback, $default = null)
  15235. {
  15236. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15237. return $instance->unless($value, $callback, $default);
  15238. }
  15239. /**
  15240. * Add a relationship count / exists condition to the query.
  15241. *
  15242. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  15243. * @param string $operator
  15244. * @param int $count
  15245. * @param string $boolean
  15246. * @param \Closure|null $callback
  15247. * @return \Illuminate\Database\Eloquent\Builder|static
  15248. * @throws \RuntimeException
  15249. * @static
  15250. */
  15251. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15252. {
  15253. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15254. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15255. }
  15256. /**
  15257. * Add a relationship count / exists condition to the query with an "or".
  15258. *
  15259. * @param string $relation
  15260. * @param string $operator
  15261. * @param int $count
  15262. * @return \Illuminate\Database\Eloquent\Builder|static
  15263. * @static
  15264. */
  15265. public static function orHas($relation, $operator = '>=', $count = 1)
  15266. {
  15267. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15268. return $instance->orHas($relation, $operator, $count);
  15269. }
  15270. /**
  15271. * Add a relationship count / exists condition to the query.
  15272. *
  15273. * @param string $relation
  15274. * @param string $boolean
  15275. * @param \Closure|null $callback
  15276. * @return \Illuminate\Database\Eloquent\Builder|static
  15277. * @static
  15278. */
  15279. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15280. {
  15281. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15282. return $instance->doesntHave($relation, $boolean, $callback);
  15283. }
  15284. /**
  15285. * Add a relationship count / exists condition to the query with an "or".
  15286. *
  15287. * @param string $relation
  15288. * @return \Illuminate\Database\Eloquent\Builder|static
  15289. * @static
  15290. */
  15291. public static function orDoesntHave($relation)
  15292. {
  15293. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15294. return $instance->orDoesntHave($relation);
  15295. }
  15296. /**
  15297. * Add a relationship count / exists condition to the query with where clauses.
  15298. *
  15299. * @param string $relation
  15300. * @param \Closure|null $callback
  15301. * @param string $operator
  15302. * @param int $count
  15303. * @return \Illuminate\Database\Eloquent\Builder|static
  15304. * @static
  15305. */
  15306. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15307. {
  15308. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15309. return $instance->whereHas($relation, $callback, $operator, $count);
  15310. }
  15311. /**
  15312. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15313. *
  15314. * @param string $relation
  15315. * @param \Closure $callback
  15316. * @param string $operator
  15317. * @param int $count
  15318. * @return \Illuminate\Database\Eloquent\Builder|static
  15319. * @static
  15320. */
  15321. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15322. {
  15323. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15324. return $instance->orWhereHas($relation, $callback, $operator, $count);
  15325. }
  15326. /**
  15327. * Add a relationship count / exists condition to the query with where clauses.
  15328. *
  15329. * @param string $relation
  15330. * @param \Closure|null $callback
  15331. * @return \Illuminate\Database\Eloquent\Builder|static
  15332. * @static
  15333. */
  15334. public static function whereDoesntHave($relation, $callback = null)
  15335. {
  15336. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15337. return $instance->whereDoesntHave($relation, $callback);
  15338. }
  15339. /**
  15340. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15341. *
  15342. * @param string $relation
  15343. * @param \Closure $callback
  15344. * @return \Illuminate\Database\Eloquent\Builder|static
  15345. * @static
  15346. */
  15347. public static function orWhereDoesntHave($relation, $callback = null)
  15348. {
  15349. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15350. return $instance->orWhereDoesntHave($relation, $callback);
  15351. }
  15352. /**
  15353. * Add a polymorphic relationship count / exists condition to the query.
  15354. *
  15355. * @param string $relation
  15356. * @param string|array $types
  15357. * @param string $operator
  15358. * @param int $count
  15359. * @param string $boolean
  15360. * @param \Closure|null $callback
  15361. * @return \Illuminate\Database\Eloquent\Builder|static
  15362. * @static
  15363. */
  15364. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15365. {
  15366. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15367. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  15368. }
  15369. /**
  15370. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15371. *
  15372. * @param string $relation
  15373. * @param string|array $types
  15374. * @param string $operator
  15375. * @param int $count
  15376. * @return \Illuminate\Database\Eloquent\Builder|static
  15377. * @static
  15378. */
  15379. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  15380. {
  15381. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15382. return $instance->orHasMorph($relation, $types, $operator, $count);
  15383. }
  15384. /**
  15385. * Add a polymorphic relationship count / exists condition to the query.
  15386. *
  15387. * @param string $relation
  15388. * @param string|array $types
  15389. * @param string $boolean
  15390. * @param \Closure|null $callback
  15391. * @return \Illuminate\Database\Eloquent\Builder|static
  15392. * @static
  15393. */
  15394. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  15395. {
  15396. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15397. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  15398. }
  15399. /**
  15400. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15401. *
  15402. * @param string $relation
  15403. * @param string|array $types
  15404. * @return \Illuminate\Database\Eloquent\Builder|static
  15405. * @static
  15406. */
  15407. public static function orDoesntHaveMorph($relation, $types)
  15408. {
  15409. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15410. return $instance->orDoesntHaveMorph($relation, $types);
  15411. }
  15412. /**
  15413. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15414. *
  15415. * @param string $relation
  15416. * @param string|array $types
  15417. * @param \Closure|null $callback
  15418. * @param string $operator
  15419. * @param int $count
  15420. * @return \Illuminate\Database\Eloquent\Builder|static
  15421. * @static
  15422. */
  15423. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  15424. {
  15425. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15426. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  15427. }
  15428. /**
  15429. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  15430. *
  15431. * @param string $relation
  15432. * @param string|array $types
  15433. * @param \Closure $callback
  15434. * @param string $operator
  15435. * @param int $count
  15436. * @return \Illuminate\Database\Eloquent\Builder|static
  15437. * @static
  15438. */
  15439. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  15440. {
  15441. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15442. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  15443. }
  15444. /**
  15445. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15446. *
  15447. * @param string $relation
  15448. * @param string|array $types
  15449. * @param \Closure|null $callback
  15450. * @return \Illuminate\Database\Eloquent\Builder|static
  15451. * @static
  15452. */
  15453. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  15454. {
  15455. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15456. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  15457. }
  15458. /**
  15459. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  15460. *
  15461. * @param string $relation
  15462. * @param string|array $types
  15463. * @param \Closure $callback
  15464. * @return \Illuminate\Database\Eloquent\Builder|static
  15465. * @static
  15466. */
  15467. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  15468. {
  15469. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15470. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  15471. }
  15472. /**
  15473. * Add subselect queries to count the relations.
  15474. *
  15475. * @param mixed $relations
  15476. * @return \Illuminate\Database\Eloquent\Builder|static
  15477. * @static
  15478. */
  15479. public static function withCount($relations)
  15480. {
  15481. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15482. return $instance->withCount($relations);
  15483. }
  15484. /**
  15485. * Merge the where constraints from another query to the current query.
  15486. *
  15487. * @param \Illuminate\Database\Eloquent\Builder $from
  15488. * @return \Illuminate\Database\Eloquent\Builder|static
  15489. * @static
  15490. */
  15491. public static function mergeConstraintsFrom($from)
  15492. {
  15493. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15494. return $instance->mergeConstraintsFrom($from);
  15495. }
  15496. /**
  15497. * Set the columns to be selected.
  15498. *
  15499. * @param array|mixed $columns
  15500. * @return \Illuminate\Database\Query\Builder
  15501. * @static
  15502. */
  15503. public static function select($columns = [])
  15504. {
  15505. /** @var \Illuminate\Database\Query\Builder $instance */
  15506. return $instance->select($columns);
  15507. }
  15508. /**
  15509. * Add a subselect expression to the query.
  15510. *
  15511. * @param \Closure|$this|string $query
  15512. * @param string $as
  15513. * @return \Illuminate\Database\Query\Builder|static
  15514. * @throws \InvalidArgumentException
  15515. * @static
  15516. */
  15517. public static function selectSub($query, $as)
  15518. {
  15519. /** @var \Illuminate\Database\Query\Builder $instance */
  15520. return $instance->selectSub($query, $as);
  15521. }
  15522. /**
  15523. * Add a new "raw" select expression to the query.
  15524. *
  15525. * @param string $expression
  15526. * @param array $bindings
  15527. * @return \Illuminate\Database\Query\Builder|static
  15528. * @static
  15529. */
  15530. public static function selectRaw($expression, $bindings = [])
  15531. {
  15532. /** @var \Illuminate\Database\Query\Builder $instance */
  15533. return $instance->selectRaw($expression, $bindings);
  15534. }
  15535. /**
  15536. * Makes "from" fetch from a subquery.
  15537. *
  15538. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15539. * @param string $as
  15540. * @return \Illuminate\Database\Query\Builder|static
  15541. * @throws \InvalidArgumentException
  15542. * @static
  15543. */
  15544. public static function fromSub($query, $as)
  15545. {
  15546. /** @var \Illuminate\Database\Query\Builder $instance */
  15547. return $instance->fromSub($query, $as);
  15548. }
  15549. /**
  15550. * Add a raw from clause to the query.
  15551. *
  15552. * @param string $expression
  15553. * @param mixed $bindings
  15554. * @return \Illuminate\Database\Query\Builder|static
  15555. * @static
  15556. */
  15557. public static function fromRaw($expression, $bindings = [])
  15558. {
  15559. /** @var \Illuminate\Database\Query\Builder $instance */
  15560. return $instance->fromRaw($expression, $bindings);
  15561. }
  15562. /**
  15563. * Add a new select column to the query.
  15564. *
  15565. * @param array|mixed $column
  15566. * @return \Illuminate\Database\Query\Builder
  15567. * @static
  15568. */
  15569. public static function addSelect($column)
  15570. {
  15571. /** @var \Illuminate\Database\Query\Builder $instance */
  15572. return $instance->addSelect($column);
  15573. }
  15574. /**
  15575. * Force the query to only return distinct results.
  15576. *
  15577. * @return \Illuminate\Database\Query\Builder
  15578. * @static
  15579. */
  15580. public static function distinct()
  15581. {
  15582. /** @var \Illuminate\Database\Query\Builder $instance */
  15583. return $instance->distinct();
  15584. }
  15585. /**
  15586. * Set the table which the query is targeting.
  15587. *
  15588. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  15589. * @param string|null $as
  15590. * @return \Illuminate\Database\Query\Builder
  15591. * @static
  15592. */
  15593. public static function from($table, $as = null)
  15594. {
  15595. /** @var \Illuminate\Database\Query\Builder $instance */
  15596. return $instance->from($table, $as);
  15597. }
  15598. /**
  15599. * Add a join clause to the query.
  15600. *
  15601. * @param string $table
  15602. * @param \Closure|string $first
  15603. * @param string|null $operator
  15604. * @param string|null $second
  15605. * @param string $type
  15606. * @param bool $where
  15607. * @return \Illuminate\Database\Query\Builder
  15608. * @static
  15609. */
  15610. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15611. {
  15612. /** @var \Illuminate\Database\Query\Builder $instance */
  15613. return $instance->join($table, $first, $operator, $second, $type, $where);
  15614. }
  15615. /**
  15616. * Add a "join where" clause to the query.
  15617. *
  15618. * @param string $table
  15619. * @param \Closure|string $first
  15620. * @param string $operator
  15621. * @param string $second
  15622. * @param string $type
  15623. * @return \Illuminate\Database\Query\Builder|static
  15624. * @static
  15625. */
  15626. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  15627. {
  15628. /** @var \Illuminate\Database\Query\Builder $instance */
  15629. return $instance->joinWhere($table, $first, $operator, $second, $type);
  15630. }
  15631. /**
  15632. * Add a subquery join clause to the query.
  15633. *
  15634. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15635. * @param string $as
  15636. * @param \Closure|string $first
  15637. * @param string|null $operator
  15638. * @param string|null $second
  15639. * @param string $type
  15640. * @param bool $where
  15641. * @return \Illuminate\Database\Query\Builder|static
  15642. * @throws \InvalidArgumentException
  15643. * @static
  15644. */
  15645. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  15646. {
  15647. /** @var \Illuminate\Database\Query\Builder $instance */
  15648. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  15649. }
  15650. /**
  15651. * Add a left join to the query.
  15652. *
  15653. * @param string $table
  15654. * @param \Closure|string $first
  15655. * @param string|null $operator
  15656. * @param string|null $second
  15657. * @return \Illuminate\Database\Query\Builder|static
  15658. * @static
  15659. */
  15660. public static function leftJoin($table, $first, $operator = null, $second = null)
  15661. {
  15662. /** @var \Illuminate\Database\Query\Builder $instance */
  15663. return $instance->leftJoin($table, $first, $operator, $second);
  15664. }
  15665. /**
  15666. * Add a "join where" clause to the query.
  15667. *
  15668. * @param string $table
  15669. * @param \Closure|string $first
  15670. * @param string $operator
  15671. * @param string $second
  15672. * @return \Illuminate\Database\Query\Builder|static
  15673. * @static
  15674. */
  15675. public static function leftJoinWhere($table, $first, $operator, $second)
  15676. {
  15677. /** @var \Illuminate\Database\Query\Builder $instance */
  15678. return $instance->leftJoinWhere($table, $first, $operator, $second);
  15679. }
  15680. /**
  15681. * Add a subquery left join to the query.
  15682. *
  15683. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15684. * @param string $as
  15685. * @param \Closure|string $first
  15686. * @param string|null $operator
  15687. * @param string|null $second
  15688. * @return \Illuminate\Database\Query\Builder|static
  15689. * @static
  15690. */
  15691. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  15692. {
  15693. /** @var \Illuminate\Database\Query\Builder $instance */
  15694. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  15695. }
  15696. /**
  15697. * Add a right join to the query.
  15698. *
  15699. * @param string $table
  15700. * @param \Closure|string $first
  15701. * @param string|null $operator
  15702. * @param string|null $second
  15703. * @return \Illuminate\Database\Query\Builder|static
  15704. * @static
  15705. */
  15706. public static function rightJoin($table, $first, $operator = null, $second = null)
  15707. {
  15708. /** @var \Illuminate\Database\Query\Builder $instance */
  15709. return $instance->rightJoin($table, $first, $operator, $second);
  15710. }
  15711. /**
  15712. * Add a "right join where" clause to the query.
  15713. *
  15714. * @param string $table
  15715. * @param \Closure|string $first
  15716. * @param string $operator
  15717. * @param string $second
  15718. * @return \Illuminate\Database\Query\Builder|static
  15719. * @static
  15720. */
  15721. public static function rightJoinWhere($table, $first, $operator, $second)
  15722. {
  15723. /** @var \Illuminate\Database\Query\Builder $instance */
  15724. return $instance->rightJoinWhere($table, $first, $operator, $second);
  15725. }
  15726. /**
  15727. * Add a subquery right join to the query.
  15728. *
  15729. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  15730. * @param string $as
  15731. * @param \Closure|string $first
  15732. * @param string|null $operator
  15733. * @param string|null $second
  15734. * @return \Illuminate\Database\Query\Builder|static
  15735. * @static
  15736. */
  15737. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  15738. {
  15739. /** @var \Illuminate\Database\Query\Builder $instance */
  15740. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  15741. }
  15742. /**
  15743. * Add a "cross join" clause to the query.
  15744. *
  15745. * @param string $table
  15746. * @param \Closure|string|null $first
  15747. * @param string|null $operator
  15748. * @param string|null $second
  15749. * @return \Illuminate\Database\Query\Builder|static
  15750. * @static
  15751. */
  15752. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  15753. {
  15754. /** @var \Illuminate\Database\Query\Builder $instance */
  15755. return $instance->crossJoin($table, $first, $operator, $second);
  15756. }
  15757. /**
  15758. * Merge an array of where clauses and bindings.
  15759. *
  15760. * @param array $wheres
  15761. * @param array $bindings
  15762. * @return void
  15763. * @static
  15764. */
  15765. public static function mergeWheres($wheres, $bindings)
  15766. {
  15767. /** @var \Illuminate\Database\Query\Builder $instance */
  15768. $instance->mergeWheres($wheres, $bindings);
  15769. }
  15770. /**
  15771. * Prepare the value and operator for a where clause.
  15772. *
  15773. * @param string $value
  15774. * @param string $operator
  15775. * @param bool $useDefault
  15776. * @return array
  15777. * @throws \InvalidArgumentException
  15778. * @static
  15779. */
  15780. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  15781. {
  15782. /** @var \Illuminate\Database\Query\Builder $instance */
  15783. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  15784. }
  15785. /**
  15786. * Add a "where" clause comparing two columns to the query.
  15787. *
  15788. * @param string|array $first
  15789. * @param string|null $operator
  15790. * @param string|null $second
  15791. * @param string|null $boolean
  15792. * @return \Illuminate\Database\Query\Builder|static
  15793. * @static
  15794. */
  15795. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  15796. {
  15797. /** @var \Illuminate\Database\Query\Builder $instance */
  15798. return $instance->whereColumn($first, $operator, $second, $boolean);
  15799. }
  15800. /**
  15801. * Add an "or where" clause comparing two columns to the query.
  15802. *
  15803. * @param string|array $first
  15804. * @param string|null $operator
  15805. * @param string|null $second
  15806. * @return \Illuminate\Database\Query\Builder|static
  15807. * @static
  15808. */
  15809. public static function orWhereColumn($first, $operator = null, $second = null)
  15810. {
  15811. /** @var \Illuminate\Database\Query\Builder $instance */
  15812. return $instance->orWhereColumn($first, $operator, $second);
  15813. }
  15814. /**
  15815. * Add a raw where clause to the query.
  15816. *
  15817. * @param string $sql
  15818. * @param mixed $bindings
  15819. * @param string $boolean
  15820. * @return \Illuminate\Database\Query\Builder
  15821. * @static
  15822. */
  15823. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  15824. {
  15825. /** @var \Illuminate\Database\Query\Builder $instance */
  15826. return $instance->whereRaw($sql, $bindings, $boolean);
  15827. }
  15828. /**
  15829. * Add a raw or where clause to the query.
  15830. *
  15831. * @param string $sql
  15832. * @param mixed $bindings
  15833. * @return \Illuminate\Database\Query\Builder|static
  15834. * @static
  15835. */
  15836. public static function orWhereRaw($sql, $bindings = [])
  15837. {
  15838. /** @var \Illuminate\Database\Query\Builder $instance */
  15839. return $instance->orWhereRaw($sql, $bindings);
  15840. }
  15841. /**
  15842. * Add a "where in" clause to the query.
  15843. *
  15844. * @param string $column
  15845. * @param mixed $values
  15846. * @param string $boolean
  15847. * @param bool $not
  15848. * @return \Illuminate\Database\Query\Builder
  15849. * @static
  15850. */
  15851. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  15852. {
  15853. /** @var \Illuminate\Database\Query\Builder $instance */
  15854. return $instance->whereIn($column, $values, $boolean, $not);
  15855. }
  15856. /**
  15857. * Add an "or where in" clause to the query.
  15858. *
  15859. * @param string $column
  15860. * @param mixed $values
  15861. * @return \Illuminate\Database\Query\Builder|static
  15862. * @static
  15863. */
  15864. public static function orWhereIn($column, $values)
  15865. {
  15866. /** @var \Illuminate\Database\Query\Builder $instance */
  15867. return $instance->orWhereIn($column, $values);
  15868. }
  15869. /**
  15870. * Add a "where not in" clause to the query.
  15871. *
  15872. * @param string $column
  15873. * @param mixed $values
  15874. * @param string $boolean
  15875. * @return \Illuminate\Database\Query\Builder|static
  15876. * @static
  15877. */
  15878. public static function whereNotIn($column, $values, $boolean = 'and')
  15879. {
  15880. /** @var \Illuminate\Database\Query\Builder $instance */
  15881. return $instance->whereNotIn($column, $values, $boolean);
  15882. }
  15883. /**
  15884. * Add an "or where not in" clause to the query.
  15885. *
  15886. * @param string $column
  15887. * @param mixed $values
  15888. * @return \Illuminate\Database\Query\Builder|static
  15889. * @static
  15890. */
  15891. public static function orWhereNotIn($column, $values)
  15892. {
  15893. /** @var \Illuminate\Database\Query\Builder $instance */
  15894. return $instance->orWhereNotIn($column, $values);
  15895. }
  15896. /**
  15897. * Add a "where in raw" clause for integer values to the query.
  15898. *
  15899. * @param string $column
  15900. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  15901. * @param string $boolean
  15902. * @param bool $not
  15903. * @return \Illuminate\Database\Query\Builder
  15904. * @static
  15905. */
  15906. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  15907. {
  15908. /** @var \Illuminate\Database\Query\Builder $instance */
  15909. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  15910. }
  15911. /**
  15912. * Add a "where not in raw" clause for integer values to the query.
  15913. *
  15914. * @param string $column
  15915. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  15916. * @param string $boolean
  15917. * @return \Illuminate\Database\Query\Builder
  15918. * @static
  15919. */
  15920. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  15921. {
  15922. /** @var \Illuminate\Database\Query\Builder $instance */
  15923. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  15924. }
  15925. /**
  15926. * Add a "where null" clause to the query.
  15927. *
  15928. * @param string|array $columns
  15929. * @param string $boolean
  15930. * @param bool $not
  15931. * @return \Illuminate\Database\Query\Builder
  15932. * @static
  15933. */
  15934. public static function whereNull($columns, $boolean = 'and', $not = false)
  15935. {
  15936. /** @var \Illuminate\Database\Query\Builder $instance */
  15937. return $instance->whereNull($columns, $boolean, $not);
  15938. }
  15939. /**
  15940. * Add an "or where null" clause to the query.
  15941. *
  15942. * @param string $column
  15943. * @return \Illuminate\Database\Query\Builder|static
  15944. * @static
  15945. */
  15946. public static function orWhereNull($column)
  15947. {
  15948. /** @var \Illuminate\Database\Query\Builder $instance */
  15949. return $instance->orWhereNull($column);
  15950. }
  15951. /**
  15952. * Add a "where not null" clause to the query.
  15953. *
  15954. * @param string|array $columns
  15955. * @param string $boolean
  15956. * @return \Illuminate\Database\Query\Builder|static
  15957. * @static
  15958. */
  15959. public static function whereNotNull($columns, $boolean = 'and')
  15960. {
  15961. /** @var \Illuminate\Database\Query\Builder $instance */
  15962. return $instance->whereNotNull($columns, $boolean);
  15963. }
  15964. /**
  15965. * Add a where between statement to the query.
  15966. *
  15967. * @param string $column
  15968. * @param array $values
  15969. * @param string $boolean
  15970. * @param bool $not
  15971. * @return \Illuminate\Database\Query\Builder
  15972. * @static
  15973. */
  15974. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  15975. {
  15976. /** @var \Illuminate\Database\Query\Builder $instance */
  15977. return $instance->whereBetween($column, $values, $boolean, $not);
  15978. }
  15979. /**
  15980. * Add an or where between statement to the query.
  15981. *
  15982. * @param string $column
  15983. * @param array $values
  15984. * @return \Illuminate\Database\Query\Builder|static
  15985. * @static
  15986. */
  15987. public static function orWhereBetween($column, $values)
  15988. {
  15989. /** @var \Illuminate\Database\Query\Builder $instance */
  15990. return $instance->orWhereBetween($column, $values);
  15991. }
  15992. /**
  15993. * Add a where not between statement to the query.
  15994. *
  15995. * @param string $column
  15996. * @param array $values
  15997. * @param string $boolean
  15998. * @return \Illuminate\Database\Query\Builder|static
  15999. * @static
  16000. */
  16001. public static function whereNotBetween($column, $values, $boolean = 'and')
  16002. {
  16003. /** @var \Illuminate\Database\Query\Builder $instance */
  16004. return $instance->whereNotBetween($column, $values, $boolean);
  16005. }
  16006. /**
  16007. * Add an or where not between statement to the query.
  16008. *
  16009. * @param string $column
  16010. * @param array $values
  16011. * @return \Illuminate\Database\Query\Builder|static
  16012. * @static
  16013. */
  16014. public static function orWhereNotBetween($column, $values)
  16015. {
  16016. /** @var \Illuminate\Database\Query\Builder $instance */
  16017. return $instance->orWhereNotBetween($column, $values);
  16018. }
  16019. /**
  16020. * Add an "or where not null" clause to the query.
  16021. *
  16022. * @param string $column
  16023. * @return \Illuminate\Database\Query\Builder|static
  16024. * @static
  16025. */
  16026. public static function orWhereNotNull($column)
  16027. {
  16028. /** @var \Illuminate\Database\Query\Builder $instance */
  16029. return $instance->orWhereNotNull($column);
  16030. }
  16031. /**
  16032. * Add a "where date" statement to the query.
  16033. *
  16034. * @param string $column
  16035. * @param string $operator
  16036. * @param \DateTimeInterface|string|null $value
  16037. * @param string $boolean
  16038. * @return \Illuminate\Database\Query\Builder|static
  16039. * @static
  16040. */
  16041. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  16042. {
  16043. /** @var \Illuminate\Database\Query\Builder $instance */
  16044. return $instance->whereDate($column, $operator, $value, $boolean);
  16045. }
  16046. /**
  16047. * Add an "or where date" statement to the query.
  16048. *
  16049. * @param string $column
  16050. * @param string $operator
  16051. * @param \DateTimeInterface|string|null $value
  16052. * @return \Illuminate\Database\Query\Builder|static
  16053. * @static
  16054. */
  16055. public static function orWhereDate($column, $operator, $value = null)
  16056. {
  16057. /** @var \Illuminate\Database\Query\Builder $instance */
  16058. return $instance->orWhereDate($column, $operator, $value);
  16059. }
  16060. /**
  16061. * Add a "where time" statement to the query.
  16062. *
  16063. * @param string $column
  16064. * @param string $operator
  16065. * @param \DateTimeInterface|string|null $value
  16066. * @param string $boolean
  16067. * @return \Illuminate\Database\Query\Builder|static
  16068. * @static
  16069. */
  16070. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  16071. {
  16072. /** @var \Illuminate\Database\Query\Builder $instance */
  16073. return $instance->whereTime($column, $operator, $value, $boolean);
  16074. }
  16075. /**
  16076. * Add an "or where time" statement to the query.
  16077. *
  16078. * @param string $column
  16079. * @param string $operator
  16080. * @param \DateTimeInterface|string|null $value
  16081. * @return \Illuminate\Database\Query\Builder|static
  16082. * @static
  16083. */
  16084. public static function orWhereTime($column, $operator, $value = null)
  16085. {
  16086. /** @var \Illuminate\Database\Query\Builder $instance */
  16087. return $instance->orWhereTime($column, $operator, $value);
  16088. }
  16089. /**
  16090. * Add a "where day" statement to the query.
  16091. *
  16092. * @param string $column
  16093. * @param string $operator
  16094. * @param \DateTimeInterface|string|null $value
  16095. * @param string $boolean
  16096. * @return \Illuminate\Database\Query\Builder|static
  16097. * @static
  16098. */
  16099. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  16100. {
  16101. /** @var \Illuminate\Database\Query\Builder $instance */
  16102. return $instance->whereDay($column, $operator, $value, $boolean);
  16103. }
  16104. /**
  16105. * Add an "or where day" statement to the query.
  16106. *
  16107. * @param string $column
  16108. * @param string $operator
  16109. * @param \DateTimeInterface|string|null $value
  16110. * @return \Illuminate\Database\Query\Builder|static
  16111. * @static
  16112. */
  16113. public static function orWhereDay($column, $operator, $value = null)
  16114. {
  16115. /** @var \Illuminate\Database\Query\Builder $instance */
  16116. return $instance->orWhereDay($column, $operator, $value);
  16117. }
  16118. /**
  16119. * Add a "where month" statement to the query.
  16120. *
  16121. * @param string $column
  16122. * @param string $operator
  16123. * @param \DateTimeInterface|string|null $value
  16124. * @param string $boolean
  16125. * @return \Illuminate\Database\Query\Builder|static
  16126. * @static
  16127. */
  16128. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  16129. {
  16130. /** @var \Illuminate\Database\Query\Builder $instance */
  16131. return $instance->whereMonth($column, $operator, $value, $boolean);
  16132. }
  16133. /**
  16134. * Add an "or where month" statement to the query.
  16135. *
  16136. * @param string $column
  16137. * @param string $operator
  16138. * @param \DateTimeInterface|string|null $value
  16139. * @return \Illuminate\Database\Query\Builder|static
  16140. * @static
  16141. */
  16142. public static function orWhereMonth($column, $operator, $value = null)
  16143. {
  16144. /** @var \Illuminate\Database\Query\Builder $instance */
  16145. return $instance->orWhereMonth($column, $operator, $value);
  16146. }
  16147. /**
  16148. * Add a "where year" statement to the query.
  16149. *
  16150. * @param string $column
  16151. * @param string $operator
  16152. * @param \DateTimeInterface|string|int|null $value
  16153. * @param string $boolean
  16154. * @return \Illuminate\Database\Query\Builder|static
  16155. * @static
  16156. */
  16157. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  16158. {
  16159. /** @var \Illuminate\Database\Query\Builder $instance */
  16160. return $instance->whereYear($column, $operator, $value, $boolean);
  16161. }
  16162. /**
  16163. * Add an "or where year" statement to the query.
  16164. *
  16165. * @param string $column
  16166. * @param string $operator
  16167. * @param \DateTimeInterface|string|int|null $value
  16168. * @return \Illuminate\Database\Query\Builder|static
  16169. * @static
  16170. */
  16171. public static function orWhereYear($column, $operator, $value = null)
  16172. {
  16173. /** @var \Illuminate\Database\Query\Builder $instance */
  16174. return $instance->orWhereYear($column, $operator, $value);
  16175. }
  16176. /**
  16177. * Add a nested where statement to the query.
  16178. *
  16179. * @param \Closure $callback
  16180. * @param string $boolean
  16181. * @return \Illuminate\Database\Query\Builder|static
  16182. * @static
  16183. */
  16184. public static function whereNested($callback, $boolean = 'and')
  16185. {
  16186. /** @var \Illuminate\Database\Query\Builder $instance */
  16187. return $instance->whereNested($callback, $boolean);
  16188. }
  16189. /**
  16190. * Create a new query instance for nested where condition.
  16191. *
  16192. * @return \Illuminate\Database\Query\Builder
  16193. * @static
  16194. */
  16195. public static function forNestedWhere()
  16196. {
  16197. /** @var \Illuminate\Database\Query\Builder $instance */
  16198. return $instance->forNestedWhere();
  16199. }
  16200. /**
  16201. * Add another query builder as a nested where to the query builder.
  16202. *
  16203. * @param \Illuminate\Database\Query\Builder|static $query
  16204. * @param string $boolean
  16205. * @return \Illuminate\Database\Query\Builder
  16206. * @static
  16207. */
  16208. public static function addNestedWhereQuery($query, $boolean = 'and')
  16209. {
  16210. /** @var \Illuminate\Database\Query\Builder $instance */
  16211. return $instance->addNestedWhereQuery($query, $boolean);
  16212. }
  16213. /**
  16214. * Add an exists clause to the query.
  16215. *
  16216. * @param \Closure $callback
  16217. * @param string $boolean
  16218. * @param bool $not
  16219. * @return \Illuminate\Database\Query\Builder
  16220. * @static
  16221. */
  16222. public static function whereExists($callback, $boolean = 'and', $not = false)
  16223. {
  16224. /** @var \Illuminate\Database\Query\Builder $instance */
  16225. return $instance->whereExists($callback, $boolean, $not);
  16226. }
  16227. /**
  16228. * Add an or exists clause to the query.
  16229. *
  16230. * @param \Closure $callback
  16231. * @param bool $not
  16232. * @return \Illuminate\Database\Query\Builder|static
  16233. * @static
  16234. */
  16235. public static function orWhereExists($callback, $not = false)
  16236. {
  16237. /** @var \Illuminate\Database\Query\Builder $instance */
  16238. return $instance->orWhereExists($callback, $not);
  16239. }
  16240. /**
  16241. * Add a where not exists clause to the query.
  16242. *
  16243. * @param \Closure $callback
  16244. * @param string $boolean
  16245. * @return \Illuminate\Database\Query\Builder|static
  16246. * @static
  16247. */
  16248. public static function whereNotExists($callback, $boolean = 'and')
  16249. {
  16250. /** @var \Illuminate\Database\Query\Builder $instance */
  16251. return $instance->whereNotExists($callback, $boolean);
  16252. }
  16253. /**
  16254. * Add a where not exists clause to the query.
  16255. *
  16256. * @param \Closure $callback
  16257. * @return \Illuminate\Database\Query\Builder|static
  16258. * @static
  16259. */
  16260. public static function orWhereNotExists($callback)
  16261. {
  16262. /** @var \Illuminate\Database\Query\Builder $instance */
  16263. return $instance->orWhereNotExists($callback);
  16264. }
  16265. /**
  16266. * Add an exists clause to the query.
  16267. *
  16268. * @param \Illuminate\Database\Query\Builder $query
  16269. * @param string $boolean
  16270. * @param bool $not
  16271. * @return \Illuminate\Database\Query\Builder
  16272. * @static
  16273. */
  16274. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16275. {
  16276. /** @var \Illuminate\Database\Query\Builder $instance */
  16277. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16278. }
  16279. /**
  16280. * Adds a where condition using row values.
  16281. *
  16282. * @param array $columns
  16283. * @param string $operator
  16284. * @param array $values
  16285. * @param string $boolean
  16286. * @return \Illuminate\Database\Query\Builder
  16287. * @throws \InvalidArgumentException
  16288. * @static
  16289. */
  16290. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16291. {
  16292. /** @var \Illuminate\Database\Query\Builder $instance */
  16293. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16294. }
  16295. /**
  16296. * Adds a or where condition using row values.
  16297. *
  16298. * @param array $columns
  16299. * @param string $operator
  16300. * @param array $values
  16301. * @return \Illuminate\Database\Query\Builder
  16302. * @static
  16303. */
  16304. public static function orWhereRowValues($columns, $operator, $values)
  16305. {
  16306. /** @var \Illuminate\Database\Query\Builder $instance */
  16307. return $instance->orWhereRowValues($columns, $operator, $values);
  16308. }
  16309. /**
  16310. * Add a "where JSON contains" clause to the query.
  16311. *
  16312. * @param string $column
  16313. * @param mixed $value
  16314. * @param string $boolean
  16315. * @param bool $not
  16316. * @return \Illuminate\Database\Query\Builder
  16317. * @static
  16318. */
  16319. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16320. {
  16321. /** @var \Illuminate\Database\Query\Builder $instance */
  16322. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16323. }
  16324. /**
  16325. * Add a "or where JSON contains" clause to the query.
  16326. *
  16327. * @param string $column
  16328. * @param mixed $value
  16329. * @return \Illuminate\Database\Query\Builder
  16330. * @static
  16331. */
  16332. public static function orWhereJsonContains($column, $value)
  16333. {
  16334. /** @var \Illuminate\Database\Query\Builder $instance */
  16335. return $instance->orWhereJsonContains($column, $value);
  16336. }
  16337. /**
  16338. * Add a "where JSON not contains" clause to the query.
  16339. *
  16340. * @param string $column
  16341. * @param mixed $value
  16342. * @param string $boolean
  16343. * @return \Illuminate\Database\Query\Builder
  16344. * @static
  16345. */
  16346. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  16347. {
  16348. /** @var \Illuminate\Database\Query\Builder $instance */
  16349. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  16350. }
  16351. /**
  16352. * Add a "or where JSON not contains" clause to the query.
  16353. *
  16354. * @param string $column
  16355. * @param mixed $value
  16356. * @return \Illuminate\Database\Query\Builder
  16357. * @static
  16358. */
  16359. public static function orWhereJsonDoesntContain($column, $value)
  16360. {
  16361. /** @var \Illuminate\Database\Query\Builder $instance */
  16362. return $instance->orWhereJsonDoesntContain($column, $value);
  16363. }
  16364. /**
  16365. * Add a "where JSON length" clause to the query.
  16366. *
  16367. * @param string $column
  16368. * @param mixed $operator
  16369. * @param mixed $value
  16370. * @param string $boolean
  16371. * @return \Illuminate\Database\Query\Builder
  16372. * @static
  16373. */
  16374. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  16375. {
  16376. /** @var \Illuminate\Database\Query\Builder $instance */
  16377. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  16378. }
  16379. /**
  16380. * Add a "or where JSON length" clause to the query.
  16381. *
  16382. * @param string $column
  16383. * @param mixed $operator
  16384. * @param mixed $value
  16385. * @return \Illuminate\Database\Query\Builder
  16386. * @static
  16387. */
  16388. public static function orWhereJsonLength($column, $operator, $value = null)
  16389. {
  16390. /** @var \Illuminate\Database\Query\Builder $instance */
  16391. return $instance->orWhereJsonLength($column, $operator, $value);
  16392. }
  16393. /**
  16394. * Handles dynamic "where" clauses to the query.
  16395. *
  16396. * @param string $method
  16397. * @param array $parameters
  16398. * @return \Illuminate\Database\Query\Builder
  16399. * @static
  16400. */
  16401. public static function dynamicWhere($method, $parameters)
  16402. {
  16403. /** @var \Illuminate\Database\Query\Builder $instance */
  16404. return $instance->dynamicWhere($method, $parameters);
  16405. }
  16406. /**
  16407. * Add a "group by" clause to the query.
  16408. *
  16409. * @param array|string $groups
  16410. * @return \Illuminate\Database\Query\Builder
  16411. * @static
  16412. */
  16413. public static function groupBy(...$groups)
  16414. {
  16415. /** @var \Illuminate\Database\Query\Builder $instance */
  16416. return $instance->groupBy(...$groups);
  16417. }
  16418. /**
  16419. * Add a raw groupBy clause to the query.
  16420. *
  16421. * @param string $sql
  16422. * @param array $bindings
  16423. * @return \Illuminate\Database\Query\Builder
  16424. * @static
  16425. */
  16426. public static function groupByRaw($sql, $bindings = [])
  16427. {
  16428. /** @var \Illuminate\Database\Query\Builder $instance */
  16429. return $instance->groupByRaw($sql, $bindings);
  16430. }
  16431. /**
  16432. * Add a "having" clause to the query.
  16433. *
  16434. * @param string $column
  16435. * @param string|null $operator
  16436. * @param string|null $value
  16437. * @param string $boolean
  16438. * @return \Illuminate\Database\Query\Builder
  16439. * @static
  16440. */
  16441. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  16442. {
  16443. /** @var \Illuminate\Database\Query\Builder $instance */
  16444. return $instance->having($column, $operator, $value, $boolean);
  16445. }
  16446. /**
  16447. * Add a "or having" clause to the query.
  16448. *
  16449. * @param string $column
  16450. * @param string|null $operator
  16451. * @param string|null $value
  16452. * @return \Illuminate\Database\Query\Builder|static
  16453. * @static
  16454. */
  16455. public static function orHaving($column, $operator = null, $value = null)
  16456. {
  16457. /** @var \Illuminate\Database\Query\Builder $instance */
  16458. return $instance->orHaving($column, $operator, $value);
  16459. }
  16460. /**
  16461. * Add a "having between " clause to the query.
  16462. *
  16463. * @param string $column
  16464. * @param array $values
  16465. * @param string $boolean
  16466. * @param bool $not
  16467. * @return \Illuminate\Database\Query\Builder|static
  16468. * @static
  16469. */
  16470. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  16471. {
  16472. /** @var \Illuminate\Database\Query\Builder $instance */
  16473. return $instance->havingBetween($column, $values, $boolean, $not);
  16474. }
  16475. /**
  16476. * Add a raw having clause to the query.
  16477. *
  16478. * @param string $sql
  16479. * @param array $bindings
  16480. * @param string $boolean
  16481. * @return \Illuminate\Database\Query\Builder
  16482. * @static
  16483. */
  16484. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  16485. {
  16486. /** @var \Illuminate\Database\Query\Builder $instance */
  16487. return $instance->havingRaw($sql, $bindings, $boolean);
  16488. }
  16489. /**
  16490. * Add a raw or having clause to the query.
  16491. *
  16492. * @param string $sql
  16493. * @param array $bindings
  16494. * @return \Illuminate\Database\Query\Builder|static
  16495. * @static
  16496. */
  16497. public static function orHavingRaw($sql, $bindings = [])
  16498. {
  16499. /** @var \Illuminate\Database\Query\Builder $instance */
  16500. return $instance->orHavingRaw($sql, $bindings);
  16501. }
  16502. /**
  16503. * Add an "order by" clause to the query.
  16504. *
  16505. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  16506. * @param string $direction
  16507. * @return \Illuminate\Database\Query\Builder
  16508. * @throws \InvalidArgumentException
  16509. * @static
  16510. */
  16511. public static function orderBy($column, $direction = 'asc')
  16512. {
  16513. /** @var \Illuminate\Database\Query\Builder $instance */
  16514. return $instance->orderBy($column, $direction);
  16515. }
  16516. /**
  16517. * Add a descending "order by" clause to the query.
  16518. *
  16519. * @param string $column
  16520. * @return \Illuminate\Database\Query\Builder
  16521. * @static
  16522. */
  16523. public static function orderByDesc($column)
  16524. {
  16525. /** @var \Illuminate\Database\Query\Builder $instance */
  16526. return $instance->orderByDesc($column);
  16527. }
  16528. /**
  16529. * Put the query's results in random order.
  16530. *
  16531. * @param string $seed
  16532. * @return \Illuminate\Database\Query\Builder
  16533. * @static
  16534. */
  16535. public static function inRandomOrder($seed = '')
  16536. {
  16537. /** @var \Illuminate\Database\Query\Builder $instance */
  16538. return $instance->inRandomOrder($seed);
  16539. }
  16540. /**
  16541. * Add a raw "order by" clause to the query.
  16542. *
  16543. * @param string $sql
  16544. * @param array $bindings
  16545. * @return \Illuminate\Database\Query\Builder
  16546. * @static
  16547. */
  16548. public static function orderByRaw($sql, $bindings = [])
  16549. {
  16550. /** @var \Illuminate\Database\Query\Builder $instance */
  16551. return $instance->orderByRaw($sql, $bindings);
  16552. }
  16553. /**
  16554. * Alias to set the "offset" value of the query.
  16555. *
  16556. * @param int $value
  16557. * @return \Illuminate\Database\Query\Builder|static
  16558. * @static
  16559. */
  16560. public static function skip($value)
  16561. {
  16562. /** @var \Illuminate\Database\Query\Builder $instance */
  16563. return $instance->skip($value);
  16564. }
  16565. /**
  16566. * Set the "offset" value of the query.
  16567. *
  16568. * @param int $value
  16569. * @return \Illuminate\Database\Query\Builder
  16570. * @static
  16571. */
  16572. public static function offset($value)
  16573. {
  16574. /** @var \Illuminate\Database\Query\Builder $instance */
  16575. return $instance->offset($value);
  16576. }
  16577. /**
  16578. * Alias to set the "limit" value of the query.
  16579. *
  16580. * @param int $value
  16581. * @return \Illuminate\Database\Query\Builder|static
  16582. * @static
  16583. */
  16584. public static function take($value)
  16585. {
  16586. /** @var \Illuminate\Database\Query\Builder $instance */
  16587. return $instance->take($value);
  16588. }
  16589. /**
  16590. * Set the "limit" value of the query.
  16591. *
  16592. * @param int $value
  16593. * @return \Illuminate\Database\Query\Builder
  16594. * @static
  16595. */
  16596. public static function limit($value)
  16597. {
  16598. /** @var \Illuminate\Database\Query\Builder $instance */
  16599. return $instance->limit($value);
  16600. }
  16601. /**
  16602. * Set the limit and offset for a given page.
  16603. *
  16604. * @param int $page
  16605. * @param int $perPage
  16606. * @return \Illuminate\Database\Query\Builder|static
  16607. * @static
  16608. */
  16609. public static function forPage($page, $perPage = 15)
  16610. {
  16611. /** @var \Illuminate\Database\Query\Builder $instance */
  16612. return $instance->forPage($page, $perPage);
  16613. }
  16614. /**
  16615. * Constrain the query to the previous "page" of results before a given ID.
  16616. *
  16617. * @param int $perPage
  16618. * @param int|null $lastId
  16619. * @param string $column
  16620. * @return \Illuminate\Database\Query\Builder|static
  16621. * @static
  16622. */
  16623. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  16624. {
  16625. /** @var \Illuminate\Database\Query\Builder $instance */
  16626. return $instance->forPageBeforeId($perPage, $lastId, $column);
  16627. }
  16628. /**
  16629. * Constrain the query to the next "page" of results after a given ID.
  16630. *
  16631. * @param int $perPage
  16632. * @param int|null $lastId
  16633. * @param string $column
  16634. * @return \Illuminate\Database\Query\Builder|static
  16635. * @static
  16636. */
  16637. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  16638. {
  16639. /** @var \Illuminate\Database\Query\Builder $instance */
  16640. return $instance->forPageAfterId($perPage, $lastId, $column);
  16641. }
  16642. /**
  16643. * Add a union statement to the query.
  16644. *
  16645. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16646. * @param bool $all
  16647. * @return \Illuminate\Database\Query\Builder|static
  16648. * @static
  16649. */
  16650. public static function union($query, $all = false)
  16651. {
  16652. /** @var \Illuminate\Database\Query\Builder $instance */
  16653. return $instance->union($query, $all);
  16654. }
  16655. /**
  16656. * Add a union all statement to the query.
  16657. *
  16658. * @param \Illuminate\Database\Query\Builder|\Closure $query
  16659. * @return \Illuminate\Database\Query\Builder|static
  16660. * @static
  16661. */
  16662. public static function unionAll($query)
  16663. {
  16664. /** @var \Illuminate\Database\Query\Builder $instance */
  16665. return $instance->unionAll($query);
  16666. }
  16667. /**
  16668. * Lock the selected rows in the table.
  16669. *
  16670. * @param string|bool $value
  16671. * @return \Illuminate\Database\Query\Builder
  16672. * @static
  16673. */
  16674. public static function lock($value = true)
  16675. {
  16676. /** @var \Illuminate\Database\Query\Builder $instance */
  16677. return $instance->lock($value);
  16678. }
  16679. /**
  16680. * Lock the selected rows in the table for updating.
  16681. *
  16682. * @return \Illuminate\Database\Query\Builder
  16683. * @static
  16684. */
  16685. public static function lockForUpdate()
  16686. {
  16687. /** @var \Illuminate\Database\Query\Builder $instance */
  16688. return $instance->lockForUpdate();
  16689. }
  16690. /**
  16691. * Share lock the selected rows in the table.
  16692. *
  16693. * @return \Illuminate\Database\Query\Builder
  16694. * @static
  16695. */
  16696. public static function sharedLock()
  16697. {
  16698. /** @var \Illuminate\Database\Query\Builder $instance */
  16699. return $instance->sharedLock();
  16700. }
  16701. /**
  16702. * Get the SQL representation of the query.
  16703. *
  16704. * @return string
  16705. * @static
  16706. */
  16707. public static function toSql()
  16708. {
  16709. /** @var \Illuminate\Database\Query\Builder $instance */
  16710. return $instance->toSql();
  16711. }
  16712. /**
  16713. * Get the count of the total records for the paginator.
  16714. *
  16715. * @param array $columns
  16716. * @return int
  16717. * @static
  16718. */
  16719. public static function getCountForPagination($columns = [])
  16720. {
  16721. /** @var \Illuminate\Database\Query\Builder $instance */
  16722. return $instance->getCountForPagination($columns);
  16723. }
  16724. /**
  16725. * Concatenate values of a given column as a string.
  16726. *
  16727. * @param string $column
  16728. * @param string $glue
  16729. * @return string
  16730. * @static
  16731. */
  16732. public static function implode($column, $glue = '')
  16733. {
  16734. /** @var \Illuminate\Database\Query\Builder $instance */
  16735. return $instance->implode($column, $glue);
  16736. }
  16737. /**
  16738. * Determine if any rows exist for the current query.
  16739. *
  16740. * @return bool
  16741. * @static
  16742. */
  16743. public static function exists()
  16744. {
  16745. /** @var \Illuminate\Database\Query\Builder $instance */
  16746. return $instance->exists();
  16747. }
  16748. /**
  16749. * Determine if no rows exist for the current query.
  16750. *
  16751. * @return bool
  16752. * @static
  16753. */
  16754. public static function doesntExist()
  16755. {
  16756. /** @var \Illuminate\Database\Query\Builder $instance */
  16757. return $instance->doesntExist();
  16758. }
  16759. /**
  16760. * Execute the given callback if no rows exist for the current query.
  16761. *
  16762. * @param \Closure $callback
  16763. * @return mixed
  16764. * @static
  16765. */
  16766. public static function existsOr($callback)
  16767. {
  16768. /** @var \Illuminate\Database\Query\Builder $instance */
  16769. return $instance->existsOr($callback);
  16770. }
  16771. /**
  16772. * Execute the given callback if rows exist for the current query.
  16773. *
  16774. * @param \Closure $callback
  16775. * @return mixed
  16776. * @static
  16777. */
  16778. public static function doesntExistOr($callback)
  16779. {
  16780. /** @var \Illuminate\Database\Query\Builder $instance */
  16781. return $instance->doesntExistOr($callback);
  16782. }
  16783. /**
  16784. * Retrieve the "count" result of the query.
  16785. *
  16786. * @param string $columns
  16787. * @return int
  16788. * @static
  16789. */
  16790. public static function count($columns = '*')
  16791. {
  16792. /** @var \Illuminate\Database\Query\Builder $instance */
  16793. return $instance->count($columns);
  16794. }
  16795. /**
  16796. * Retrieve the minimum value of a given column.
  16797. *
  16798. * @param string $column
  16799. * @return mixed
  16800. * @static
  16801. */
  16802. public static function min($column)
  16803. {
  16804. /** @var \Illuminate\Database\Query\Builder $instance */
  16805. return $instance->min($column);
  16806. }
  16807. /**
  16808. * Retrieve the maximum value of a given column.
  16809. *
  16810. * @param string $column
  16811. * @return mixed
  16812. * @static
  16813. */
  16814. public static function max($column)
  16815. {
  16816. /** @var \Illuminate\Database\Query\Builder $instance */
  16817. return $instance->max($column);
  16818. }
  16819. /**
  16820. * Retrieve the sum of the values of a given column.
  16821. *
  16822. * @param string $column
  16823. * @return mixed
  16824. * @static
  16825. */
  16826. public static function sum($column)
  16827. {
  16828. /** @var \Illuminate\Database\Query\Builder $instance */
  16829. return $instance->sum($column);
  16830. }
  16831. /**
  16832. * Retrieve the average of the values of a given column.
  16833. *
  16834. * @param string $column
  16835. * @return mixed
  16836. * @static
  16837. */
  16838. public static function avg($column)
  16839. {
  16840. /** @var \Illuminate\Database\Query\Builder $instance */
  16841. return $instance->avg($column);
  16842. }
  16843. /**
  16844. * Alias for the "avg" method.
  16845. *
  16846. * @param string $column
  16847. * @return mixed
  16848. * @static
  16849. */
  16850. public static function average($column)
  16851. {
  16852. /** @var \Illuminate\Database\Query\Builder $instance */
  16853. return $instance->average($column);
  16854. }
  16855. /**
  16856. * Execute an aggregate function on the database.
  16857. *
  16858. * @param string $function
  16859. * @param array $columns
  16860. * @return mixed
  16861. * @static
  16862. */
  16863. public static function aggregate($function, $columns = [])
  16864. {
  16865. /** @var \Illuminate\Database\Query\Builder $instance */
  16866. return $instance->aggregate($function, $columns);
  16867. }
  16868. /**
  16869. * Execute a numeric aggregate function on the database.
  16870. *
  16871. * @param string $function
  16872. * @param array $columns
  16873. * @return float|int
  16874. * @static
  16875. */
  16876. public static function numericAggregate($function, $columns = [])
  16877. {
  16878. /** @var \Illuminate\Database\Query\Builder $instance */
  16879. return $instance->numericAggregate($function, $columns);
  16880. }
  16881. /**
  16882. * Insert a new record into the database.
  16883. *
  16884. * @param array $values
  16885. * @return bool
  16886. * @static
  16887. */
  16888. public static function insert($values)
  16889. {
  16890. /** @var \Illuminate\Database\Query\Builder $instance */
  16891. return $instance->insert($values);
  16892. }
  16893. /**
  16894. * Insert a new record into the database while ignoring errors.
  16895. *
  16896. * @param array $values
  16897. * @return int
  16898. * @static
  16899. */
  16900. public static function insertOrIgnore($values)
  16901. {
  16902. /** @var \Illuminate\Database\Query\Builder $instance */
  16903. return $instance->insertOrIgnore($values);
  16904. }
  16905. /**
  16906. * Insert a new record and get the value of the primary key.
  16907. *
  16908. * @param array $values
  16909. * @param string|null $sequence
  16910. * @return int
  16911. * @static
  16912. */
  16913. public static function insertGetId($values, $sequence = null)
  16914. {
  16915. /** @var \Illuminate\Database\Query\Builder $instance */
  16916. return $instance->insertGetId($values, $sequence);
  16917. }
  16918. /**
  16919. * Insert new records into the table using a subquery.
  16920. *
  16921. * @param array $columns
  16922. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16923. * @return int
  16924. * @static
  16925. */
  16926. public static function insertUsing($columns, $query)
  16927. {
  16928. /** @var \Illuminate\Database\Query\Builder $instance */
  16929. return $instance->insertUsing($columns, $query);
  16930. }
  16931. /**
  16932. * Insert or update a record matching the attributes, and fill it with values.
  16933. *
  16934. * @param array $attributes
  16935. * @param array $values
  16936. * @return bool
  16937. * @static
  16938. */
  16939. public static function updateOrInsert($attributes, $values = [])
  16940. {
  16941. /** @var \Illuminate\Database\Query\Builder $instance */
  16942. return $instance->updateOrInsert($attributes, $values);
  16943. }
  16944. /**
  16945. * Run a truncate statement on the table.
  16946. *
  16947. * @return void
  16948. * @static
  16949. */
  16950. public static function truncate()
  16951. {
  16952. /** @var \Illuminate\Database\Query\Builder $instance */
  16953. $instance->truncate();
  16954. }
  16955. /**
  16956. * Create a raw database expression.
  16957. *
  16958. * @param mixed $value
  16959. * @return \Illuminate\Database\Query\Expression
  16960. * @static
  16961. */
  16962. public static function raw($value)
  16963. {
  16964. /** @var \Illuminate\Database\Query\Builder $instance */
  16965. return $instance->raw($value);
  16966. }
  16967. /**
  16968. * Get the current query value bindings in a flattened array.
  16969. *
  16970. * @return array
  16971. * @static
  16972. */
  16973. public static function getBindings()
  16974. {
  16975. /** @var \Illuminate\Database\Query\Builder $instance */
  16976. return $instance->getBindings();
  16977. }
  16978. /**
  16979. * Get the raw array of bindings.
  16980. *
  16981. * @return array
  16982. * @static
  16983. */
  16984. public static function getRawBindings()
  16985. {
  16986. /** @var \Illuminate\Database\Query\Builder $instance */
  16987. return $instance->getRawBindings();
  16988. }
  16989. /**
  16990. * Set the bindings on the query builder.
  16991. *
  16992. * @param array $bindings
  16993. * @param string $type
  16994. * @return \Illuminate\Database\Query\Builder
  16995. * @throws \InvalidArgumentException
  16996. * @static
  16997. */
  16998. public static function setBindings($bindings, $type = 'where')
  16999. {
  17000. /** @var \Illuminate\Database\Query\Builder $instance */
  17001. return $instance->setBindings($bindings, $type);
  17002. }
  17003. /**
  17004. * Add a binding to the query.
  17005. *
  17006. * @param mixed $value
  17007. * @param string $type
  17008. * @return \Illuminate\Database\Query\Builder
  17009. * @throws \InvalidArgumentException
  17010. * @static
  17011. */
  17012. public static function addBinding($value, $type = 'where')
  17013. {
  17014. /** @var \Illuminate\Database\Query\Builder $instance */
  17015. return $instance->addBinding($value, $type);
  17016. }
  17017. /**
  17018. * Merge an array of bindings into our bindings.
  17019. *
  17020. * @param \Illuminate\Database\Query\Builder $query
  17021. * @return \Illuminate\Database\Query\Builder
  17022. * @static
  17023. */
  17024. public static function mergeBindings($query)
  17025. {
  17026. /** @var \Illuminate\Database\Query\Builder $instance */
  17027. return $instance->mergeBindings($query);
  17028. }
  17029. /**
  17030. * Get the database query processor instance.
  17031. *
  17032. * @return \Illuminate\Database\Query\Processors\Processor
  17033. * @static
  17034. */
  17035. public static function getProcessor()
  17036. {
  17037. /** @var \Illuminate\Database\Query\Builder $instance */
  17038. return $instance->getProcessor();
  17039. }
  17040. /**
  17041. * Get the query grammar instance.
  17042. *
  17043. * @return \Illuminate\Database\Query\Grammars\Grammar
  17044. * @static
  17045. */
  17046. public static function getGrammar()
  17047. {
  17048. /** @var \Illuminate\Database\Query\Builder $instance */
  17049. return $instance->getGrammar();
  17050. }
  17051. /**
  17052. * Use the write pdo for query.
  17053. *
  17054. * @return \Illuminate\Database\Query\Builder
  17055. * @static
  17056. */
  17057. public static function useWritePdo()
  17058. {
  17059. /** @var \Illuminate\Database\Query\Builder $instance */
  17060. return $instance->useWritePdo();
  17061. }
  17062. /**
  17063. * Clone the query without the given properties.
  17064. *
  17065. * @param array $properties
  17066. * @return static
  17067. * @static
  17068. */
  17069. public static function cloneWithout($properties)
  17070. {
  17071. /** @var \Illuminate\Database\Query\Builder $instance */
  17072. return $instance->cloneWithout($properties);
  17073. }
  17074. /**
  17075. * Clone the query without the given bindings.
  17076. *
  17077. * @param array $except
  17078. * @return static
  17079. * @static
  17080. */
  17081. public static function cloneWithoutBindings($except)
  17082. {
  17083. /** @var \Illuminate\Database\Query\Builder $instance */
  17084. return $instance->cloneWithoutBindings($except);
  17085. }
  17086. /**
  17087. * Dump the current SQL and bindings.
  17088. *
  17089. * @return \Illuminate\Database\Query\Builder
  17090. * @static
  17091. */
  17092. public static function dump()
  17093. {
  17094. /** @var \Illuminate\Database\Query\Builder $instance */
  17095. return $instance->dump();
  17096. }
  17097. /**
  17098. * Die and dump the current SQL and bindings.
  17099. *
  17100. * @return void
  17101. * @static
  17102. */
  17103. public static function dd()
  17104. {
  17105. /** @var \Illuminate\Database\Query\Builder $instance */
  17106. $instance->dd();
  17107. }
  17108. /**
  17109. * Register a custom macro.
  17110. *
  17111. * @param string $name
  17112. * @param object|callable $macro
  17113. * @return void
  17114. * @static
  17115. */
  17116. public static function macro($name, $macro)
  17117. {
  17118. \Illuminate\Database\Query\Builder::macro($name, $macro);
  17119. }
  17120. /**
  17121. * Mix another object into the class.
  17122. *
  17123. * @param object $mixin
  17124. * @param bool $replace
  17125. * @return void
  17126. * @throws \ReflectionException
  17127. * @static
  17128. */
  17129. public static function mixin($mixin, $replace = true)
  17130. {
  17131. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  17132. }
  17133. /**
  17134. * Dynamically handle calls to the class.
  17135. *
  17136. * @param string $method
  17137. * @param array $parameters
  17138. * @return mixed
  17139. * @throws \BadMethodCallException
  17140. * @static
  17141. */
  17142. public static function macroCall($method, $parameters)
  17143. {
  17144. /** @var \Illuminate\Database\Query\Builder $instance */
  17145. return $instance->macroCall($method, $parameters);
  17146. }
  17147. }
  17148. class Event extends \Illuminate\Support\Facades\Event {}
  17149. class File extends \Illuminate\Support\Facades\File {}
  17150. class Gate extends \Illuminate\Support\Facades\Gate {}
  17151. class Hash extends \Illuminate\Support\Facades\Hash {}
  17152. class Lang extends \Illuminate\Support\Facades\Lang {}
  17153. class Log extends \Illuminate\Support\Facades\Log {}
  17154. class Mail extends \Illuminate\Support\Facades\Mail {}
  17155. class Notification extends \Illuminate\Support\Facades\Notification {}
  17156. class Password extends \Illuminate\Support\Facades\Password {}
  17157. class Queue extends \Illuminate\Support\Facades\Queue {}
  17158. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  17159. class Request extends \Illuminate\Support\Facades\Request {}
  17160. class Response extends \Illuminate\Support\Facades\Response {}
  17161. class Route extends \Illuminate\Support\Facades\Route {}
  17162. class Schema extends \Illuminate\Support\Facades\Schema {}
  17163. class Session extends \Illuminate\Support\Facades\Session {}
  17164. class Storage extends \Illuminate\Support\Facades\Storage {}
  17165. class Str extends \Illuminate\Support\Str {}
  17166. class URL extends \Illuminate\Support\Facades\URL {}
  17167. class Validator extends \Illuminate\Support\Facades\Validator {}
  17168. class View extends \Illuminate\Support\Facades\View {}
  17169. class Flare extends \Facade\Ignition\Facades\Flare {}
  17170. class Image extends \Intervention\Image\Facades\Image {}
  17171. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  17172. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  17173. class Pinyin extends \Overtrue\LaravelPinyin\Facades\Pinyin {}
  17174. class Ip extends \Zhuzhichao\IpLocationZh\Ip {}
  17175. }