_ide_helper.php 717 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel, to provide autocomplete information to your IDE
  5. * Generated for Laravel 8.53.1.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  10. * @see https://github.com/barryvdh/laravel-ide-helper
  11. */
  12. namespace Illuminate\Support\Facades {
  13. /**
  14. *
  15. *
  16. * @see \Illuminate\Contracts\Foundation\Application
  17. */
  18. class App {
  19. /**
  20. * Get the version number of the application.
  21. *
  22. * @return string
  23. * @static
  24. */
  25. public static function version()
  26. {
  27. /** @var \Illuminate\Foundation\Application $instance */
  28. return $instance->version();
  29. }
  30. /**
  31. * Run the given array of bootstrap classes.
  32. *
  33. * @param string[] $bootstrappers
  34. * @return void
  35. * @static
  36. */
  37. public static function bootstrapWith($bootstrappers)
  38. {
  39. /** @var \Illuminate\Foundation\Application $instance */
  40. $instance->bootstrapWith($bootstrappers);
  41. }
  42. /**
  43. * Register a callback to run after loading the environment.
  44. *
  45. * @param \Closure $callback
  46. * @return void
  47. * @static
  48. */
  49. public static function afterLoadingEnvironment($callback)
  50. {
  51. /** @var \Illuminate\Foundation\Application $instance */
  52. $instance->afterLoadingEnvironment($callback);
  53. }
  54. /**
  55. * Register a callback to run before a bootstrapper.
  56. *
  57. * @param string $bootstrapper
  58. * @param \Closure $callback
  59. * @return void
  60. * @static
  61. */
  62. public static function beforeBootstrapping($bootstrapper, $callback)
  63. {
  64. /** @var \Illuminate\Foundation\Application $instance */
  65. $instance->beforeBootstrapping($bootstrapper, $callback);
  66. }
  67. /**
  68. * Register a callback to run after a bootstrapper.
  69. *
  70. * @param string $bootstrapper
  71. * @param \Closure $callback
  72. * @return void
  73. * @static
  74. */
  75. public static function afterBootstrapping($bootstrapper, $callback)
  76. {
  77. /** @var \Illuminate\Foundation\Application $instance */
  78. $instance->afterBootstrapping($bootstrapper, $callback);
  79. }
  80. /**
  81. * Determine if the application has been bootstrapped before.
  82. *
  83. * @return bool
  84. * @static
  85. */
  86. public static function hasBeenBootstrapped()
  87. {
  88. /** @var \Illuminate\Foundation\Application $instance */
  89. return $instance->hasBeenBootstrapped();
  90. }
  91. /**
  92. * Set the base path for the application.
  93. *
  94. * @param string $basePath
  95. * @return \Illuminate\Foundation\Application
  96. * @static
  97. */
  98. public static function setBasePath($basePath)
  99. {
  100. /** @var \Illuminate\Foundation\Application $instance */
  101. return $instance->setBasePath($basePath);
  102. }
  103. /**
  104. * Get the path to the application "app" directory.
  105. *
  106. * @param string $path
  107. * @return string
  108. * @static
  109. */
  110. public static function path($path = '')
  111. {
  112. /** @var \Illuminate\Foundation\Application $instance */
  113. return $instance->path($path);
  114. }
  115. /**
  116. * Set the application directory.
  117. *
  118. * @param string $path
  119. * @return \Illuminate\Foundation\Application
  120. * @static
  121. */
  122. public static function useAppPath($path)
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->useAppPath($path);
  126. }
  127. /**
  128. * Get the base path of the Laravel installation.
  129. *
  130. * @param string $path Optionally, a path to append to the base path
  131. * @return string
  132. * @static
  133. */
  134. public static function basePath($path = '')
  135. {
  136. /** @var \Illuminate\Foundation\Application $instance */
  137. return $instance->basePath($path);
  138. }
  139. /**
  140. * Get the path to the bootstrap directory.
  141. *
  142. * @param string $path Optionally, a path to append to the bootstrap path
  143. * @return string
  144. * @static
  145. */
  146. public static function bootstrapPath($path = '')
  147. {
  148. /** @var \Illuminate\Foundation\Application $instance */
  149. return $instance->bootstrapPath($path);
  150. }
  151. /**
  152. * Get the path to the application configuration files.
  153. *
  154. * @param string $path Optionally, a path to append to the config path
  155. * @return string
  156. * @static
  157. */
  158. public static function configPath($path = '')
  159. {
  160. /** @var \Illuminate\Foundation\Application $instance */
  161. return $instance->configPath($path);
  162. }
  163. /**
  164. * Get the path to the database directory.
  165. *
  166. * @param string $path Optionally, a path to append to the database path
  167. * @return string
  168. * @static
  169. */
  170. public static function databasePath($path = '')
  171. {
  172. /** @var \Illuminate\Foundation\Application $instance */
  173. return $instance->databasePath($path);
  174. }
  175. /**
  176. * Set the database directory.
  177. *
  178. * @param string $path
  179. * @return \Illuminate\Foundation\Application
  180. * @static
  181. */
  182. public static function useDatabasePath($path)
  183. {
  184. /** @var \Illuminate\Foundation\Application $instance */
  185. return $instance->useDatabasePath($path);
  186. }
  187. /**
  188. * Get the path to the language files.
  189. *
  190. * @return string
  191. * @static
  192. */
  193. public static function langPath()
  194. {
  195. /** @var \Illuminate\Foundation\Application $instance */
  196. return $instance->langPath();
  197. }
  198. /**
  199. * Set the language file directory.
  200. *
  201. * @param string $path
  202. * @return \Illuminate\Foundation\Application
  203. * @static
  204. */
  205. public static function useLangPath($path)
  206. {
  207. /** @var \Illuminate\Foundation\Application $instance */
  208. return $instance->useLangPath($path);
  209. }
  210. /**
  211. * Get the path to the public / web directory.
  212. *
  213. * @return string
  214. * @static
  215. */
  216. public static function publicPath()
  217. {
  218. /** @var \Illuminate\Foundation\Application $instance */
  219. return $instance->publicPath();
  220. }
  221. /**
  222. * Get the path to the storage directory.
  223. *
  224. * @return string
  225. * @static
  226. */
  227. public static function storagePath()
  228. {
  229. /** @var \Illuminate\Foundation\Application $instance */
  230. return $instance->storagePath();
  231. }
  232. /**
  233. * Set the storage directory.
  234. *
  235. * @param string $path
  236. * @return \Illuminate\Foundation\Application
  237. * @static
  238. */
  239. public static function useStoragePath($path)
  240. {
  241. /** @var \Illuminate\Foundation\Application $instance */
  242. return $instance->useStoragePath($path);
  243. }
  244. /**
  245. * Get the path to the resources directory.
  246. *
  247. * @param string $path
  248. * @return string
  249. * @static
  250. */
  251. public static function resourcePath($path = '')
  252. {
  253. /** @var \Illuminate\Foundation\Application $instance */
  254. return $instance->resourcePath($path);
  255. }
  256. /**
  257. * Get the path to the views directory.
  258. *
  259. * This method returns the first configured path in the array of view paths.
  260. *
  261. * @param string $path
  262. * @return string
  263. * @static
  264. */
  265. public static function viewPath($path = '')
  266. {
  267. /** @var \Illuminate\Foundation\Application $instance */
  268. return $instance->viewPath($path);
  269. }
  270. /**
  271. * Get the path to the environment file directory.
  272. *
  273. * @return string
  274. * @static
  275. */
  276. public static function environmentPath()
  277. {
  278. /** @var \Illuminate\Foundation\Application $instance */
  279. return $instance->environmentPath();
  280. }
  281. /**
  282. * Set the directory for the environment file.
  283. *
  284. * @param string $path
  285. * @return \Illuminate\Foundation\Application
  286. * @static
  287. */
  288. public static function useEnvironmentPath($path)
  289. {
  290. /** @var \Illuminate\Foundation\Application $instance */
  291. return $instance->useEnvironmentPath($path);
  292. }
  293. /**
  294. * Set the environment file to be loaded during bootstrapping.
  295. *
  296. * @param string $file
  297. * @return \Illuminate\Foundation\Application
  298. * @static
  299. */
  300. public static function loadEnvironmentFrom($file)
  301. {
  302. /** @var \Illuminate\Foundation\Application $instance */
  303. return $instance->loadEnvironmentFrom($file);
  304. }
  305. /**
  306. * Get the environment file the application is using.
  307. *
  308. * @return string
  309. * @static
  310. */
  311. public static function environmentFile()
  312. {
  313. /** @var \Illuminate\Foundation\Application $instance */
  314. return $instance->environmentFile();
  315. }
  316. /**
  317. * Get the fully qualified path to the environment file.
  318. *
  319. * @return string
  320. * @static
  321. */
  322. public static function environmentFilePath()
  323. {
  324. /** @var \Illuminate\Foundation\Application $instance */
  325. return $instance->environmentFilePath();
  326. }
  327. /**
  328. * Get or check the current application environment.
  329. *
  330. * @param string|array $environments
  331. * @return string|bool
  332. * @static
  333. */
  334. public static function environment(...$environments)
  335. {
  336. /** @var \Illuminate\Foundation\Application $instance */
  337. return $instance->environment(...$environments);
  338. }
  339. /**
  340. * Determine if the application is in the local environment.
  341. *
  342. * @return bool
  343. * @static
  344. */
  345. public static function isLocal()
  346. {
  347. /** @var \Illuminate\Foundation\Application $instance */
  348. return $instance->isLocal();
  349. }
  350. /**
  351. * Determine if the application is in the production environment.
  352. *
  353. * @return bool
  354. * @static
  355. */
  356. public static function isProduction()
  357. {
  358. /** @var \Illuminate\Foundation\Application $instance */
  359. return $instance->isProduction();
  360. }
  361. /**
  362. * Detect the application's current environment.
  363. *
  364. * @param \Closure $callback
  365. * @return string
  366. * @static
  367. */
  368. public static function detectEnvironment($callback)
  369. {
  370. /** @var \Illuminate\Foundation\Application $instance */
  371. return $instance->detectEnvironment($callback);
  372. }
  373. /**
  374. * Determine if the application is running in the console.
  375. *
  376. * @return bool
  377. * @static
  378. */
  379. public static function runningInConsole()
  380. {
  381. /** @var \Illuminate\Foundation\Application $instance */
  382. return $instance->runningInConsole();
  383. }
  384. /**
  385. * Determine if the application is running unit tests.
  386. *
  387. * @return bool
  388. * @static
  389. */
  390. public static function runningUnitTests()
  391. {
  392. /** @var \Illuminate\Foundation\Application $instance */
  393. return $instance->runningUnitTests();
  394. }
  395. /**
  396. * Register all of the configured providers.
  397. *
  398. * @return void
  399. * @static
  400. */
  401. public static function registerConfiguredProviders()
  402. {
  403. /** @var \Illuminate\Foundation\Application $instance */
  404. $instance->registerConfiguredProviders();
  405. }
  406. /**
  407. * Register a service provider with the application.
  408. *
  409. * @param \Illuminate\Support\ServiceProvider|string $provider
  410. * @param bool $force
  411. * @return \Illuminate\Support\ServiceProvider
  412. * @static
  413. */
  414. public static function register($provider, $force = false)
  415. {
  416. /** @var \Illuminate\Foundation\Application $instance */
  417. return $instance->register($provider, $force);
  418. }
  419. /**
  420. * Get the registered service provider instance if it exists.
  421. *
  422. * @param \Illuminate\Support\ServiceProvider|string $provider
  423. * @return \Illuminate\Support\ServiceProvider|null
  424. * @static
  425. */
  426. public static function getProvider($provider)
  427. {
  428. /** @var \Illuminate\Foundation\Application $instance */
  429. return $instance->getProvider($provider);
  430. }
  431. /**
  432. * Get the registered service provider instances if any exist.
  433. *
  434. * @param \Illuminate\Support\ServiceProvider|string $provider
  435. * @return array
  436. * @static
  437. */
  438. public static function getProviders($provider)
  439. {
  440. /** @var \Illuminate\Foundation\Application $instance */
  441. return $instance->getProviders($provider);
  442. }
  443. /**
  444. * Resolve a service provider instance from the class name.
  445. *
  446. * @param string $provider
  447. * @return \Illuminate\Support\ServiceProvider
  448. * @static
  449. */
  450. public static function resolveProvider($provider)
  451. {
  452. /** @var \Illuminate\Foundation\Application $instance */
  453. return $instance->resolveProvider($provider);
  454. }
  455. /**
  456. * Load and boot all of the remaining deferred providers.
  457. *
  458. * @return void
  459. * @static
  460. */
  461. public static function loadDeferredProviders()
  462. {
  463. /** @var \Illuminate\Foundation\Application $instance */
  464. $instance->loadDeferredProviders();
  465. }
  466. /**
  467. * Load the provider for a deferred service.
  468. *
  469. * @param string $service
  470. * @return void
  471. * @static
  472. */
  473. public static function loadDeferredProvider($service)
  474. {
  475. /** @var \Illuminate\Foundation\Application $instance */
  476. $instance->loadDeferredProvider($service);
  477. }
  478. /**
  479. * Register a deferred provider and service.
  480. *
  481. * @param string $provider
  482. * @param string|null $service
  483. * @return void
  484. * @static
  485. */
  486. public static function registerDeferredProvider($provider, $service = null)
  487. {
  488. /** @var \Illuminate\Foundation\Application $instance */
  489. $instance->registerDeferredProvider($provider, $service);
  490. }
  491. /**
  492. * Resolve the given type from the container.
  493. *
  494. * @param string $abstract
  495. * @param array $parameters
  496. * @return mixed
  497. * @static
  498. */
  499. public static function make($abstract, $parameters = [])
  500. {
  501. /** @var \Illuminate\Foundation\Application $instance */
  502. return $instance->make($abstract, $parameters);
  503. }
  504. /**
  505. * Determine if the given abstract type has been bound.
  506. *
  507. * @param string $abstract
  508. * @return bool
  509. * @static
  510. */
  511. public static function bound($abstract)
  512. {
  513. /** @var \Illuminate\Foundation\Application $instance */
  514. return $instance->bound($abstract);
  515. }
  516. /**
  517. * Determine if the application has booted.
  518. *
  519. * @return bool
  520. * @static
  521. */
  522. public static function isBooted()
  523. {
  524. /** @var \Illuminate\Foundation\Application $instance */
  525. return $instance->isBooted();
  526. }
  527. /**
  528. * Boot the application's service providers.
  529. *
  530. * @return void
  531. * @static
  532. */
  533. public static function boot()
  534. {
  535. /** @var \Illuminate\Foundation\Application $instance */
  536. $instance->boot();
  537. }
  538. /**
  539. * Register a new boot listener.
  540. *
  541. * @param callable $callback
  542. * @return void
  543. * @static
  544. */
  545. public static function booting($callback)
  546. {
  547. /** @var \Illuminate\Foundation\Application $instance */
  548. $instance->booting($callback);
  549. }
  550. /**
  551. * Register a new "booted" listener.
  552. *
  553. * @param callable $callback
  554. * @return void
  555. * @static
  556. */
  557. public static function booted($callback)
  558. {
  559. /** @var \Illuminate\Foundation\Application $instance */
  560. $instance->booted($callback);
  561. }
  562. /**
  563. * {@inheritdoc}
  564. *
  565. * @static
  566. */
  567. public static function handle($request, $type = 1, $catch = true)
  568. {
  569. /** @var \Illuminate\Foundation\Application $instance */
  570. return $instance->handle($request, $type, $catch);
  571. }
  572. /**
  573. * Determine if middleware has been disabled for the application.
  574. *
  575. * @return bool
  576. * @static
  577. */
  578. public static function shouldSkipMiddleware()
  579. {
  580. /** @var \Illuminate\Foundation\Application $instance */
  581. return $instance->shouldSkipMiddleware();
  582. }
  583. /**
  584. * Get the path to the cached services.php file.
  585. *
  586. * @return string
  587. * @static
  588. */
  589. public static function getCachedServicesPath()
  590. {
  591. /** @var \Illuminate\Foundation\Application $instance */
  592. return $instance->getCachedServicesPath();
  593. }
  594. /**
  595. * Get the path to the cached packages.php file.
  596. *
  597. * @return string
  598. * @static
  599. */
  600. public static function getCachedPackagesPath()
  601. {
  602. /** @var \Illuminate\Foundation\Application $instance */
  603. return $instance->getCachedPackagesPath();
  604. }
  605. /**
  606. * Determine if the application configuration is cached.
  607. *
  608. * @return bool
  609. * @static
  610. */
  611. public static function configurationIsCached()
  612. {
  613. /** @var \Illuminate\Foundation\Application $instance */
  614. return $instance->configurationIsCached();
  615. }
  616. /**
  617. * Get the path to the configuration cache file.
  618. *
  619. * @return string
  620. * @static
  621. */
  622. public static function getCachedConfigPath()
  623. {
  624. /** @var \Illuminate\Foundation\Application $instance */
  625. return $instance->getCachedConfigPath();
  626. }
  627. /**
  628. * Determine if the application routes are cached.
  629. *
  630. * @return bool
  631. * @static
  632. */
  633. public static function routesAreCached()
  634. {
  635. /** @var \Illuminate\Foundation\Application $instance */
  636. return $instance->routesAreCached();
  637. }
  638. /**
  639. * Get the path to the routes cache file.
  640. *
  641. * @return string
  642. * @static
  643. */
  644. public static function getCachedRoutesPath()
  645. {
  646. /** @var \Illuminate\Foundation\Application $instance */
  647. return $instance->getCachedRoutesPath();
  648. }
  649. /**
  650. * Determine if the application events are cached.
  651. *
  652. * @return bool
  653. * @static
  654. */
  655. public static function eventsAreCached()
  656. {
  657. /** @var \Illuminate\Foundation\Application $instance */
  658. return $instance->eventsAreCached();
  659. }
  660. /**
  661. * Get the path to the events cache file.
  662. *
  663. * @return string
  664. * @static
  665. */
  666. public static function getCachedEventsPath()
  667. {
  668. /** @var \Illuminate\Foundation\Application $instance */
  669. return $instance->getCachedEventsPath();
  670. }
  671. /**
  672. * Add new prefix to list of absolute path prefixes.
  673. *
  674. * @param string $prefix
  675. * @return \Illuminate\Foundation\Application
  676. * @static
  677. */
  678. public static function addAbsoluteCachePathPrefix($prefix)
  679. {
  680. /** @var \Illuminate\Foundation\Application $instance */
  681. return $instance->addAbsoluteCachePathPrefix($prefix);
  682. }
  683. /**
  684. * Determine if the application is currently down for maintenance.
  685. *
  686. * @return bool
  687. * @static
  688. */
  689. public static function isDownForMaintenance()
  690. {
  691. /** @var \Illuminate\Foundation\Application $instance */
  692. return $instance->isDownForMaintenance();
  693. }
  694. /**
  695. * Throw an HttpException with the given data.
  696. *
  697. * @param int $code
  698. * @param string $message
  699. * @param array $headers
  700. * @return void
  701. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  702. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  703. * @static
  704. */
  705. public static function abort($code, $message = '', $headers = [])
  706. {
  707. /** @var \Illuminate\Foundation\Application $instance */
  708. $instance->abort($code, $message, $headers);
  709. }
  710. /**
  711. * Register a terminating callback with the application.
  712. *
  713. * @param callable|string $callback
  714. * @return \Illuminate\Foundation\Application
  715. * @static
  716. */
  717. public static function terminating($callback)
  718. {
  719. /** @var \Illuminate\Foundation\Application $instance */
  720. return $instance->terminating($callback);
  721. }
  722. /**
  723. * Terminate the application.
  724. *
  725. * @return void
  726. * @static
  727. */
  728. public static function terminate()
  729. {
  730. /** @var \Illuminate\Foundation\Application $instance */
  731. $instance->terminate();
  732. }
  733. /**
  734. * Get the service providers that have been loaded.
  735. *
  736. * @return array
  737. * @static
  738. */
  739. public static function getLoadedProviders()
  740. {
  741. /** @var \Illuminate\Foundation\Application $instance */
  742. return $instance->getLoadedProviders();
  743. }
  744. /**
  745. * Determine if the given service provider is loaded.
  746. *
  747. * @param string $provider
  748. * @return bool
  749. * @static
  750. */
  751. public static function providerIsLoaded($provider)
  752. {
  753. /** @var \Illuminate\Foundation\Application $instance */
  754. return $instance->providerIsLoaded($provider);
  755. }
  756. /**
  757. * Get the application's deferred services.
  758. *
  759. * @return array
  760. * @static
  761. */
  762. public static function getDeferredServices()
  763. {
  764. /** @var \Illuminate\Foundation\Application $instance */
  765. return $instance->getDeferredServices();
  766. }
  767. /**
  768. * Set the application's deferred services.
  769. *
  770. * @param array $services
  771. * @return void
  772. * @static
  773. */
  774. public static function setDeferredServices($services)
  775. {
  776. /** @var \Illuminate\Foundation\Application $instance */
  777. $instance->setDeferredServices($services);
  778. }
  779. /**
  780. * Add an array of services to the application's deferred services.
  781. *
  782. * @param array $services
  783. * @return void
  784. * @static
  785. */
  786. public static function addDeferredServices($services)
  787. {
  788. /** @var \Illuminate\Foundation\Application $instance */
  789. $instance->addDeferredServices($services);
  790. }
  791. /**
  792. * Determine if the given service is a deferred service.
  793. *
  794. * @param string $service
  795. * @return bool
  796. * @static
  797. */
  798. public static function isDeferredService($service)
  799. {
  800. /** @var \Illuminate\Foundation\Application $instance */
  801. return $instance->isDeferredService($service);
  802. }
  803. /**
  804. * Configure the real-time facade namespace.
  805. *
  806. * @param string $namespace
  807. * @return void
  808. * @static
  809. */
  810. public static function provideFacades($namespace)
  811. {
  812. /** @var \Illuminate\Foundation\Application $instance */
  813. $instance->provideFacades($namespace);
  814. }
  815. /**
  816. * Get the current application locale.
  817. *
  818. * @return string
  819. * @static
  820. */
  821. public static function getLocale()
  822. {
  823. /** @var \Illuminate\Foundation\Application $instance */
  824. return $instance->getLocale();
  825. }
  826. /**
  827. * Get the current application locale.
  828. *
  829. * @return string
  830. * @static
  831. */
  832. public static function currentLocale()
  833. {
  834. /** @var \Illuminate\Foundation\Application $instance */
  835. return $instance->currentLocale();
  836. }
  837. /**
  838. * Get the current application fallback locale.
  839. *
  840. * @return string
  841. * @static
  842. */
  843. public static function getFallbackLocale()
  844. {
  845. /** @var \Illuminate\Foundation\Application $instance */
  846. return $instance->getFallbackLocale();
  847. }
  848. /**
  849. * Set the current application locale.
  850. *
  851. * @param string $locale
  852. * @return void
  853. * @static
  854. */
  855. public static function setLocale($locale)
  856. {
  857. /** @var \Illuminate\Foundation\Application $instance */
  858. $instance->setLocale($locale);
  859. }
  860. /**
  861. * Set the current application fallback locale.
  862. *
  863. * @param string $fallbackLocale
  864. * @return void
  865. * @static
  866. */
  867. public static function setFallbackLocale($fallbackLocale)
  868. {
  869. /** @var \Illuminate\Foundation\Application $instance */
  870. $instance->setFallbackLocale($fallbackLocale);
  871. }
  872. /**
  873. * Determine if the application locale is the given locale.
  874. *
  875. * @param string $locale
  876. * @return bool
  877. * @static
  878. */
  879. public static function isLocale($locale)
  880. {
  881. /** @var \Illuminate\Foundation\Application $instance */
  882. return $instance->isLocale($locale);
  883. }
  884. /**
  885. * Register the core class aliases in the container.
  886. *
  887. * @return void
  888. * @static
  889. */
  890. public static function registerCoreContainerAliases()
  891. {
  892. /** @var \Illuminate\Foundation\Application $instance */
  893. $instance->registerCoreContainerAliases();
  894. }
  895. /**
  896. * Flush the container of all bindings and resolved instances.
  897. *
  898. * @return void
  899. * @static
  900. */
  901. public static function flush()
  902. {
  903. /** @var \Illuminate\Foundation\Application $instance */
  904. $instance->flush();
  905. }
  906. /**
  907. * Get the application namespace.
  908. *
  909. * @return string
  910. * @throws \RuntimeException
  911. * @static
  912. */
  913. public static function getNamespace()
  914. {
  915. /** @var \Illuminate\Foundation\Application $instance */
  916. return $instance->getNamespace();
  917. }
  918. /**
  919. * Define a contextual binding.
  920. *
  921. * @param array|string $concrete
  922. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  923. * @static
  924. */
  925. public static function when($concrete)
  926. { //Method inherited from \Illuminate\Container\Container
  927. /** @var \Illuminate\Foundation\Application $instance */
  928. return $instance->when($concrete);
  929. }
  930. /**
  931. * Returns true if the container can return an entry for the given identifier.
  932. *
  933. * Returns false otherwise.
  934. *
  935. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  936. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  937. *
  938. * @param string $id Identifier of the entry to look for.
  939. * @return bool
  940. * @static
  941. */
  942. public static function has($id)
  943. { //Method inherited from \Illuminate\Container\Container
  944. /** @var \Illuminate\Foundation\Application $instance */
  945. return $instance->has($id);
  946. }
  947. /**
  948. * Determine if the given abstract type has been resolved.
  949. *
  950. * @param string $abstract
  951. * @return bool
  952. * @static
  953. */
  954. public static function resolved($abstract)
  955. { //Method inherited from \Illuminate\Container\Container
  956. /** @var \Illuminate\Foundation\Application $instance */
  957. return $instance->resolved($abstract);
  958. }
  959. /**
  960. * Determine if a given type is shared.
  961. *
  962. * @param string $abstract
  963. * @return bool
  964. * @static
  965. */
  966. public static function isShared($abstract)
  967. { //Method inherited from \Illuminate\Container\Container
  968. /** @var \Illuminate\Foundation\Application $instance */
  969. return $instance->isShared($abstract);
  970. }
  971. /**
  972. * Determine if a given string is an alias.
  973. *
  974. * @param string $name
  975. * @return bool
  976. * @static
  977. */
  978. public static function isAlias($name)
  979. { //Method inherited from \Illuminate\Container\Container
  980. /** @var \Illuminate\Foundation\Application $instance */
  981. return $instance->isAlias($name);
  982. }
  983. /**
  984. * Register a binding with the container.
  985. *
  986. * @param string $abstract
  987. * @param \Closure|string|null $concrete
  988. * @param bool $shared
  989. * @return void
  990. * @throws \TypeError
  991. * @static
  992. */
  993. public static function bind($abstract, $concrete = null, $shared = false)
  994. { //Method inherited from \Illuminate\Container\Container
  995. /** @var \Illuminate\Foundation\Application $instance */
  996. $instance->bind($abstract, $concrete, $shared);
  997. }
  998. /**
  999. * Determine if the container has a method binding.
  1000. *
  1001. * @param string $method
  1002. * @return bool
  1003. * @static
  1004. */
  1005. public static function hasMethodBinding($method)
  1006. { //Method inherited from \Illuminate\Container\Container
  1007. /** @var \Illuminate\Foundation\Application $instance */
  1008. return $instance->hasMethodBinding($method);
  1009. }
  1010. /**
  1011. * Bind a callback to resolve with Container::call.
  1012. *
  1013. * @param array|string $method
  1014. * @param \Closure $callback
  1015. * @return void
  1016. * @static
  1017. */
  1018. public static function bindMethod($method, $callback)
  1019. { //Method inherited from \Illuminate\Container\Container
  1020. /** @var \Illuminate\Foundation\Application $instance */
  1021. $instance->bindMethod($method, $callback);
  1022. }
  1023. /**
  1024. * Get the method binding for the given method.
  1025. *
  1026. * @param string $method
  1027. * @param mixed $instance
  1028. * @return mixed
  1029. * @static
  1030. */
  1031. public static function callMethodBinding($method, $instance)
  1032. { //Method inherited from \Illuminate\Container\Container
  1033. /** @var \Illuminate\Foundation\Application $instance */
  1034. return $instance->callMethodBinding($method, $instance);
  1035. }
  1036. /**
  1037. * Add a contextual binding to the container.
  1038. *
  1039. * @param string $concrete
  1040. * @param string $abstract
  1041. * @param \Closure|string $implementation
  1042. * @return void
  1043. * @static
  1044. */
  1045. public static function addContextualBinding($concrete, $abstract, $implementation)
  1046. { //Method inherited from \Illuminate\Container\Container
  1047. /** @var \Illuminate\Foundation\Application $instance */
  1048. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1049. }
  1050. /**
  1051. * Register a binding if it hasn't already been registered.
  1052. *
  1053. * @param string $abstract
  1054. * @param \Closure|string|null $concrete
  1055. * @param bool $shared
  1056. * @return void
  1057. * @static
  1058. */
  1059. public static function bindIf($abstract, $concrete = null, $shared = false)
  1060. { //Method inherited from \Illuminate\Container\Container
  1061. /** @var \Illuminate\Foundation\Application $instance */
  1062. $instance->bindIf($abstract, $concrete, $shared);
  1063. }
  1064. /**
  1065. * Register a shared binding in the container.
  1066. *
  1067. * @param string $abstract
  1068. * @param \Closure|string|null $concrete
  1069. * @return void
  1070. * @static
  1071. */
  1072. public static function singleton($abstract, $concrete = null)
  1073. { //Method inherited from \Illuminate\Container\Container
  1074. /** @var \Illuminate\Foundation\Application $instance */
  1075. $instance->singleton($abstract, $concrete);
  1076. }
  1077. /**
  1078. * Register a shared binding if it hasn't already been registered.
  1079. *
  1080. * @param string $abstract
  1081. * @param \Closure|string|null $concrete
  1082. * @return void
  1083. * @static
  1084. */
  1085. public static function singletonIf($abstract, $concrete = null)
  1086. { //Method inherited from \Illuminate\Container\Container
  1087. /** @var \Illuminate\Foundation\Application $instance */
  1088. $instance->singletonIf($abstract, $concrete);
  1089. }
  1090. /**
  1091. * Register a scoped binding in the container.
  1092. *
  1093. * @param string $abstract
  1094. * @param \Closure|string|null $concrete
  1095. * @return void
  1096. * @static
  1097. */
  1098. public static function scoped($abstract, $concrete = null)
  1099. { //Method inherited from \Illuminate\Container\Container
  1100. /** @var \Illuminate\Foundation\Application $instance */
  1101. $instance->scoped($abstract, $concrete);
  1102. }
  1103. /**
  1104. * Register a scoped binding if it hasn't already been registered.
  1105. *
  1106. * @param string $abstract
  1107. * @param \Closure|string|null $concrete
  1108. * @return void
  1109. * @static
  1110. */
  1111. public static function scopedIf($abstract, $concrete = null)
  1112. { //Method inherited from \Illuminate\Container\Container
  1113. /** @var \Illuminate\Foundation\Application $instance */
  1114. $instance->scopedIf($abstract, $concrete);
  1115. }
  1116. /**
  1117. * "Extend" an abstract type in the container.
  1118. *
  1119. * @param string $abstract
  1120. * @param \Closure $closure
  1121. * @return void
  1122. * @throws \InvalidArgumentException
  1123. * @static
  1124. */
  1125. public static function extend($abstract, $closure)
  1126. { //Method inherited from \Illuminate\Container\Container
  1127. /** @var \Illuminate\Foundation\Application $instance */
  1128. $instance->extend($abstract, $closure);
  1129. }
  1130. /**
  1131. * Register an existing instance as shared in the container.
  1132. *
  1133. * @param string $abstract
  1134. * @param mixed $instance
  1135. * @return mixed
  1136. * @static
  1137. */
  1138. public static function instance($abstract, $instance)
  1139. { //Method inherited from \Illuminate\Container\Container
  1140. /** @var \Illuminate\Foundation\Application $instance */
  1141. return $instance->instance($abstract, $instance);
  1142. }
  1143. /**
  1144. * Assign a set of tags to a given binding.
  1145. *
  1146. * @param array|string $abstracts
  1147. * @param array|mixed $tags
  1148. * @return void
  1149. * @static
  1150. */
  1151. public static function tag($abstracts, $tags)
  1152. { //Method inherited from \Illuminate\Container\Container
  1153. /** @var \Illuminate\Foundation\Application $instance */
  1154. $instance->tag($abstracts, $tags);
  1155. }
  1156. /**
  1157. * Resolve all of the bindings for a given tag.
  1158. *
  1159. * @param string $tag
  1160. * @return \Illuminate\Container\iterable
  1161. * @static
  1162. */
  1163. public static function tagged($tag)
  1164. { //Method inherited from \Illuminate\Container\Container
  1165. /** @var \Illuminate\Foundation\Application $instance */
  1166. return $instance->tagged($tag);
  1167. }
  1168. /**
  1169. * Alias a type to a different name.
  1170. *
  1171. * @param string $abstract
  1172. * @param string $alias
  1173. * @return void
  1174. * @throws \LogicException
  1175. * @static
  1176. */
  1177. public static function alias($abstract, $alias)
  1178. { //Method inherited from \Illuminate\Container\Container
  1179. /** @var \Illuminate\Foundation\Application $instance */
  1180. $instance->alias($abstract, $alias);
  1181. }
  1182. /**
  1183. * Bind a new callback to an abstract's rebind event.
  1184. *
  1185. * @param string $abstract
  1186. * @param \Closure $callback
  1187. * @return mixed
  1188. * @static
  1189. */
  1190. public static function rebinding($abstract, $callback)
  1191. { //Method inherited from \Illuminate\Container\Container
  1192. /** @var \Illuminate\Foundation\Application $instance */
  1193. return $instance->rebinding($abstract, $callback);
  1194. }
  1195. /**
  1196. * Refresh an instance on the given target and method.
  1197. *
  1198. * @param string $abstract
  1199. * @param mixed $target
  1200. * @param string $method
  1201. * @return mixed
  1202. * @static
  1203. */
  1204. public static function refresh($abstract, $target, $method)
  1205. { //Method inherited from \Illuminate\Container\Container
  1206. /** @var \Illuminate\Foundation\Application $instance */
  1207. return $instance->refresh($abstract, $target, $method);
  1208. }
  1209. /**
  1210. * Wrap the given closure such that its dependencies will be injected when executed.
  1211. *
  1212. * @param \Closure $callback
  1213. * @param array $parameters
  1214. * @return \Closure
  1215. * @static
  1216. */
  1217. public static function wrap($callback, $parameters = [])
  1218. { //Method inherited from \Illuminate\Container\Container
  1219. /** @var \Illuminate\Foundation\Application $instance */
  1220. return $instance->wrap($callback, $parameters);
  1221. }
  1222. /**
  1223. * Call the given Closure / class@method and inject its dependencies.
  1224. *
  1225. * @param callable|string $callback
  1226. * @param \Illuminate\Container\array<string, mixed> $parameters
  1227. * @param string|null $defaultMethod
  1228. * @return mixed
  1229. * @throws \InvalidArgumentException
  1230. * @static
  1231. */
  1232. public static function call($callback, $parameters = [], $defaultMethod = null)
  1233. { //Method inherited from \Illuminate\Container\Container
  1234. /** @var \Illuminate\Foundation\Application $instance */
  1235. return $instance->call($callback, $parameters, $defaultMethod);
  1236. }
  1237. /**
  1238. * Get a closure to resolve the given type from the container.
  1239. *
  1240. * @param string $abstract
  1241. * @return \Closure
  1242. * @static
  1243. */
  1244. public static function factory($abstract)
  1245. { //Method inherited from \Illuminate\Container\Container
  1246. /** @var \Illuminate\Foundation\Application $instance */
  1247. return $instance->factory($abstract);
  1248. }
  1249. /**
  1250. * An alias function name for make().
  1251. *
  1252. * @param string|callable $abstract
  1253. * @param array $parameters
  1254. * @return mixed
  1255. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1256. * @static
  1257. */
  1258. public static function makeWith($abstract, $parameters = [])
  1259. { //Method inherited from \Illuminate\Container\Container
  1260. /** @var \Illuminate\Foundation\Application $instance */
  1261. return $instance->makeWith($abstract, $parameters);
  1262. }
  1263. /**
  1264. * Finds an entry of the container by its identifier and returns it.
  1265. *
  1266. * @param string $id Identifier of the entry to look for.
  1267. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1268. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1269. * @return mixed Entry.
  1270. * @static
  1271. */
  1272. public static function get($id)
  1273. { //Method inherited from \Illuminate\Container\Container
  1274. /** @var \Illuminate\Foundation\Application $instance */
  1275. return $instance->get($id);
  1276. }
  1277. /**
  1278. * Instantiate a concrete instance of the given type.
  1279. *
  1280. * @param \Closure|string $concrete
  1281. * @return mixed
  1282. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1283. * @throws \Illuminate\Contracts\Container\CircularDependencyException
  1284. * @static
  1285. */
  1286. public static function build($concrete)
  1287. { //Method inherited from \Illuminate\Container\Container
  1288. /** @var \Illuminate\Foundation\Application $instance */
  1289. return $instance->build($concrete);
  1290. }
  1291. /**
  1292. * Register a new before resolving callback for all types.
  1293. *
  1294. * @param \Closure|string $abstract
  1295. * @param \Closure|null $callback
  1296. * @return void
  1297. * @static
  1298. */
  1299. public static function beforeResolving($abstract, $callback = null)
  1300. { //Method inherited from \Illuminate\Container\Container
  1301. /** @var \Illuminate\Foundation\Application $instance */
  1302. $instance->beforeResolving($abstract, $callback);
  1303. }
  1304. /**
  1305. * Register a new resolving callback.
  1306. *
  1307. * @param \Closure|string $abstract
  1308. * @param \Closure|null $callback
  1309. * @return void
  1310. * @static
  1311. */
  1312. public static function resolving($abstract, $callback = null)
  1313. { //Method inherited from \Illuminate\Container\Container
  1314. /** @var \Illuminate\Foundation\Application $instance */
  1315. $instance->resolving($abstract, $callback);
  1316. }
  1317. /**
  1318. * Register a new after resolving callback for all types.
  1319. *
  1320. * @param \Closure|string $abstract
  1321. * @param \Closure|null $callback
  1322. * @return void
  1323. * @static
  1324. */
  1325. public static function afterResolving($abstract, $callback = null)
  1326. { //Method inherited from \Illuminate\Container\Container
  1327. /** @var \Illuminate\Foundation\Application $instance */
  1328. $instance->afterResolving($abstract, $callback);
  1329. }
  1330. /**
  1331. * Get the container's bindings.
  1332. *
  1333. * @return array
  1334. * @static
  1335. */
  1336. public static function getBindings()
  1337. { //Method inherited from \Illuminate\Container\Container
  1338. /** @var \Illuminate\Foundation\Application $instance */
  1339. return $instance->getBindings();
  1340. }
  1341. /**
  1342. * Get the alias for an abstract if available.
  1343. *
  1344. * @param string $abstract
  1345. * @return string
  1346. * @static
  1347. */
  1348. public static function getAlias($abstract)
  1349. { //Method inherited from \Illuminate\Container\Container
  1350. /** @var \Illuminate\Foundation\Application $instance */
  1351. return $instance->getAlias($abstract);
  1352. }
  1353. /**
  1354. * Remove all of the extender callbacks for a given type.
  1355. *
  1356. * @param string $abstract
  1357. * @return void
  1358. * @static
  1359. */
  1360. public static function forgetExtenders($abstract)
  1361. { //Method inherited from \Illuminate\Container\Container
  1362. /** @var \Illuminate\Foundation\Application $instance */
  1363. $instance->forgetExtenders($abstract);
  1364. }
  1365. /**
  1366. * Remove a resolved instance from the instance cache.
  1367. *
  1368. * @param string $abstract
  1369. * @return void
  1370. * @static
  1371. */
  1372. public static function forgetInstance($abstract)
  1373. { //Method inherited from \Illuminate\Container\Container
  1374. /** @var \Illuminate\Foundation\Application $instance */
  1375. $instance->forgetInstance($abstract);
  1376. }
  1377. /**
  1378. * Clear all of the instances from the container.
  1379. *
  1380. * @return void
  1381. * @static
  1382. */
  1383. public static function forgetInstances()
  1384. { //Method inherited from \Illuminate\Container\Container
  1385. /** @var \Illuminate\Foundation\Application $instance */
  1386. $instance->forgetInstances();
  1387. }
  1388. /**
  1389. * Clear all of the scoped instances from the container.
  1390. *
  1391. * @return void
  1392. * @static
  1393. */
  1394. public static function forgetScopedInstances()
  1395. { //Method inherited from \Illuminate\Container\Container
  1396. /** @var \Illuminate\Foundation\Application $instance */
  1397. $instance->forgetScopedInstances();
  1398. }
  1399. /**
  1400. * Get the globally available instance of the container.
  1401. *
  1402. * @return static
  1403. * @static
  1404. */
  1405. public static function getInstance()
  1406. { //Method inherited from \Illuminate\Container\Container
  1407. return \Illuminate\Foundation\Application::getInstance();
  1408. }
  1409. /**
  1410. * Set the shared instance of the container.
  1411. *
  1412. * @param \Illuminate\Contracts\Container\Container|null $container
  1413. * @return \Illuminate\Contracts\Container\Container|static
  1414. * @static
  1415. */
  1416. public static function setInstance($container = null)
  1417. { //Method inherited from \Illuminate\Container\Container
  1418. return \Illuminate\Foundation\Application::setInstance($container);
  1419. }
  1420. /**
  1421. * Determine if a given offset exists.
  1422. *
  1423. * @param string $key
  1424. * @return bool
  1425. * @static
  1426. */
  1427. public static function offsetExists($key)
  1428. { //Method inherited from \Illuminate\Container\Container
  1429. /** @var \Illuminate\Foundation\Application $instance */
  1430. return $instance->offsetExists($key);
  1431. }
  1432. /**
  1433. * Get the value at a given offset.
  1434. *
  1435. * @param string $key
  1436. * @return mixed
  1437. * @static
  1438. */
  1439. public static function offsetGet($key)
  1440. { //Method inherited from \Illuminate\Container\Container
  1441. /** @var \Illuminate\Foundation\Application $instance */
  1442. return $instance->offsetGet($key);
  1443. }
  1444. /**
  1445. * Set the value at a given offset.
  1446. *
  1447. * @param string $key
  1448. * @param mixed $value
  1449. * @return void
  1450. * @static
  1451. */
  1452. public static function offsetSet($key, $value)
  1453. { //Method inherited from \Illuminate\Container\Container
  1454. /** @var \Illuminate\Foundation\Application $instance */
  1455. $instance->offsetSet($key, $value);
  1456. }
  1457. /**
  1458. * Unset the value at a given offset.
  1459. *
  1460. * @param string $key
  1461. * @return void
  1462. * @static
  1463. */
  1464. public static function offsetUnset($key)
  1465. { //Method inherited from \Illuminate\Container\Container
  1466. /** @var \Illuminate\Foundation\Application $instance */
  1467. $instance->offsetUnset($key);
  1468. }
  1469. }
  1470. /**
  1471. *
  1472. *
  1473. * @see \Illuminate\Contracts\Console\Kernel
  1474. */
  1475. class Artisan {
  1476. /**
  1477. * Run the console application.
  1478. *
  1479. * @param \Symfony\Component\Console\Input\InputInterface $input
  1480. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1481. * @return int
  1482. * @static
  1483. */
  1484. public static function handle($input, $output = null)
  1485. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1486. /** @var \App\Console\Kernel $instance */
  1487. return $instance->handle($input, $output);
  1488. }
  1489. /**
  1490. * Terminate the application.
  1491. *
  1492. * @param \Symfony\Component\Console\Input\InputInterface $input
  1493. * @param int $status
  1494. * @return void
  1495. * @static
  1496. */
  1497. public static function terminate($input, $status)
  1498. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1499. /** @var \App\Console\Kernel $instance */
  1500. $instance->terminate($input, $status);
  1501. }
  1502. /**
  1503. * Register a Closure based command with the application.
  1504. *
  1505. * @param string $signature
  1506. * @param \Closure $callback
  1507. * @return \Illuminate\Foundation\Console\ClosureCommand
  1508. * @static
  1509. */
  1510. public static function command($signature, $callback)
  1511. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1512. /** @var \App\Console\Kernel $instance */
  1513. return $instance->command($signature, $callback);
  1514. }
  1515. /**
  1516. * Register the given command with the console application.
  1517. *
  1518. * @param \Symfony\Component\Console\Command\Command $command
  1519. * @return void
  1520. * @static
  1521. */
  1522. public static function registerCommand($command)
  1523. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1524. /** @var \App\Console\Kernel $instance */
  1525. $instance->registerCommand($command);
  1526. }
  1527. /**
  1528. * Run an Artisan console command by name.
  1529. *
  1530. * @param string $command
  1531. * @param array $parameters
  1532. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1533. * @return int
  1534. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1535. * @static
  1536. */
  1537. public static function call($command, $parameters = [], $outputBuffer = null)
  1538. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1539. /** @var \App\Console\Kernel $instance */
  1540. return $instance->call($command, $parameters, $outputBuffer);
  1541. }
  1542. /**
  1543. * Queue the given console command.
  1544. *
  1545. * @param string $command
  1546. * @param array $parameters
  1547. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1548. * @static
  1549. */
  1550. public static function queue($command, $parameters = [])
  1551. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1552. /** @var \App\Console\Kernel $instance */
  1553. return $instance->queue($command, $parameters);
  1554. }
  1555. /**
  1556. * Get all of the commands registered with the console.
  1557. *
  1558. * @return array
  1559. * @static
  1560. */
  1561. public static function all()
  1562. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1563. /** @var \App\Console\Kernel $instance */
  1564. return $instance->all();
  1565. }
  1566. /**
  1567. * Get the output for the last run command.
  1568. *
  1569. * @return string
  1570. * @static
  1571. */
  1572. public static function output()
  1573. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1574. /** @var \App\Console\Kernel $instance */
  1575. return $instance->output();
  1576. }
  1577. /**
  1578. * Bootstrap the application for artisan commands.
  1579. *
  1580. * @return void
  1581. * @static
  1582. */
  1583. public static function bootstrap()
  1584. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1585. /** @var \App\Console\Kernel $instance */
  1586. $instance->bootstrap();
  1587. }
  1588. /**
  1589. * Set the Artisan application instance.
  1590. *
  1591. * @param \Illuminate\Console\Application $artisan
  1592. * @return void
  1593. * @static
  1594. */
  1595. public static function setArtisan($artisan)
  1596. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1597. /** @var \App\Console\Kernel $instance */
  1598. $instance->setArtisan($artisan);
  1599. }
  1600. }
  1601. /**
  1602. *
  1603. *
  1604. * @see \Illuminate\Auth\AuthManager
  1605. * @see \Illuminate\Contracts\Auth\Factory
  1606. * @see \Illuminate\Contracts\Auth\Guard
  1607. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1608. */
  1609. class Auth {
  1610. /**
  1611. * Attempt to get the guard from the local cache.
  1612. *
  1613. * @param string|null $name
  1614. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1615. * @static
  1616. */
  1617. public static function guard($name = null)
  1618. {
  1619. /** @var \Illuminate\Auth\AuthManager $instance */
  1620. return $instance->guard($name);
  1621. }
  1622. /**
  1623. * Create a session based authentication guard.
  1624. *
  1625. * @param string $name
  1626. * @param array $config
  1627. * @return \Illuminate\Auth\SessionGuard
  1628. * @static
  1629. */
  1630. public static function createSessionDriver($name, $config)
  1631. {
  1632. /** @var \Illuminate\Auth\AuthManager $instance */
  1633. return $instance->createSessionDriver($name, $config);
  1634. }
  1635. /**
  1636. * Create a token based authentication guard.
  1637. *
  1638. * @param string $name
  1639. * @param array $config
  1640. * @return \Illuminate\Auth\TokenGuard
  1641. * @static
  1642. */
  1643. public static function createTokenDriver($name, $config)
  1644. {
  1645. /** @var \Illuminate\Auth\AuthManager $instance */
  1646. return $instance->createTokenDriver($name, $config);
  1647. }
  1648. /**
  1649. * Get the default authentication driver name.
  1650. *
  1651. * @return string
  1652. * @static
  1653. */
  1654. public static function getDefaultDriver()
  1655. {
  1656. /** @var \Illuminate\Auth\AuthManager $instance */
  1657. return $instance->getDefaultDriver();
  1658. }
  1659. /**
  1660. * Set the default guard driver the factory should serve.
  1661. *
  1662. * @param string $name
  1663. * @return void
  1664. * @static
  1665. */
  1666. public static function shouldUse($name)
  1667. {
  1668. /** @var \Illuminate\Auth\AuthManager $instance */
  1669. $instance->shouldUse($name);
  1670. }
  1671. /**
  1672. * Set the default authentication driver name.
  1673. *
  1674. * @param string $name
  1675. * @return void
  1676. * @static
  1677. */
  1678. public static function setDefaultDriver($name)
  1679. {
  1680. /** @var \Illuminate\Auth\AuthManager $instance */
  1681. $instance->setDefaultDriver($name);
  1682. }
  1683. /**
  1684. * Register a new callback based request guard.
  1685. *
  1686. * @param string $driver
  1687. * @param callable $callback
  1688. * @return \Illuminate\Auth\AuthManager
  1689. * @static
  1690. */
  1691. public static function viaRequest($driver, $callback)
  1692. {
  1693. /** @var \Illuminate\Auth\AuthManager $instance */
  1694. return $instance->viaRequest($driver, $callback);
  1695. }
  1696. /**
  1697. * Get the user resolver callback.
  1698. *
  1699. * @return \Closure
  1700. * @static
  1701. */
  1702. public static function userResolver()
  1703. {
  1704. /** @var \Illuminate\Auth\AuthManager $instance */
  1705. return $instance->userResolver();
  1706. }
  1707. /**
  1708. * Set the callback to be used to resolve users.
  1709. *
  1710. * @param \Closure $userResolver
  1711. * @return \Illuminate\Auth\AuthManager
  1712. * @static
  1713. */
  1714. public static function resolveUsersUsing($userResolver)
  1715. {
  1716. /** @var \Illuminate\Auth\AuthManager $instance */
  1717. return $instance->resolveUsersUsing($userResolver);
  1718. }
  1719. /**
  1720. * Register a custom driver creator Closure.
  1721. *
  1722. * @param string $driver
  1723. * @param \Closure $callback
  1724. * @return \Illuminate\Auth\AuthManager
  1725. * @static
  1726. */
  1727. public static function extend($driver, $callback)
  1728. {
  1729. /** @var \Illuminate\Auth\AuthManager $instance */
  1730. return $instance->extend($driver, $callback);
  1731. }
  1732. /**
  1733. * Register a custom provider creator Closure.
  1734. *
  1735. * @param string $name
  1736. * @param \Closure $callback
  1737. * @return \Illuminate\Auth\AuthManager
  1738. * @static
  1739. */
  1740. public static function provider($name, $callback)
  1741. {
  1742. /** @var \Illuminate\Auth\AuthManager $instance */
  1743. return $instance->provider($name, $callback);
  1744. }
  1745. /**
  1746. * Determines if any guards have already been resolved.
  1747. *
  1748. * @return bool
  1749. * @static
  1750. */
  1751. public static function hasResolvedGuards()
  1752. {
  1753. /** @var \Illuminate\Auth\AuthManager $instance */
  1754. return $instance->hasResolvedGuards();
  1755. }
  1756. /**
  1757. * Forget all of the resolved guard instances.
  1758. *
  1759. * @return \Illuminate\Auth\AuthManager
  1760. * @static
  1761. */
  1762. public static function forgetGuards()
  1763. {
  1764. /** @var \Illuminate\Auth\AuthManager $instance */
  1765. return $instance->forgetGuards();
  1766. }
  1767. /**
  1768. * Set the application instance used by the manager.
  1769. *
  1770. * @param \Illuminate\Contracts\Foundation\Application $app
  1771. * @return \Illuminate\Auth\AuthManager
  1772. * @static
  1773. */
  1774. public static function setApplication($app)
  1775. {
  1776. /** @var \Illuminate\Auth\AuthManager $instance */
  1777. return $instance->setApplication($app);
  1778. }
  1779. /**
  1780. * Create the user provider implementation for the driver.
  1781. *
  1782. * @param string|null $provider
  1783. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1784. * @throws \InvalidArgumentException
  1785. * @static
  1786. */
  1787. public static function createUserProvider($provider = null)
  1788. {
  1789. /** @var \Illuminate\Auth\AuthManager $instance */
  1790. return $instance->createUserProvider($provider);
  1791. }
  1792. /**
  1793. * Get the default user provider name.
  1794. *
  1795. * @return string
  1796. * @static
  1797. */
  1798. public static function getDefaultUserProvider()
  1799. {
  1800. /** @var \Illuminate\Auth\AuthManager $instance */
  1801. return $instance->getDefaultUserProvider();
  1802. }
  1803. /**
  1804. * Get the currently authenticated user.
  1805. *
  1806. * @return \App\Models\User|null
  1807. * @static
  1808. */
  1809. public static function user()
  1810. {
  1811. /** @var \Illuminate\Auth\SessionGuard $instance */
  1812. return $instance->user();
  1813. }
  1814. /**
  1815. * Get the ID for the currently authenticated user.
  1816. *
  1817. * @return int|string|null
  1818. * @static
  1819. */
  1820. public static function id()
  1821. {
  1822. /** @var \Illuminate\Auth\SessionGuard $instance */
  1823. return $instance->id();
  1824. }
  1825. /**
  1826. * Log a user into the application without sessions or cookies.
  1827. *
  1828. * @param array $credentials
  1829. * @return bool
  1830. * @static
  1831. */
  1832. public static function once($credentials = [])
  1833. {
  1834. /** @var \Illuminate\Auth\SessionGuard $instance */
  1835. return $instance->once($credentials);
  1836. }
  1837. /**
  1838. * Log the given user ID into the application without sessions or cookies.
  1839. *
  1840. * @param mixed $id
  1841. * @return \App\Models\User|false
  1842. * @static
  1843. */
  1844. public static function onceUsingId($id)
  1845. {
  1846. /** @var \Illuminate\Auth\SessionGuard $instance */
  1847. return $instance->onceUsingId($id);
  1848. }
  1849. /**
  1850. * Validate a user's credentials.
  1851. *
  1852. * @param array $credentials
  1853. * @return bool
  1854. * @static
  1855. */
  1856. public static function validate($credentials = [])
  1857. {
  1858. /** @var \Illuminate\Auth\SessionGuard $instance */
  1859. return $instance->validate($credentials);
  1860. }
  1861. /**
  1862. * Attempt to authenticate using HTTP Basic Auth.
  1863. *
  1864. * @param string $field
  1865. * @param array $extraConditions
  1866. * @return \Symfony\Component\HttpFoundation\Response|null
  1867. * @static
  1868. */
  1869. public static function basic($field = 'email', $extraConditions = [])
  1870. {
  1871. /** @var \Illuminate\Auth\SessionGuard $instance */
  1872. return $instance->basic($field, $extraConditions);
  1873. }
  1874. /**
  1875. * Perform a stateless HTTP Basic login attempt.
  1876. *
  1877. * @param string $field
  1878. * @param array $extraConditions
  1879. * @return \Symfony\Component\HttpFoundation\Response|null
  1880. * @static
  1881. */
  1882. public static function onceBasic($field = 'email', $extraConditions = [])
  1883. {
  1884. /** @var \Illuminate\Auth\SessionGuard $instance */
  1885. return $instance->onceBasic($field, $extraConditions);
  1886. }
  1887. /**
  1888. * Attempt to authenticate a user using the given credentials.
  1889. *
  1890. * @param array $credentials
  1891. * @param bool $remember
  1892. * @return bool
  1893. * @static
  1894. */
  1895. public static function attempt($credentials = [], $remember = false)
  1896. {
  1897. /** @var \Illuminate\Auth\SessionGuard $instance */
  1898. return $instance->attempt($credentials, $remember);
  1899. }
  1900. /**
  1901. * Attempt to authenticate a user with credentials and additional callbacks.
  1902. *
  1903. * @param array $credentials
  1904. * @param array|callable $callbacks
  1905. * @param false $remember
  1906. * @return bool
  1907. * @static
  1908. */
  1909. public static function attemptWhen($credentials = [], $callbacks = null, $remember = false)
  1910. {
  1911. /** @var \Illuminate\Auth\SessionGuard $instance */
  1912. return $instance->attemptWhen($credentials, $callbacks, $remember);
  1913. }
  1914. /**
  1915. * Log the given user ID into the application.
  1916. *
  1917. * @param mixed $id
  1918. * @param bool $remember
  1919. * @return \App\Models\User|false
  1920. * @static
  1921. */
  1922. public static function loginUsingId($id, $remember = false)
  1923. {
  1924. /** @var \Illuminate\Auth\SessionGuard $instance */
  1925. return $instance->loginUsingId($id, $remember);
  1926. }
  1927. /**
  1928. * Log a user into the application.
  1929. *
  1930. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1931. * @param bool $remember
  1932. * @return void
  1933. * @static
  1934. */
  1935. public static function login($user, $remember = false)
  1936. {
  1937. /** @var \Illuminate\Auth\SessionGuard $instance */
  1938. $instance->login($user, $remember);
  1939. }
  1940. /**
  1941. * Log the user out of the application.
  1942. *
  1943. * @return void
  1944. * @static
  1945. */
  1946. public static function logout()
  1947. {
  1948. /** @var \Illuminate\Auth\SessionGuard $instance */
  1949. $instance->logout();
  1950. }
  1951. /**
  1952. * Log the user out of the application on their current device only.
  1953. *
  1954. * This method does not cycle the "remember" token.
  1955. *
  1956. * @return void
  1957. * @static
  1958. */
  1959. public static function logoutCurrentDevice()
  1960. {
  1961. /** @var \Illuminate\Auth\SessionGuard $instance */
  1962. $instance->logoutCurrentDevice();
  1963. }
  1964. /**
  1965. * Invalidate other sessions for the current user.
  1966. *
  1967. * The application must be using the AuthenticateSession middleware.
  1968. *
  1969. * @param string $password
  1970. * @param string $attribute
  1971. * @return \App\Models\User|null
  1972. * @throws \Illuminate\Auth\AuthenticationException
  1973. * @static
  1974. */
  1975. public static function logoutOtherDevices($password, $attribute = 'password')
  1976. {
  1977. /** @var \Illuminate\Auth\SessionGuard $instance */
  1978. return $instance->logoutOtherDevices($password, $attribute);
  1979. }
  1980. /**
  1981. * Register an authentication attempt event listener.
  1982. *
  1983. * @param mixed $callback
  1984. * @return void
  1985. * @static
  1986. */
  1987. public static function attempting($callback)
  1988. {
  1989. /** @var \Illuminate\Auth\SessionGuard $instance */
  1990. $instance->attempting($callback);
  1991. }
  1992. /**
  1993. * Get the last user we attempted to authenticate.
  1994. *
  1995. * @return \App\Models\User
  1996. * @static
  1997. */
  1998. public static function getLastAttempted()
  1999. {
  2000. /** @var \Illuminate\Auth\SessionGuard $instance */
  2001. return $instance->getLastAttempted();
  2002. }
  2003. /**
  2004. * Get a unique identifier for the auth session value.
  2005. *
  2006. * @return string
  2007. * @static
  2008. */
  2009. public static function getName()
  2010. {
  2011. /** @var \Illuminate\Auth\SessionGuard $instance */
  2012. return $instance->getName();
  2013. }
  2014. /**
  2015. * Get the name of the cookie used to store the "recaller".
  2016. *
  2017. * @return string
  2018. * @static
  2019. */
  2020. public static function getRecallerName()
  2021. {
  2022. /** @var \Illuminate\Auth\SessionGuard $instance */
  2023. return $instance->getRecallerName();
  2024. }
  2025. /**
  2026. * Determine if the user was authenticated via "remember me" cookie.
  2027. *
  2028. * @return bool
  2029. * @static
  2030. */
  2031. public static function viaRemember()
  2032. {
  2033. /** @var \Illuminate\Auth\SessionGuard $instance */
  2034. return $instance->viaRemember();
  2035. }
  2036. /**
  2037. * Get the cookie creator instance used by the guard.
  2038. *
  2039. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  2040. * @throws \RuntimeException
  2041. * @static
  2042. */
  2043. public static function getCookieJar()
  2044. {
  2045. /** @var \Illuminate\Auth\SessionGuard $instance */
  2046. return $instance->getCookieJar();
  2047. }
  2048. /**
  2049. * Set the cookie creator instance used by the guard.
  2050. *
  2051. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  2052. * @return void
  2053. * @static
  2054. */
  2055. public static function setCookieJar($cookie)
  2056. {
  2057. /** @var \Illuminate\Auth\SessionGuard $instance */
  2058. $instance->setCookieJar($cookie);
  2059. }
  2060. /**
  2061. * Get the event dispatcher instance.
  2062. *
  2063. * @return \Illuminate\Contracts\Events\Dispatcher
  2064. * @static
  2065. */
  2066. public static function getDispatcher()
  2067. {
  2068. /** @var \Illuminate\Auth\SessionGuard $instance */
  2069. return $instance->getDispatcher();
  2070. }
  2071. /**
  2072. * Set the event dispatcher instance.
  2073. *
  2074. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2075. * @return void
  2076. * @static
  2077. */
  2078. public static function setDispatcher($events)
  2079. {
  2080. /** @var \Illuminate\Auth\SessionGuard $instance */
  2081. $instance->setDispatcher($events);
  2082. }
  2083. /**
  2084. * Get the session store used by the guard.
  2085. *
  2086. * @return \Illuminate\Contracts\Session\Session
  2087. * @static
  2088. */
  2089. public static function getSession()
  2090. {
  2091. /** @var \Illuminate\Auth\SessionGuard $instance */
  2092. return $instance->getSession();
  2093. }
  2094. /**
  2095. * Return the currently cached user.
  2096. *
  2097. * @return \App\Models\User|null
  2098. * @static
  2099. */
  2100. public static function getUser()
  2101. {
  2102. /** @var \Illuminate\Auth\SessionGuard $instance */
  2103. return $instance->getUser();
  2104. }
  2105. /**
  2106. * Set the current user.
  2107. *
  2108. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  2109. * @return \Illuminate\Auth\SessionGuard
  2110. * @static
  2111. */
  2112. public static function setUser($user)
  2113. {
  2114. /** @var \Illuminate\Auth\SessionGuard $instance */
  2115. return $instance->setUser($user);
  2116. }
  2117. /**
  2118. * Get the current request instance.
  2119. *
  2120. * @return \Symfony\Component\HttpFoundation\Request
  2121. * @static
  2122. */
  2123. public static function getRequest()
  2124. {
  2125. /** @var \Illuminate\Auth\SessionGuard $instance */
  2126. return $instance->getRequest();
  2127. }
  2128. /**
  2129. * Set the current request instance.
  2130. *
  2131. * @param \Symfony\Component\HttpFoundation\Request $request
  2132. * @return \Illuminate\Auth\SessionGuard
  2133. * @static
  2134. */
  2135. public static function setRequest($request)
  2136. {
  2137. /** @var \Illuminate\Auth\SessionGuard $instance */
  2138. return $instance->setRequest($request);
  2139. }
  2140. /**
  2141. * Determine if the current user is authenticated. If not, throw an exception.
  2142. *
  2143. * @return \App\Models\User
  2144. * @throws \Illuminate\Auth\AuthenticationException
  2145. * @static
  2146. */
  2147. public static function authenticate()
  2148. {
  2149. /** @var \Illuminate\Auth\SessionGuard $instance */
  2150. return $instance->authenticate();
  2151. }
  2152. /**
  2153. * Determine if the guard has a user instance.
  2154. *
  2155. * @return bool
  2156. * @static
  2157. */
  2158. public static function hasUser()
  2159. {
  2160. /** @var \Illuminate\Auth\SessionGuard $instance */
  2161. return $instance->hasUser();
  2162. }
  2163. /**
  2164. * Determine if the current user is authenticated.
  2165. *
  2166. * @return bool
  2167. * @static
  2168. */
  2169. public static function check()
  2170. {
  2171. /** @var \Illuminate\Auth\SessionGuard $instance */
  2172. return $instance->check();
  2173. }
  2174. /**
  2175. * Determine if the current user is a guest.
  2176. *
  2177. * @return bool
  2178. * @static
  2179. */
  2180. public static function guest()
  2181. {
  2182. /** @var \Illuminate\Auth\SessionGuard $instance */
  2183. return $instance->guest();
  2184. }
  2185. /**
  2186. * Get the user provider used by the guard.
  2187. *
  2188. * @return \Illuminate\Contracts\Auth\UserProvider
  2189. * @static
  2190. */
  2191. public static function getProvider()
  2192. {
  2193. /** @var \Illuminate\Auth\SessionGuard $instance */
  2194. return $instance->getProvider();
  2195. }
  2196. /**
  2197. * Set the user provider used by the guard.
  2198. *
  2199. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2200. * @return void
  2201. * @static
  2202. */
  2203. public static function setProvider($provider)
  2204. {
  2205. /** @var \Illuminate\Auth\SessionGuard $instance */
  2206. $instance->setProvider($provider);
  2207. }
  2208. /**
  2209. * Register a custom macro.
  2210. *
  2211. * @param string $name
  2212. * @param object|callable $macro
  2213. * @return void
  2214. * @static
  2215. */
  2216. public static function macro($name, $macro)
  2217. {
  2218. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2219. }
  2220. /**
  2221. * Mix another object into the class.
  2222. *
  2223. * @param object $mixin
  2224. * @param bool $replace
  2225. * @return void
  2226. * @throws \ReflectionException
  2227. * @static
  2228. */
  2229. public static function mixin($mixin, $replace = true)
  2230. {
  2231. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2232. }
  2233. /**
  2234. * Checks if macro is registered.
  2235. *
  2236. * @param string $name
  2237. * @return bool
  2238. * @static
  2239. */
  2240. public static function hasMacro($name)
  2241. {
  2242. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2243. }
  2244. }
  2245. /**
  2246. *
  2247. *
  2248. * @see \Illuminate\View\Compilers\BladeCompiler
  2249. */
  2250. class Blade {
  2251. /**
  2252. * Compile the view at the given path.
  2253. *
  2254. * @param string|null $path
  2255. * @return void
  2256. * @static
  2257. */
  2258. public static function compile($path = null)
  2259. {
  2260. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2261. $instance->compile($path);
  2262. }
  2263. /**
  2264. * Get the path currently being compiled.
  2265. *
  2266. * @return string
  2267. * @static
  2268. */
  2269. public static function getPath()
  2270. {
  2271. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2272. return $instance->getPath();
  2273. }
  2274. /**
  2275. * Set the path currently being compiled.
  2276. *
  2277. * @param string $path
  2278. * @return void
  2279. * @static
  2280. */
  2281. public static function setPath($path)
  2282. {
  2283. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2284. $instance->setPath($path);
  2285. }
  2286. /**
  2287. * Compile the given Blade template contents.
  2288. *
  2289. * @param string $value
  2290. * @return string
  2291. * @static
  2292. */
  2293. public static function compileString($value)
  2294. {
  2295. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2296. return $instance->compileString($value);
  2297. }
  2298. /**
  2299. * Strip the parentheses from the given expression.
  2300. *
  2301. * @param string $expression
  2302. * @return string
  2303. * @static
  2304. */
  2305. public static function stripParentheses($expression)
  2306. {
  2307. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2308. return $instance->stripParentheses($expression);
  2309. }
  2310. /**
  2311. * Register a custom Blade compiler.
  2312. *
  2313. * @param callable $compiler
  2314. * @return void
  2315. * @static
  2316. */
  2317. public static function extend($compiler)
  2318. {
  2319. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2320. $instance->extend($compiler);
  2321. }
  2322. /**
  2323. * Get the extensions used by the compiler.
  2324. *
  2325. * @return array
  2326. * @static
  2327. */
  2328. public static function getExtensions()
  2329. {
  2330. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2331. return $instance->getExtensions();
  2332. }
  2333. /**
  2334. * Register an "if" statement directive.
  2335. *
  2336. * @param string $name
  2337. * @param callable $callback
  2338. * @return void
  2339. * @static
  2340. */
  2341. public static function if($name, $callback)
  2342. {
  2343. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2344. $instance->if($name, $callback);
  2345. }
  2346. /**
  2347. * Check the result of a condition.
  2348. *
  2349. * @param string $name
  2350. * @param array $parameters
  2351. * @return bool
  2352. * @static
  2353. */
  2354. public static function check($name, ...$parameters)
  2355. {
  2356. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2357. return $instance->check($name, ...$parameters);
  2358. }
  2359. /**
  2360. * Register a class-based component alias directive.
  2361. *
  2362. * @param string $class
  2363. * @param string|null $alias
  2364. * @param string $prefix
  2365. * @return void
  2366. * @static
  2367. */
  2368. public static function component($class, $alias = null, $prefix = '')
  2369. {
  2370. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2371. $instance->component($class, $alias, $prefix);
  2372. }
  2373. /**
  2374. * Register an array of class-based components.
  2375. *
  2376. * @param array $components
  2377. * @param string $prefix
  2378. * @return void
  2379. * @static
  2380. */
  2381. public static function components($components, $prefix = '')
  2382. {
  2383. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2384. $instance->components($components, $prefix);
  2385. }
  2386. /**
  2387. * Get the registered class component aliases.
  2388. *
  2389. * @return array
  2390. * @static
  2391. */
  2392. public static function getClassComponentAliases()
  2393. {
  2394. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2395. return $instance->getClassComponentAliases();
  2396. }
  2397. /**
  2398. * Register a class-based component namespace.
  2399. *
  2400. * @param string $namespace
  2401. * @param string $prefix
  2402. * @return void
  2403. * @static
  2404. */
  2405. public static function componentNamespace($namespace, $prefix)
  2406. {
  2407. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2408. $instance->componentNamespace($namespace, $prefix);
  2409. }
  2410. /**
  2411. * Get the registered class component namespaces.
  2412. *
  2413. * @return array
  2414. * @static
  2415. */
  2416. public static function getClassComponentNamespaces()
  2417. {
  2418. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2419. return $instance->getClassComponentNamespaces();
  2420. }
  2421. /**
  2422. * Register a component alias directive.
  2423. *
  2424. * @param string $path
  2425. * @param string|null $alias
  2426. * @return void
  2427. * @static
  2428. */
  2429. public static function aliasComponent($path, $alias = null)
  2430. {
  2431. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2432. $instance->aliasComponent($path, $alias);
  2433. }
  2434. /**
  2435. * Register an include alias directive.
  2436. *
  2437. * @param string $path
  2438. * @param string|null $alias
  2439. * @return void
  2440. * @static
  2441. */
  2442. public static function include($path, $alias = null)
  2443. {
  2444. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2445. $instance->include($path, $alias);
  2446. }
  2447. /**
  2448. * Register an include alias directive.
  2449. *
  2450. * @param string $path
  2451. * @param string|null $alias
  2452. * @return void
  2453. * @static
  2454. */
  2455. public static function aliasInclude($path, $alias = null)
  2456. {
  2457. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2458. $instance->aliasInclude($path, $alias);
  2459. }
  2460. /**
  2461. * Register a handler for custom directives.
  2462. *
  2463. * @param string $name
  2464. * @param callable $handler
  2465. * @return void
  2466. * @throws \InvalidArgumentException
  2467. * @static
  2468. */
  2469. public static function directive($name, $handler)
  2470. {
  2471. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2472. $instance->directive($name, $handler);
  2473. }
  2474. /**
  2475. * Get the list of custom directives.
  2476. *
  2477. * @return array
  2478. * @static
  2479. */
  2480. public static function getCustomDirectives()
  2481. {
  2482. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2483. return $instance->getCustomDirectives();
  2484. }
  2485. /**
  2486. * Register a new precompiler.
  2487. *
  2488. * @param callable $precompiler
  2489. * @return void
  2490. * @static
  2491. */
  2492. public static function precompiler($precompiler)
  2493. {
  2494. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2495. $instance->precompiler($precompiler);
  2496. }
  2497. /**
  2498. * Set the echo format to be used by the compiler.
  2499. *
  2500. * @param string $format
  2501. * @return void
  2502. * @static
  2503. */
  2504. public static function setEchoFormat($format)
  2505. {
  2506. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2507. $instance->setEchoFormat($format);
  2508. }
  2509. /**
  2510. * Set the "echo" format to double encode entities.
  2511. *
  2512. * @return void
  2513. * @static
  2514. */
  2515. public static function withDoubleEncoding()
  2516. {
  2517. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2518. $instance->withDoubleEncoding();
  2519. }
  2520. /**
  2521. * Set the "echo" format to not double encode entities.
  2522. *
  2523. * @return void
  2524. * @static
  2525. */
  2526. public static function withoutDoubleEncoding()
  2527. {
  2528. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2529. $instance->withoutDoubleEncoding();
  2530. }
  2531. /**
  2532. * Indicate that component tags should not be compiled.
  2533. *
  2534. * @return void
  2535. * @static
  2536. */
  2537. public static function withoutComponentTags()
  2538. {
  2539. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2540. $instance->withoutComponentTags();
  2541. }
  2542. /**
  2543. * Get the path to the compiled version of a view.
  2544. *
  2545. * @param string $path
  2546. * @return string
  2547. * @static
  2548. */
  2549. public static function getCompiledPath($path)
  2550. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2551. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2552. return $instance->getCompiledPath($path);
  2553. }
  2554. /**
  2555. * Determine if the view at the given path is expired.
  2556. *
  2557. * @param string $path
  2558. * @return bool
  2559. * @static
  2560. */
  2561. public static function isExpired($path)
  2562. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2563. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2564. return $instance->isExpired($path);
  2565. }
  2566. /**
  2567. * Get a new component hash for a component name.
  2568. *
  2569. * @param string $component
  2570. * @return string
  2571. * @static
  2572. */
  2573. public static function newComponentHash($component)
  2574. {
  2575. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2576. }
  2577. /**
  2578. * Compile a class component opening.
  2579. *
  2580. * @param string $component
  2581. * @param string $alias
  2582. * @param string $data
  2583. * @param string $hash
  2584. * @return string
  2585. * @static
  2586. */
  2587. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2588. {
  2589. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2590. }
  2591. /**
  2592. * Compile the end-component statements into valid PHP.
  2593. *
  2594. * @return string
  2595. * @static
  2596. */
  2597. public static function compileEndComponentClass()
  2598. {
  2599. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2600. return $instance->compileEndComponentClass();
  2601. }
  2602. /**
  2603. * Sanitize the given component attribute value.
  2604. *
  2605. * @param mixed $value
  2606. * @return mixed
  2607. * @static
  2608. */
  2609. public static function sanitizeComponentAttribute($value)
  2610. {
  2611. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2612. }
  2613. /**
  2614. * Compile an end-once block into valid PHP.
  2615. *
  2616. * @return string
  2617. * @static
  2618. */
  2619. public static function compileEndOnce()
  2620. {
  2621. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2622. return $instance->compileEndOnce();
  2623. }
  2624. /**
  2625. * Add a handler to be executed before echoing a given class.
  2626. *
  2627. * @param string|callable $class
  2628. * @param callable|null $handler
  2629. * @return void
  2630. * @static
  2631. */
  2632. public static function stringable($class, $handler = null)
  2633. {
  2634. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2635. $instance->stringable($class, $handler);
  2636. }
  2637. /**
  2638. * Compile Blade echos into valid PHP.
  2639. *
  2640. * @param string $value
  2641. * @return string
  2642. * @static
  2643. */
  2644. public static function compileEchos($value)
  2645. {
  2646. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2647. return $instance->compileEchos($value);
  2648. }
  2649. /**
  2650. * Apply the echo handler for the value if it exists.
  2651. *
  2652. * @param string $value
  2653. * @return string
  2654. * @static
  2655. */
  2656. public static function applyEchoHandler($value)
  2657. {
  2658. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2659. return $instance->applyEchoHandler($value);
  2660. }
  2661. }
  2662. /**
  2663. *
  2664. *
  2665. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2666. * @method static mixed auth(\Illuminate\Http\Request $request)
  2667. * @see \Illuminate\Contracts\Broadcasting\Factory
  2668. */
  2669. class Broadcast {
  2670. /**
  2671. * Register the routes for handling broadcast authentication and sockets.
  2672. *
  2673. * @param array|null $attributes
  2674. * @return void
  2675. * @static
  2676. */
  2677. public static function routes($attributes = null)
  2678. {
  2679. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2680. $instance->routes($attributes);
  2681. }
  2682. /**
  2683. * Get the socket ID for the given request.
  2684. *
  2685. * @param \Illuminate\Http\Request|null $request
  2686. * @return string|null
  2687. * @static
  2688. */
  2689. public static function socket($request = null)
  2690. {
  2691. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2692. return $instance->socket($request);
  2693. }
  2694. /**
  2695. * Begin broadcasting an event.
  2696. *
  2697. * @param mixed|null $event
  2698. * @return \Illuminate\Broadcasting\PendingBroadcast
  2699. * @static
  2700. */
  2701. public static function event($event = null)
  2702. {
  2703. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2704. return $instance->event($event);
  2705. }
  2706. /**
  2707. * Queue the given event for broadcast.
  2708. *
  2709. * @param mixed $event
  2710. * @return void
  2711. * @static
  2712. */
  2713. public static function queue($event)
  2714. {
  2715. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2716. $instance->queue($event);
  2717. }
  2718. /**
  2719. * Get a driver instance.
  2720. *
  2721. * @param string|null $driver
  2722. * @return mixed
  2723. * @static
  2724. */
  2725. public static function connection($driver = null)
  2726. {
  2727. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2728. return $instance->connection($driver);
  2729. }
  2730. /**
  2731. * Get a driver instance.
  2732. *
  2733. * @param string|null $name
  2734. * @return mixed
  2735. * @static
  2736. */
  2737. public static function driver($name = null)
  2738. {
  2739. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2740. return $instance->driver($name);
  2741. }
  2742. /**
  2743. * Get the default driver name.
  2744. *
  2745. * @return string
  2746. * @static
  2747. */
  2748. public static function getDefaultDriver()
  2749. {
  2750. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2751. return $instance->getDefaultDriver();
  2752. }
  2753. /**
  2754. * Set the default driver name.
  2755. *
  2756. * @param string $name
  2757. * @return void
  2758. * @static
  2759. */
  2760. public static function setDefaultDriver($name)
  2761. {
  2762. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2763. $instance->setDefaultDriver($name);
  2764. }
  2765. /**
  2766. * Disconnect the given disk and remove from local cache.
  2767. *
  2768. * @param string|null $name
  2769. * @return void
  2770. * @static
  2771. */
  2772. public static function purge($name = null)
  2773. {
  2774. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2775. $instance->purge($name);
  2776. }
  2777. /**
  2778. * Register a custom driver creator Closure.
  2779. *
  2780. * @param string $driver
  2781. * @param \Closure $callback
  2782. * @return \Illuminate\Broadcasting\BroadcastManager
  2783. * @static
  2784. */
  2785. public static function extend($driver, $callback)
  2786. {
  2787. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2788. return $instance->extend($driver, $callback);
  2789. }
  2790. /**
  2791. * Get the application instance used by the manager.
  2792. *
  2793. * @return \Illuminate\Contracts\Foundation\Application
  2794. * @static
  2795. */
  2796. public static function getApplication()
  2797. {
  2798. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2799. return $instance->getApplication();
  2800. }
  2801. /**
  2802. * Set the application instance used by the manager.
  2803. *
  2804. * @param \Illuminate\Contracts\Foundation\Application $app
  2805. * @return \Illuminate\Broadcasting\BroadcastManager
  2806. * @static
  2807. */
  2808. public static function setApplication($app)
  2809. {
  2810. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2811. return $instance->setApplication($app);
  2812. }
  2813. /**
  2814. * Forget all of the resolved driver instances.
  2815. *
  2816. * @return \Illuminate\Broadcasting\BroadcastManager
  2817. * @static
  2818. */
  2819. public static function forgetDrivers()
  2820. {
  2821. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2822. return $instance->forgetDrivers();
  2823. }
  2824. }
  2825. /**
  2826. *
  2827. *
  2828. * @see \Illuminate\Contracts\Bus\Dispatcher
  2829. */
  2830. class Bus {
  2831. /**
  2832. * Dispatch a command to its appropriate handler.
  2833. *
  2834. * @param mixed $command
  2835. * @return mixed
  2836. * @static
  2837. */
  2838. public static function dispatch($command)
  2839. {
  2840. /** @var \Illuminate\Bus\Dispatcher $instance */
  2841. return $instance->dispatch($command);
  2842. }
  2843. /**
  2844. * Dispatch a command to its appropriate handler in the current process.
  2845. *
  2846. * Queueable jobs will be dispatched to the "sync" queue.
  2847. *
  2848. * @param mixed $command
  2849. * @param mixed $handler
  2850. * @return mixed
  2851. * @static
  2852. */
  2853. public static function dispatchSync($command, $handler = null)
  2854. {
  2855. /** @var \Illuminate\Bus\Dispatcher $instance */
  2856. return $instance->dispatchSync($command, $handler);
  2857. }
  2858. /**
  2859. * Dispatch a command to its appropriate handler in the current process without using the synchronous queue.
  2860. *
  2861. * @param mixed $command
  2862. * @param mixed $handler
  2863. * @return mixed
  2864. * @static
  2865. */
  2866. public static function dispatchNow($command, $handler = null)
  2867. {
  2868. /** @var \Illuminate\Bus\Dispatcher $instance */
  2869. return $instance->dispatchNow($command, $handler);
  2870. }
  2871. /**
  2872. * Attempt to find the batch with the given ID.
  2873. *
  2874. * @param string $batchId
  2875. * @return \Illuminate\Bus\Batch|null
  2876. * @static
  2877. */
  2878. public static function findBatch($batchId)
  2879. {
  2880. /** @var \Illuminate\Bus\Dispatcher $instance */
  2881. return $instance->findBatch($batchId);
  2882. }
  2883. /**
  2884. * Create a new batch of queueable jobs.
  2885. *
  2886. * @param \Illuminate\Support\Collection|array|mixed $jobs
  2887. * @return \Illuminate\Bus\PendingBatch
  2888. * @static
  2889. */
  2890. public static function batch($jobs)
  2891. {
  2892. /** @var \Illuminate\Bus\Dispatcher $instance */
  2893. return $instance->batch($jobs);
  2894. }
  2895. /**
  2896. * Create a new chain of queueable jobs.
  2897. *
  2898. * @param \Illuminate\Support\Collection|array $jobs
  2899. * @return \Illuminate\Foundation\Bus\PendingChain
  2900. * @static
  2901. */
  2902. public static function chain($jobs)
  2903. {
  2904. /** @var \Illuminate\Bus\Dispatcher $instance */
  2905. return $instance->chain($jobs);
  2906. }
  2907. /**
  2908. * Determine if the given command has a handler.
  2909. *
  2910. * @param mixed $command
  2911. * @return bool
  2912. * @static
  2913. */
  2914. public static function hasCommandHandler($command)
  2915. {
  2916. /** @var \Illuminate\Bus\Dispatcher $instance */
  2917. return $instance->hasCommandHandler($command);
  2918. }
  2919. /**
  2920. * Retrieve the handler for a command.
  2921. *
  2922. * @param mixed $command
  2923. * @return bool|mixed
  2924. * @static
  2925. */
  2926. public static function getCommandHandler($command)
  2927. {
  2928. /** @var \Illuminate\Bus\Dispatcher $instance */
  2929. return $instance->getCommandHandler($command);
  2930. }
  2931. /**
  2932. * Dispatch a command to its appropriate handler behind a queue.
  2933. *
  2934. * @param mixed $command
  2935. * @return mixed
  2936. * @throws \RuntimeException
  2937. * @static
  2938. */
  2939. public static function dispatchToQueue($command)
  2940. {
  2941. /** @var \Illuminate\Bus\Dispatcher $instance */
  2942. return $instance->dispatchToQueue($command);
  2943. }
  2944. /**
  2945. * Dispatch a command to its appropriate handler after the current process.
  2946. *
  2947. * @param mixed $command
  2948. * @param mixed $handler
  2949. * @return void
  2950. * @static
  2951. */
  2952. public static function dispatchAfterResponse($command, $handler = null)
  2953. {
  2954. /** @var \Illuminate\Bus\Dispatcher $instance */
  2955. $instance->dispatchAfterResponse($command, $handler);
  2956. }
  2957. /**
  2958. * Set the pipes through which commands should be piped before dispatching.
  2959. *
  2960. * @param array $pipes
  2961. * @return \Illuminate\Bus\Dispatcher
  2962. * @static
  2963. */
  2964. public static function pipeThrough($pipes)
  2965. {
  2966. /** @var \Illuminate\Bus\Dispatcher $instance */
  2967. return $instance->pipeThrough($pipes);
  2968. }
  2969. /**
  2970. * Map a command to a handler.
  2971. *
  2972. * @param array $map
  2973. * @return \Illuminate\Bus\Dispatcher
  2974. * @static
  2975. */
  2976. public static function map($map)
  2977. {
  2978. /** @var \Illuminate\Bus\Dispatcher $instance */
  2979. return $instance->map($map);
  2980. }
  2981. /**
  2982. * Assert if a job was dispatched based on a truth-test callback.
  2983. *
  2984. * @param string|\Closure $command
  2985. * @param callable|int|null $callback
  2986. * @return void
  2987. * @static
  2988. */
  2989. public static function assertDispatched($command, $callback = null)
  2990. {
  2991. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2992. $instance->assertDispatched($command, $callback);
  2993. }
  2994. /**
  2995. * Assert if a job was pushed a number of times.
  2996. *
  2997. * @param string $command
  2998. * @param int $times
  2999. * @return void
  3000. * @static
  3001. */
  3002. public static function assertDispatchedTimes($command, $times = 1)
  3003. {
  3004. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3005. $instance->assertDispatchedTimes($command, $times);
  3006. }
  3007. /**
  3008. * Determine if a job was dispatched based on a truth-test callback.
  3009. *
  3010. * @param string|\Closure $command
  3011. * @param callable|null $callback
  3012. * @return void
  3013. * @static
  3014. */
  3015. public static function assertNotDispatched($command, $callback = null)
  3016. {
  3017. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3018. $instance->assertNotDispatched($command, $callback);
  3019. }
  3020. /**
  3021. * Assert if a job was explicitly dispatched synchronously based on a truth-test callback.
  3022. *
  3023. * @param string|\Closure $command
  3024. * @param callable|int|null $callback
  3025. * @return void
  3026. * @static
  3027. */
  3028. public static function assertDispatchedSync($command, $callback = null)
  3029. {
  3030. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3031. $instance->assertDispatchedSync($command, $callback);
  3032. }
  3033. /**
  3034. * Assert if a job was pushed synchronously a number of times.
  3035. *
  3036. * @param string $command
  3037. * @param int $times
  3038. * @return void
  3039. * @static
  3040. */
  3041. public static function assertDispatchedSyncTimes($command, $times = 1)
  3042. {
  3043. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3044. $instance->assertDispatchedSyncTimes($command, $times);
  3045. }
  3046. /**
  3047. * Determine if a job was dispatched based on a truth-test callback.
  3048. *
  3049. * @param string|\Closure $command
  3050. * @param callable|null $callback
  3051. * @return void
  3052. * @static
  3053. */
  3054. public static function assertNotDispatchedSync($command, $callback = null)
  3055. {
  3056. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3057. $instance->assertNotDispatchedSync($command, $callback);
  3058. }
  3059. /**
  3060. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  3061. *
  3062. * @param string|\Closure $command
  3063. * @param callable|int|null $callback
  3064. * @return void
  3065. * @static
  3066. */
  3067. public static function assertDispatchedAfterResponse($command, $callback = null)
  3068. {
  3069. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3070. $instance->assertDispatchedAfterResponse($command, $callback);
  3071. }
  3072. /**
  3073. * Assert if a job was pushed after the response was sent a number of times.
  3074. *
  3075. * @param string $command
  3076. * @param int $times
  3077. * @return void
  3078. * @static
  3079. */
  3080. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  3081. {
  3082. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3083. $instance->assertDispatchedAfterResponseTimes($command, $times);
  3084. }
  3085. /**
  3086. * Determine if a job was dispatched based on a truth-test callback.
  3087. *
  3088. * @param string|\Closure $command
  3089. * @param callable|null $callback
  3090. * @return void
  3091. * @static
  3092. */
  3093. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  3094. {
  3095. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3096. $instance->assertNotDispatchedAfterResponse($command, $callback);
  3097. }
  3098. /**
  3099. * Assert if a chain of jobs was dispatched.
  3100. *
  3101. * @param array $expectedChain
  3102. * @return void
  3103. * @static
  3104. */
  3105. public static function assertChained($expectedChain)
  3106. {
  3107. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3108. $instance->assertChained($expectedChain);
  3109. }
  3110. /**
  3111. * Assert if a job was dispatched with an empty chain based on a truth-test callback.
  3112. *
  3113. * @param string|\Closure $command
  3114. * @param callable|null $callback
  3115. * @return void
  3116. * @static
  3117. */
  3118. public static function assertDispatchedWithoutChain($command, $callback = null)
  3119. {
  3120. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3121. $instance->assertDispatchedWithoutChain($command, $callback);
  3122. }
  3123. /**
  3124. * Assert if a batch was dispatched based on a truth-test callback.
  3125. *
  3126. * @param callable $callback
  3127. * @return void
  3128. * @static
  3129. */
  3130. public static function assertBatched($callback)
  3131. {
  3132. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3133. $instance->assertBatched($callback);
  3134. }
  3135. /**
  3136. * Get all of the jobs matching a truth-test callback.
  3137. *
  3138. * @param string $command
  3139. * @param callable|null $callback
  3140. * @return \Illuminate\Support\Collection
  3141. * @static
  3142. */
  3143. public static function dispatched($command, $callback = null)
  3144. {
  3145. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3146. return $instance->dispatched($command, $callback);
  3147. }
  3148. /**
  3149. * Get all of the jobs dispatched synchronously matching a truth-test callback.
  3150. *
  3151. * @param string $command
  3152. * @param callable|null $callback
  3153. * @return \Illuminate\Support\Collection
  3154. * @static
  3155. */
  3156. public static function dispatchedSync($command, $callback = null)
  3157. {
  3158. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3159. return $instance->dispatchedSync($command, $callback);
  3160. }
  3161. /**
  3162. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  3163. *
  3164. * @param string $command
  3165. * @param callable|null $callback
  3166. * @return \Illuminate\Support\Collection
  3167. * @static
  3168. */
  3169. public static function dispatchedAfterResponse($command, $callback = null)
  3170. {
  3171. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3172. return $instance->dispatchedAfterResponse($command, $callback);
  3173. }
  3174. /**
  3175. * Get all of the pending batches matching a truth-test callback.
  3176. *
  3177. * @param callable $callback
  3178. * @return \Illuminate\Support\Collection
  3179. * @static
  3180. */
  3181. public static function batched($callback)
  3182. {
  3183. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3184. return $instance->batched($callback);
  3185. }
  3186. /**
  3187. * Determine if there are any stored commands for a given class.
  3188. *
  3189. * @param string $command
  3190. * @return bool
  3191. * @static
  3192. */
  3193. public static function hasDispatched($command)
  3194. {
  3195. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3196. return $instance->hasDispatched($command);
  3197. }
  3198. /**
  3199. * Determine if there are any stored commands for a given class.
  3200. *
  3201. * @param string $command
  3202. * @return bool
  3203. * @static
  3204. */
  3205. public static function hasDispatchedSync($command)
  3206. {
  3207. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3208. return $instance->hasDispatchedSync($command);
  3209. }
  3210. /**
  3211. * Determine if there are any stored commands for a given class.
  3212. *
  3213. * @param string $command
  3214. * @return bool
  3215. * @static
  3216. */
  3217. public static function hasDispatchedAfterResponse($command)
  3218. {
  3219. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3220. return $instance->hasDispatchedAfterResponse($command);
  3221. }
  3222. /**
  3223. * Record the fake pending batch dispatch.
  3224. *
  3225. * @param \Illuminate\Bus\PendingBatch $pendingBatch
  3226. * @return \Illuminate\Bus\Batch
  3227. * @static
  3228. */
  3229. public static function recordPendingBatch($pendingBatch)
  3230. {
  3231. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  3232. return $instance->recordPendingBatch($pendingBatch);
  3233. }
  3234. }
  3235. /**
  3236. *
  3237. *
  3238. * @see \Illuminate\Cache\CacheManager
  3239. * @see \Illuminate\Cache\Repository
  3240. */
  3241. class Cache {
  3242. /**
  3243. * Get a cache store instance by name, wrapped in a repository.
  3244. *
  3245. * @param string|null $name
  3246. * @return \Illuminate\Contracts\Cache\Repository
  3247. * @static
  3248. */
  3249. public static function store($name = null)
  3250. {
  3251. /** @var \Illuminate\Cache\CacheManager $instance */
  3252. return $instance->store($name);
  3253. }
  3254. /**
  3255. * Get a cache driver instance.
  3256. *
  3257. * @param string|null $driver
  3258. * @return \Illuminate\Contracts\Cache\Repository
  3259. * @static
  3260. */
  3261. public static function driver($driver = null)
  3262. {
  3263. /** @var \Illuminate\Cache\CacheManager $instance */
  3264. return $instance->driver($driver);
  3265. }
  3266. /**
  3267. * Create a new cache repository with the given implementation.
  3268. *
  3269. * @param \Illuminate\Contracts\Cache\Store $store
  3270. * @return \Illuminate\Cache\Repository
  3271. * @static
  3272. */
  3273. public static function repository($store)
  3274. {
  3275. /** @var \Illuminate\Cache\CacheManager $instance */
  3276. return $instance->repository($store);
  3277. }
  3278. /**
  3279. * Re-set the event dispatcher on all resolved cache repositories.
  3280. *
  3281. * @return void
  3282. * @static
  3283. */
  3284. public static function refreshEventDispatcher()
  3285. {
  3286. /** @var \Illuminate\Cache\CacheManager $instance */
  3287. $instance->refreshEventDispatcher();
  3288. }
  3289. /**
  3290. * Get the default cache driver name.
  3291. *
  3292. * @return string
  3293. * @static
  3294. */
  3295. public static function getDefaultDriver()
  3296. {
  3297. /** @var \Illuminate\Cache\CacheManager $instance */
  3298. return $instance->getDefaultDriver();
  3299. }
  3300. /**
  3301. * Set the default cache driver name.
  3302. *
  3303. * @param string $name
  3304. * @return void
  3305. * @static
  3306. */
  3307. public static function setDefaultDriver($name)
  3308. {
  3309. /** @var \Illuminate\Cache\CacheManager $instance */
  3310. $instance->setDefaultDriver($name);
  3311. }
  3312. /**
  3313. * Unset the given driver instances.
  3314. *
  3315. * @param array|string|null $name
  3316. * @return \Illuminate\Cache\CacheManager
  3317. * @static
  3318. */
  3319. public static function forgetDriver($name = null)
  3320. {
  3321. /** @var \Illuminate\Cache\CacheManager $instance */
  3322. return $instance->forgetDriver($name);
  3323. }
  3324. /**
  3325. * Disconnect the given driver and remove from local cache.
  3326. *
  3327. * @param string|null $name
  3328. * @return void
  3329. * @static
  3330. */
  3331. public static function purge($name = null)
  3332. {
  3333. /** @var \Illuminate\Cache\CacheManager $instance */
  3334. $instance->purge($name);
  3335. }
  3336. /**
  3337. * Register a custom driver creator Closure.
  3338. *
  3339. * @param string $driver
  3340. * @param \Closure $callback
  3341. * @return \Illuminate\Cache\CacheManager
  3342. * @static
  3343. */
  3344. public static function extend($driver, $callback)
  3345. {
  3346. /** @var \Illuminate\Cache\CacheManager $instance */
  3347. return $instance->extend($driver, $callback);
  3348. }
  3349. /**
  3350. * Determine if an item exists in the cache.
  3351. *
  3352. * @param string $key
  3353. * @return bool
  3354. * @static
  3355. */
  3356. public static function has($key)
  3357. {
  3358. /** @var \Illuminate\Cache\Repository $instance */
  3359. return $instance->has($key);
  3360. }
  3361. /**
  3362. * Determine if an item doesn't exist in the cache.
  3363. *
  3364. * @param string $key
  3365. * @return bool
  3366. * @static
  3367. */
  3368. public static function missing($key)
  3369. {
  3370. /** @var \Illuminate\Cache\Repository $instance */
  3371. return $instance->missing($key);
  3372. }
  3373. /**
  3374. * Retrieve an item from the cache by key.
  3375. *
  3376. * @param string $key
  3377. * @param mixed $default
  3378. * @return mixed
  3379. * @static
  3380. */
  3381. public static function get($key, $default = null)
  3382. {
  3383. /** @var \Illuminate\Cache\Repository $instance */
  3384. return $instance->get($key, $default);
  3385. }
  3386. /**
  3387. * Retrieve multiple items from the cache by key.
  3388. *
  3389. * Items not found in the cache will have a null value.
  3390. *
  3391. * @param array $keys
  3392. * @return array
  3393. * @static
  3394. */
  3395. public static function many($keys)
  3396. {
  3397. /** @var \Illuminate\Cache\Repository $instance */
  3398. return $instance->many($keys);
  3399. }
  3400. /**
  3401. * Obtains multiple cache items by their unique keys.
  3402. *
  3403. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  3404. * @param mixed $default Default value to return for keys that do not exist.
  3405. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  3406. * @throws \Psr\SimpleCache\InvalidArgumentException
  3407. * MUST be thrown if $keys is neither an array nor a Traversable,
  3408. * or if any of the $keys are not a legal value.
  3409. * @static
  3410. */
  3411. public static function getMultiple($keys, $default = null)
  3412. {
  3413. /** @var \Illuminate\Cache\Repository $instance */
  3414. return $instance->getMultiple($keys, $default);
  3415. }
  3416. /**
  3417. * Retrieve an item from the cache and delete it.
  3418. *
  3419. * @param string $key
  3420. * @param mixed $default
  3421. * @return mixed
  3422. * @static
  3423. */
  3424. public static function pull($key, $default = null)
  3425. {
  3426. /** @var \Illuminate\Cache\Repository $instance */
  3427. return $instance->pull($key, $default);
  3428. }
  3429. /**
  3430. * Store an item in the cache.
  3431. *
  3432. * @param string $key
  3433. * @param mixed $value
  3434. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3435. * @return bool
  3436. * @static
  3437. */
  3438. public static function put($key, $value, $ttl = null)
  3439. {
  3440. /** @var \Illuminate\Cache\Repository $instance */
  3441. return $instance->put($key, $value, $ttl);
  3442. }
  3443. /**
  3444. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3445. *
  3446. * @param string $key The key of the item to store.
  3447. * @param mixed $value The value of the item to store, must be serializable.
  3448. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3449. * the driver supports TTL then the library may set a default value
  3450. * for it or let the driver take care of that.
  3451. * @return bool True on success and false on failure.
  3452. * @throws \Psr\SimpleCache\InvalidArgumentException
  3453. * MUST be thrown if the $key string is not a legal value.
  3454. * @static
  3455. */
  3456. public static function set($key, $value, $ttl = null)
  3457. {
  3458. /** @var \Illuminate\Cache\Repository $instance */
  3459. return $instance->set($key, $value, $ttl);
  3460. }
  3461. /**
  3462. * Store multiple items in the cache for a given number of seconds.
  3463. *
  3464. * @param array $values
  3465. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3466. * @return bool
  3467. * @static
  3468. */
  3469. public static function putMany($values, $ttl = null)
  3470. {
  3471. /** @var \Illuminate\Cache\Repository $instance */
  3472. return $instance->putMany($values, $ttl);
  3473. }
  3474. /**
  3475. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3476. *
  3477. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  3478. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3479. * the driver supports TTL then the library may set a default value
  3480. * for it or let the driver take care of that.
  3481. * @return bool True on success and false on failure.
  3482. * @throws \Psr\SimpleCache\InvalidArgumentException
  3483. * MUST be thrown if $values is neither an array nor a Traversable,
  3484. * or if any of the $values are not a legal value.
  3485. * @static
  3486. */
  3487. public static function setMultiple($values, $ttl = null)
  3488. {
  3489. /** @var \Illuminate\Cache\Repository $instance */
  3490. return $instance->setMultiple($values, $ttl);
  3491. }
  3492. /**
  3493. * Store an item in the cache if the key does not exist.
  3494. *
  3495. * @param string $key
  3496. * @param mixed $value
  3497. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3498. * @return bool
  3499. * @static
  3500. */
  3501. public static function add($key, $value, $ttl = null)
  3502. {
  3503. /** @var \Illuminate\Cache\Repository $instance */
  3504. return $instance->add($key, $value, $ttl);
  3505. }
  3506. /**
  3507. * Increment the value of an item in the cache.
  3508. *
  3509. * @param string $key
  3510. * @param mixed $value
  3511. * @return int|bool
  3512. * @static
  3513. */
  3514. public static function increment($key, $value = 1)
  3515. {
  3516. /** @var \Illuminate\Cache\Repository $instance */
  3517. return $instance->increment($key, $value);
  3518. }
  3519. /**
  3520. * Decrement the value of an item in the cache.
  3521. *
  3522. * @param string $key
  3523. * @param mixed $value
  3524. * @return int|bool
  3525. * @static
  3526. */
  3527. public static function decrement($key, $value = 1)
  3528. {
  3529. /** @var \Illuminate\Cache\Repository $instance */
  3530. return $instance->decrement($key, $value);
  3531. }
  3532. /**
  3533. * Store an item in the cache indefinitely.
  3534. *
  3535. * @param string $key
  3536. * @param mixed $value
  3537. * @return bool
  3538. * @static
  3539. */
  3540. public static function forever($key, $value)
  3541. {
  3542. /** @var \Illuminate\Cache\Repository $instance */
  3543. return $instance->forever($key, $value);
  3544. }
  3545. /**
  3546. * Get an item from the cache, or execute the given Closure and store the result.
  3547. *
  3548. * @param string $key
  3549. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3550. * @param \Closure $callback
  3551. * @return mixed
  3552. * @static
  3553. */
  3554. public static function remember($key, $ttl, $callback)
  3555. {
  3556. /** @var \Illuminate\Cache\Repository $instance */
  3557. return $instance->remember($key, $ttl, $callback);
  3558. }
  3559. /**
  3560. * Get an item from the cache, or execute the given Closure and store the result forever.
  3561. *
  3562. * @param string $key
  3563. * @param \Closure $callback
  3564. * @return mixed
  3565. * @static
  3566. */
  3567. public static function sear($key, $callback)
  3568. {
  3569. /** @var \Illuminate\Cache\Repository $instance */
  3570. return $instance->sear($key, $callback);
  3571. }
  3572. /**
  3573. * Get an item from the cache, or execute the given Closure and store the result forever.
  3574. *
  3575. * @param string $key
  3576. * @param \Closure $callback
  3577. * @return mixed
  3578. * @static
  3579. */
  3580. public static function rememberForever($key, $callback)
  3581. {
  3582. /** @var \Illuminate\Cache\Repository $instance */
  3583. return $instance->rememberForever($key, $callback);
  3584. }
  3585. /**
  3586. * Remove an item from the cache.
  3587. *
  3588. * @param string $key
  3589. * @return bool
  3590. * @static
  3591. */
  3592. public static function forget($key)
  3593. {
  3594. /** @var \Illuminate\Cache\Repository $instance */
  3595. return $instance->forget($key);
  3596. }
  3597. /**
  3598. * Delete an item from the cache by its unique key.
  3599. *
  3600. * @param string $key The unique cache key of the item to delete.
  3601. * @return bool True if the item was successfully removed. False if there was an error.
  3602. * @throws \Psr\SimpleCache\InvalidArgumentException
  3603. * MUST be thrown if the $key string is not a legal value.
  3604. * @static
  3605. */
  3606. public static function delete($key)
  3607. {
  3608. /** @var \Illuminate\Cache\Repository $instance */
  3609. return $instance->delete($key);
  3610. }
  3611. /**
  3612. * Deletes multiple cache items in a single operation.
  3613. *
  3614. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  3615. * @return bool True if the items were successfully removed. False if there was an error.
  3616. * @throws \Psr\SimpleCache\InvalidArgumentException
  3617. * MUST be thrown if $keys is neither an array nor a Traversable,
  3618. * or if any of the $keys are not a legal value.
  3619. * @static
  3620. */
  3621. public static function deleteMultiple($keys)
  3622. {
  3623. /** @var \Illuminate\Cache\Repository $instance */
  3624. return $instance->deleteMultiple($keys);
  3625. }
  3626. /**
  3627. * Wipes clean the entire cache's keys.
  3628. *
  3629. * @return bool True on success and false on failure.
  3630. * @static
  3631. */
  3632. public static function clear()
  3633. {
  3634. /** @var \Illuminate\Cache\Repository $instance */
  3635. return $instance->clear();
  3636. }
  3637. /**
  3638. * Begin executing a new tags operation if the store supports it.
  3639. *
  3640. * @param array|mixed $names
  3641. * @return \Illuminate\Cache\TaggedCache
  3642. * @throws \BadMethodCallException
  3643. * @static
  3644. */
  3645. public static function tags($names)
  3646. {
  3647. /** @var \Illuminate\Cache\Repository $instance */
  3648. return $instance->tags($names);
  3649. }
  3650. /**
  3651. * Determine if the current store supports tags.
  3652. *
  3653. * @return bool
  3654. * @static
  3655. */
  3656. public static function supportsTags()
  3657. {
  3658. /** @var \Illuminate\Cache\Repository $instance */
  3659. return $instance->supportsTags();
  3660. }
  3661. /**
  3662. * Get the default cache time.
  3663. *
  3664. * @return int|null
  3665. * @static
  3666. */
  3667. public static function getDefaultCacheTime()
  3668. {
  3669. /** @var \Illuminate\Cache\Repository $instance */
  3670. return $instance->getDefaultCacheTime();
  3671. }
  3672. /**
  3673. * Set the default cache time in seconds.
  3674. *
  3675. * @param int|null $seconds
  3676. * @return \Illuminate\Cache\Repository
  3677. * @static
  3678. */
  3679. public static function setDefaultCacheTime($seconds)
  3680. {
  3681. /** @var \Illuminate\Cache\Repository $instance */
  3682. return $instance->setDefaultCacheTime($seconds);
  3683. }
  3684. /**
  3685. * Get the cache store implementation.
  3686. *
  3687. * @return \Illuminate\Contracts\Cache\Store
  3688. * @static
  3689. */
  3690. public static function getStore()
  3691. {
  3692. /** @var \Illuminate\Cache\Repository $instance */
  3693. return $instance->getStore();
  3694. }
  3695. /**
  3696. * Get the event dispatcher instance.
  3697. *
  3698. * @return \Illuminate\Contracts\Events\Dispatcher
  3699. * @static
  3700. */
  3701. public static function getEventDispatcher()
  3702. {
  3703. /** @var \Illuminate\Cache\Repository $instance */
  3704. return $instance->getEventDispatcher();
  3705. }
  3706. /**
  3707. * Set the event dispatcher instance.
  3708. *
  3709. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3710. * @return void
  3711. * @static
  3712. */
  3713. public static function setEventDispatcher($events)
  3714. {
  3715. /** @var \Illuminate\Cache\Repository $instance */
  3716. $instance->setEventDispatcher($events);
  3717. }
  3718. /**
  3719. * Determine if a cached value exists.
  3720. *
  3721. * @param string $key
  3722. * @return bool
  3723. * @static
  3724. */
  3725. public static function offsetExists($key)
  3726. {
  3727. /** @var \Illuminate\Cache\Repository $instance */
  3728. return $instance->offsetExists($key);
  3729. }
  3730. /**
  3731. * Retrieve an item from the cache by key.
  3732. *
  3733. * @param string $key
  3734. * @return mixed
  3735. * @static
  3736. */
  3737. public static function offsetGet($key)
  3738. {
  3739. /** @var \Illuminate\Cache\Repository $instance */
  3740. return $instance->offsetGet($key);
  3741. }
  3742. /**
  3743. * Store an item in the cache for the default time.
  3744. *
  3745. * @param string $key
  3746. * @param mixed $value
  3747. * @return void
  3748. * @static
  3749. */
  3750. public static function offsetSet($key, $value)
  3751. {
  3752. /** @var \Illuminate\Cache\Repository $instance */
  3753. $instance->offsetSet($key, $value);
  3754. }
  3755. /**
  3756. * Remove an item from the cache.
  3757. *
  3758. * @param string $key
  3759. * @return void
  3760. * @static
  3761. */
  3762. public static function offsetUnset($key)
  3763. {
  3764. /** @var \Illuminate\Cache\Repository $instance */
  3765. $instance->offsetUnset($key);
  3766. }
  3767. /**
  3768. * Register a custom macro.
  3769. *
  3770. * @param string $name
  3771. * @param object|callable $macro
  3772. * @return void
  3773. * @static
  3774. */
  3775. public static function macro($name, $macro)
  3776. {
  3777. \Illuminate\Cache\Repository::macro($name, $macro);
  3778. }
  3779. /**
  3780. * Mix another object into the class.
  3781. *
  3782. * @param object $mixin
  3783. * @param bool $replace
  3784. * @return void
  3785. * @throws \ReflectionException
  3786. * @static
  3787. */
  3788. public static function mixin($mixin, $replace = true)
  3789. {
  3790. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3791. }
  3792. /**
  3793. * Checks if macro is registered.
  3794. *
  3795. * @param string $name
  3796. * @return bool
  3797. * @static
  3798. */
  3799. public static function hasMacro($name)
  3800. {
  3801. return \Illuminate\Cache\Repository::hasMacro($name);
  3802. }
  3803. /**
  3804. * Dynamically handle calls to the class.
  3805. *
  3806. * @param string $method
  3807. * @param array $parameters
  3808. * @return mixed
  3809. * @throws \BadMethodCallException
  3810. * @static
  3811. */
  3812. public static function macroCall($method, $parameters)
  3813. {
  3814. /** @var \Illuminate\Cache\Repository $instance */
  3815. return $instance->macroCall($method, $parameters);
  3816. }
  3817. /**
  3818. * Remove all items from the cache.
  3819. *
  3820. * @return bool
  3821. * @static
  3822. */
  3823. public static function flush()
  3824. {
  3825. /** @var \Illuminate\Cache\FileStore $instance */
  3826. return $instance->flush();
  3827. }
  3828. /**
  3829. * Get the Filesystem instance.
  3830. *
  3831. * @return \Illuminate\Filesystem\Filesystem
  3832. * @static
  3833. */
  3834. public static function getFilesystem()
  3835. {
  3836. /** @var \Illuminate\Cache\FileStore $instance */
  3837. return $instance->getFilesystem();
  3838. }
  3839. /**
  3840. * Get the working directory of the cache.
  3841. *
  3842. * @return string
  3843. * @static
  3844. */
  3845. public static function getDirectory()
  3846. {
  3847. /** @var \Illuminate\Cache\FileStore $instance */
  3848. return $instance->getDirectory();
  3849. }
  3850. /**
  3851. * Get the cache key prefix.
  3852. *
  3853. * @return string
  3854. * @static
  3855. */
  3856. public static function getPrefix()
  3857. {
  3858. /** @var \Illuminate\Cache\FileStore $instance */
  3859. return $instance->getPrefix();
  3860. }
  3861. /**
  3862. * Get a lock instance.
  3863. *
  3864. * @param string $name
  3865. * @param int $seconds
  3866. * @param string|null $owner
  3867. * @return \Illuminate\Contracts\Cache\Lock
  3868. * @static
  3869. */
  3870. public static function lock($name, $seconds = 0, $owner = null)
  3871. {
  3872. /** @var \Illuminate\Cache\FileStore $instance */
  3873. return $instance->lock($name, $seconds, $owner);
  3874. }
  3875. /**
  3876. * Restore a lock instance using the owner identifier.
  3877. *
  3878. * @param string $name
  3879. * @param string $owner
  3880. * @return \Illuminate\Contracts\Cache\Lock
  3881. * @static
  3882. */
  3883. public static function restoreLock($name, $owner)
  3884. {
  3885. /** @var \Illuminate\Cache\FileStore $instance */
  3886. return $instance->restoreLock($name, $owner);
  3887. }
  3888. }
  3889. /**
  3890. *
  3891. *
  3892. * @see \Illuminate\Config\Repository
  3893. */
  3894. class Config {
  3895. /**
  3896. * Determine if the given configuration value exists.
  3897. *
  3898. * @param string $key
  3899. * @return bool
  3900. * @static
  3901. */
  3902. public static function has($key)
  3903. {
  3904. /** @var \Illuminate\Config\Repository $instance */
  3905. return $instance->has($key);
  3906. }
  3907. /**
  3908. * Get the specified configuration value.
  3909. *
  3910. * @param array|string $key
  3911. * @param mixed $default
  3912. * @return mixed
  3913. * @static
  3914. */
  3915. public static function get($key, $default = null)
  3916. {
  3917. /** @var \Illuminate\Config\Repository $instance */
  3918. return $instance->get($key, $default);
  3919. }
  3920. /**
  3921. * Get many configuration values.
  3922. *
  3923. * @param array $keys
  3924. * @return array
  3925. * @static
  3926. */
  3927. public static function getMany($keys)
  3928. {
  3929. /** @var \Illuminate\Config\Repository $instance */
  3930. return $instance->getMany($keys);
  3931. }
  3932. /**
  3933. * Set a given configuration value.
  3934. *
  3935. * @param array|string $key
  3936. * @param mixed $value
  3937. * @return void
  3938. * @static
  3939. */
  3940. public static function set($key, $value = null)
  3941. {
  3942. /** @var \Illuminate\Config\Repository $instance */
  3943. $instance->set($key, $value);
  3944. }
  3945. /**
  3946. * Prepend a value onto an array configuration value.
  3947. *
  3948. * @param string $key
  3949. * @param mixed $value
  3950. * @return void
  3951. * @static
  3952. */
  3953. public static function prepend($key, $value)
  3954. {
  3955. /** @var \Illuminate\Config\Repository $instance */
  3956. $instance->prepend($key, $value);
  3957. }
  3958. /**
  3959. * Push a value onto an array configuration value.
  3960. *
  3961. * @param string $key
  3962. * @param mixed $value
  3963. * @return void
  3964. * @static
  3965. */
  3966. public static function push($key, $value)
  3967. {
  3968. /** @var \Illuminate\Config\Repository $instance */
  3969. $instance->push($key, $value);
  3970. }
  3971. /**
  3972. * Get all of the configuration items for the application.
  3973. *
  3974. * @return array
  3975. * @static
  3976. */
  3977. public static function all()
  3978. {
  3979. /** @var \Illuminate\Config\Repository $instance */
  3980. return $instance->all();
  3981. }
  3982. /**
  3983. * Determine if the given configuration option exists.
  3984. *
  3985. * @param string $key
  3986. * @return bool
  3987. * @static
  3988. */
  3989. public static function offsetExists($key)
  3990. {
  3991. /** @var \Illuminate\Config\Repository $instance */
  3992. return $instance->offsetExists($key);
  3993. }
  3994. /**
  3995. * Get a configuration option.
  3996. *
  3997. * @param string $key
  3998. * @return mixed
  3999. * @static
  4000. */
  4001. public static function offsetGet($key)
  4002. {
  4003. /** @var \Illuminate\Config\Repository $instance */
  4004. return $instance->offsetGet($key);
  4005. }
  4006. /**
  4007. * Set a configuration option.
  4008. *
  4009. * @param string $key
  4010. * @param mixed $value
  4011. * @return void
  4012. * @static
  4013. */
  4014. public static function offsetSet($key, $value)
  4015. {
  4016. /** @var \Illuminate\Config\Repository $instance */
  4017. $instance->offsetSet($key, $value);
  4018. }
  4019. /**
  4020. * Unset a configuration option.
  4021. *
  4022. * @param string $key
  4023. * @return void
  4024. * @static
  4025. */
  4026. public static function offsetUnset($key)
  4027. {
  4028. /** @var \Illuminate\Config\Repository $instance */
  4029. $instance->offsetUnset($key);
  4030. }
  4031. }
  4032. /**
  4033. *
  4034. *
  4035. * @see \Illuminate\Cookie\CookieJar
  4036. */
  4037. class Cookie {
  4038. /**
  4039. * Create a new cookie instance.
  4040. *
  4041. * @param string $name
  4042. * @param string $value
  4043. * @param int $minutes
  4044. * @param string|null $path
  4045. * @param string|null $domain
  4046. * @param bool|null $secure
  4047. * @param bool $httpOnly
  4048. * @param bool $raw
  4049. * @param string|null $sameSite
  4050. * @return \Symfony\Component\HttpFoundation\Cookie
  4051. * @static
  4052. */
  4053. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4054. {
  4055. /** @var \Illuminate\Cookie\CookieJar $instance */
  4056. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4057. }
  4058. /**
  4059. * Create a cookie that lasts "forever" (five years).
  4060. *
  4061. * @param string $name
  4062. * @param string $value
  4063. * @param string|null $path
  4064. * @param string|null $domain
  4065. * @param bool|null $secure
  4066. * @param bool $httpOnly
  4067. * @param bool $raw
  4068. * @param string|null $sameSite
  4069. * @return \Symfony\Component\HttpFoundation\Cookie
  4070. * @static
  4071. */
  4072. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  4073. {
  4074. /** @var \Illuminate\Cookie\CookieJar $instance */
  4075. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  4076. }
  4077. /**
  4078. * Expire the given cookie.
  4079. *
  4080. * @param string $name
  4081. * @param string|null $path
  4082. * @param string|null $domain
  4083. * @return \Symfony\Component\HttpFoundation\Cookie
  4084. * @static
  4085. */
  4086. public static function forget($name, $path = null, $domain = null)
  4087. {
  4088. /** @var \Illuminate\Cookie\CookieJar $instance */
  4089. return $instance->forget($name, $path, $domain);
  4090. }
  4091. /**
  4092. * Determine if a cookie has been queued.
  4093. *
  4094. * @param string $key
  4095. * @param string|null $path
  4096. * @return bool
  4097. * @static
  4098. */
  4099. public static function hasQueued($key, $path = null)
  4100. {
  4101. /** @var \Illuminate\Cookie\CookieJar $instance */
  4102. return $instance->hasQueued($key, $path);
  4103. }
  4104. /**
  4105. * Get a queued cookie instance.
  4106. *
  4107. * @param string $key
  4108. * @param mixed $default
  4109. * @param string|null $path
  4110. * @return \Symfony\Component\HttpFoundation\Cookie|null
  4111. * @static
  4112. */
  4113. public static function queued($key, $default = null, $path = null)
  4114. {
  4115. /** @var \Illuminate\Cookie\CookieJar $instance */
  4116. return $instance->queued($key, $default, $path);
  4117. }
  4118. /**
  4119. * Queue a cookie to send with the next response.
  4120. *
  4121. * @param array $parameters
  4122. * @return void
  4123. * @static
  4124. */
  4125. public static function queue(...$parameters)
  4126. {
  4127. /** @var \Illuminate\Cookie\CookieJar $instance */
  4128. $instance->queue(...$parameters);
  4129. }
  4130. /**
  4131. * Queue a cookie to expire with the next response.
  4132. *
  4133. * @param string $name
  4134. * @param string|null $path
  4135. * @param string|null $domain
  4136. * @return void
  4137. * @static
  4138. */
  4139. public static function expire($name, $path = null, $domain = null)
  4140. {
  4141. /** @var \Illuminate\Cookie\CookieJar $instance */
  4142. $instance->expire($name, $path, $domain);
  4143. }
  4144. /**
  4145. * Remove a cookie from the queue.
  4146. *
  4147. * @param string $name
  4148. * @param string|null $path
  4149. * @return void
  4150. * @static
  4151. */
  4152. public static function unqueue($name, $path = null)
  4153. {
  4154. /** @var \Illuminate\Cookie\CookieJar $instance */
  4155. $instance->unqueue($name, $path);
  4156. }
  4157. /**
  4158. * Set the default path and domain for the jar.
  4159. *
  4160. * @param string $path
  4161. * @param string $domain
  4162. * @param bool $secure
  4163. * @param string|null $sameSite
  4164. * @return \Illuminate\Cookie\CookieJar
  4165. * @static
  4166. */
  4167. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  4168. {
  4169. /** @var \Illuminate\Cookie\CookieJar $instance */
  4170. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  4171. }
  4172. /**
  4173. * Get the cookies which have been queued for the next request.
  4174. *
  4175. * @return \Symfony\Component\HttpFoundation\Cookie[]
  4176. * @static
  4177. */
  4178. public static function getQueuedCookies()
  4179. {
  4180. /** @var \Illuminate\Cookie\CookieJar $instance */
  4181. return $instance->getQueuedCookies();
  4182. }
  4183. /**
  4184. * Flush the cookies which have been queued for the next request.
  4185. *
  4186. * @return \Illuminate\Cookie\CookieJar
  4187. * @static
  4188. */
  4189. public static function flushQueuedCookies()
  4190. {
  4191. /** @var \Illuminate\Cookie\CookieJar $instance */
  4192. return $instance->flushQueuedCookies();
  4193. }
  4194. /**
  4195. * Register a custom macro.
  4196. *
  4197. * @param string $name
  4198. * @param object|callable $macro
  4199. * @return void
  4200. * @static
  4201. */
  4202. public static function macro($name, $macro)
  4203. {
  4204. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  4205. }
  4206. /**
  4207. * Mix another object into the class.
  4208. *
  4209. * @param object $mixin
  4210. * @param bool $replace
  4211. * @return void
  4212. * @throws \ReflectionException
  4213. * @static
  4214. */
  4215. public static function mixin($mixin, $replace = true)
  4216. {
  4217. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  4218. }
  4219. /**
  4220. * Checks if macro is registered.
  4221. *
  4222. * @param string $name
  4223. * @return bool
  4224. * @static
  4225. */
  4226. public static function hasMacro($name)
  4227. {
  4228. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  4229. }
  4230. }
  4231. /**
  4232. *
  4233. *
  4234. * @see \Illuminate\Encryption\Encrypter
  4235. */
  4236. class Crypt {
  4237. /**
  4238. * Determine if the given key and cipher combination is valid.
  4239. *
  4240. * @param string $key
  4241. * @param string $cipher
  4242. * @return bool
  4243. * @static
  4244. */
  4245. public static function supported($key, $cipher)
  4246. {
  4247. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  4248. }
  4249. /**
  4250. * Create a new encryption key for the given cipher.
  4251. *
  4252. * @param string $cipher
  4253. * @return string
  4254. * @static
  4255. */
  4256. public static function generateKey($cipher)
  4257. {
  4258. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  4259. }
  4260. /**
  4261. * Encrypt the given value.
  4262. *
  4263. * @param mixed $value
  4264. * @param bool $serialize
  4265. * @return string
  4266. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4267. * @static
  4268. */
  4269. public static function encrypt($value, $serialize = true)
  4270. {
  4271. /** @var \Illuminate\Encryption\Encrypter $instance */
  4272. return $instance->encrypt($value, $serialize);
  4273. }
  4274. /**
  4275. * Encrypt a string without serialization.
  4276. *
  4277. * @param string $value
  4278. * @return string
  4279. * @throws \Illuminate\Contracts\Encryption\EncryptException
  4280. * @static
  4281. */
  4282. public static function encryptString($value)
  4283. {
  4284. /** @var \Illuminate\Encryption\Encrypter $instance */
  4285. return $instance->encryptString($value);
  4286. }
  4287. /**
  4288. * Decrypt the given value.
  4289. *
  4290. * @param string $payload
  4291. * @param bool $unserialize
  4292. * @return mixed
  4293. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4294. * @static
  4295. */
  4296. public static function decrypt($payload, $unserialize = true)
  4297. {
  4298. /** @var \Illuminate\Encryption\Encrypter $instance */
  4299. return $instance->decrypt($payload, $unserialize);
  4300. }
  4301. /**
  4302. * Decrypt the given string without unserialization.
  4303. *
  4304. * @param string $payload
  4305. * @return string
  4306. * @throws \Illuminate\Contracts\Encryption\DecryptException
  4307. * @static
  4308. */
  4309. public static function decryptString($payload)
  4310. {
  4311. /** @var \Illuminate\Encryption\Encrypter $instance */
  4312. return $instance->decryptString($payload);
  4313. }
  4314. /**
  4315. * Get the encryption key.
  4316. *
  4317. * @return string
  4318. * @static
  4319. */
  4320. public static function getKey()
  4321. {
  4322. /** @var \Illuminate\Encryption\Encrypter $instance */
  4323. return $instance->getKey();
  4324. }
  4325. }
  4326. /**
  4327. *
  4328. *
  4329. * @see https://carbon.nesbot.com/docs/
  4330. * @see https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Factory.php
  4331. * @method static \Illuminate\Support\Carbon create($year = 0, $month = 1, $day = 1, $hour = 0, $minute = 0, $second = 0, $tz = null)
  4332. * @method static \Illuminate\Support\Carbon createFromDate($year = null, $month = null, $day = null, $tz = null)
  4333. * @method static \Illuminate\Support\Carbon createFromTime($hour = 0, $minute = 0, $second = 0, $tz = null)
  4334. * @method static \Illuminate\Support\Carbon createFromTimeString($time, $tz = null)
  4335. * @method static \Illuminate\Support\Carbon createFromTimestamp($timestamp, $tz = null)
  4336. * @method static \Illuminate\Support\Carbon createFromTimestampMs($timestamp, $tz = null)
  4337. * @method static \Illuminate\Support\Carbon createFromTimestampUTC($timestamp)
  4338. * @method static \Illuminate\Support\Carbon createMidnightDate($year = null, $month = null, $day = null, $tz = null)
  4339. * @method static \Illuminate\Support\Carbon disableHumanDiffOption($humanDiffOption)
  4340. * @method static \Illuminate\Support\Carbon enableHumanDiffOption($humanDiffOption)
  4341. * @method static \Illuminate\Support\Carbon fromSerialized($value)
  4342. * @method static \Illuminate\Support\Carbon getLastErrors()
  4343. * @method static \Illuminate\Support\Carbon getTestNow()
  4344. * @method static \Illuminate\Support\Carbon instance($date)
  4345. * @method static \Illuminate\Support\Carbon isMutable()
  4346. * @method static \Illuminate\Support\Carbon maxValue()
  4347. * @method static \Illuminate\Support\Carbon minValue()
  4348. * @method static \Illuminate\Support\Carbon now($tz = null)
  4349. * @method static \Illuminate\Support\Carbon parse($time = null, $tz = null)
  4350. * @method static \Illuminate\Support\Carbon setHumanDiffOptions($humanDiffOptions)
  4351. * @method static \Illuminate\Support\Carbon setTestNow($testNow = null)
  4352. * @method static \Illuminate\Support\Carbon setUtf8($utf8)
  4353. * @method static \Illuminate\Support\Carbon today($tz = null)
  4354. * @method static \Illuminate\Support\Carbon tomorrow($tz = null)
  4355. * @method static \Illuminate\Support\Carbon useStrictMode($strictModeEnabled = true)
  4356. * @method static \Illuminate\Support\Carbon yesterday($tz = null)
  4357. * @method static \Illuminate\Support\Carbon|false createFromFormat($format, $time, $tz = null)
  4358. * @method static \Illuminate\Support\Carbon|false createSafe($year = null, $month = null, $day = null, $hour = null, $minute = null, $second = null, $tz = null)
  4359. * @method static \Illuminate\Support\Carbon|null make($var)
  4360. * @method static \Symfony\Component\Translation\TranslatorInterface getTranslator()
  4361. * @method static array getAvailableLocales()
  4362. * @method static array getDays()
  4363. * @method static array getIsoUnits()
  4364. * @method static array getWeekendDays()
  4365. * @method static bool hasFormat($date, $format)
  4366. * @method static bool hasMacro($name)
  4367. * @method static bool hasRelativeKeywords($time)
  4368. * @method static bool hasTestNow()
  4369. * @method static bool isImmutable()
  4370. * @method static bool isModifiableUnit($unit)
  4371. * @method static bool isStrictModeEnabled()
  4372. * @method static bool localeHasDiffOneDayWords($locale)
  4373. * @method static bool localeHasDiffSyntax($locale)
  4374. * @method static bool localeHasDiffTwoDayWords($locale)
  4375. * @method static bool localeHasPeriodSyntax($locale)
  4376. * @method static bool localeHasShortUnits($locale)
  4377. * @method static bool setLocale($locale)
  4378. * @method static bool shouldOverflowMonths()
  4379. * @method static bool shouldOverflowYears()
  4380. * @method static int getHumanDiffOptions()
  4381. * @method static int getMidDayAt()
  4382. * @method static int getWeekEndsAt()
  4383. * @method static int getWeekStartsAt()
  4384. * @method static mixed executeWithLocale($locale, $func)
  4385. * @method static string getLocale()
  4386. * @method static string pluralUnit(string $unit)
  4387. * @method static string singularUnit(string $unit)
  4388. * @method static void macro($name, $macro)
  4389. * @method static void mixin($mixin)
  4390. * @method static void resetMonthsOverflow()
  4391. * @method static void resetToStringFormat()
  4392. * @method static void resetYearsOverflow()
  4393. * @method static void serializeUsing($callback)
  4394. * @method static void setMidDayAt($hour)
  4395. * @method static void setToStringFormat($format)
  4396. * @method static void setTranslator(\Symfony\Component\Translation\TranslatorInterface $translator)
  4397. * @method static void setWeekEndsAt($day)
  4398. * @method static void setWeekStartsAt($day)
  4399. * @method static void setWeekendDays($days)
  4400. * @method static void useMonthsOverflow($monthsOverflow = true)
  4401. * @method static void useYearsOverflow($yearsOverflow = true)
  4402. */
  4403. class Date {
  4404. /**
  4405. * Use the given handler when generating dates (class name, callable, or factory).
  4406. *
  4407. * @param mixed $handler
  4408. * @return mixed
  4409. * @throws \InvalidArgumentException
  4410. * @static
  4411. */
  4412. public static function use($handler)
  4413. {
  4414. return \Illuminate\Support\DateFactory::use($handler);
  4415. }
  4416. /**
  4417. * Use the default date class when generating dates.
  4418. *
  4419. * @return void
  4420. * @static
  4421. */
  4422. public static function useDefault()
  4423. {
  4424. \Illuminate\Support\DateFactory::useDefault();
  4425. }
  4426. /**
  4427. * Execute the given callable on each date creation.
  4428. *
  4429. * @param callable $callable
  4430. * @return void
  4431. * @static
  4432. */
  4433. public static function useCallable($callable)
  4434. {
  4435. \Illuminate\Support\DateFactory::useCallable($callable);
  4436. }
  4437. /**
  4438. * Use the given date type (class) when generating dates.
  4439. *
  4440. * @param string $dateClass
  4441. * @return void
  4442. * @static
  4443. */
  4444. public static function useClass($dateClass)
  4445. {
  4446. \Illuminate\Support\DateFactory::useClass($dateClass);
  4447. }
  4448. /**
  4449. * Use the given Carbon factory when generating dates.
  4450. *
  4451. * @param object $factory
  4452. * @return void
  4453. * @static
  4454. */
  4455. public static function useFactory($factory)
  4456. {
  4457. \Illuminate\Support\DateFactory::useFactory($factory);
  4458. }
  4459. }
  4460. /**
  4461. *
  4462. *
  4463. * @see \Illuminate\Database\DatabaseManager
  4464. * @see \Illuminate\Database\Connection
  4465. */
  4466. class DB {
  4467. /**
  4468. * Get a database connection instance.
  4469. *
  4470. * @param string|null $name
  4471. * @return \Illuminate\Database\Connection
  4472. * @static
  4473. */
  4474. public static function connection($name = null)
  4475. {
  4476. /** @var \Illuminate\Database\DatabaseManager $instance */
  4477. return $instance->connection($name);
  4478. }
  4479. /**
  4480. * Disconnect from the given database and remove from local cache.
  4481. *
  4482. * @param string|null $name
  4483. * @return void
  4484. * @static
  4485. */
  4486. public static function purge($name = null)
  4487. {
  4488. /** @var \Illuminate\Database\DatabaseManager $instance */
  4489. $instance->purge($name);
  4490. }
  4491. /**
  4492. * Disconnect from the given database.
  4493. *
  4494. * @param string|null $name
  4495. * @return void
  4496. * @static
  4497. */
  4498. public static function disconnect($name = null)
  4499. {
  4500. /** @var \Illuminate\Database\DatabaseManager $instance */
  4501. $instance->disconnect($name);
  4502. }
  4503. /**
  4504. * Reconnect to the given database.
  4505. *
  4506. * @param string|null $name
  4507. * @return \Illuminate\Database\Connection
  4508. * @static
  4509. */
  4510. public static function reconnect($name = null)
  4511. {
  4512. /** @var \Illuminate\Database\DatabaseManager $instance */
  4513. return $instance->reconnect($name);
  4514. }
  4515. /**
  4516. * Set the default database connection for the callback execution.
  4517. *
  4518. * @param string $name
  4519. * @param callable $callback
  4520. * @return mixed
  4521. * @static
  4522. */
  4523. public static function usingConnection($name, $callback)
  4524. {
  4525. /** @var \Illuminate\Database\DatabaseManager $instance */
  4526. return $instance->usingConnection($name, $callback);
  4527. }
  4528. /**
  4529. * Get the default connection name.
  4530. *
  4531. * @return string
  4532. * @static
  4533. */
  4534. public static function getDefaultConnection()
  4535. {
  4536. /** @var \Illuminate\Database\DatabaseManager $instance */
  4537. return $instance->getDefaultConnection();
  4538. }
  4539. /**
  4540. * Set the default connection name.
  4541. *
  4542. * @param string $name
  4543. * @return void
  4544. * @static
  4545. */
  4546. public static function setDefaultConnection($name)
  4547. {
  4548. /** @var \Illuminate\Database\DatabaseManager $instance */
  4549. $instance->setDefaultConnection($name);
  4550. }
  4551. /**
  4552. * Get all of the support drivers.
  4553. *
  4554. * @return array
  4555. * @static
  4556. */
  4557. public static function supportedDrivers()
  4558. {
  4559. /** @var \Illuminate\Database\DatabaseManager $instance */
  4560. return $instance->supportedDrivers();
  4561. }
  4562. /**
  4563. * Get all of the drivers that are actually available.
  4564. *
  4565. * @return array
  4566. * @static
  4567. */
  4568. public static function availableDrivers()
  4569. {
  4570. /** @var \Illuminate\Database\DatabaseManager $instance */
  4571. return $instance->availableDrivers();
  4572. }
  4573. /**
  4574. * Register an extension connection resolver.
  4575. *
  4576. * @param string $name
  4577. * @param callable $resolver
  4578. * @return void
  4579. * @static
  4580. */
  4581. public static function extend($name, $resolver)
  4582. {
  4583. /** @var \Illuminate\Database\DatabaseManager $instance */
  4584. $instance->extend($name, $resolver);
  4585. }
  4586. /**
  4587. * Return all of the created connections.
  4588. *
  4589. * @return array
  4590. * @static
  4591. */
  4592. public static function getConnections()
  4593. {
  4594. /** @var \Illuminate\Database\DatabaseManager $instance */
  4595. return $instance->getConnections();
  4596. }
  4597. /**
  4598. * Set the database reconnector callback.
  4599. *
  4600. * @param callable $reconnector
  4601. * @return void
  4602. * @static
  4603. */
  4604. public static function setReconnector($reconnector)
  4605. {
  4606. /** @var \Illuminate\Database\DatabaseManager $instance */
  4607. $instance->setReconnector($reconnector);
  4608. }
  4609. /**
  4610. * Set the application instance used by the manager.
  4611. *
  4612. * @param \Illuminate\Contracts\Foundation\Application $app
  4613. * @return \Illuminate\Database\DatabaseManager
  4614. * @static
  4615. */
  4616. public static function setApplication($app)
  4617. {
  4618. /** @var \Illuminate\Database\DatabaseManager $instance */
  4619. return $instance->setApplication($app);
  4620. }
  4621. /**
  4622. * Determine if the connected database is a MariaDB database.
  4623. *
  4624. * @return bool
  4625. * @static
  4626. */
  4627. public static function isMaria()
  4628. {
  4629. /** @var \Illuminate\Database\MySqlConnection $instance */
  4630. return $instance->isMaria();
  4631. }
  4632. /**
  4633. * Get a schema builder instance for the connection.
  4634. *
  4635. * @return \Illuminate\Database\Schema\MySqlBuilder
  4636. * @static
  4637. */
  4638. public static function getSchemaBuilder()
  4639. {
  4640. /** @var \Illuminate\Database\MySqlConnection $instance */
  4641. return $instance->getSchemaBuilder();
  4642. }
  4643. /**
  4644. * Get the schema state for the connection.
  4645. *
  4646. * @param \Illuminate\Filesystem\Filesystem|null $files
  4647. * @param callable|null $processFactory
  4648. * @return \Illuminate\Database\Schema\MySqlSchemaState
  4649. * @static
  4650. */
  4651. public static function getSchemaState($files = null, $processFactory = null)
  4652. {
  4653. /** @var \Illuminate\Database\MySqlConnection $instance */
  4654. return $instance->getSchemaState($files, $processFactory);
  4655. }
  4656. /**
  4657. * Set the query grammar to the default implementation.
  4658. *
  4659. * @return void
  4660. * @static
  4661. */
  4662. public static function useDefaultQueryGrammar()
  4663. { //Method inherited from \Illuminate\Database\Connection
  4664. /** @var \Illuminate\Database\MySqlConnection $instance */
  4665. $instance->useDefaultQueryGrammar();
  4666. }
  4667. /**
  4668. * Set the schema grammar to the default implementation.
  4669. *
  4670. * @return void
  4671. * @static
  4672. */
  4673. public static function useDefaultSchemaGrammar()
  4674. { //Method inherited from \Illuminate\Database\Connection
  4675. /** @var \Illuminate\Database\MySqlConnection $instance */
  4676. $instance->useDefaultSchemaGrammar();
  4677. }
  4678. /**
  4679. * Set the query post processor to the default implementation.
  4680. *
  4681. * @return void
  4682. * @static
  4683. */
  4684. public static function useDefaultPostProcessor()
  4685. { //Method inherited from \Illuminate\Database\Connection
  4686. /** @var \Illuminate\Database\MySqlConnection $instance */
  4687. $instance->useDefaultPostProcessor();
  4688. }
  4689. /**
  4690. * Begin a fluent query against a database table.
  4691. *
  4692. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  4693. * @param string|null $as
  4694. * @return \Illuminate\Database\Query\Builder
  4695. * @static
  4696. */
  4697. public static function table($table, $as = null)
  4698. { //Method inherited from \Illuminate\Database\Connection
  4699. /** @var \Illuminate\Database\MySqlConnection $instance */
  4700. return $instance->table($table, $as);
  4701. }
  4702. /**
  4703. * Get a new query builder instance.
  4704. *
  4705. * @return \Illuminate\Database\Query\Builder
  4706. * @static
  4707. */
  4708. public static function query()
  4709. { //Method inherited from \Illuminate\Database\Connection
  4710. /** @var \Illuminate\Database\MySqlConnection $instance */
  4711. return $instance->query();
  4712. }
  4713. /**
  4714. * Run a select statement and return a single result.
  4715. *
  4716. * @param string $query
  4717. * @param array $bindings
  4718. * @param bool $useReadPdo
  4719. * @return mixed
  4720. * @static
  4721. */
  4722. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  4723. { //Method inherited from \Illuminate\Database\Connection
  4724. /** @var \Illuminate\Database\MySqlConnection $instance */
  4725. return $instance->selectOne($query, $bindings, $useReadPdo);
  4726. }
  4727. /**
  4728. * Run a select statement against the database.
  4729. *
  4730. * @param string $query
  4731. * @param array $bindings
  4732. * @return array
  4733. * @static
  4734. */
  4735. public static function selectFromWriteConnection($query, $bindings = [])
  4736. { //Method inherited from \Illuminate\Database\Connection
  4737. /** @var \Illuminate\Database\MySqlConnection $instance */
  4738. return $instance->selectFromWriteConnection($query, $bindings);
  4739. }
  4740. /**
  4741. * Run a select statement against the database.
  4742. *
  4743. * @param string $query
  4744. * @param array $bindings
  4745. * @param bool $useReadPdo
  4746. * @return array
  4747. * @static
  4748. */
  4749. public static function select($query, $bindings = [], $useReadPdo = true)
  4750. { //Method inherited from \Illuminate\Database\Connection
  4751. /** @var \Illuminate\Database\MySqlConnection $instance */
  4752. return $instance->select($query, $bindings, $useReadPdo);
  4753. }
  4754. /**
  4755. * Run a select statement against the database and returns a generator.
  4756. *
  4757. * @param string $query
  4758. * @param array $bindings
  4759. * @param bool $useReadPdo
  4760. * @return \Generator
  4761. * @static
  4762. */
  4763. public static function cursor($query, $bindings = [], $useReadPdo = true)
  4764. { //Method inherited from \Illuminate\Database\Connection
  4765. /** @var \Illuminate\Database\MySqlConnection $instance */
  4766. return $instance->cursor($query, $bindings, $useReadPdo);
  4767. }
  4768. /**
  4769. * Run an insert statement against the database.
  4770. *
  4771. * @param string $query
  4772. * @param array $bindings
  4773. * @return bool
  4774. * @static
  4775. */
  4776. public static function insert($query, $bindings = [])
  4777. { //Method inherited from \Illuminate\Database\Connection
  4778. /** @var \Illuminate\Database\MySqlConnection $instance */
  4779. return $instance->insert($query, $bindings);
  4780. }
  4781. /**
  4782. * Run an update statement against the database.
  4783. *
  4784. * @param string $query
  4785. * @param array $bindings
  4786. * @return int
  4787. * @static
  4788. */
  4789. public static function update($query, $bindings = [])
  4790. { //Method inherited from \Illuminate\Database\Connection
  4791. /** @var \Illuminate\Database\MySqlConnection $instance */
  4792. return $instance->update($query, $bindings);
  4793. }
  4794. /**
  4795. * Run a delete statement against the database.
  4796. *
  4797. * @param string $query
  4798. * @param array $bindings
  4799. * @return int
  4800. * @static
  4801. */
  4802. public static function delete($query, $bindings = [])
  4803. { //Method inherited from \Illuminate\Database\Connection
  4804. /** @var \Illuminate\Database\MySqlConnection $instance */
  4805. return $instance->delete($query, $bindings);
  4806. }
  4807. /**
  4808. * Execute an SQL statement and return the boolean result.
  4809. *
  4810. * @param string $query
  4811. * @param array $bindings
  4812. * @return bool
  4813. * @static
  4814. */
  4815. public static function statement($query, $bindings = [])
  4816. { //Method inherited from \Illuminate\Database\Connection
  4817. /** @var \Illuminate\Database\MySqlConnection $instance */
  4818. return $instance->statement($query, $bindings);
  4819. }
  4820. /**
  4821. * Run an SQL statement and get the number of rows affected.
  4822. *
  4823. * @param string $query
  4824. * @param array $bindings
  4825. * @return int
  4826. * @static
  4827. */
  4828. public static function affectingStatement($query, $bindings = [])
  4829. { //Method inherited from \Illuminate\Database\Connection
  4830. /** @var \Illuminate\Database\MySqlConnection $instance */
  4831. return $instance->affectingStatement($query, $bindings);
  4832. }
  4833. /**
  4834. * Run a raw, unprepared query against the PDO connection.
  4835. *
  4836. * @param string $query
  4837. * @return bool
  4838. * @static
  4839. */
  4840. public static function unprepared($query)
  4841. { //Method inherited from \Illuminate\Database\Connection
  4842. /** @var \Illuminate\Database\MySqlConnection $instance */
  4843. return $instance->unprepared($query);
  4844. }
  4845. /**
  4846. * Execute the given callback in "dry run" mode.
  4847. *
  4848. * @param \Closure $callback
  4849. * @return array
  4850. * @static
  4851. */
  4852. public static function pretend($callback)
  4853. { //Method inherited from \Illuminate\Database\Connection
  4854. /** @var \Illuminate\Database\MySqlConnection $instance */
  4855. return $instance->pretend($callback);
  4856. }
  4857. /**
  4858. * Bind values to their parameters in the given statement.
  4859. *
  4860. * @param \PDOStatement $statement
  4861. * @param array $bindings
  4862. * @return void
  4863. * @static
  4864. */
  4865. public static function bindValues($statement, $bindings)
  4866. { //Method inherited from \Illuminate\Database\Connection
  4867. /** @var \Illuminate\Database\MySqlConnection $instance */
  4868. $instance->bindValues($statement, $bindings);
  4869. }
  4870. /**
  4871. * Prepare the query bindings for execution.
  4872. *
  4873. * @param array $bindings
  4874. * @return array
  4875. * @static
  4876. */
  4877. public static function prepareBindings($bindings)
  4878. { //Method inherited from \Illuminate\Database\Connection
  4879. /** @var \Illuminate\Database\MySqlConnection $instance */
  4880. return $instance->prepareBindings($bindings);
  4881. }
  4882. /**
  4883. * Log a query in the connection's query log.
  4884. *
  4885. * @param string $query
  4886. * @param array $bindings
  4887. * @param float|null $time
  4888. * @return void
  4889. * @static
  4890. */
  4891. public static function logQuery($query, $bindings, $time = null)
  4892. { //Method inherited from \Illuminate\Database\Connection
  4893. /** @var \Illuminate\Database\MySqlConnection $instance */
  4894. $instance->logQuery($query, $bindings, $time);
  4895. }
  4896. /**
  4897. * Register a database query listener with the connection.
  4898. *
  4899. * @param \Closure $callback
  4900. * @return void
  4901. * @static
  4902. */
  4903. public static function listen($callback)
  4904. { //Method inherited from \Illuminate\Database\Connection
  4905. /** @var \Illuminate\Database\MySqlConnection $instance */
  4906. $instance->listen($callback);
  4907. }
  4908. /**
  4909. * Get a new raw query expression.
  4910. *
  4911. * @param mixed $value
  4912. * @return \Illuminate\Database\Query\Expression
  4913. * @static
  4914. */
  4915. public static function raw($value)
  4916. { //Method inherited from \Illuminate\Database\Connection
  4917. /** @var \Illuminate\Database\MySqlConnection $instance */
  4918. return $instance->raw($value);
  4919. }
  4920. /**
  4921. * Determine if the database connection has modified any database records.
  4922. *
  4923. * @return bool
  4924. * @static
  4925. */
  4926. public static function hasModifiedRecords()
  4927. { //Method inherited from \Illuminate\Database\Connection
  4928. /** @var \Illuminate\Database\MySqlConnection $instance */
  4929. return $instance->hasModifiedRecords();
  4930. }
  4931. /**
  4932. * Indicate if any records have been modified.
  4933. *
  4934. * @param bool $value
  4935. * @return void
  4936. * @static
  4937. */
  4938. public static function recordsHaveBeenModified($value = true)
  4939. { //Method inherited from \Illuminate\Database\Connection
  4940. /** @var \Illuminate\Database\MySqlConnection $instance */
  4941. $instance->recordsHaveBeenModified($value);
  4942. }
  4943. /**
  4944. * Set the record modification state.
  4945. *
  4946. * @param bool $value
  4947. * @return \Illuminate\Database\MySqlConnection
  4948. * @static
  4949. */
  4950. public static function setRecordModificationState($value)
  4951. { //Method inherited from \Illuminate\Database\Connection
  4952. /** @var \Illuminate\Database\MySqlConnection $instance */
  4953. return $instance->setRecordModificationState($value);
  4954. }
  4955. /**
  4956. * Reset the record modification state.
  4957. *
  4958. * @return void
  4959. * @static
  4960. */
  4961. public static function forgetRecordModificationState()
  4962. { //Method inherited from \Illuminate\Database\Connection
  4963. /** @var \Illuminate\Database\MySqlConnection $instance */
  4964. $instance->forgetRecordModificationState();
  4965. }
  4966. /**
  4967. * Indicate that the connection should use the write PDO connection for reads.
  4968. *
  4969. * @param bool $value
  4970. * @return \Illuminate\Database\MySqlConnection
  4971. * @static
  4972. */
  4973. public static function useWriteConnectionWhenReading($value = true)
  4974. { //Method inherited from \Illuminate\Database\Connection
  4975. /** @var \Illuminate\Database\MySqlConnection $instance */
  4976. return $instance->useWriteConnectionWhenReading($value);
  4977. }
  4978. /**
  4979. * Is Doctrine available?
  4980. *
  4981. * @return bool
  4982. * @static
  4983. */
  4984. public static function isDoctrineAvailable()
  4985. { //Method inherited from \Illuminate\Database\Connection
  4986. /** @var \Illuminate\Database\MySqlConnection $instance */
  4987. return $instance->isDoctrineAvailable();
  4988. }
  4989. /**
  4990. * Get a Doctrine Schema Column instance.
  4991. *
  4992. * @param string $table
  4993. * @param string $column
  4994. * @return \Doctrine\DBAL\Schema\Column
  4995. * @static
  4996. */
  4997. public static function getDoctrineColumn($table, $column)
  4998. { //Method inherited from \Illuminate\Database\Connection
  4999. /** @var \Illuminate\Database\MySqlConnection $instance */
  5000. return $instance->getDoctrineColumn($table, $column);
  5001. }
  5002. /**
  5003. * Get the Doctrine DBAL schema manager for the connection.
  5004. *
  5005. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  5006. * @static
  5007. */
  5008. public static function getDoctrineSchemaManager()
  5009. { //Method inherited from \Illuminate\Database\Connection
  5010. /** @var \Illuminate\Database\MySqlConnection $instance */
  5011. return $instance->getDoctrineSchemaManager();
  5012. }
  5013. /**
  5014. * Get the Doctrine DBAL database connection instance.
  5015. *
  5016. * @return \Doctrine\DBAL\Connection
  5017. * @static
  5018. */
  5019. public static function getDoctrineConnection()
  5020. { //Method inherited from \Illuminate\Database\Connection
  5021. /** @var \Illuminate\Database\MySqlConnection $instance */
  5022. return $instance->getDoctrineConnection();
  5023. }
  5024. /**
  5025. * Get the current PDO connection.
  5026. *
  5027. * @return \PDO
  5028. * @static
  5029. */
  5030. public static function getPdo()
  5031. { //Method inherited from \Illuminate\Database\Connection
  5032. /** @var \Illuminate\Database\MySqlConnection $instance */
  5033. return $instance->getPdo();
  5034. }
  5035. /**
  5036. * Get the current PDO connection parameter without executing any reconnect logic.
  5037. *
  5038. * @return \PDO|\Closure|null
  5039. * @static
  5040. */
  5041. public static function getRawPdo()
  5042. { //Method inherited from \Illuminate\Database\Connection
  5043. /** @var \Illuminate\Database\MySqlConnection $instance */
  5044. return $instance->getRawPdo();
  5045. }
  5046. /**
  5047. * Get the current PDO connection used for reading.
  5048. *
  5049. * @return \PDO
  5050. * @static
  5051. */
  5052. public static function getReadPdo()
  5053. { //Method inherited from \Illuminate\Database\Connection
  5054. /** @var \Illuminate\Database\MySqlConnection $instance */
  5055. return $instance->getReadPdo();
  5056. }
  5057. /**
  5058. * Get the current read PDO connection parameter without executing any reconnect logic.
  5059. *
  5060. * @return \PDO|\Closure|null
  5061. * @static
  5062. */
  5063. public static function getRawReadPdo()
  5064. { //Method inherited from \Illuminate\Database\Connection
  5065. /** @var \Illuminate\Database\MySqlConnection $instance */
  5066. return $instance->getRawReadPdo();
  5067. }
  5068. /**
  5069. * Set the PDO connection.
  5070. *
  5071. * @param \PDO|\Closure|null $pdo
  5072. * @return \Illuminate\Database\MySqlConnection
  5073. * @static
  5074. */
  5075. public static function setPdo($pdo)
  5076. { //Method inherited from \Illuminate\Database\Connection
  5077. /** @var \Illuminate\Database\MySqlConnection $instance */
  5078. return $instance->setPdo($pdo);
  5079. }
  5080. /**
  5081. * Set the PDO connection used for reading.
  5082. *
  5083. * @param \PDO|\Closure|null $pdo
  5084. * @return \Illuminate\Database\MySqlConnection
  5085. * @static
  5086. */
  5087. public static function setReadPdo($pdo)
  5088. { //Method inherited from \Illuminate\Database\Connection
  5089. /** @var \Illuminate\Database\MySqlConnection $instance */
  5090. return $instance->setReadPdo($pdo);
  5091. }
  5092. /**
  5093. * Get the database connection name.
  5094. *
  5095. * @return string|null
  5096. * @static
  5097. */
  5098. public static function getName()
  5099. { //Method inherited from \Illuminate\Database\Connection
  5100. /** @var \Illuminate\Database\MySqlConnection $instance */
  5101. return $instance->getName();
  5102. }
  5103. /**
  5104. * Get the database connection full name.
  5105. *
  5106. * @return string|null
  5107. * @static
  5108. */
  5109. public static function getNameWithReadWriteType()
  5110. { //Method inherited from \Illuminate\Database\Connection
  5111. /** @var \Illuminate\Database\MySqlConnection $instance */
  5112. return $instance->getNameWithReadWriteType();
  5113. }
  5114. /**
  5115. * Get an option from the configuration options.
  5116. *
  5117. * @param string|null $option
  5118. * @return mixed
  5119. * @static
  5120. */
  5121. public static function getConfig($option = null)
  5122. { //Method inherited from \Illuminate\Database\Connection
  5123. /** @var \Illuminate\Database\MySqlConnection $instance */
  5124. return $instance->getConfig($option);
  5125. }
  5126. /**
  5127. * Get the PDO driver name.
  5128. *
  5129. * @return string
  5130. * @static
  5131. */
  5132. public static function getDriverName()
  5133. { //Method inherited from \Illuminate\Database\Connection
  5134. /** @var \Illuminate\Database\MySqlConnection $instance */
  5135. return $instance->getDriverName();
  5136. }
  5137. /**
  5138. * Get the query grammar used by the connection.
  5139. *
  5140. * @return \Illuminate\Database\Query\Grammars\Grammar
  5141. * @static
  5142. */
  5143. public static function getQueryGrammar()
  5144. { //Method inherited from \Illuminate\Database\Connection
  5145. /** @var \Illuminate\Database\MySqlConnection $instance */
  5146. return $instance->getQueryGrammar();
  5147. }
  5148. /**
  5149. * Set the query grammar used by the connection.
  5150. *
  5151. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  5152. * @return \Illuminate\Database\MySqlConnection
  5153. * @static
  5154. */
  5155. public static function setQueryGrammar($grammar)
  5156. { //Method inherited from \Illuminate\Database\Connection
  5157. /** @var \Illuminate\Database\MySqlConnection $instance */
  5158. return $instance->setQueryGrammar($grammar);
  5159. }
  5160. /**
  5161. * Get the schema grammar used by the connection.
  5162. *
  5163. * @return \Illuminate\Database\Schema\Grammars\Grammar
  5164. * @static
  5165. */
  5166. public static function getSchemaGrammar()
  5167. { //Method inherited from \Illuminate\Database\Connection
  5168. /** @var \Illuminate\Database\MySqlConnection $instance */
  5169. return $instance->getSchemaGrammar();
  5170. }
  5171. /**
  5172. * Set the schema grammar used by the connection.
  5173. *
  5174. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  5175. * @return \Illuminate\Database\MySqlConnection
  5176. * @static
  5177. */
  5178. public static function setSchemaGrammar($grammar)
  5179. { //Method inherited from \Illuminate\Database\Connection
  5180. /** @var \Illuminate\Database\MySqlConnection $instance */
  5181. return $instance->setSchemaGrammar($grammar);
  5182. }
  5183. /**
  5184. * Get the query post processor used by the connection.
  5185. *
  5186. * @return \Illuminate\Database\Query\Processors\Processor
  5187. * @static
  5188. */
  5189. public static function getPostProcessor()
  5190. { //Method inherited from \Illuminate\Database\Connection
  5191. /** @var \Illuminate\Database\MySqlConnection $instance */
  5192. return $instance->getPostProcessor();
  5193. }
  5194. /**
  5195. * Set the query post processor used by the connection.
  5196. *
  5197. * @param \Illuminate\Database\Query\Processors\Processor $processor
  5198. * @return \Illuminate\Database\MySqlConnection
  5199. * @static
  5200. */
  5201. public static function setPostProcessor($processor)
  5202. { //Method inherited from \Illuminate\Database\Connection
  5203. /** @var \Illuminate\Database\MySqlConnection $instance */
  5204. return $instance->setPostProcessor($processor);
  5205. }
  5206. /**
  5207. * Get the event dispatcher used by the connection.
  5208. *
  5209. * @return \Illuminate\Contracts\Events\Dispatcher
  5210. * @static
  5211. */
  5212. public static function getEventDispatcher()
  5213. { //Method inherited from \Illuminate\Database\Connection
  5214. /** @var \Illuminate\Database\MySqlConnection $instance */
  5215. return $instance->getEventDispatcher();
  5216. }
  5217. /**
  5218. * Set the event dispatcher instance on the connection.
  5219. *
  5220. * @param \Illuminate\Contracts\Events\Dispatcher $events
  5221. * @return \Illuminate\Database\MySqlConnection
  5222. * @static
  5223. */
  5224. public static function setEventDispatcher($events)
  5225. { //Method inherited from \Illuminate\Database\Connection
  5226. /** @var \Illuminate\Database\MySqlConnection $instance */
  5227. return $instance->setEventDispatcher($events);
  5228. }
  5229. /**
  5230. * Unset the event dispatcher for this connection.
  5231. *
  5232. * @return void
  5233. * @static
  5234. */
  5235. public static function unsetEventDispatcher()
  5236. { //Method inherited from \Illuminate\Database\Connection
  5237. /** @var \Illuminate\Database\MySqlConnection $instance */
  5238. $instance->unsetEventDispatcher();
  5239. }
  5240. /**
  5241. * Set the transaction manager instance on the connection.
  5242. *
  5243. * @param \Illuminate\Database\DatabaseTransactionsManager $manager
  5244. * @return \Illuminate\Database\MySqlConnection
  5245. * @static
  5246. */
  5247. public static function setTransactionManager($manager)
  5248. { //Method inherited from \Illuminate\Database\Connection
  5249. /** @var \Illuminate\Database\MySqlConnection $instance */
  5250. return $instance->setTransactionManager($manager);
  5251. }
  5252. /**
  5253. * Unset the transaction manager for this connection.
  5254. *
  5255. * @return void
  5256. * @static
  5257. */
  5258. public static function unsetTransactionManager()
  5259. { //Method inherited from \Illuminate\Database\Connection
  5260. /** @var \Illuminate\Database\MySqlConnection $instance */
  5261. $instance->unsetTransactionManager();
  5262. }
  5263. /**
  5264. * Determine if the connection is in a "dry run".
  5265. *
  5266. * @return bool
  5267. * @static
  5268. */
  5269. public static function pretending()
  5270. { //Method inherited from \Illuminate\Database\Connection
  5271. /** @var \Illuminate\Database\MySqlConnection $instance */
  5272. return $instance->pretending();
  5273. }
  5274. /**
  5275. * Get the connection query log.
  5276. *
  5277. * @return array
  5278. * @static
  5279. */
  5280. public static function getQueryLog()
  5281. { //Method inherited from \Illuminate\Database\Connection
  5282. /** @var \Illuminate\Database\MySqlConnection $instance */
  5283. return $instance->getQueryLog();
  5284. }
  5285. /**
  5286. * Clear the query log.
  5287. *
  5288. * @return void
  5289. * @static
  5290. */
  5291. public static function flushQueryLog()
  5292. { //Method inherited from \Illuminate\Database\Connection
  5293. /** @var \Illuminate\Database\MySqlConnection $instance */
  5294. $instance->flushQueryLog();
  5295. }
  5296. /**
  5297. * Enable the query log on the connection.
  5298. *
  5299. * @return void
  5300. * @static
  5301. */
  5302. public static function enableQueryLog()
  5303. { //Method inherited from \Illuminate\Database\Connection
  5304. /** @var \Illuminate\Database\MySqlConnection $instance */
  5305. $instance->enableQueryLog();
  5306. }
  5307. /**
  5308. * Disable the query log on the connection.
  5309. *
  5310. * @return void
  5311. * @static
  5312. */
  5313. public static function disableQueryLog()
  5314. { //Method inherited from \Illuminate\Database\Connection
  5315. /** @var \Illuminate\Database\MySqlConnection $instance */
  5316. $instance->disableQueryLog();
  5317. }
  5318. /**
  5319. * Determine whether we're logging queries.
  5320. *
  5321. * @return bool
  5322. * @static
  5323. */
  5324. public static function logging()
  5325. { //Method inherited from \Illuminate\Database\Connection
  5326. /** @var \Illuminate\Database\MySqlConnection $instance */
  5327. return $instance->logging();
  5328. }
  5329. /**
  5330. * Get the name of the connected database.
  5331. *
  5332. * @return string
  5333. * @static
  5334. */
  5335. public static function getDatabaseName()
  5336. { //Method inherited from \Illuminate\Database\Connection
  5337. /** @var \Illuminate\Database\MySqlConnection $instance */
  5338. return $instance->getDatabaseName();
  5339. }
  5340. /**
  5341. * Set the name of the connected database.
  5342. *
  5343. * @param string $database
  5344. * @return \Illuminate\Database\MySqlConnection
  5345. * @static
  5346. */
  5347. public static function setDatabaseName($database)
  5348. { //Method inherited from \Illuminate\Database\Connection
  5349. /** @var \Illuminate\Database\MySqlConnection $instance */
  5350. return $instance->setDatabaseName($database);
  5351. }
  5352. /**
  5353. * Set the read / write type of the connection.
  5354. *
  5355. * @param string|null $readWriteType
  5356. * @return \Illuminate\Database\MySqlConnection
  5357. * @static
  5358. */
  5359. public static function setReadWriteType($readWriteType)
  5360. { //Method inherited from \Illuminate\Database\Connection
  5361. /** @var \Illuminate\Database\MySqlConnection $instance */
  5362. return $instance->setReadWriteType($readWriteType);
  5363. }
  5364. /**
  5365. * Get the table prefix for the connection.
  5366. *
  5367. * @return string
  5368. * @static
  5369. */
  5370. public static function getTablePrefix()
  5371. { //Method inherited from \Illuminate\Database\Connection
  5372. /** @var \Illuminate\Database\MySqlConnection $instance */
  5373. return $instance->getTablePrefix();
  5374. }
  5375. /**
  5376. * Set the table prefix in use by the connection.
  5377. *
  5378. * @param string $prefix
  5379. * @return \Illuminate\Database\MySqlConnection
  5380. * @static
  5381. */
  5382. public static function setTablePrefix($prefix)
  5383. { //Method inherited from \Illuminate\Database\Connection
  5384. /** @var \Illuminate\Database\MySqlConnection $instance */
  5385. return $instance->setTablePrefix($prefix);
  5386. }
  5387. /**
  5388. * Set the table prefix and return the grammar.
  5389. *
  5390. * @param \Illuminate\Database\Grammar $grammar
  5391. * @return \Illuminate\Database\Grammar
  5392. * @static
  5393. */
  5394. public static function withTablePrefix($grammar)
  5395. { //Method inherited from \Illuminate\Database\Connection
  5396. /** @var \Illuminate\Database\MySqlConnection $instance */
  5397. return $instance->withTablePrefix($grammar);
  5398. }
  5399. /**
  5400. * Register a connection resolver.
  5401. *
  5402. * @param string $driver
  5403. * @param \Closure $callback
  5404. * @return void
  5405. * @static
  5406. */
  5407. public static function resolverFor($driver, $callback)
  5408. { //Method inherited from \Illuminate\Database\Connection
  5409. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  5410. }
  5411. /**
  5412. * Get the connection resolver for the given driver.
  5413. *
  5414. * @param string $driver
  5415. * @return mixed
  5416. * @static
  5417. */
  5418. public static function getResolver($driver)
  5419. { //Method inherited from \Illuminate\Database\Connection
  5420. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  5421. }
  5422. /**
  5423. * Execute a Closure within a transaction.
  5424. *
  5425. * @param \Closure $callback
  5426. * @param int $attempts
  5427. * @return mixed
  5428. * @throws \Throwable
  5429. * @static
  5430. */
  5431. public static function transaction($callback, $attempts = 1)
  5432. { //Method inherited from \Illuminate\Database\Connection
  5433. /** @var \Illuminate\Database\MySqlConnection $instance */
  5434. return $instance->transaction($callback, $attempts);
  5435. }
  5436. /**
  5437. * Start a new database transaction.
  5438. *
  5439. * @return void
  5440. * @throws \Throwable
  5441. * @static
  5442. */
  5443. public static function beginTransaction()
  5444. { //Method inherited from \Illuminate\Database\Connection
  5445. /** @var \Illuminate\Database\MySqlConnection $instance */
  5446. $instance->beginTransaction();
  5447. }
  5448. /**
  5449. * Commit the active database transaction.
  5450. *
  5451. * @return void
  5452. * @throws \Throwable
  5453. * @static
  5454. */
  5455. public static function commit()
  5456. { //Method inherited from \Illuminate\Database\Connection
  5457. /** @var \Illuminate\Database\MySqlConnection $instance */
  5458. $instance->commit();
  5459. }
  5460. /**
  5461. * Rollback the active database transaction.
  5462. *
  5463. * @param int|null $toLevel
  5464. * @return void
  5465. * @throws \Throwable
  5466. * @static
  5467. */
  5468. public static function rollBack($toLevel = null)
  5469. { //Method inherited from \Illuminate\Database\Connection
  5470. /** @var \Illuminate\Database\MySqlConnection $instance */
  5471. $instance->rollBack($toLevel);
  5472. }
  5473. /**
  5474. * Get the number of active transactions.
  5475. *
  5476. * @return int
  5477. * @static
  5478. */
  5479. public static function transactionLevel()
  5480. { //Method inherited from \Illuminate\Database\Connection
  5481. /** @var \Illuminate\Database\MySqlConnection $instance */
  5482. return $instance->transactionLevel();
  5483. }
  5484. /**
  5485. * Execute the callback after a transaction commits.
  5486. *
  5487. * @param callable $callback
  5488. * @return void
  5489. * @throws \RuntimeException
  5490. * @static
  5491. */
  5492. public static function afterCommit($callback)
  5493. { //Method inherited from \Illuminate\Database\Connection
  5494. /** @var \Illuminate\Database\MySqlConnection $instance */
  5495. $instance->afterCommit($callback);
  5496. }
  5497. }
  5498. /**
  5499. *
  5500. *
  5501. * @see \Illuminate\Events\Dispatcher
  5502. */
  5503. class Event {
  5504. /**
  5505. * Register an event listener with the dispatcher.
  5506. *
  5507. * @param \Closure|string|array $events
  5508. * @param \Closure|string|array|null $listener
  5509. * @return void
  5510. * @static
  5511. */
  5512. public static function listen($events, $listener = null)
  5513. {
  5514. /** @var \Illuminate\Events\Dispatcher $instance */
  5515. $instance->listen($events, $listener);
  5516. }
  5517. /**
  5518. * Determine if a given event has listeners.
  5519. *
  5520. * @param string $eventName
  5521. * @return bool
  5522. * @static
  5523. */
  5524. public static function hasListeners($eventName)
  5525. {
  5526. /** @var \Illuminate\Events\Dispatcher $instance */
  5527. return $instance->hasListeners($eventName);
  5528. }
  5529. /**
  5530. * Determine if the given event has any wildcard listeners.
  5531. *
  5532. * @param string $eventName
  5533. * @return bool
  5534. * @static
  5535. */
  5536. public static function hasWildcardListeners($eventName)
  5537. {
  5538. /** @var \Illuminate\Events\Dispatcher $instance */
  5539. return $instance->hasWildcardListeners($eventName);
  5540. }
  5541. /**
  5542. * Register an event and payload to be fired later.
  5543. *
  5544. * @param string $event
  5545. * @param array $payload
  5546. * @return void
  5547. * @static
  5548. */
  5549. public static function push($event, $payload = [])
  5550. {
  5551. /** @var \Illuminate\Events\Dispatcher $instance */
  5552. $instance->push($event, $payload);
  5553. }
  5554. /**
  5555. * Flush a set of pushed events.
  5556. *
  5557. * @param string $event
  5558. * @return void
  5559. * @static
  5560. */
  5561. public static function flush($event)
  5562. {
  5563. /** @var \Illuminate\Events\Dispatcher $instance */
  5564. $instance->flush($event);
  5565. }
  5566. /**
  5567. * Register an event subscriber with the dispatcher.
  5568. *
  5569. * @param object|string $subscriber
  5570. * @return void
  5571. * @static
  5572. */
  5573. public static function subscribe($subscriber)
  5574. {
  5575. /** @var \Illuminate\Events\Dispatcher $instance */
  5576. $instance->subscribe($subscriber);
  5577. }
  5578. /**
  5579. * Fire an event until the first non-null response is returned.
  5580. *
  5581. * @param string|object $event
  5582. * @param mixed $payload
  5583. * @return array|null
  5584. * @static
  5585. */
  5586. public static function until($event, $payload = [])
  5587. {
  5588. /** @var \Illuminate\Events\Dispatcher $instance */
  5589. return $instance->until($event, $payload);
  5590. }
  5591. /**
  5592. * Fire an event and call the listeners.
  5593. *
  5594. * @param string|object $event
  5595. * @param mixed $payload
  5596. * @param bool $halt
  5597. * @return array|null
  5598. * @static
  5599. */
  5600. public static function dispatch($event, $payload = [], $halt = false)
  5601. {
  5602. /** @var \Illuminate\Events\Dispatcher $instance */
  5603. return $instance->dispatch($event, $payload, $halt);
  5604. }
  5605. /**
  5606. * Get all of the listeners for a given event name.
  5607. *
  5608. * @param string $eventName
  5609. * @return array
  5610. * @static
  5611. */
  5612. public static function getListeners($eventName)
  5613. {
  5614. /** @var \Illuminate\Events\Dispatcher $instance */
  5615. return $instance->getListeners($eventName);
  5616. }
  5617. /**
  5618. * Register an event listener with the dispatcher.
  5619. *
  5620. * @param \Closure|string $listener
  5621. * @param bool $wildcard
  5622. * @return \Closure
  5623. * @static
  5624. */
  5625. public static function makeListener($listener, $wildcard = false)
  5626. {
  5627. /** @var \Illuminate\Events\Dispatcher $instance */
  5628. return $instance->makeListener($listener, $wildcard);
  5629. }
  5630. /**
  5631. * Create a class based listener using the IoC container.
  5632. *
  5633. * @param string $listener
  5634. * @param bool $wildcard
  5635. * @return \Closure
  5636. * @static
  5637. */
  5638. public static function createClassListener($listener, $wildcard = false)
  5639. {
  5640. /** @var \Illuminate\Events\Dispatcher $instance */
  5641. return $instance->createClassListener($listener, $wildcard);
  5642. }
  5643. /**
  5644. * Remove a set of listeners from the dispatcher.
  5645. *
  5646. * @param string $event
  5647. * @return void
  5648. * @static
  5649. */
  5650. public static function forget($event)
  5651. {
  5652. /** @var \Illuminate\Events\Dispatcher $instance */
  5653. $instance->forget($event);
  5654. }
  5655. /**
  5656. * Forget all of the pushed listeners.
  5657. *
  5658. * @return void
  5659. * @static
  5660. */
  5661. public static function forgetPushed()
  5662. {
  5663. /** @var \Illuminate\Events\Dispatcher $instance */
  5664. $instance->forgetPushed();
  5665. }
  5666. /**
  5667. * Set the queue resolver implementation.
  5668. *
  5669. * @param callable $resolver
  5670. * @return \Illuminate\Events\Dispatcher
  5671. * @static
  5672. */
  5673. public static function setQueueResolver($resolver)
  5674. {
  5675. /** @var \Illuminate\Events\Dispatcher $instance */
  5676. return $instance->setQueueResolver($resolver);
  5677. }
  5678. /**
  5679. * Register a custom macro.
  5680. *
  5681. * @param string $name
  5682. * @param object|callable $macro
  5683. * @return void
  5684. * @static
  5685. */
  5686. public static function macro($name, $macro)
  5687. {
  5688. \Illuminate\Events\Dispatcher::macro($name, $macro);
  5689. }
  5690. /**
  5691. * Mix another object into the class.
  5692. *
  5693. * @param object $mixin
  5694. * @param bool $replace
  5695. * @return void
  5696. * @throws \ReflectionException
  5697. * @static
  5698. */
  5699. public static function mixin($mixin, $replace = true)
  5700. {
  5701. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  5702. }
  5703. /**
  5704. * Checks if macro is registered.
  5705. *
  5706. * @param string $name
  5707. * @return bool
  5708. * @static
  5709. */
  5710. public static function hasMacro($name)
  5711. {
  5712. return \Illuminate\Events\Dispatcher::hasMacro($name);
  5713. }
  5714. /**
  5715. * Assert if an event has a listener attached to it.
  5716. *
  5717. * @param string $expectedEvent
  5718. * @param string $expectedListener
  5719. * @return void
  5720. * @static
  5721. */
  5722. public static function assertListening($expectedEvent, $expectedListener)
  5723. {
  5724. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5725. $instance->assertListening($expectedEvent, $expectedListener);
  5726. }
  5727. /**
  5728. * Assert if an event was dispatched based on a truth-test callback.
  5729. *
  5730. * @param string|\Closure $event
  5731. * @param callable|int|null $callback
  5732. * @return void
  5733. * @static
  5734. */
  5735. public static function assertDispatched($event, $callback = null)
  5736. {
  5737. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5738. $instance->assertDispatched($event, $callback);
  5739. }
  5740. /**
  5741. * Assert if an event was dispatched a number of times.
  5742. *
  5743. * @param string $event
  5744. * @param int $times
  5745. * @return void
  5746. * @static
  5747. */
  5748. public static function assertDispatchedTimes($event, $times = 1)
  5749. {
  5750. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5751. $instance->assertDispatchedTimes($event, $times);
  5752. }
  5753. /**
  5754. * Determine if an event was dispatched based on a truth-test callback.
  5755. *
  5756. * @param string|\Closure $event
  5757. * @param callable|null $callback
  5758. * @return void
  5759. * @static
  5760. */
  5761. public static function assertNotDispatched($event, $callback = null)
  5762. {
  5763. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5764. $instance->assertNotDispatched($event, $callback);
  5765. }
  5766. /**
  5767. * Assert that no events were dispatched.
  5768. *
  5769. * @return void
  5770. * @static
  5771. */
  5772. public static function assertNothingDispatched()
  5773. {
  5774. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5775. $instance->assertNothingDispatched();
  5776. }
  5777. /**
  5778. * Get all of the events matching a truth-test callback.
  5779. *
  5780. * @param string $event
  5781. * @param callable|null $callback
  5782. * @return \Illuminate\Support\Collection
  5783. * @static
  5784. */
  5785. public static function dispatched($event, $callback = null)
  5786. {
  5787. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5788. return $instance->dispatched($event, $callback);
  5789. }
  5790. /**
  5791. * Determine if the given event has been dispatched.
  5792. *
  5793. * @param string $event
  5794. * @return bool
  5795. * @static
  5796. */
  5797. public static function hasDispatched($event)
  5798. {
  5799. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5800. return $instance->hasDispatched($event);
  5801. }
  5802. }
  5803. /**
  5804. *
  5805. *
  5806. * @see \Illuminate\Filesystem\Filesystem
  5807. */
  5808. class File {
  5809. /**
  5810. * Determine if a file or directory exists.
  5811. *
  5812. * @param string $path
  5813. * @return bool
  5814. * @static
  5815. */
  5816. public static function exists($path)
  5817. {
  5818. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5819. return $instance->exists($path);
  5820. }
  5821. /**
  5822. * Determine if a file or directory is missing.
  5823. *
  5824. * @param string $path
  5825. * @return bool
  5826. * @static
  5827. */
  5828. public static function missing($path)
  5829. {
  5830. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5831. return $instance->missing($path);
  5832. }
  5833. /**
  5834. * Get the contents of a file.
  5835. *
  5836. * @param string $path
  5837. * @param bool $lock
  5838. * @return string
  5839. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5840. * @static
  5841. */
  5842. public static function get($path, $lock = false)
  5843. {
  5844. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5845. return $instance->get($path, $lock);
  5846. }
  5847. /**
  5848. * Get contents of a file with shared access.
  5849. *
  5850. * @param string $path
  5851. * @return string
  5852. * @static
  5853. */
  5854. public static function sharedGet($path)
  5855. {
  5856. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5857. return $instance->sharedGet($path);
  5858. }
  5859. /**
  5860. * Get the returned value of a file.
  5861. *
  5862. * @param string $path
  5863. * @param array $data
  5864. * @return mixed
  5865. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5866. * @static
  5867. */
  5868. public static function getRequire($path, $data = [])
  5869. {
  5870. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5871. return $instance->getRequire($path, $data);
  5872. }
  5873. /**
  5874. * Require the given file once.
  5875. *
  5876. * @param string $path
  5877. * @param array $data
  5878. * @return mixed
  5879. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5880. * @static
  5881. */
  5882. public static function requireOnce($path, $data = [])
  5883. {
  5884. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5885. return $instance->requireOnce($path, $data);
  5886. }
  5887. /**
  5888. * Get the contents of a file one line at a time.
  5889. *
  5890. * @param string $path
  5891. * @return \Illuminate\Support\LazyCollection
  5892. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5893. * @static
  5894. */
  5895. public static function lines($path)
  5896. {
  5897. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5898. return $instance->lines($path);
  5899. }
  5900. /**
  5901. * Get the MD5 hash of the file at the given path.
  5902. *
  5903. * @param string $path
  5904. * @return string
  5905. * @static
  5906. */
  5907. public static function hash($path)
  5908. {
  5909. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5910. return $instance->hash($path);
  5911. }
  5912. /**
  5913. * Write the contents of a file.
  5914. *
  5915. * @param string $path
  5916. * @param string $contents
  5917. * @param bool $lock
  5918. * @return int|bool
  5919. * @static
  5920. */
  5921. public static function put($path, $contents, $lock = false)
  5922. {
  5923. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5924. return $instance->put($path, $contents, $lock);
  5925. }
  5926. /**
  5927. * Write the contents of a file, replacing it atomically if it already exists.
  5928. *
  5929. * @param string $path
  5930. * @param string $content
  5931. * @return void
  5932. * @static
  5933. */
  5934. public static function replace($path, $content)
  5935. {
  5936. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5937. $instance->replace($path, $content);
  5938. }
  5939. /**
  5940. * Replace a given string within a given file.
  5941. *
  5942. * @param array|string $search
  5943. * @param array|string $replace
  5944. * @param string $path
  5945. * @return void
  5946. * @static
  5947. */
  5948. public static function replaceInFile($search, $replace, $path)
  5949. {
  5950. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5951. $instance->replaceInFile($search, $replace, $path);
  5952. }
  5953. /**
  5954. * Prepend to a file.
  5955. *
  5956. * @param string $path
  5957. * @param string $data
  5958. * @return int
  5959. * @static
  5960. */
  5961. public static function prepend($path, $data)
  5962. {
  5963. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5964. return $instance->prepend($path, $data);
  5965. }
  5966. /**
  5967. * Append to a file.
  5968. *
  5969. * @param string $path
  5970. * @param string $data
  5971. * @return int
  5972. * @static
  5973. */
  5974. public static function append($path, $data)
  5975. {
  5976. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5977. return $instance->append($path, $data);
  5978. }
  5979. /**
  5980. * Get or set UNIX mode of a file or directory.
  5981. *
  5982. * @param string $path
  5983. * @param int|null $mode
  5984. * @return mixed
  5985. * @static
  5986. */
  5987. public static function chmod($path, $mode = null)
  5988. {
  5989. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5990. return $instance->chmod($path, $mode);
  5991. }
  5992. /**
  5993. * Delete the file at a given path.
  5994. *
  5995. * @param string|array $paths
  5996. * @return bool
  5997. * @static
  5998. */
  5999. public static function delete($paths)
  6000. {
  6001. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6002. return $instance->delete($paths);
  6003. }
  6004. /**
  6005. * Move a file to a new location.
  6006. *
  6007. * @param string $path
  6008. * @param string $target
  6009. * @return bool
  6010. * @static
  6011. */
  6012. public static function move($path, $target)
  6013. {
  6014. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6015. return $instance->move($path, $target);
  6016. }
  6017. /**
  6018. * Copy a file to a new location.
  6019. *
  6020. * @param string $path
  6021. * @param string $target
  6022. * @return bool
  6023. * @static
  6024. */
  6025. public static function copy($path, $target)
  6026. {
  6027. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6028. return $instance->copy($path, $target);
  6029. }
  6030. /**
  6031. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  6032. *
  6033. * @param string $target
  6034. * @param string $link
  6035. * @return void
  6036. * @static
  6037. */
  6038. public static function link($target, $link)
  6039. {
  6040. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6041. $instance->link($target, $link);
  6042. }
  6043. /**
  6044. * Create a relative symlink to the target file or directory.
  6045. *
  6046. * @param string $target
  6047. * @param string $link
  6048. * @return void
  6049. * @throws \RuntimeException
  6050. * @static
  6051. */
  6052. public static function relativeLink($target, $link)
  6053. {
  6054. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6055. $instance->relativeLink($target, $link);
  6056. }
  6057. /**
  6058. * Extract the file name from a file path.
  6059. *
  6060. * @param string $path
  6061. * @return string
  6062. * @static
  6063. */
  6064. public static function name($path)
  6065. {
  6066. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6067. return $instance->name($path);
  6068. }
  6069. /**
  6070. * Extract the trailing name component from a file path.
  6071. *
  6072. * @param string $path
  6073. * @return string
  6074. * @static
  6075. */
  6076. public static function basename($path)
  6077. {
  6078. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6079. return $instance->basename($path);
  6080. }
  6081. /**
  6082. * Extract the parent directory from a file path.
  6083. *
  6084. * @param string $path
  6085. * @return string
  6086. * @static
  6087. */
  6088. public static function dirname($path)
  6089. {
  6090. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6091. return $instance->dirname($path);
  6092. }
  6093. /**
  6094. * Extract the file extension from a file path.
  6095. *
  6096. * @param string $path
  6097. * @return string
  6098. * @static
  6099. */
  6100. public static function extension($path)
  6101. {
  6102. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6103. return $instance->extension($path);
  6104. }
  6105. /**
  6106. * Guess the file extension from the mime-type of a given file.
  6107. *
  6108. * @param string $path
  6109. * @return string|null
  6110. * @throws \RuntimeException
  6111. * @static
  6112. */
  6113. public static function guessExtension($path)
  6114. {
  6115. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6116. return $instance->guessExtension($path);
  6117. }
  6118. /**
  6119. * Get the file type of a given file.
  6120. *
  6121. * @param string $path
  6122. * @return string
  6123. * @static
  6124. */
  6125. public static function type($path)
  6126. {
  6127. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6128. return $instance->type($path);
  6129. }
  6130. /**
  6131. * Get the mime-type of a given file.
  6132. *
  6133. * @param string $path
  6134. * @return string|false
  6135. * @static
  6136. */
  6137. public static function mimeType($path)
  6138. {
  6139. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6140. return $instance->mimeType($path);
  6141. }
  6142. /**
  6143. * Get the file size of a given file.
  6144. *
  6145. * @param string $path
  6146. * @return int
  6147. * @static
  6148. */
  6149. public static function size($path)
  6150. {
  6151. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6152. return $instance->size($path);
  6153. }
  6154. /**
  6155. * Get the file's last modification time.
  6156. *
  6157. * @param string $path
  6158. * @return int
  6159. * @static
  6160. */
  6161. public static function lastModified($path)
  6162. {
  6163. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6164. return $instance->lastModified($path);
  6165. }
  6166. /**
  6167. * Determine if the given path is a directory.
  6168. *
  6169. * @param string $directory
  6170. * @return bool
  6171. * @static
  6172. */
  6173. public static function isDirectory($directory)
  6174. {
  6175. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6176. return $instance->isDirectory($directory);
  6177. }
  6178. /**
  6179. * Determine if the given path is readable.
  6180. *
  6181. * @param string $path
  6182. * @return bool
  6183. * @static
  6184. */
  6185. public static function isReadable($path)
  6186. {
  6187. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6188. return $instance->isReadable($path);
  6189. }
  6190. /**
  6191. * Determine if the given path is writable.
  6192. *
  6193. * @param string $path
  6194. * @return bool
  6195. * @static
  6196. */
  6197. public static function isWritable($path)
  6198. {
  6199. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6200. return $instance->isWritable($path);
  6201. }
  6202. /**
  6203. * Determine if the given path is a file.
  6204. *
  6205. * @param string $file
  6206. * @return bool
  6207. * @static
  6208. */
  6209. public static function isFile($file)
  6210. {
  6211. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6212. return $instance->isFile($file);
  6213. }
  6214. /**
  6215. * Find path names matching a given pattern.
  6216. *
  6217. * @param string $pattern
  6218. * @param int $flags
  6219. * @return array
  6220. * @static
  6221. */
  6222. public static function glob($pattern, $flags = 0)
  6223. {
  6224. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6225. return $instance->glob($pattern, $flags);
  6226. }
  6227. /**
  6228. * Get an array of all files in a directory.
  6229. *
  6230. * @param string $directory
  6231. * @param bool $hidden
  6232. * @return \Symfony\Component\Finder\SplFileInfo[]
  6233. * @static
  6234. */
  6235. public static function files($directory, $hidden = false)
  6236. {
  6237. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6238. return $instance->files($directory, $hidden);
  6239. }
  6240. /**
  6241. * Get all of the files from the given directory (recursive).
  6242. *
  6243. * @param string $directory
  6244. * @param bool $hidden
  6245. * @return \Symfony\Component\Finder\SplFileInfo[]
  6246. * @static
  6247. */
  6248. public static function allFiles($directory, $hidden = false)
  6249. {
  6250. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6251. return $instance->allFiles($directory, $hidden);
  6252. }
  6253. /**
  6254. * Get all of the directories within a given directory.
  6255. *
  6256. * @param string $directory
  6257. * @return array
  6258. * @static
  6259. */
  6260. public static function directories($directory)
  6261. {
  6262. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6263. return $instance->directories($directory);
  6264. }
  6265. /**
  6266. * Ensure a directory exists.
  6267. *
  6268. * @param string $path
  6269. * @param int $mode
  6270. * @param bool $recursive
  6271. * @return void
  6272. * @static
  6273. */
  6274. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  6275. {
  6276. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6277. $instance->ensureDirectoryExists($path, $mode, $recursive);
  6278. }
  6279. /**
  6280. * Create a directory.
  6281. *
  6282. * @param string $path
  6283. * @param int $mode
  6284. * @param bool $recursive
  6285. * @param bool $force
  6286. * @return bool
  6287. * @static
  6288. */
  6289. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  6290. {
  6291. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6292. return $instance->makeDirectory($path, $mode, $recursive, $force);
  6293. }
  6294. /**
  6295. * Move a directory.
  6296. *
  6297. * @param string $from
  6298. * @param string $to
  6299. * @param bool $overwrite
  6300. * @return bool
  6301. * @static
  6302. */
  6303. public static function moveDirectory($from, $to, $overwrite = false)
  6304. {
  6305. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6306. return $instance->moveDirectory($from, $to, $overwrite);
  6307. }
  6308. /**
  6309. * Copy a directory from one location to another.
  6310. *
  6311. * @param string $directory
  6312. * @param string $destination
  6313. * @param int|null $options
  6314. * @return bool
  6315. * @static
  6316. */
  6317. public static function copyDirectory($directory, $destination, $options = null)
  6318. {
  6319. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6320. return $instance->copyDirectory($directory, $destination, $options);
  6321. }
  6322. /**
  6323. * Recursively delete a directory.
  6324. *
  6325. * The directory itself may be optionally preserved.
  6326. *
  6327. * @param string $directory
  6328. * @param bool $preserve
  6329. * @return bool
  6330. * @static
  6331. */
  6332. public static function deleteDirectory($directory, $preserve = false)
  6333. {
  6334. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6335. return $instance->deleteDirectory($directory, $preserve);
  6336. }
  6337. /**
  6338. * Remove all of the directories within a given directory.
  6339. *
  6340. * @param string $directory
  6341. * @return bool
  6342. * @static
  6343. */
  6344. public static function deleteDirectories($directory)
  6345. {
  6346. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6347. return $instance->deleteDirectories($directory);
  6348. }
  6349. /**
  6350. * Empty the specified directory of all files and folders.
  6351. *
  6352. * @param string $directory
  6353. * @return bool
  6354. * @static
  6355. */
  6356. public static function cleanDirectory($directory)
  6357. {
  6358. /** @var \Illuminate\Filesystem\Filesystem $instance */
  6359. return $instance->cleanDirectory($directory);
  6360. }
  6361. /**
  6362. * Register a custom macro.
  6363. *
  6364. * @param string $name
  6365. * @param object|callable $macro
  6366. * @return void
  6367. * @static
  6368. */
  6369. public static function macro($name, $macro)
  6370. {
  6371. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  6372. }
  6373. /**
  6374. * Mix another object into the class.
  6375. *
  6376. * @param object $mixin
  6377. * @param bool $replace
  6378. * @return void
  6379. * @throws \ReflectionException
  6380. * @static
  6381. */
  6382. public static function mixin($mixin, $replace = true)
  6383. {
  6384. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  6385. }
  6386. /**
  6387. * Checks if macro is registered.
  6388. *
  6389. * @param string $name
  6390. * @return bool
  6391. * @static
  6392. */
  6393. public static function hasMacro($name)
  6394. {
  6395. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  6396. }
  6397. }
  6398. /**
  6399. *
  6400. *
  6401. * @see \Illuminate\Contracts\Auth\Access\Gate
  6402. */
  6403. class Gate {
  6404. /**
  6405. * Determine if a given ability has been defined.
  6406. *
  6407. * @param string|array $ability
  6408. * @return bool
  6409. * @static
  6410. */
  6411. public static function has($ability)
  6412. {
  6413. /** @var \Illuminate\Auth\Access\Gate $instance */
  6414. return $instance->has($ability);
  6415. }
  6416. /**
  6417. * Define a new ability.
  6418. *
  6419. * @param string $ability
  6420. * @param callable|string $callback
  6421. * @return \Illuminate\Auth\Access\Gate
  6422. * @throws \InvalidArgumentException
  6423. * @static
  6424. */
  6425. public static function define($ability, $callback)
  6426. {
  6427. /** @var \Illuminate\Auth\Access\Gate $instance */
  6428. return $instance->define($ability, $callback);
  6429. }
  6430. /**
  6431. * Define abilities for a resource.
  6432. *
  6433. * @param string $name
  6434. * @param string $class
  6435. * @param array|null $abilities
  6436. * @return \Illuminate\Auth\Access\Gate
  6437. * @static
  6438. */
  6439. public static function resource($name, $class, $abilities = null)
  6440. {
  6441. /** @var \Illuminate\Auth\Access\Gate $instance */
  6442. return $instance->resource($name, $class, $abilities);
  6443. }
  6444. /**
  6445. * Define a policy class for a given class type.
  6446. *
  6447. * @param string $class
  6448. * @param string $policy
  6449. * @return \Illuminate\Auth\Access\Gate
  6450. * @static
  6451. */
  6452. public static function policy($class, $policy)
  6453. {
  6454. /** @var \Illuminate\Auth\Access\Gate $instance */
  6455. return $instance->policy($class, $policy);
  6456. }
  6457. /**
  6458. * Register a callback to run before all Gate checks.
  6459. *
  6460. * @param callable $callback
  6461. * @return \Illuminate\Auth\Access\Gate
  6462. * @static
  6463. */
  6464. public static function before($callback)
  6465. {
  6466. /** @var \Illuminate\Auth\Access\Gate $instance */
  6467. return $instance->before($callback);
  6468. }
  6469. /**
  6470. * Register a callback to run after all Gate checks.
  6471. *
  6472. * @param callable $callback
  6473. * @return \Illuminate\Auth\Access\Gate
  6474. * @static
  6475. */
  6476. public static function after($callback)
  6477. {
  6478. /** @var \Illuminate\Auth\Access\Gate $instance */
  6479. return $instance->after($callback);
  6480. }
  6481. /**
  6482. * Determine if the given ability should be granted for the current user.
  6483. *
  6484. * @param string $ability
  6485. * @param array|mixed $arguments
  6486. * @return bool
  6487. * @static
  6488. */
  6489. public static function allows($ability, $arguments = [])
  6490. {
  6491. /** @var \Illuminate\Auth\Access\Gate $instance */
  6492. return $instance->allows($ability, $arguments);
  6493. }
  6494. /**
  6495. * Determine if the given ability should be denied for the current user.
  6496. *
  6497. * @param string $ability
  6498. * @param array|mixed $arguments
  6499. * @return bool
  6500. * @static
  6501. */
  6502. public static function denies($ability, $arguments = [])
  6503. {
  6504. /** @var \Illuminate\Auth\Access\Gate $instance */
  6505. return $instance->denies($ability, $arguments);
  6506. }
  6507. /**
  6508. * Determine if all of the given abilities should be granted for the current user.
  6509. *
  6510. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6511. * @param array|mixed $arguments
  6512. * @return bool
  6513. * @static
  6514. */
  6515. public static function check($abilities, $arguments = [])
  6516. {
  6517. /** @var \Illuminate\Auth\Access\Gate $instance */
  6518. return $instance->check($abilities, $arguments);
  6519. }
  6520. /**
  6521. * Determine if any one of the given abilities should be granted for the current user.
  6522. *
  6523. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6524. * @param array|mixed $arguments
  6525. * @return bool
  6526. * @static
  6527. */
  6528. public static function any($abilities, $arguments = [])
  6529. {
  6530. /** @var \Illuminate\Auth\Access\Gate $instance */
  6531. return $instance->any($abilities, $arguments);
  6532. }
  6533. /**
  6534. * Determine if all of the given abilities should be denied for the current user.
  6535. *
  6536. * @param \Illuminate\Auth\Access\iterable|string $abilities
  6537. * @param array|mixed $arguments
  6538. * @return bool
  6539. * @static
  6540. */
  6541. public static function none($abilities, $arguments = [])
  6542. {
  6543. /** @var \Illuminate\Auth\Access\Gate $instance */
  6544. return $instance->none($abilities, $arguments);
  6545. }
  6546. /**
  6547. * Determine if the given ability should be granted for the current user.
  6548. *
  6549. * @param string $ability
  6550. * @param array|mixed $arguments
  6551. * @return \Illuminate\Auth\Access\Response
  6552. * @throws \Illuminate\Auth\Access\AuthorizationException
  6553. * @static
  6554. */
  6555. public static function authorize($ability, $arguments = [])
  6556. {
  6557. /** @var \Illuminate\Auth\Access\Gate $instance */
  6558. return $instance->authorize($ability, $arguments);
  6559. }
  6560. /**
  6561. * Inspect the user for the given ability.
  6562. *
  6563. * @param string $ability
  6564. * @param array|mixed $arguments
  6565. * @return \Illuminate\Auth\Access\Response
  6566. * @static
  6567. */
  6568. public static function inspect($ability, $arguments = [])
  6569. {
  6570. /** @var \Illuminate\Auth\Access\Gate $instance */
  6571. return $instance->inspect($ability, $arguments);
  6572. }
  6573. /**
  6574. * Get the raw result from the authorization callback.
  6575. *
  6576. * @param string $ability
  6577. * @param array|mixed $arguments
  6578. * @return mixed
  6579. * @throws \Illuminate\Auth\Access\AuthorizationException
  6580. * @static
  6581. */
  6582. public static function raw($ability, $arguments = [])
  6583. {
  6584. /** @var \Illuminate\Auth\Access\Gate $instance */
  6585. return $instance->raw($ability, $arguments);
  6586. }
  6587. /**
  6588. * Get a policy instance for a given class.
  6589. *
  6590. * @param object|string $class
  6591. * @return mixed
  6592. * @static
  6593. */
  6594. public static function getPolicyFor($class)
  6595. {
  6596. /** @var \Illuminate\Auth\Access\Gate $instance */
  6597. return $instance->getPolicyFor($class);
  6598. }
  6599. /**
  6600. * Specify a callback to be used to guess policy names.
  6601. *
  6602. * @param callable $callback
  6603. * @return \Illuminate\Auth\Access\Gate
  6604. * @static
  6605. */
  6606. public static function guessPolicyNamesUsing($callback)
  6607. {
  6608. /** @var \Illuminate\Auth\Access\Gate $instance */
  6609. return $instance->guessPolicyNamesUsing($callback);
  6610. }
  6611. /**
  6612. * Build a policy class instance of the given type.
  6613. *
  6614. * @param object|string $class
  6615. * @return mixed
  6616. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  6617. * @static
  6618. */
  6619. public static function resolvePolicy($class)
  6620. {
  6621. /** @var \Illuminate\Auth\Access\Gate $instance */
  6622. return $instance->resolvePolicy($class);
  6623. }
  6624. /**
  6625. * Get a gate instance for the given user.
  6626. *
  6627. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  6628. * @return static
  6629. * @static
  6630. */
  6631. public static function forUser($user)
  6632. {
  6633. /** @var \Illuminate\Auth\Access\Gate $instance */
  6634. return $instance->forUser($user);
  6635. }
  6636. /**
  6637. * Get all of the defined abilities.
  6638. *
  6639. * @return array
  6640. * @static
  6641. */
  6642. public static function abilities()
  6643. {
  6644. /** @var \Illuminate\Auth\Access\Gate $instance */
  6645. return $instance->abilities();
  6646. }
  6647. /**
  6648. * Get all of the defined policies.
  6649. *
  6650. * @return array
  6651. * @static
  6652. */
  6653. public static function policies()
  6654. {
  6655. /** @var \Illuminate\Auth\Access\Gate $instance */
  6656. return $instance->policies();
  6657. }
  6658. /**
  6659. * Set the container instance used by the gate.
  6660. *
  6661. * @param \Illuminate\Contracts\Container\Container $container
  6662. * @return \Illuminate\Auth\Access\Gate
  6663. * @static
  6664. */
  6665. public static function setContainer($container)
  6666. {
  6667. /** @var \Illuminate\Auth\Access\Gate $instance */
  6668. return $instance->setContainer($container);
  6669. }
  6670. }
  6671. /**
  6672. *
  6673. *
  6674. * @see \Illuminate\Hashing\HashManager
  6675. */
  6676. class Hash {
  6677. /**
  6678. * Create an instance of the Bcrypt hash Driver.
  6679. *
  6680. * @return \Illuminate\Hashing\BcryptHasher
  6681. * @static
  6682. */
  6683. public static function createBcryptDriver()
  6684. {
  6685. /** @var \Illuminate\Hashing\HashManager $instance */
  6686. return $instance->createBcryptDriver();
  6687. }
  6688. /**
  6689. * Create an instance of the Argon2i hash Driver.
  6690. *
  6691. * @return \Illuminate\Hashing\ArgonHasher
  6692. * @static
  6693. */
  6694. public static function createArgonDriver()
  6695. {
  6696. /** @var \Illuminate\Hashing\HashManager $instance */
  6697. return $instance->createArgonDriver();
  6698. }
  6699. /**
  6700. * Create an instance of the Argon2id hash Driver.
  6701. *
  6702. * @return \Illuminate\Hashing\Argon2IdHasher
  6703. * @static
  6704. */
  6705. public static function createArgon2idDriver()
  6706. {
  6707. /** @var \Illuminate\Hashing\HashManager $instance */
  6708. return $instance->createArgon2idDriver();
  6709. }
  6710. /**
  6711. * Get information about the given hashed value.
  6712. *
  6713. * @param string $hashedValue
  6714. * @return array
  6715. * @static
  6716. */
  6717. public static function info($hashedValue)
  6718. {
  6719. /** @var \Illuminate\Hashing\HashManager $instance */
  6720. return $instance->info($hashedValue);
  6721. }
  6722. /**
  6723. * Hash the given value.
  6724. *
  6725. * @param string $value
  6726. * @param array $options
  6727. * @return string
  6728. * @static
  6729. */
  6730. public static function make($value, $options = [])
  6731. {
  6732. /** @var \Illuminate\Hashing\HashManager $instance */
  6733. return $instance->make($value, $options);
  6734. }
  6735. /**
  6736. * Check the given plain value against a hash.
  6737. *
  6738. * @param string $value
  6739. * @param string $hashedValue
  6740. * @param array $options
  6741. * @return bool
  6742. * @static
  6743. */
  6744. public static function check($value, $hashedValue, $options = [])
  6745. {
  6746. /** @var \Illuminate\Hashing\HashManager $instance */
  6747. return $instance->check($value, $hashedValue, $options);
  6748. }
  6749. /**
  6750. * Check if the given hash has been hashed using the given options.
  6751. *
  6752. * @param string $hashedValue
  6753. * @param array $options
  6754. * @return bool
  6755. * @static
  6756. */
  6757. public static function needsRehash($hashedValue, $options = [])
  6758. {
  6759. /** @var \Illuminate\Hashing\HashManager $instance */
  6760. return $instance->needsRehash($hashedValue, $options);
  6761. }
  6762. /**
  6763. * Get the default driver name.
  6764. *
  6765. * @return string
  6766. * @static
  6767. */
  6768. public static function getDefaultDriver()
  6769. {
  6770. /** @var \Illuminate\Hashing\HashManager $instance */
  6771. return $instance->getDefaultDriver();
  6772. }
  6773. /**
  6774. * Get a driver instance.
  6775. *
  6776. * @param string|null $driver
  6777. * @return mixed
  6778. * @throws \InvalidArgumentException
  6779. * @static
  6780. */
  6781. public static function driver($driver = null)
  6782. { //Method inherited from \Illuminate\Support\Manager
  6783. /** @var \Illuminate\Hashing\HashManager $instance */
  6784. return $instance->driver($driver);
  6785. }
  6786. /**
  6787. * Register a custom driver creator Closure.
  6788. *
  6789. * @param string $driver
  6790. * @param \Closure $callback
  6791. * @return \Illuminate\Hashing\HashManager
  6792. * @static
  6793. */
  6794. public static function extend($driver, $callback)
  6795. { //Method inherited from \Illuminate\Support\Manager
  6796. /** @var \Illuminate\Hashing\HashManager $instance */
  6797. return $instance->extend($driver, $callback);
  6798. }
  6799. /**
  6800. * Get all of the created "drivers".
  6801. *
  6802. * @return array
  6803. * @static
  6804. */
  6805. public static function getDrivers()
  6806. { //Method inherited from \Illuminate\Support\Manager
  6807. /** @var \Illuminate\Hashing\HashManager $instance */
  6808. return $instance->getDrivers();
  6809. }
  6810. /**
  6811. * Get the container instance used by the manager.
  6812. *
  6813. * @return \Illuminate\Contracts\Container\Container
  6814. * @static
  6815. */
  6816. public static function getContainer()
  6817. { //Method inherited from \Illuminate\Support\Manager
  6818. /** @var \Illuminate\Hashing\HashManager $instance */
  6819. return $instance->getContainer();
  6820. }
  6821. /**
  6822. * Set the container instance used by the manager.
  6823. *
  6824. * @param \Illuminate\Contracts\Container\Container $container
  6825. * @return \Illuminate\Hashing\HashManager
  6826. * @static
  6827. */
  6828. public static function setContainer($container)
  6829. { //Method inherited from \Illuminate\Support\Manager
  6830. /** @var \Illuminate\Hashing\HashManager $instance */
  6831. return $instance->setContainer($container);
  6832. }
  6833. /**
  6834. * Forget all of the resolved driver instances.
  6835. *
  6836. * @return \Illuminate\Hashing\HashManager
  6837. * @static
  6838. */
  6839. public static function forgetDrivers()
  6840. { //Method inherited from \Illuminate\Support\Manager
  6841. /** @var \Illuminate\Hashing\HashManager $instance */
  6842. return $instance->forgetDrivers();
  6843. }
  6844. }
  6845. /**
  6846. *
  6847. *
  6848. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  6849. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  6850. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  6851. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  6852. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  6853. * @method static \Illuminate\Http\Client\PendingRequest async()
  6854. * @method static \Illuminate\Http\Client\PendingRequest attach(string|array $name, string $contents = '', string|null $filename = null, array $headers = [])
  6855. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  6856. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  6857. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  6858. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  6859. * @method static \Illuminate\Http\Client\PendingRequest dd()
  6860. * @method static \Illuminate\Http\Client\PendingRequest dump()
  6861. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleep = 0)
  6862. * @method static \Illuminate\Http\Client\PendingRequest sink(string|resource $to)
  6863. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  6864. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  6865. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  6866. * @method static \Illuminate\Http\Client\PendingRequest withBody(resource|string $content, string $contentType)
  6867. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  6868. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  6869. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  6870. * @method static \Illuminate\Http\Client\PendingRequest withMiddleware(callable $middleware)
  6871. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  6872. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  6873. * @method static \Illuminate\Http\Client\PendingRequest withUserAgent(string $userAgent)
  6874. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  6875. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  6876. * @method static array pool(callable $callback)
  6877. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  6878. * @method static \Illuminate\Http\Client\Response get(string $url, array|string|null $query = null)
  6879. * @method static \Illuminate\Http\Client\Response head(string $url, array|string|null $query = null)
  6880. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  6881. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  6882. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  6883. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  6884. * @see \Illuminate\Http\Client\Factory
  6885. */
  6886. class Http {
  6887. /**
  6888. * Create a new response instance for use during stubbing.
  6889. *
  6890. * @param array|string $body
  6891. * @param int $status
  6892. * @param array $headers
  6893. * @return \GuzzleHttp\Promise\PromiseInterface
  6894. * @static
  6895. */
  6896. public static function response($body = null, $status = 200, $headers = [])
  6897. {
  6898. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  6899. }
  6900. /**
  6901. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  6902. *
  6903. * @param array $responses
  6904. * @return \Illuminate\Http\Client\ResponseSequence
  6905. * @static
  6906. */
  6907. public static function sequence($responses = [])
  6908. {
  6909. /** @var \Illuminate\Http\Client\Factory $instance */
  6910. return $instance->sequence($responses);
  6911. }
  6912. /**
  6913. * Register a stub callable that will intercept requests and be able to return stub responses.
  6914. *
  6915. * @param callable|array $callback
  6916. * @return \Illuminate\Http\Client\Factory
  6917. * @static
  6918. */
  6919. public static function fake($callback = null)
  6920. {
  6921. /** @var \Illuminate\Http\Client\Factory $instance */
  6922. return $instance->fake($callback);
  6923. }
  6924. /**
  6925. * Register a response sequence for the given URL pattern.
  6926. *
  6927. * @param string $url
  6928. * @return \Illuminate\Http\Client\ResponseSequence
  6929. * @static
  6930. */
  6931. public static function fakeSequence($url = '*')
  6932. {
  6933. /** @var \Illuminate\Http\Client\Factory $instance */
  6934. return $instance->fakeSequence($url);
  6935. }
  6936. /**
  6937. * Stub the given URL using the given callback.
  6938. *
  6939. * @param string $url
  6940. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  6941. * @return \Illuminate\Http\Client\Factory
  6942. * @static
  6943. */
  6944. public static function stubUrl($url, $callback)
  6945. {
  6946. /** @var \Illuminate\Http\Client\Factory $instance */
  6947. return $instance->stubUrl($url, $callback);
  6948. }
  6949. /**
  6950. * Record a request response pair.
  6951. *
  6952. * @param \Illuminate\Http\Client\Request $request
  6953. * @param \Illuminate\Http\Client\Response $response
  6954. * @return void
  6955. * @static
  6956. */
  6957. public static function recordRequestResponsePair($request, $response)
  6958. {
  6959. /** @var \Illuminate\Http\Client\Factory $instance */
  6960. $instance->recordRequestResponsePair($request, $response);
  6961. }
  6962. /**
  6963. * Assert that a request / response pair was recorded matching a given truth test.
  6964. *
  6965. * @param callable $callback
  6966. * @return void
  6967. * @static
  6968. */
  6969. public static function assertSent($callback)
  6970. {
  6971. /** @var \Illuminate\Http\Client\Factory $instance */
  6972. $instance->assertSent($callback);
  6973. }
  6974. /**
  6975. * Assert that the given request was sent in the given order.
  6976. *
  6977. * @param array $callbacks
  6978. * @return void
  6979. * @static
  6980. */
  6981. public static function assertSentInOrder($callbacks)
  6982. {
  6983. /** @var \Illuminate\Http\Client\Factory $instance */
  6984. $instance->assertSentInOrder($callbacks);
  6985. }
  6986. /**
  6987. * Assert that a request / response pair was not recorded matching a given truth test.
  6988. *
  6989. * @param callable $callback
  6990. * @return void
  6991. * @static
  6992. */
  6993. public static function assertNotSent($callback)
  6994. {
  6995. /** @var \Illuminate\Http\Client\Factory $instance */
  6996. $instance->assertNotSent($callback);
  6997. }
  6998. /**
  6999. * Assert that no request / response pair was recorded.
  7000. *
  7001. * @return void
  7002. * @static
  7003. */
  7004. public static function assertNothingSent()
  7005. {
  7006. /** @var \Illuminate\Http\Client\Factory $instance */
  7007. $instance->assertNothingSent();
  7008. }
  7009. /**
  7010. * Assert how many requests have been recorded.
  7011. *
  7012. * @param int $count
  7013. * @return void
  7014. * @static
  7015. */
  7016. public static function assertSentCount($count)
  7017. {
  7018. /** @var \Illuminate\Http\Client\Factory $instance */
  7019. $instance->assertSentCount($count);
  7020. }
  7021. /**
  7022. * Assert that every created response sequence is empty.
  7023. *
  7024. * @return void
  7025. * @static
  7026. */
  7027. public static function assertSequencesAreEmpty()
  7028. {
  7029. /** @var \Illuminate\Http\Client\Factory $instance */
  7030. $instance->assertSequencesAreEmpty();
  7031. }
  7032. /**
  7033. * Get a collection of the request / response pairs matching the given truth test.
  7034. *
  7035. * @param callable $callback
  7036. * @return \Illuminate\Support\Collection
  7037. * @static
  7038. */
  7039. public static function recorded($callback = null)
  7040. {
  7041. /** @var \Illuminate\Http\Client\Factory $instance */
  7042. return $instance->recorded($callback);
  7043. }
  7044. /**
  7045. * Get the current event dispatcher implementation.
  7046. *
  7047. * @return \Illuminate\Contracts\Events\Dispatcher|null
  7048. * @static
  7049. */
  7050. public static function getDispatcher()
  7051. {
  7052. /** @var \Illuminate\Http\Client\Factory $instance */
  7053. return $instance->getDispatcher();
  7054. }
  7055. /**
  7056. * Register a custom macro.
  7057. *
  7058. * @param string $name
  7059. * @param object|callable $macro
  7060. * @return void
  7061. * @static
  7062. */
  7063. public static function macro($name, $macro)
  7064. {
  7065. \Illuminate\Http\Client\Factory::macro($name, $macro);
  7066. }
  7067. /**
  7068. * Mix another object into the class.
  7069. *
  7070. * @param object $mixin
  7071. * @param bool $replace
  7072. * @return void
  7073. * @throws \ReflectionException
  7074. * @static
  7075. */
  7076. public static function mixin($mixin, $replace = true)
  7077. {
  7078. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  7079. }
  7080. /**
  7081. * Checks if macro is registered.
  7082. *
  7083. * @param string $name
  7084. * @return bool
  7085. * @static
  7086. */
  7087. public static function hasMacro($name)
  7088. {
  7089. return \Illuminate\Http\Client\Factory::hasMacro($name);
  7090. }
  7091. /**
  7092. * Dynamically handle calls to the class.
  7093. *
  7094. * @param string $method
  7095. * @param array $parameters
  7096. * @return mixed
  7097. * @throws \BadMethodCallException
  7098. * @static
  7099. */
  7100. public static function macroCall($method, $parameters)
  7101. {
  7102. /** @var \Illuminate\Http\Client\Factory $instance */
  7103. return $instance->macroCall($method, $parameters);
  7104. }
  7105. }
  7106. /**
  7107. *
  7108. *
  7109. * @see \Illuminate\Translation\Translator
  7110. */
  7111. class Lang {
  7112. /**
  7113. * Determine if a translation exists for a given locale.
  7114. *
  7115. * @param string $key
  7116. * @param string|null $locale
  7117. * @return bool
  7118. * @static
  7119. */
  7120. public static function hasForLocale($key, $locale = null)
  7121. {
  7122. /** @var \Illuminate\Translation\Translator $instance */
  7123. return $instance->hasForLocale($key, $locale);
  7124. }
  7125. /**
  7126. * Determine if a translation exists.
  7127. *
  7128. * @param string $key
  7129. * @param string|null $locale
  7130. * @param bool $fallback
  7131. * @return bool
  7132. * @static
  7133. */
  7134. public static function has($key, $locale = null, $fallback = true)
  7135. {
  7136. /** @var \Illuminate\Translation\Translator $instance */
  7137. return $instance->has($key, $locale, $fallback);
  7138. }
  7139. /**
  7140. * Get the translation for the given key.
  7141. *
  7142. * @param string $key
  7143. * @param array $replace
  7144. * @param string|null $locale
  7145. * @param bool $fallback
  7146. * @return string|array
  7147. * @static
  7148. */
  7149. public static function get($key, $replace = [], $locale = null, $fallback = true)
  7150. {
  7151. /** @var \Illuminate\Translation\Translator $instance */
  7152. return $instance->get($key, $replace, $locale, $fallback);
  7153. }
  7154. /**
  7155. * Get a translation according to an integer value.
  7156. *
  7157. * @param string $key
  7158. * @param \Countable|int|array $number
  7159. * @param array $replace
  7160. * @param string|null $locale
  7161. * @return string
  7162. * @static
  7163. */
  7164. public static function choice($key, $number, $replace = [], $locale = null)
  7165. {
  7166. /** @var \Illuminate\Translation\Translator $instance */
  7167. return $instance->choice($key, $number, $replace, $locale);
  7168. }
  7169. /**
  7170. * Add translation lines to the given locale.
  7171. *
  7172. * @param array $lines
  7173. * @param string $locale
  7174. * @param string $namespace
  7175. * @return void
  7176. * @static
  7177. */
  7178. public static function addLines($lines, $locale, $namespace = '*')
  7179. {
  7180. /** @var \Illuminate\Translation\Translator $instance */
  7181. $instance->addLines($lines, $locale, $namespace);
  7182. }
  7183. /**
  7184. * Load the specified language group.
  7185. *
  7186. * @param string $namespace
  7187. * @param string $group
  7188. * @param string $locale
  7189. * @return void
  7190. * @static
  7191. */
  7192. public static function load($namespace, $group, $locale)
  7193. {
  7194. /** @var \Illuminate\Translation\Translator $instance */
  7195. $instance->load($namespace, $group, $locale);
  7196. }
  7197. /**
  7198. * Add a new namespace to the loader.
  7199. *
  7200. * @param string $namespace
  7201. * @param string $hint
  7202. * @return void
  7203. * @static
  7204. */
  7205. public static function addNamespace($namespace, $hint)
  7206. {
  7207. /** @var \Illuminate\Translation\Translator $instance */
  7208. $instance->addNamespace($namespace, $hint);
  7209. }
  7210. /**
  7211. * Add a new JSON path to the loader.
  7212. *
  7213. * @param string $path
  7214. * @return void
  7215. * @static
  7216. */
  7217. public static function addJsonPath($path)
  7218. {
  7219. /** @var \Illuminate\Translation\Translator $instance */
  7220. $instance->addJsonPath($path);
  7221. }
  7222. /**
  7223. * Parse a key into namespace, group, and item.
  7224. *
  7225. * @param string $key
  7226. * @return array
  7227. * @static
  7228. */
  7229. public static function parseKey($key)
  7230. {
  7231. /** @var \Illuminate\Translation\Translator $instance */
  7232. return $instance->parseKey($key);
  7233. }
  7234. /**
  7235. * Get the message selector instance.
  7236. *
  7237. * @return \Illuminate\Translation\MessageSelector
  7238. * @static
  7239. */
  7240. public static function getSelector()
  7241. {
  7242. /** @var \Illuminate\Translation\Translator $instance */
  7243. return $instance->getSelector();
  7244. }
  7245. /**
  7246. * Set the message selector instance.
  7247. *
  7248. * @param \Illuminate\Translation\MessageSelector $selector
  7249. * @return void
  7250. * @static
  7251. */
  7252. public static function setSelector($selector)
  7253. {
  7254. /** @var \Illuminate\Translation\Translator $instance */
  7255. $instance->setSelector($selector);
  7256. }
  7257. /**
  7258. * Get the language line loader implementation.
  7259. *
  7260. * @return \Illuminate\Contracts\Translation\Loader
  7261. * @static
  7262. */
  7263. public static function getLoader()
  7264. {
  7265. /** @var \Illuminate\Translation\Translator $instance */
  7266. return $instance->getLoader();
  7267. }
  7268. /**
  7269. * Get the default locale being used.
  7270. *
  7271. * @return string
  7272. * @static
  7273. */
  7274. public static function locale()
  7275. {
  7276. /** @var \Illuminate\Translation\Translator $instance */
  7277. return $instance->locale();
  7278. }
  7279. /**
  7280. * Get the default locale being used.
  7281. *
  7282. * @return string
  7283. * @static
  7284. */
  7285. public static function getLocale()
  7286. {
  7287. /** @var \Illuminate\Translation\Translator $instance */
  7288. return $instance->getLocale();
  7289. }
  7290. /**
  7291. * Set the default locale.
  7292. *
  7293. * @param string $locale
  7294. * @return void
  7295. * @throws \InvalidArgumentException
  7296. * @static
  7297. */
  7298. public static function setLocale($locale)
  7299. {
  7300. /** @var \Illuminate\Translation\Translator $instance */
  7301. $instance->setLocale($locale);
  7302. }
  7303. /**
  7304. * Get the fallback locale being used.
  7305. *
  7306. * @return string
  7307. * @static
  7308. */
  7309. public static function getFallback()
  7310. {
  7311. /** @var \Illuminate\Translation\Translator $instance */
  7312. return $instance->getFallback();
  7313. }
  7314. /**
  7315. * Set the fallback locale being used.
  7316. *
  7317. * @param string $fallback
  7318. * @return void
  7319. * @static
  7320. */
  7321. public static function setFallback($fallback)
  7322. {
  7323. /** @var \Illuminate\Translation\Translator $instance */
  7324. $instance->setFallback($fallback);
  7325. }
  7326. /**
  7327. * Set the loaded translation groups.
  7328. *
  7329. * @param array $loaded
  7330. * @return void
  7331. * @static
  7332. */
  7333. public static function setLoaded($loaded)
  7334. {
  7335. /** @var \Illuminate\Translation\Translator $instance */
  7336. $instance->setLoaded($loaded);
  7337. }
  7338. /**
  7339. * Set the parsed value of a key.
  7340. *
  7341. * @param string $key
  7342. * @param array $parsed
  7343. * @return void
  7344. * @static
  7345. */
  7346. public static function setParsedKey($key, $parsed)
  7347. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  7348. /** @var \Illuminate\Translation\Translator $instance */
  7349. $instance->setParsedKey($key, $parsed);
  7350. }
  7351. /**
  7352. * Register a custom macro.
  7353. *
  7354. * @param string $name
  7355. * @param object|callable $macro
  7356. * @return void
  7357. * @static
  7358. */
  7359. public static function macro($name, $macro)
  7360. {
  7361. \Illuminate\Translation\Translator::macro($name, $macro);
  7362. }
  7363. /**
  7364. * Mix another object into the class.
  7365. *
  7366. * @param object $mixin
  7367. * @param bool $replace
  7368. * @return void
  7369. * @throws \ReflectionException
  7370. * @static
  7371. */
  7372. public static function mixin($mixin, $replace = true)
  7373. {
  7374. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  7375. }
  7376. /**
  7377. * Checks if macro is registered.
  7378. *
  7379. * @param string $name
  7380. * @return bool
  7381. * @static
  7382. */
  7383. public static function hasMacro($name)
  7384. {
  7385. return \Illuminate\Translation\Translator::hasMacro($name);
  7386. }
  7387. }
  7388. /**
  7389. *
  7390. *
  7391. * @method static \Illuminate\Log\Logger withContext(array $context = [])
  7392. * @method static \Illuminate\Log\Logger withoutContext()
  7393. * @method static void write(string $level, string $message, array $context = [])
  7394. * @method static void listen(\Closure $callback)
  7395. * @see \Illuminate\Log\Logger
  7396. */
  7397. class Log {
  7398. /**
  7399. * Create a new, on-demand aggregate logger instance.
  7400. *
  7401. * @param array $channels
  7402. * @param string|null $channel
  7403. * @return \Psr\Log\LoggerInterface
  7404. * @static
  7405. */
  7406. public static function stack($channels, $channel = null)
  7407. {
  7408. /** @var \Illuminate\Log\LogManager $instance */
  7409. return $instance->stack($channels, $channel);
  7410. }
  7411. /**
  7412. * Get a log channel instance.
  7413. *
  7414. * @param string|null $channel
  7415. * @return \Psr\Log\LoggerInterface
  7416. * @static
  7417. */
  7418. public static function channel($channel = null)
  7419. {
  7420. /** @var \Illuminate\Log\LogManager $instance */
  7421. return $instance->channel($channel);
  7422. }
  7423. /**
  7424. * Get a log driver instance.
  7425. *
  7426. * @param string|null $driver
  7427. * @return \Psr\Log\LoggerInterface
  7428. * @static
  7429. */
  7430. public static function driver($driver = null)
  7431. {
  7432. /** @var \Illuminate\Log\LogManager $instance */
  7433. return $instance->driver($driver);
  7434. }
  7435. /**
  7436. *
  7437. *
  7438. * @return array
  7439. * @static
  7440. */
  7441. public static function getChannels()
  7442. {
  7443. /** @var \Illuminate\Log\LogManager $instance */
  7444. return $instance->getChannels();
  7445. }
  7446. /**
  7447. * Get the default log driver name.
  7448. *
  7449. * @return string
  7450. * @static
  7451. */
  7452. public static function getDefaultDriver()
  7453. {
  7454. /** @var \Illuminate\Log\LogManager $instance */
  7455. return $instance->getDefaultDriver();
  7456. }
  7457. /**
  7458. * Set the default log driver name.
  7459. *
  7460. * @param string $name
  7461. * @return void
  7462. * @static
  7463. */
  7464. public static function setDefaultDriver($name)
  7465. {
  7466. /** @var \Illuminate\Log\LogManager $instance */
  7467. $instance->setDefaultDriver($name);
  7468. }
  7469. /**
  7470. * Register a custom driver creator Closure.
  7471. *
  7472. * @param string $driver
  7473. * @param \Closure $callback
  7474. * @return \Illuminate\Log\LogManager
  7475. * @static
  7476. */
  7477. public static function extend($driver, $callback)
  7478. {
  7479. /** @var \Illuminate\Log\LogManager $instance */
  7480. return $instance->extend($driver, $callback);
  7481. }
  7482. /**
  7483. * Unset the given channel instance.
  7484. *
  7485. * @param string|null $driver
  7486. * @return \Illuminate\Log\LogManager
  7487. * @static
  7488. */
  7489. public static function forgetChannel($driver = null)
  7490. {
  7491. /** @var \Illuminate\Log\LogManager $instance */
  7492. return $instance->forgetChannel($driver);
  7493. }
  7494. /**
  7495. * System is unusable.
  7496. *
  7497. * @param string $message
  7498. * @param array $context
  7499. * @return void
  7500. * @static
  7501. */
  7502. public static function emergency($message, $context = [])
  7503. {
  7504. /** @var \Illuminate\Log\LogManager $instance */
  7505. $instance->emergency($message, $context);
  7506. }
  7507. /**
  7508. * Action must be taken immediately.
  7509. *
  7510. * Example: Entire website down, database unavailable, etc. This should
  7511. * trigger the SMS alerts and wake you up.
  7512. *
  7513. * @param string $message
  7514. * @param array $context
  7515. * @return void
  7516. * @static
  7517. */
  7518. public static function alert($message, $context = [])
  7519. {
  7520. /** @var \Illuminate\Log\LogManager $instance */
  7521. $instance->alert($message, $context);
  7522. }
  7523. /**
  7524. * Critical conditions.
  7525. *
  7526. * Example: Application component unavailable, unexpected exception.
  7527. *
  7528. * @param string $message
  7529. * @param array $context
  7530. * @return void
  7531. * @static
  7532. */
  7533. public static function critical($message, $context = [])
  7534. {
  7535. /** @var \Illuminate\Log\LogManager $instance */
  7536. $instance->critical($message, $context);
  7537. }
  7538. /**
  7539. * Runtime errors that do not require immediate action but should typically
  7540. * be logged and monitored.
  7541. *
  7542. * @param string $message
  7543. * @param array $context
  7544. * @return void
  7545. * @static
  7546. */
  7547. public static function error($message, $context = [])
  7548. {
  7549. /** @var \Illuminate\Log\LogManager $instance */
  7550. $instance->error($message, $context);
  7551. }
  7552. /**
  7553. * Exceptional occurrences that are not errors.
  7554. *
  7555. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  7556. * that are not necessarily wrong.
  7557. *
  7558. * @param string $message
  7559. * @param array $context
  7560. * @return void
  7561. * @static
  7562. */
  7563. public static function warning($message, $context = [])
  7564. {
  7565. /** @var \Illuminate\Log\LogManager $instance */
  7566. $instance->warning($message, $context);
  7567. }
  7568. /**
  7569. * Normal but significant events.
  7570. *
  7571. * @param string $message
  7572. * @param array $context
  7573. * @return void
  7574. * @static
  7575. */
  7576. public static function notice($message, $context = [])
  7577. {
  7578. /** @var \Illuminate\Log\LogManager $instance */
  7579. $instance->notice($message, $context);
  7580. }
  7581. /**
  7582. * Interesting events.
  7583. *
  7584. * Example: User logs in, SQL logs.
  7585. *
  7586. * @param string $message
  7587. * @param array $context
  7588. * @return void
  7589. * @static
  7590. */
  7591. public static function info($message, $context = [])
  7592. {
  7593. /** @var \Illuminate\Log\LogManager $instance */
  7594. $instance->info($message, $context);
  7595. }
  7596. /**
  7597. * Detailed debug information.
  7598. *
  7599. * @param string $message
  7600. * @param array $context
  7601. * @return void
  7602. * @static
  7603. */
  7604. public static function debug($message, $context = [])
  7605. {
  7606. /** @var \Illuminate\Log\LogManager $instance */
  7607. $instance->debug($message, $context);
  7608. }
  7609. /**
  7610. * Logs with an arbitrary level.
  7611. *
  7612. * @param mixed $level
  7613. * @param string $message
  7614. * @param array $context
  7615. * @return void
  7616. * @static
  7617. */
  7618. public static function log($level, $message, $context = [])
  7619. {
  7620. /** @var \Illuminate\Log\LogManager $instance */
  7621. $instance->log($level, $message, $context);
  7622. }
  7623. }
  7624. /**
  7625. *
  7626. *
  7627. * @method static mixed laterOn(string $queue, \DateTimeInterface|\DateInterval|int $delay, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7628. * @method static mixed queueOn(string $queue, \Illuminate\Contracts\Mail\Mailable|string|array $view)
  7629. * @method static void plain(string $view, array $data, $callback)
  7630. * @method static void html(string $html, $callback)
  7631. * @see \Illuminate\Mail\Mailer
  7632. * @see \Illuminate\Support\Testing\Fakes\MailFake
  7633. */
  7634. class Mail {
  7635. /**
  7636. * Get a mailer instance by name.
  7637. *
  7638. * @param string|null $name
  7639. * @return \Illuminate\Contracts\Mail\Mailer
  7640. * @static
  7641. */
  7642. public static function mailer($name = null)
  7643. {
  7644. /** @var \Illuminate\Mail\MailManager $instance */
  7645. return $instance->mailer($name);
  7646. }
  7647. /**
  7648. * Get a mailer driver instance.
  7649. *
  7650. * @param string|null $driver
  7651. * @return \Illuminate\Mail\Mailer
  7652. * @static
  7653. */
  7654. public static function driver($driver = null)
  7655. {
  7656. /** @var \Illuminate\Mail\MailManager $instance */
  7657. return $instance->driver($driver);
  7658. }
  7659. /**
  7660. * Create a new transport instance.
  7661. *
  7662. * @param array $config
  7663. * @return \Swift_Transport
  7664. * @throws \InvalidArgumentException
  7665. * @static
  7666. */
  7667. public static function createTransport($config)
  7668. {
  7669. /** @var \Illuminate\Mail\MailManager $instance */
  7670. return $instance->createTransport($config);
  7671. }
  7672. /**
  7673. * Get the default mail driver name.
  7674. *
  7675. * @return string
  7676. * @static
  7677. */
  7678. public static function getDefaultDriver()
  7679. {
  7680. /** @var \Illuminate\Mail\MailManager $instance */
  7681. return $instance->getDefaultDriver();
  7682. }
  7683. /**
  7684. * Set the default mail driver name.
  7685. *
  7686. * @param string $name
  7687. * @return void
  7688. * @static
  7689. */
  7690. public static function setDefaultDriver($name)
  7691. {
  7692. /** @var \Illuminate\Mail\MailManager $instance */
  7693. $instance->setDefaultDriver($name);
  7694. }
  7695. /**
  7696. * Disconnect the given mailer and remove from local cache.
  7697. *
  7698. * @param string|null $name
  7699. * @return void
  7700. * @static
  7701. */
  7702. public static function purge($name = null)
  7703. {
  7704. /** @var \Illuminate\Mail\MailManager $instance */
  7705. $instance->purge($name);
  7706. }
  7707. /**
  7708. * Register a custom transport creator Closure.
  7709. *
  7710. * @param string $driver
  7711. * @param \Closure $callback
  7712. * @return \Illuminate\Mail\MailManager
  7713. * @static
  7714. */
  7715. public static function extend($driver, $callback)
  7716. {
  7717. /** @var \Illuminate\Mail\MailManager $instance */
  7718. return $instance->extend($driver, $callback);
  7719. }
  7720. /**
  7721. * Get the application instance used by the manager.
  7722. *
  7723. * @return \Illuminate\Contracts\Foundation\Application
  7724. * @static
  7725. */
  7726. public static function getApplication()
  7727. {
  7728. /** @var \Illuminate\Mail\MailManager $instance */
  7729. return $instance->getApplication();
  7730. }
  7731. /**
  7732. * Set the application instance used by the manager.
  7733. *
  7734. * @param \Illuminate\Contracts\Foundation\Application $app
  7735. * @return \Illuminate\Mail\MailManager
  7736. * @static
  7737. */
  7738. public static function setApplication($app)
  7739. {
  7740. /** @var \Illuminate\Mail\MailManager $instance */
  7741. return $instance->setApplication($app);
  7742. }
  7743. /**
  7744. * Forget all of the resolved mailer instances.
  7745. *
  7746. * @return \Illuminate\Mail\MailManager
  7747. * @static
  7748. */
  7749. public static function forgetMailers()
  7750. {
  7751. /** @var \Illuminate\Mail\MailManager $instance */
  7752. return $instance->forgetMailers();
  7753. }
  7754. /**
  7755. * Assert if a mailable was sent based on a truth-test callback.
  7756. *
  7757. * @param string|\Closure $mailable
  7758. * @param callable|int|null $callback
  7759. * @return void
  7760. * @static
  7761. */
  7762. public static function assertSent($mailable, $callback = null)
  7763. {
  7764. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7765. $instance->assertSent($mailable, $callback);
  7766. }
  7767. /**
  7768. * Determine if a mailable was not sent based on a truth-test callback.
  7769. *
  7770. * @param string $mailable
  7771. * @param callable|null $callback
  7772. * @return void
  7773. * @static
  7774. */
  7775. public static function assertNotSent($mailable, $callback = null)
  7776. {
  7777. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7778. $instance->assertNotSent($mailable, $callback);
  7779. }
  7780. /**
  7781. * Assert that no mailables were sent.
  7782. *
  7783. * @return void
  7784. * @static
  7785. */
  7786. public static function assertNothingSent()
  7787. {
  7788. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7789. $instance->assertNothingSent();
  7790. }
  7791. /**
  7792. * Assert if a mailable was queued based on a truth-test callback.
  7793. *
  7794. * @param string|\Closure $mailable
  7795. * @param callable|int|null $callback
  7796. * @return void
  7797. * @static
  7798. */
  7799. public static function assertQueued($mailable, $callback = null)
  7800. {
  7801. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7802. $instance->assertQueued($mailable, $callback);
  7803. }
  7804. /**
  7805. * Determine if a mailable was not queued based on a truth-test callback.
  7806. *
  7807. * @param string $mailable
  7808. * @param callable|null $callback
  7809. * @return void
  7810. * @static
  7811. */
  7812. public static function assertNotQueued($mailable, $callback = null)
  7813. {
  7814. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7815. $instance->assertNotQueued($mailable, $callback);
  7816. }
  7817. /**
  7818. * Assert that no mailables were queued.
  7819. *
  7820. * @return void
  7821. * @static
  7822. */
  7823. public static function assertNothingQueued()
  7824. {
  7825. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7826. $instance->assertNothingQueued();
  7827. }
  7828. /**
  7829. * Get all of the mailables matching a truth-test callback.
  7830. *
  7831. * @param string $mailable
  7832. * @param callable|null $callback
  7833. * @return \Illuminate\Support\Collection
  7834. * @static
  7835. */
  7836. public static function sent($mailable, $callback = null)
  7837. {
  7838. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7839. return $instance->sent($mailable, $callback);
  7840. }
  7841. /**
  7842. * Determine if the given mailable has been sent.
  7843. *
  7844. * @param string $mailable
  7845. * @return bool
  7846. * @static
  7847. */
  7848. public static function hasSent($mailable)
  7849. {
  7850. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7851. return $instance->hasSent($mailable);
  7852. }
  7853. /**
  7854. * Get all of the queued mailables matching a truth-test callback.
  7855. *
  7856. * @param string $mailable
  7857. * @param callable|null $callback
  7858. * @return \Illuminate\Support\Collection
  7859. * @static
  7860. */
  7861. public static function queued($mailable, $callback = null)
  7862. {
  7863. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7864. return $instance->queued($mailable, $callback);
  7865. }
  7866. /**
  7867. * Determine if the given mailable has been queued.
  7868. *
  7869. * @param string $mailable
  7870. * @return bool
  7871. * @static
  7872. */
  7873. public static function hasQueued($mailable)
  7874. {
  7875. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7876. return $instance->hasQueued($mailable);
  7877. }
  7878. /**
  7879. * Begin the process of mailing a mailable class instance.
  7880. *
  7881. * @param mixed $users
  7882. * @return \Illuminate\Mail\PendingMail
  7883. * @static
  7884. */
  7885. public static function to($users)
  7886. {
  7887. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7888. return $instance->to($users);
  7889. }
  7890. /**
  7891. * Begin the process of mailing a mailable class instance.
  7892. *
  7893. * @param mixed $users
  7894. * @return \Illuminate\Mail\PendingMail
  7895. * @static
  7896. */
  7897. public static function bcc($users)
  7898. {
  7899. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7900. return $instance->bcc($users);
  7901. }
  7902. /**
  7903. * Send a new message with only a raw text part.
  7904. *
  7905. * @param string $text
  7906. * @param \Closure|string $callback
  7907. * @return void
  7908. * @static
  7909. */
  7910. public static function raw($text, $callback)
  7911. {
  7912. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7913. $instance->raw($text, $callback);
  7914. }
  7915. /**
  7916. * Send a new message using a view.
  7917. *
  7918. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  7919. * @param array $data
  7920. * @param \Closure|string|null $callback
  7921. * @return void
  7922. * @static
  7923. */
  7924. public static function send($view, $data = [], $callback = null)
  7925. {
  7926. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7927. $instance->send($view, $data, $callback);
  7928. }
  7929. /**
  7930. * Queue a new e-mail message for sending.
  7931. *
  7932. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  7933. * @param string|null $queue
  7934. * @return mixed
  7935. * @static
  7936. */
  7937. public static function queue($view, $queue = null)
  7938. {
  7939. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7940. return $instance->queue($view, $queue);
  7941. }
  7942. /**
  7943. * Queue a new e-mail message for sending after (n) seconds.
  7944. *
  7945. * @param \DateTimeInterface|\DateInterval|int $delay
  7946. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  7947. * @param string|null $queue
  7948. * @return mixed
  7949. * @static
  7950. */
  7951. public static function later($delay, $view, $queue = null)
  7952. {
  7953. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7954. return $instance->later($delay, $view, $queue);
  7955. }
  7956. /**
  7957. * Get the array of failed recipients.
  7958. *
  7959. * @return array
  7960. * @static
  7961. */
  7962. public static function failures()
  7963. {
  7964. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7965. return $instance->failures();
  7966. }
  7967. }
  7968. /**
  7969. *
  7970. *
  7971. * @see \Illuminate\Notifications\ChannelManager
  7972. */
  7973. class Notification {
  7974. /**
  7975. * Send the given notification to the given notifiable entities.
  7976. *
  7977. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  7978. * @param mixed $notification
  7979. * @return void
  7980. * @static
  7981. */
  7982. public static function send($notifiables, $notification)
  7983. {
  7984. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7985. $instance->send($notifiables, $notification);
  7986. }
  7987. /**
  7988. * Send the given notification immediately.
  7989. *
  7990. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  7991. * @param mixed $notification
  7992. * @param array|null $channels
  7993. * @return void
  7994. * @static
  7995. */
  7996. public static function sendNow($notifiables, $notification, $channels = null)
  7997. {
  7998. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7999. $instance->sendNow($notifiables, $notification, $channels);
  8000. }
  8001. /**
  8002. * Get a channel instance.
  8003. *
  8004. * @param string|null $name
  8005. * @return mixed
  8006. * @static
  8007. */
  8008. public static function channel($name = null)
  8009. {
  8010. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8011. return $instance->channel($name);
  8012. }
  8013. /**
  8014. * Get the default channel driver name.
  8015. *
  8016. * @return string
  8017. * @static
  8018. */
  8019. public static function getDefaultDriver()
  8020. {
  8021. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8022. return $instance->getDefaultDriver();
  8023. }
  8024. /**
  8025. * Get the default channel driver name.
  8026. *
  8027. * @return string
  8028. * @static
  8029. */
  8030. public static function deliversVia()
  8031. {
  8032. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8033. return $instance->deliversVia();
  8034. }
  8035. /**
  8036. * Set the default channel driver name.
  8037. *
  8038. * @param string $channel
  8039. * @return void
  8040. * @static
  8041. */
  8042. public static function deliverVia($channel)
  8043. {
  8044. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8045. $instance->deliverVia($channel);
  8046. }
  8047. /**
  8048. * Set the locale of notifications.
  8049. *
  8050. * @param string $locale
  8051. * @return \Illuminate\Notifications\ChannelManager
  8052. * @static
  8053. */
  8054. public static function locale($locale)
  8055. {
  8056. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8057. return $instance->locale($locale);
  8058. }
  8059. /**
  8060. * Get a driver instance.
  8061. *
  8062. * @param string|null $driver
  8063. * @return mixed
  8064. * @throws \InvalidArgumentException
  8065. * @static
  8066. */
  8067. public static function driver($driver = null)
  8068. { //Method inherited from \Illuminate\Support\Manager
  8069. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8070. return $instance->driver($driver);
  8071. }
  8072. /**
  8073. * Register a custom driver creator Closure.
  8074. *
  8075. * @param string $driver
  8076. * @param \Closure $callback
  8077. * @return \Illuminate\Notifications\ChannelManager
  8078. * @static
  8079. */
  8080. public static function extend($driver, $callback)
  8081. { //Method inherited from \Illuminate\Support\Manager
  8082. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8083. return $instance->extend($driver, $callback);
  8084. }
  8085. /**
  8086. * Get all of the created "drivers".
  8087. *
  8088. * @return array
  8089. * @static
  8090. */
  8091. public static function getDrivers()
  8092. { //Method inherited from \Illuminate\Support\Manager
  8093. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8094. return $instance->getDrivers();
  8095. }
  8096. /**
  8097. * Get the container instance used by the manager.
  8098. *
  8099. * @return \Illuminate\Contracts\Container\Container
  8100. * @static
  8101. */
  8102. public static function getContainer()
  8103. { //Method inherited from \Illuminate\Support\Manager
  8104. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8105. return $instance->getContainer();
  8106. }
  8107. /**
  8108. * Set the container instance used by the manager.
  8109. *
  8110. * @param \Illuminate\Contracts\Container\Container $container
  8111. * @return \Illuminate\Notifications\ChannelManager
  8112. * @static
  8113. */
  8114. public static function setContainer($container)
  8115. { //Method inherited from \Illuminate\Support\Manager
  8116. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8117. return $instance->setContainer($container);
  8118. }
  8119. /**
  8120. * Forget all of the resolved driver instances.
  8121. *
  8122. * @return \Illuminate\Notifications\ChannelManager
  8123. * @static
  8124. */
  8125. public static function forgetDrivers()
  8126. { //Method inherited from \Illuminate\Support\Manager
  8127. /** @var \Illuminate\Notifications\ChannelManager $instance */
  8128. return $instance->forgetDrivers();
  8129. }
  8130. /**
  8131. * Assert if a notification was sent based on a truth-test callback.
  8132. *
  8133. * @param mixed $notifiable
  8134. * @param string|\Closure $notification
  8135. * @param callable|null $callback
  8136. * @return void
  8137. * @throws \Exception
  8138. * @static
  8139. */
  8140. public static function assertSentTo($notifiable, $notification, $callback = null)
  8141. {
  8142. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8143. $instance->assertSentTo($notifiable, $notification, $callback);
  8144. }
  8145. /**
  8146. * Assert if a notification was sent a number of times.
  8147. *
  8148. * @param mixed $notifiable
  8149. * @param string $notification
  8150. * @param int $times
  8151. * @return void
  8152. * @static
  8153. */
  8154. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  8155. {
  8156. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8157. $instance->assertSentToTimes($notifiable, $notification, $times);
  8158. }
  8159. /**
  8160. * Determine if a notification was sent based on a truth-test callback.
  8161. *
  8162. * @param mixed $notifiable
  8163. * @param string|\Closure $notification
  8164. * @param callable|null $callback
  8165. * @return void
  8166. * @throws \Exception
  8167. * @static
  8168. */
  8169. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  8170. {
  8171. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8172. $instance->assertNotSentTo($notifiable, $notification, $callback);
  8173. }
  8174. /**
  8175. * Assert that no notifications were sent.
  8176. *
  8177. * @return void
  8178. * @static
  8179. */
  8180. public static function assertNothingSent()
  8181. {
  8182. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8183. $instance->assertNothingSent();
  8184. }
  8185. /**
  8186. * Assert the total amount of times a notification was sent.
  8187. *
  8188. * @param int $expectedCount
  8189. * @param string $notification
  8190. * @return void
  8191. * @static
  8192. */
  8193. public static function assertTimesSent($expectedCount, $notification)
  8194. {
  8195. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8196. $instance->assertTimesSent($expectedCount, $notification);
  8197. }
  8198. /**
  8199. * Get all of the notifications matching a truth-test callback.
  8200. *
  8201. * @param mixed $notifiable
  8202. * @param string $notification
  8203. * @param callable|null $callback
  8204. * @return \Illuminate\Support\Collection
  8205. * @static
  8206. */
  8207. public static function sent($notifiable, $notification, $callback = null)
  8208. {
  8209. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8210. return $instance->sent($notifiable, $notification, $callback);
  8211. }
  8212. /**
  8213. * Determine if there are more notifications left to inspect.
  8214. *
  8215. * @param mixed $notifiable
  8216. * @param string $notification
  8217. * @return bool
  8218. * @static
  8219. */
  8220. public static function hasSent($notifiable, $notification)
  8221. {
  8222. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  8223. return $instance->hasSent($notifiable, $notification);
  8224. }
  8225. /**
  8226. * Register a custom macro.
  8227. *
  8228. * @param string $name
  8229. * @param object|callable $macro
  8230. * @return void
  8231. * @static
  8232. */
  8233. public static function macro($name, $macro)
  8234. {
  8235. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  8236. }
  8237. /**
  8238. * Mix another object into the class.
  8239. *
  8240. * @param object $mixin
  8241. * @param bool $replace
  8242. * @return void
  8243. * @throws \ReflectionException
  8244. * @static
  8245. */
  8246. public static function mixin($mixin, $replace = true)
  8247. {
  8248. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  8249. }
  8250. /**
  8251. * Checks if macro is registered.
  8252. *
  8253. * @param string $name
  8254. * @return bool
  8255. * @static
  8256. */
  8257. public static function hasMacro($name)
  8258. {
  8259. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  8260. }
  8261. }
  8262. /**
  8263. *
  8264. *
  8265. * @method static mixed reset(array $credentials, \Closure $callback)
  8266. * @method static string sendResetLink(array $credentials, \Closure $callback = null)
  8267. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  8268. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8269. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  8270. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  8271. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  8272. * @see \Illuminate\Auth\Passwords\PasswordBroker
  8273. */
  8274. class Password {
  8275. /**
  8276. * Attempt to get the broker from the local cache.
  8277. *
  8278. * @param string|null $name
  8279. * @return \Illuminate\Contracts\Auth\PasswordBroker
  8280. * @static
  8281. */
  8282. public static function broker($name = null)
  8283. {
  8284. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8285. return $instance->broker($name);
  8286. }
  8287. /**
  8288. * Get the default password broker name.
  8289. *
  8290. * @return string
  8291. * @static
  8292. */
  8293. public static function getDefaultDriver()
  8294. {
  8295. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8296. return $instance->getDefaultDriver();
  8297. }
  8298. /**
  8299. * Set the default password broker name.
  8300. *
  8301. * @param string $name
  8302. * @return void
  8303. * @static
  8304. */
  8305. public static function setDefaultDriver($name)
  8306. {
  8307. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  8308. $instance->setDefaultDriver($name);
  8309. }
  8310. }
  8311. /**
  8312. *
  8313. *
  8314. * @method static void popUsing(string $workerName, callable $callback)
  8315. * @see \Illuminate\Queue\QueueManager
  8316. * @see \Illuminate\Queue\Queue
  8317. */
  8318. class Queue {
  8319. /**
  8320. * Register an event listener for the before job event.
  8321. *
  8322. * @param mixed $callback
  8323. * @return void
  8324. * @static
  8325. */
  8326. public static function before($callback)
  8327. {
  8328. /** @var \Illuminate\Queue\QueueManager $instance */
  8329. $instance->before($callback);
  8330. }
  8331. /**
  8332. * Register an event listener for the after job event.
  8333. *
  8334. * @param mixed $callback
  8335. * @return void
  8336. * @static
  8337. */
  8338. public static function after($callback)
  8339. {
  8340. /** @var \Illuminate\Queue\QueueManager $instance */
  8341. $instance->after($callback);
  8342. }
  8343. /**
  8344. * Register an event listener for the exception occurred job event.
  8345. *
  8346. * @param mixed $callback
  8347. * @return void
  8348. * @static
  8349. */
  8350. public static function exceptionOccurred($callback)
  8351. {
  8352. /** @var \Illuminate\Queue\QueueManager $instance */
  8353. $instance->exceptionOccurred($callback);
  8354. }
  8355. /**
  8356. * Register an event listener for the daemon queue loop.
  8357. *
  8358. * @param mixed $callback
  8359. * @return void
  8360. * @static
  8361. */
  8362. public static function looping($callback)
  8363. {
  8364. /** @var \Illuminate\Queue\QueueManager $instance */
  8365. $instance->looping($callback);
  8366. }
  8367. /**
  8368. * Register an event listener for the failed job event.
  8369. *
  8370. * @param mixed $callback
  8371. * @return void
  8372. * @static
  8373. */
  8374. public static function failing($callback)
  8375. {
  8376. /** @var \Illuminate\Queue\QueueManager $instance */
  8377. $instance->failing($callback);
  8378. }
  8379. /**
  8380. * Register an event listener for the daemon queue stopping.
  8381. *
  8382. * @param mixed $callback
  8383. * @return void
  8384. * @static
  8385. */
  8386. public static function stopping($callback)
  8387. {
  8388. /** @var \Illuminate\Queue\QueueManager $instance */
  8389. $instance->stopping($callback);
  8390. }
  8391. /**
  8392. * Determine if the driver is connected.
  8393. *
  8394. * @param string|null $name
  8395. * @return bool
  8396. * @static
  8397. */
  8398. public static function connected($name = null)
  8399. {
  8400. /** @var \Illuminate\Queue\QueueManager $instance */
  8401. return $instance->connected($name);
  8402. }
  8403. /**
  8404. * Resolve a queue connection instance.
  8405. *
  8406. * @param string|null $name
  8407. * @return \Illuminate\Contracts\Queue\Queue
  8408. * @static
  8409. */
  8410. public static function connection($name = null)
  8411. {
  8412. /** @var \Illuminate\Queue\QueueManager $instance */
  8413. return $instance->connection($name);
  8414. }
  8415. /**
  8416. * Add a queue connection resolver.
  8417. *
  8418. * @param string $driver
  8419. * @param \Closure $resolver
  8420. * @return void
  8421. * @static
  8422. */
  8423. public static function extend($driver, $resolver)
  8424. {
  8425. /** @var \Illuminate\Queue\QueueManager $instance */
  8426. $instance->extend($driver, $resolver);
  8427. }
  8428. /**
  8429. * Add a queue connection resolver.
  8430. *
  8431. * @param string $driver
  8432. * @param \Closure $resolver
  8433. * @return void
  8434. * @static
  8435. */
  8436. public static function addConnector($driver, $resolver)
  8437. {
  8438. /** @var \Illuminate\Queue\QueueManager $instance */
  8439. $instance->addConnector($driver, $resolver);
  8440. }
  8441. /**
  8442. * Get the name of the default queue connection.
  8443. *
  8444. * @return string
  8445. * @static
  8446. */
  8447. public static function getDefaultDriver()
  8448. {
  8449. /** @var \Illuminate\Queue\QueueManager $instance */
  8450. return $instance->getDefaultDriver();
  8451. }
  8452. /**
  8453. * Set the name of the default queue connection.
  8454. *
  8455. * @param string $name
  8456. * @return void
  8457. * @static
  8458. */
  8459. public static function setDefaultDriver($name)
  8460. {
  8461. /** @var \Illuminate\Queue\QueueManager $instance */
  8462. $instance->setDefaultDriver($name);
  8463. }
  8464. /**
  8465. * Get the full name for the given connection.
  8466. *
  8467. * @param string|null $connection
  8468. * @return string
  8469. * @static
  8470. */
  8471. public static function getName($connection = null)
  8472. {
  8473. /** @var \Illuminate\Queue\QueueManager $instance */
  8474. return $instance->getName($connection);
  8475. }
  8476. /**
  8477. * Get the application instance used by the manager.
  8478. *
  8479. * @return \Illuminate\Contracts\Foundation\Application
  8480. * @static
  8481. */
  8482. public static function getApplication()
  8483. {
  8484. /** @var \Illuminate\Queue\QueueManager $instance */
  8485. return $instance->getApplication();
  8486. }
  8487. /**
  8488. * Set the application instance used by the manager.
  8489. *
  8490. * @param \Illuminate\Contracts\Foundation\Application $app
  8491. * @return \Illuminate\Queue\QueueManager
  8492. * @static
  8493. */
  8494. public static function setApplication($app)
  8495. {
  8496. /** @var \Illuminate\Queue\QueueManager $instance */
  8497. return $instance->setApplication($app);
  8498. }
  8499. /**
  8500. * Assert if a job was pushed based on a truth-test callback.
  8501. *
  8502. * @param string|\Closure $job
  8503. * @param callable|int|null $callback
  8504. * @return void
  8505. * @static
  8506. */
  8507. public static function assertPushed($job, $callback = null)
  8508. {
  8509. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8510. $instance->assertPushed($job, $callback);
  8511. }
  8512. /**
  8513. * Assert if a job was pushed based on a truth-test callback.
  8514. *
  8515. * @param string $queue
  8516. * @param string|\Closure $job
  8517. * @param callable|null $callback
  8518. * @return void
  8519. * @static
  8520. */
  8521. public static function assertPushedOn($queue, $job, $callback = null)
  8522. {
  8523. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8524. $instance->assertPushedOn($queue, $job, $callback);
  8525. }
  8526. /**
  8527. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  8528. *
  8529. * @param string $job
  8530. * @param array $expectedChain
  8531. * @param callable|null $callback
  8532. * @return void
  8533. * @static
  8534. */
  8535. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  8536. {
  8537. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8538. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  8539. }
  8540. /**
  8541. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  8542. *
  8543. * @param string $job
  8544. * @param callable|null $callback
  8545. * @return void
  8546. * @static
  8547. */
  8548. public static function assertPushedWithoutChain($job, $callback = null)
  8549. {
  8550. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8551. $instance->assertPushedWithoutChain($job, $callback);
  8552. }
  8553. /**
  8554. * Determine if a job was pushed based on a truth-test callback.
  8555. *
  8556. * @param string|\Closure $job
  8557. * @param callable|null $callback
  8558. * @return void
  8559. * @static
  8560. */
  8561. public static function assertNotPushed($job, $callback = null)
  8562. {
  8563. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8564. $instance->assertNotPushed($job, $callback);
  8565. }
  8566. /**
  8567. * Assert that no jobs were pushed.
  8568. *
  8569. * @return void
  8570. * @static
  8571. */
  8572. public static function assertNothingPushed()
  8573. {
  8574. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8575. $instance->assertNothingPushed();
  8576. }
  8577. /**
  8578. * Get all of the jobs matching a truth-test callback.
  8579. *
  8580. * @param string $job
  8581. * @param callable|null $callback
  8582. * @return \Illuminate\Support\Collection
  8583. * @static
  8584. */
  8585. public static function pushed($job, $callback = null)
  8586. {
  8587. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8588. return $instance->pushed($job, $callback);
  8589. }
  8590. /**
  8591. * Determine if there are any stored jobs for a given class.
  8592. *
  8593. * @param string $job
  8594. * @return bool
  8595. * @static
  8596. */
  8597. public static function hasPushed($job)
  8598. {
  8599. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8600. return $instance->hasPushed($job);
  8601. }
  8602. /**
  8603. * Get the size of the queue.
  8604. *
  8605. * @param string|null $queue
  8606. * @return int
  8607. * @static
  8608. */
  8609. public static function size($queue = null)
  8610. {
  8611. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8612. return $instance->size($queue);
  8613. }
  8614. /**
  8615. * Push a new job onto the queue.
  8616. *
  8617. * @param string $job
  8618. * @param mixed $data
  8619. * @param string|null $queue
  8620. * @return mixed
  8621. * @static
  8622. */
  8623. public static function push($job, $data = '', $queue = null)
  8624. {
  8625. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8626. return $instance->push($job, $data, $queue);
  8627. }
  8628. /**
  8629. * Push a raw payload onto the queue.
  8630. *
  8631. * @param string $payload
  8632. * @param string|null $queue
  8633. * @param array $options
  8634. * @return mixed
  8635. * @static
  8636. */
  8637. public static function pushRaw($payload, $queue = null, $options = [])
  8638. {
  8639. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8640. return $instance->pushRaw($payload, $queue, $options);
  8641. }
  8642. /**
  8643. * Push a new job onto the queue after a delay.
  8644. *
  8645. * @param \DateTimeInterface|\DateInterval|int $delay
  8646. * @param string $job
  8647. * @param mixed $data
  8648. * @param string|null $queue
  8649. * @return mixed
  8650. * @static
  8651. */
  8652. public static function later($delay, $job, $data = '', $queue = null)
  8653. {
  8654. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8655. return $instance->later($delay, $job, $data, $queue);
  8656. }
  8657. /**
  8658. * Push a new job onto the queue.
  8659. *
  8660. * @param string $queue
  8661. * @param string $job
  8662. * @param mixed $data
  8663. * @return mixed
  8664. * @static
  8665. */
  8666. public static function pushOn($queue, $job, $data = '')
  8667. {
  8668. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8669. return $instance->pushOn($queue, $job, $data);
  8670. }
  8671. /**
  8672. * Push a new job onto the queue after a delay.
  8673. *
  8674. * @param string $queue
  8675. * @param \DateTimeInterface|\DateInterval|int $delay
  8676. * @param string $job
  8677. * @param mixed $data
  8678. * @return mixed
  8679. * @static
  8680. */
  8681. public static function laterOn($queue, $delay, $job, $data = '')
  8682. {
  8683. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8684. return $instance->laterOn($queue, $delay, $job, $data);
  8685. }
  8686. /**
  8687. * Pop the next job off of the queue.
  8688. *
  8689. * @param string|null $queue
  8690. * @return \Illuminate\Contracts\Queue\Job|null
  8691. * @static
  8692. */
  8693. public static function pop($queue = null)
  8694. {
  8695. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8696. return $instance->pop($queue);
  8697. }
  8698. /**
  8699. * Push an array of jobs onto the queue.
  8700. *
  8701. * @param array $jobs
  8702. * @param mixed $data
  8703. * @param string|null $queue
  8704. * @return mixed
  8705. * @static
  8706. */
  8707. public static function bulk($jobs, $data = '', $queue = null)
  8708. {
  8709. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8710. return $instance->bulk($jobs, $data, $queue);
  8711. }
  8712. /**
  8713. * Get the jobs that have been pushed.
  8714. *
  8715. * @return array
  8716. * @static
  8717. */
  8718. public static function pushedJobs()
  8719. {
  8720. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8721. return $instance->pushedJobs();
  8722. }
  8723. /**
  8724. * Get the connection name for the queue.
  8725. *
  8726. * @return string
  8727. * @static
  8728. */
  8729. public static function getConnectionName()
  8730. {
  8731. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8732. return $instance->getConnectionName();
  8733. }
  8734. /**
  8735. * Set the connection name for the queue.
  8736. *
  8737. * @param string $name
  8738. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  8739. * @static
  8740. */
  8741. public static function setConnectionName($name)
  8742. {
  8743. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  8744. return $instance->setConnectionName($name);
  8745. }
  8746. /**
  8747. * Get the backoff for an object-based queue handler.
  8748. *
  8749. * @param mixed $job
  8750. * @return mixed
  8751. * @static
  8752. */
  8753. public static function getJobBackoff($job)
  8754. { //Method inherited from \Illuminate\Queue\Queue
  8755. /** @var \Illuminate\Queue\SyncQueue $instance */
  8756. return $instance->getJobBackoff($job);
  8757. }
  8758. /**
  8759. * Get the expiration timestamp for an object-based queue handler.
  8760. *
  8761. * @param mixed $job
  8762. * @return mixed
  8763. * @static
  8764. */
  8765. public static function getJobExpiration($job)
  8766. { //Method inherited from \Illuminate\Queue\Queue
  8767. /** @var \Illuminate\Queue\SyncQueue $instance */
  8768. return $instance->getJobExpiration($job);
  8769. }
  8770. /**
  8771. * Register a callback to be executed when creating job payloads.
  8772. *
  8773. * @param callable|null $callback
  8774. * @return void
  8775. * @static
  8776. */
  8777. public static function createPayloadUsing($callback)
  8778. { //Method inherited from \Illuminate\Queue\Queue
  8779. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  8780. }
  8781. /**
  8782. * Get the container instance being used by the connection.
  8783. *
  8784. * @return \Illuminate\Container\Container
  8785. * @static
  8786. */
  8787. public static function getContainer()
  8788. { //Method inherited from \Illuminate\Queue\Queue
  8789. /** @var \Illuminate\Queue\SyncQueue $instance */
  8790. return $instance->getContainer();
  8791. }
  8792. /**
  8793. * Set the IoC container instance.
  8794. *
  8795. * @param \Illuminate\Container\Container $container
  8796. * @return void
  8797. * @static
  8798. */
  8799. public static function setContainer($container)
  8800. { //Method inherited from \Illuminate\Queue\Queue
  8801. /** @var \Illuminate\Queue\SyncQueue $instance */
  8802. $instance->setContainer($container);
  8803. }
  8804. }
  8805. /**
  8806. *
  8807. *
  8808. * @see \Illuminate\Cache\RateLimiter
  8809. */
  8810. class RateLimiter {
  8811. /**
  8812. * Register a named limiter configuration.
  8813. *
  8814. * @param string $name
  8815. * @param \Closure $callback
  8816. * @return \Illuminate\Cache\RateLimiter
  8817. * @static
  8818. */
  8819. public static function for($name, $callback)
  8820. {
  8821. /** @var \Illuminate\Cache\RateLimiter $instance */
  8822. return $instance->for($name, $callback);
  8823. }
  8824. /**
  8825. * Get the given named rate limiter.
  8826. *
  8827. * @param string $name
  8828. * @return \Closure
  8829. * @static
  8830. */
  8831. public static function limiter($name)
  8832. {
  8833. /** @var \Illuminate\Cache\RateLimiter $instance */
  8834. return $instance->limiter($name);
  8835. }
  8836. /**
  8837. * Determine if the given key has been "accessed" too many times.
  8838. *
  8839. * @param string $key
  8840. * @param int $maxAttempts
  8841. * @return bool
  8842. * @static
  8843. */
  8844. public static function tooManyAttempts($key, $maxAttempts)
  8845. {
  8846. /** @var \Illuminate\Cache\RateLimiter $instance */
  8847. return $instance->tooManyAttempts($key, $maxAttempts);
  8848. }
  8849. /**
  8850. * Increment the counter for a given key for a given decay time.
  8851. *
  8852. * @param string $key
  8853. * @param int $decaySeconds
  8854. * @return int
  8855. * @static
  8856. */
  8857. public static function hit($key, $decaySeconds = 60)
  8858. {
  8859. /** @var \Illuminate\Cache\RateLimiter $instance */
  8860. return $instance->hit($key, $decaySeconds);
  8861. }
  8862. /**
  8863. * Get the number of attempts for the given key.
  8864. *
  8865. * @param string $key
  8866. * @return mixed
  8867. * @static
  8868. */
  8869. public static function attempts($key)
  8870. {
  8871. /** @var \Illuminate\Cache\RateLimiter $instance */
  8872. return $instance->attempts($key);
  8873. }
  8874. /**
  8875. * Reset the number of attempts for the given key.
  8876. *
  8877. * @param string $key
  8878. * @return mixed
  8879. * @static
  8880. */
  8881. public static function resetAttempts($key)
  8882. {
  8883. /** @var \Illuminate\Cache\RateLimiter $instance */
  8884. return $instance->resetAttempts($key);
  8885. }
  8886. /**
  8887. * Get the number of retries left for the given key.
  8888. *
  8889. * @param string $key
  8890. * @param int $maxAttempts
  8891. * @return int
  8892. * @static
  8893. */
  8894. public static function retriesLeft($key, $maxAttempts)
  8895. {
  8896. /** @var \Illuminate\Cache\RateLimiter $instance */
  8897. return $instance->retriesLeft($key, $maxAttempts);
  8898. }
  8899. /**
  8900. * Clear the hits and lockout timer for the given key.
  8901. *
  8902. * @param string $key
  8903. * @return void
  8904. * @static
  8905. */
  8906. public static function clear($key)
  8907. {
  8908. /** @var \Illuminate\Cache\RateLimiter $instance */
  8909. $instance->clear($key);
  8910. }
  8911. /**
  8912. * Get the number of seconds until the "key" is accessible again.
  8913. *
  8914. * @param string $key
  8915. * @return int
  8916. * @static
  8917. */
  8918. public static function availableIn($key)
  8919. {
  8920. /** @var \Illuminate\Cache\RateLimiter $instance */
  8921. return $instance->availableIn($key);
  8922. }
  8923. }
  8924. /**
  8925. *
  8926. *
  8927. * @see \Illuminate\Routing\Redirector
  8928. */
  8929. class Redirect {
  8930. /**
  8931. * Create a new redirect response to the "home" route.
  8932. *
  8933. * @param int $status
  8934. * @return \Illuminate\Http\RedirectResponse
  8935. * @static
  8936. */
  8937. public static function home($status = 302)
  8938. {
  8939. /** @var \Illuminate\Routing\Redirector $instance */
  8940. return $instance->home($status);
  8941. }
  8942. /**
  8943. * Create a new redirect response to the previous location.
  8944. *
  8945. * @param int $status
  8946. * @param array $headers
  8947. * @param mixed $fallback
  8948. * @return \Illuminate\Http\RedirectResponse
  8949. * @static
  8950. */
  8951. public static function back($status = 302, $headers = [], $fallback = false)
  8952. {
  8953. /** @var \Illuminate\Routing\Redirector $instance */
  8954. return $instance->back($status, $headers, $fallback);
  8955. }
  8956. /**
  8957. * Create a new redirect response to the current URI.
  8958. *
  8959. * @param int $status
  8960. * @param array $headers
  8961. * @return \Illuminate\Http\RedirectResponse
  8962. * @static
  8963. */
  8964. public static function refresh($status = 302, $headers = [])
  8965. {
  8966. /** @var \Illuminate\Routing\Redirector $instance */
  8967. return $instance->refresh($status, $headers);
  8968. }
  8969. /**
  8970. * Create a new redirect response, while putting the current URL in the session.
  8971. *
  8972. * @param string $path
  8973. * @param int $status
  8974. * @param array $headers
  8975. * @param bool|null $secure
  8976. * @return \Illuminate\Http\RedirectResponse
  8977. * @static
  8978. */
  8979. public static function guest($path, $status = 302, $headers = [], $secure = null)
  8980. {
  8981. /** @var \Illuminate\Routing\Redirector $instance */
  8982. return $instance->guest($path, $status, $headers, $secure);
  8983. }
  8984. /**
  8985. * Create a new redirect response to the previously intended location.
  8986. *
  8987. * @param string $default
  8988. * @param int $status
  8989. * @param array $headers
  8990. * @param bool|null $secure
  8991. * @return \Illuminate\Http\RedirectResponse
  8992. * @static
  8993. */
  8994. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  8995. {
  8996. /** @var \Illuminate\Routing\Redirector $instance */
  8997. return $instance->intended($default, $status, $headers, $secure);
  8998. }
  8999. /**
  9000. * Set the intended url.
  9001. *
  9002. * @param string $url
  9003. * @return void
  9004. * @static
  9005. */
  9006. public static function setIntendedUrl($url)
  9007. {
  9008. /** @var \Illuminate\Routing\Redirector $instance */
  9009. $instance->setIntendedUrl($url);
  9010. }
  9011. /**
  9012. * Create a new redirect response to the given path.
  9013. *
  9014. * @param string $path
  9015. * @param int $status
  9016. * @param array $headers
  9017. * @param bool|null $secure
  9018. * @return \Illuminate\Http\RedirectResponse
  9019. * @static
  9020. */
  9021. public static function to($path, $status = 302, $headers = [], $secure = null)
  9022. {
  9023. /** @var \Illuminate\Routing\Redirector $instance */
  9024. return $instance->to($path, $status, $headers, $secure);
  9025. }
  9026. /**
  9027. * Create a new redirect response to an external URL (no validation).
  9028. *
  9029. * @param string $path
  9030. * @param int $status
  9031. * @param array $headers
  9032. * @return \Illuminate\Http\RedirectResponse
  9033. * @static
  9034. */
  9035. public static function away($path, $status = 302, $headers = [])
  9036. {
  9037. /** @var \Illuminate\Routing\Redirector $instance */
  9038. return $instance->away($path, $status, $headers);
  9039. }
  9040. /**
  9041. * Create a new redirect response to the given HTTPS path.
  9042. *
  9043. * @param string $path
  9044. * @param int $status
  9045. * @param array $headers
  9046. * @return \Illuminate\Http\RedirectResponse
  9047. * @static
  9048. */
  9049. public static function secure($path, $status = 302, $headers = [])
  9050. {
  9051. /** @var \Illuminate\Routing\Redirector $instance */
  9052. return $instance->secure($path, $status, $headers);
  9053. }
  9054. /**
  9055. * Create a new redirect response to a named route.
  9056. *
  9057. * @param string $route
  9058. * @param mixed $parameters
  9059. * @param int $status
  9060. * @param array $headers
  9061. * @return \Illuminate\Http\RedirectResponse
  9062. * @static
  9063. */
  9064. public static function route($route, $parameters = [], $status = 302, $headers = [])
  9065. {
  9066. /** @var \Illuminate\Routing\Redirector $instance */
  9067. return $instance->route($route, $parameters, $status, $headers);
  9068. }
  9069. /**
  9070. * Create a new redirect response to a signed named route.
  9071. *
  9072. * @param string $route
  9073. * @param mixed $parameters
  9074. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9075. * @param int $status
  9076. * @param array $headers
  9077. * @return \Illuminate\Http\RedirectResponse
  9078. * @static
  9079. */
  9080. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  9081. {
  9082. /** @var \Illuminate\Routing\Redirector $instance */
  9083. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  9084. }
  9085. /**
  9086. * Create a new redirect response to a signed named route.
  9087. *
  9088. * @param string $route
  9089. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  9090. * @param mixed $parameters
  9091. * @param int $status
  9092. * @param array $headers
  9093. * @return \Illuminate\Http\RedirectResponse
  9094. * @static
  9095. */
  9096. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  9097. {
  9098. /** @var \Illuminate\Routing\Redirector $instance */
  9099. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  9100. }
  9101. /**
  9102. * Create a new redirect response to a controller action.
  9103. *
  9104. * @param string|array $action
  9105. * @param mixed $parameters
  9106. * @param int $status
  9107. * @param array $headers
  9108. * @return \Illuminate\Http\RedirectResponse
  9109. * @static
  9110. */
  9111. public static function action($action, $parameters = [], $status = 302, $headers = [])
  9112. {
  9113. /** @var \Illuminate\Routing\Redirector $instance */
  9114. return $instance->action($action, $parameters, $status, $headers);
  9115. }
  9116. /**
  9117. * Get the URL generator instance.
  9118. *
  9119. * @return \Illuminate\Routing\UrlGenerator
  9120. * @static
  9121. */
  9122. public static function getUrlGenerator()
  9123. {
  9124. /** @var \Illuminate\Routing\Redirector $instance */
  9125. return $instance->getUrlGenerator();
  9126. }
  9127. /**
  9128. * Set the active session store.
  9129. *
  9130. * @param \Illuminate\Session\Store $session
  9131. * @return void
  9132. * @static
  9133. */
  9134. public static function setSession($session)
  9135. {
  9136. /** @var \Illuminate\Routing\Redirector $instance */
  9137. $instance->setSession($session);
  9138. }
  9139. /**
  9140. * Register a custom macro.
  9141. *
  9142. * @param string $name
  9143. * @param object|callable $macro
  9144. * @return void
  9145. * @static
  9146. */
  9147. public static function macro($name, $macro)
  9148. {
  9149. \Illuminate\Routing\Redirector::macro($name, $macro);
  9150. }
  9151. /**
  9152. * Mix another object into the class.
  9153. *
  9154. * @param object $mixin
  9155. * @param bool $replace
  9156. * @return void
  9157. * @throws \ReflectionException
  9158. * @static
  9159. */
  9160. public static function mixin($mixin, $replace = true)
  9161. {
  9162. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  9163. }
  9164. /**
  9165. * Checks if macro is registered.
  9166. *
  9167. * @param string $name
  9168. * @return bool
  9169. * @static
  9170. */
  9171. public static function hasMacro($name)
  9172. {
  9173. return \Illuminate\Routing\Redirector::hasMacro($name);
  9174. }
  9175. }
  9176. /**
  9177. *
  9178. *
  9179. * @method static mixed filterFiles(mixed $files)
  9180. * @see \Illuminate\Http\Request
  9181. */
  9182. class Request {
  9183. /**
  9184. * Create a new Illuminate HTTP request from server variables.
  9185. *
  9186. * @return static
  9187. * @static
  9188. */
  9189. public static function capture()
  9190. {
  9191. return \Illuminate\Http\Request::capture();
  9192. }
  9193. /**
  9194. * Return the Request instance.
  9195. *
  9196. * @return \Illuminate\Http\Request
  9197. * @static
  9198. */
  9199. public static function instance()
  9200. {
  9201. /** @var \Illuminate\Http\Request $instance */
  9202. return $instance->instance();
  9203. }
  9204. /**
  9205. * Get the request method.
  9206. *
  9207. * @return string
  9208. * @static
  9209. */
  9210. public static function method()
  9211. {
  9212. /** @var \Illuminate\Http\Request $instance */
  9213. return $instance->method();
  9214. }
  9215. /**
  9216. * Get the root URL for the application.
  9217. *
  9218. * @return string
  9219. * @static
  9220. */
  9221. public static function root()
  9222. {
  9223. /** @var \Illuminate\Http\Request $instance */
  9224. return $instance->root();
  9225. }
  9226. /**
  9227. * Get the URL (no query string) for the request.
  9228. *
  9229. * @return string
  9230. * @static
  9231. */
  9232. public static function url()
  9233. {
  9234. /** @var \Illuminate\Http\Request $instance */
  9235. return $instance->url();
  9236. }
  9237. /**
  9238. * Get the full URL for the request.
  9239. *
  9240. * @return string
  9241. * @static
  9242. */
  9243. public static function fullUrl()
  9244. {
  9245. /** @var \Illuminate\Http\Request $instance */
  9246. return $instance->fullUrl();
  9247. }
  9248. /**
  9249. * Get the full URL for the request with the added query string parameters.
  9250. *
  9251. * @param array $query
  9252. * @return string
  9253. * @static
  9254. */
  9255. public static function fullUrlWithQuery($query)
  9256. {
  9257. /** @var \Illuminate\Http\Request $instance */
  9258. return $instance->fullUrlWithQuery($query);
  9259. }
  9260. /**
  9261. * Get the current path info for the request.
  9262. *
  9263. * @return string
  9264. * @static
  9265. */
  9266. public static function path()
  9267. {
  9268. /** @var \Illuminate\Http\Request $instance */
  9269. return $instance->path();
  9270. }
  9271. /**
  9272. * Get the current decoded path info for the request.
  9273. *
  9274. * @return string
  9275. * @static
  9276. */
  9277. public static function decodedPath()
  9278. {
  9279. /** @var \Illuminate\Http\Request $instance */
  9280. return $instance->decodedPath();
  9281. }
  9282. /**
  9283. * Get a segment from the URI (1 based index).
  9284. *
  9285. * @param int $index
  9286. * @param string|null $default
  9287. * @return string|null
  9288. * @static
  9289. */
  9290. public static function segment($index, $default = null)
  9291. {
  9292. /** @var \Illuminate\Http\Request $instance */
  9293. return $instance->segment($index, $default);
  9294. }
  9295. /**
  9296. * Get all of the segments for the request path.
  9297. *
  9298. * @return array
  9299. * @static
  9300. */
  9301. public static function segments()
  9302. {
  9303. /** @var \Illuminate\Http\Request $instance */
  9304. return $instance->segments();
  9305. }
  9306. /**
  9307. * Determine if the current request URI matches a pattern.
  9308. *
  9309. * @param mixed $patterns
  9310. * @return bool
  9311. * @static
  9312. */
  9313. public static function is(...$patterns)
  9314. {
  9315. /** @var \Illuminate\Http\Request $instance */
  9316. return $instance->is(...$patterns);
  9317. }
  9318. /**
  9319. * Determine if the route name matches a given pattern.
  9320. *
  9321. * @param mixed $patterns
  9322. * @return bool
  9323. * @static
  9324. */
  9325. public static function routeIs(...$patterns)
  9326. {
  9327. /** @var \Illuminate\Http\Request $instance */
  9328. return $instance->routeIs(...$patterns);
  9329. }
  9330. /**
  9331. * Determine if the current request URL and query string match a pattern.
  9332. *
  9333. * @param mixed $patterns
  9334. * @return bool
  9335. * @static
  9336. */
  9337. public static function fullUrlIs(...$patterns)
  9338. {
  9339. /** @var \Illuminate\Http\Request $instance */
  9340. return $instance->fullUrlIs(...$patterns);
  9341. }
  9342. /**
  9343. * Determine if the request is the result of an AJAX call.
  9344. *
  9345. * @return bool
  9346. * @static
  9347. */
  9348. public static function ajax()
  9349. {
  9350. /** @var \Illuminate\Http\Request $instance */
  9351. return $instance->ajax();
  9352. }
  9353. /**
  9354. * Determine if the request is the result of a PJAX call.
  9355. *
  9356. * @return bool
  9357. * @static
  9358. */
  9359. public static function pjax()
  9360. {
  9361. /** @var \Illuminate\Http\Request $instance */
  9362. return $instance->pjax();
  9363. }
  9364. /**
  9365. * Determine if the request is the result of a prefetch call.
  9366. *
  9367. * @return bool
  9368. * @static
  9369. */
  9370. public static function prefetch()
  9371. {
  9372. /** @var \Illuminate\Http\Request $instance */
  9373. return $instance->prefetch();
  9374. }
  9375. /**
  9376. * Determine if the request is over HTTPS.
  9377. *
  9378. * @return bool
  9379. * @static
  9380. */
  9381. public static function secure()
  9382. {
  9383. /** @var \Illuminate\Http\Request $instance */
  9384. return $instance->secure();
  9385. }
  9386. /**
  9387. * Get the client IP address.
  9388. *
  9389. * @return string|null
  9390. * @static
  9391. */
  9392. public static function ip()
  9393. {
  9394. /** @var \Illuminate\Http\Request $instance */
  9395. return $instance->ip();
  9396. }
  9397. /**
  9398. * Get the client IP addresses.
  9399. *
  9400. * @return array
  9401. * @static
  9402. */
  9403. public static function ips()
  9404. {
  9405. /** @var \Illuminate\Http\Request $instance */
  9406. return $instance->ips();
  9407. }
  9408. /**
  9409. * Get the client user agent.
  9410. *
  9411. * @return string|null
  9412. * @static
  9413. */
  9414. public static function userAgent()
  9415. {
  9416. /** @var \Illuminate\Http\Request $instance */
  9417. return $instance->userAgent();
  9418. }
  9419. /**
  9420. * Merge new input into the current request's input array.
  9421. *
  9422. * @param array $input
  9423. * @return \Illuminate\Http\Request
  9424. * @static
  9425. */
  9426. public static function merge($input)
  9427. {
  9428. /** @var \Illuminate\Http\Request $instance */
  9429. return $instance->merge($input);
  9430. }
  9431. /**
  9432. * Replace the input for the current request.
  9433. *
  9434. * @param array $input
  9435. * @return \Illuminate\Http\Request
  9436. * @static
  9437. */
  9438. public static function replace($input)
  9439. {
  9440. /** @var \Illuminate\Http\Request $instance */
  9441. return $instance->replace($input);
  9442. }
  9443. /**
  9444. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  9445. *
  9446. * Instead, you may use the "input" method.
  9447. *
  9448. * @param string $key
  9449. * @param mixed $default
  9450. * @return mixed
  9451. * @static
  9452. */
  9453. public static function get($key, $default = null)
  9454. {
  9455. /** @var \Illuminate\Http\Request $instance */
  9456. return $instance->get($key, $default);
  9457. }
  9458. /**
  9459. * Get the JSON payload for the request.
  9460. *
  9461. * @param string|null $key
  9462. * @param mixed $default
  9463. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  9464. * @static
  9465. */
  9466. public static function json($key = null, $default = null)
  9467. {
  9468. /** @var \Illuminate\Http\Request $instance */
  9469. return $instance->json($key, $default);
  9470. }
  9471. /**
  9472. * Create a new request instance from the given Laravel request.
  9473. *
  9474. * @param \Illuminate\Http\Request $from
  9475. * @param \Illuminate\Http\Request|null $to
  9476. * @return static
  9477. * @static
  9478. */
  9479. public static function createFrom($from, $to = null)
  9480. {
  9481. return \Illuminate\Http\Request::createFrom($from, $to);
  9482. }
  9483. /**
  9484. * Create an Illuminate request from a Symfony instance.
  9485. *
  9486. * @param \Symfony\Component\HttpFoundation\Request $request
  9487. * @return static
  9488. * @static
  9489. */
  9490. public static function createFromBase($request)
  9491. {
  9492. return \Illuminate\Http\Request::createFromBase($request);
  9493. }
  9494. /**
  9495. * Clones a request and overrides some of its parameters.
  9496. *
  9497. * @param array $query The GET parameters
  9498. * @param array $request The POST parameters
  9499. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9500. * @param array $cookies The COOKIE parameters
  9501. * @param array $files The FILES parameters
  9502. * @param array $server The SERVER parameters
  9503. * @return static
  9504. * @static
  9505. */
  9506. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  9507. {
  9508. /** @var \Illuminate\Http\Request $instance */
  9509. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  9510. }
  9511. /**
  9512. * Get the session associated with the request.
  9513. *
  9514. * @return \Illuminate\Session\Store
  9515. * @throws \RuntimeException
  9516. * @static
  9517. */
  9518. public static function session()
  9519. {
  9520. /** @var \Illuminate\Http\Request $instance */
  9521. return $instance->session();
  9522. }
  9523. /**
  9524. * Get the session associated with the request.
  9525. *
  9526. * @return \Illuminate\Session\Store|null
  9527. * @static
  9528. */
  9529. public static function getSession()
  9530. {
  9531. /** @var \Illuminate\Http\Request $instance */
  9532. return $instance->getSession();
  9533. }
  9534. /**
  9535. * Set the session instance on the request.
  9536. *
  9537. * @param \Illuminate\Contracts\Session\Session $session
  9538. * @return void
  9539. * @static
  9540. */
  9541. public static function setLaravelSession($session)
  9542. {
  9543. /** @var \Illuminate\Http\Request $instance */
  9544. $instance->setLaravelSession($session);
  9545. }
  9546. /**
  9547. * Get the user making the request.
  9548. *
  9549. * @param string|null $guard
  9550. * @return mixed
  9551. * @static
  9552. */
  9553. public static function user($guard = null)
  9554. {
  9555. /** @var \Illuminate\Http\Request $instance */
  9556. return $instance->user($guard);
  9557. }
  9558. /**
  9559. * Get the route handling the request.
  9560. *
  9561. * @param string|null $param
  9562. * @param mixed $default
  9563. * @return \Illuminate\Routing\Route|object|string|null
  9564. * @static
  9565. */
  9566. public static function route($param = null, $default = null)
  9567. {
  9568. /** @var \Illuminate\Http\Request $instance */
  9569. return $instance->route($param, $default);
  9570. }
  9571. /**
  9572. * Get a unique fingerprint for the request / route / IP address.
  9573. *
  9574. * @return string
  9575. * @throws \RuntimeException
  9576. * @static
  9577. */
  9578. public static function fingerprint()
  9579. {
  9580. /** @var \Illuminate\Http\Request $instance */
  9581. return $instance->fingerprint();
  9582. }
  9583. /**
  9584. * Set the JSON payload for the request.
  9585. *
  9586. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  9587. * @return \Illuminate\Http\Request
  9588. * @static
  9589. */
  9590. public static function setJson($json)
  9591. {
  9592. /** @var \Illuminate\Http\Request $instance */
  9593. return $instance->setJson($json);
  9594. }
  9595. /**
  9596. * Get the user resolver callback.
  9597. *
  9598. * @return \Closure
  9599. * @static
  9600. */
  9601. public static function getUserResolver()
  9602. {
  9603. /** @var \Illuminate\Http\Request $instance */
  9604. return $instance->getUserResolver();
  9605. }
  9606. /**
  9607. * Set the user resolver callback.
  9608. *
  9609. * @param \Closure $callback
  9610. * @return \Illuminate\Http\Request
  9611. * @static
  9612. */
  9613. public static function setUserResolver($callback)
  9614. {
  9615. /** @var \Illuminate\Http\Request $instance */
  9616. return $instance->setUserResolver($callback);
  9617. }
  9618. /**
  9619. * Get the route resolver callback.
  9620. *
  9621. * @return \Closure
  9622. * @static
  9623. */
  9624. public static function getRouteResolver()
  9625. {
  9626. /** @var \Illuminate\Http\Request $instance */
  9627. return $instance->getRouteResolver();
  9628. }
  9629. /**
  9630. * Set the route resolver callback.
  9631. *
  9632. * @param \Closure $callback
  9633. * @return \Illuminate\Http\Request
  9634. * @static
  9635. */
  9636. public static function setRouteResolver($callback)
  9637. {
  9638. /** @var \Illuminate\Http\Request $instance */
  9639. return $instance->setRouteResolver($callback);
  9640. }
  9641. /**
  9642. * Get all of the input and files for the request.
  9643. *
  9644. * @return array
  9645. * @static
  9646. */
  9647. public static function toArray()
  9648. {
  9649. /** @var \Illuminate\Http\Request $instance */
  9650. return $instance->toArray();
  9651. }
  9652. /**
  9653. * Determine if the given offset exists.
  9654. *
  9655. * @param string $offset
  9656. * @return bool
  9657. * @static
  9658. */
  9659. public static function offsetExists($offset)
  9660. {
  9661. /** @var \Illuminate\Http\Request $instance */
  9662. return $instance->offsetExists($offset);
  9663. }
  9664. /**
  9665. * Get the value at the given offset.
  9666. *
  9667. * @param string $offset
  9668. * @return mixed
  9669. * @static
  9670. */
  9671. public static function offsetGet($offset)
  9672. {
  9673. /** @var \Illuminate\Http\Request $instance */
  9674. return $instance->offsetGet($offset);
  9675. }
  9676. /**
  9677. * Set the value at the given offset.
  9678. *
  9679. * @param string $offset
  9680. * @param mixed $value
  9681. * @return void
  9682. * @static
  9683. */
  9684. public static function offsetSet($offset, $value)
  9685. {
  9686. /** @var \Illuminate\Http\Request $instance */
  9687. $instance->offsetSet($offset, $value);
  9688. }
  9689. /**
  9690. * Remove the value at the given offset.
  9691. *
  9692. * @param string $offset
  9693. * @return void
  9694. * @static
  9695. */
  9696. public static function offsetUnset($offset)
  9697. {
  9698. /** @var \Illuminate\Http\Request $instance */
  9699. $instance->offsetUnset($offset);
  9700. }
  9701. /**
  9702. * Sets the parameters for this request.
  9703. *
  9704. * This method also re-initializes all properties.
  9705. *
  9706. * @param array $query The GET parameters
  9707. * @param array $request The POST parameters
  9708. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  9709. * @param array $cookies The COOKIE parameters
  9710. * @param array $files The FILES parameters
  9711. * @param array $server The SERVER parameters
  9712. * @param string|resource|null $content The raw body data
  9713. * @static
  9714. */
  9715. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  9716. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9717. /** @var \Illuminate\Http\Request $instance */
  9718. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  9719. }
  9720. /**
  9721. * Creates a new request with values from PHP's super globals.
  9722. *
  9723. * @return static
  9724. * @static
  9725. */
  9726. public static function createFromGlobals()
  9727. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9728. return \Illuminate\Http\Request::createFromGlobals();
  9729. }
  9730. /**
  9731. * Creates a Request based on a given URI and configuration.
  9732. *
  9733. * The information contained in the URI always take precedence
  9734. * over the other information (server and parameters).
  9735. *
  9736. * @param string $uri The URI
  9737. * @param string $method The HTTP method
  9738. * @param array $parameters The query (GET) or request (POST) parameters
  9739. * @param array $cookies The request cookies ($_COOKIE)
  9740. * @param array $files The request files ($_FILES)
  9741. * @param array $server The server parameters ($_SERVER)
  9742. * @param string|resource|null $content The raw body data
  9743. * @return static
  9744. * @static
  9745. */
  9746. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  9747. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9748. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  9749. }
  9750. /**
  9751. * Sets a callable able to create a Request instance.
  9752. *
  9753. * This is mainly useful when you need to override the Request class
  9754. * to keep BC with an existing system. It should not be used for any
  9755. * other purpose.
  9756. *
  9757. * @static
  9758. */
  9759. public static function setFactory($callable)
  9760. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9761. return \Illuminate\Http\Request::setFactory($callable);
  9762. }
  9763. /**
  9764. * Overrides the PHP global variables according to this request instance.
  9765. *
  9766. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  9767. * $_FILES is never overridden, see rfc1867
  9768. *
  9769. * @static
  9770. */
  9771. public static function overrideGlobals()
  9772. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9773. /** @var \Illuminate\Http\Request $instance */
  9774. return $instance->overrideGlobals();
  9775. }
  9776. /**
  9777. * Sets a list of trusted proxies.
  9778. *
  9779. * You should only list the reverse proxies that you manage directly.
  9780. *
  9781. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  9782. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  9783. * @static
  9784. */
  9785. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  9786. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9787. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  9788. }
  9789. /**
  9790. * Gets the list of trusted proxies.
  9791. *
  9792. * @return array An array of trusted proxies
  9793. * @static
  9794. */
  9795. public static function getTrustedProxies()
  9796. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9797. return \Illuminate\Http\Request::getTrustedProxies();
  9798. }
  9799. /**
  9800. * Gets the set of trusted headers from trusted proxies.
  9801. *
  9802. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  9803. * @static
  9804. */
  9805. public static function getTrustedHeaderSet()
  9806. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9807. return \Illuminate\Http\Request::getTrustedHeaderSet();
  9808. }
  9809. /**
  9810. * Sets a list of trusted host patterns.
  9811. *
  9812. * You should only list the hosts you manage using regexs.
  9813. *
  9814. * @param array $hostPatterns A list of trusted host patterns
  9815. * @static
  9816. */
  9817. public static function setTrustedHosts($hostPatterns)
  9818. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9819. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  9820. }
  9821. /**
  9822. * Gets the list of trusted host patterns.
  9823. *
  9824. * @return array An array of trusted host patterns
  9825. * @static
  9826. */
  9827. public static function getTrustedHosts()
  9828. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9829. return \Illuminate\Http\Request::getTrustedHosts();
  9830. }
  9831. /**
  9832. * Normalizes a query string.
  9833. *
  9834. * It builds a normalized query string, where keys/value pairs are alphabetized,
  9835. * have consistent escaping and unneeded delimiters are removed.
  9836. *
  9837. * @return string A normalized query string for the Request
  9838. * @static
  9839. */
  9840. public static function normalizeQueryString($qs)
  9841. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9842. return \Illuminate\Http\Request::normalizeQueryString($qs);
  9843. }
  9844. /**
  9845. * Enables support for the _method request parameter to determine the intended HTTP method.
  9846. *
  9847. * Be warned that enabling this feature might lead to CSRF issues in your code.
  9848. * Check that you are using CSRF tokens when required.
  9849. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  9850. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  9851. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  9852. *
  9853. * The HTTP method can only be overridden when the real HTTP method is POST.
  9854. *
  9855. * @static
  9856. */
  9857. public static function enableHttpMethodParameterOverride()
  9858. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9859. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  9860. }
  9861. /**
  9862. * Checks whether support for the _method request parameter is enabled.
  9863. *
  9864. * @return bool True when the _method request parameter is enabled, false otherwise
  9865. * @static
  9866. */
  9867. public static function getHttpMethodParameterOverride()
  9868. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9869. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  9870. }
  9871. /**
  9872. * Whether the request contains a Session which was started in one of the
  9873. * previous requests.
  9874. *
  9875. * @return bool
  9876. * @static
  9877. */
  9878. public static function hasPreviousSession()
  9879. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9880. /** @var \Illuminate\Http\Request $instance */
  9881. return $instance->hasPreviousSession();
  9882. }
  9883. /**
  9884. * Whether the request contains a Session object.
  9885. *
  9886. * This method does not give any information about the state of the session object,
  9887. * like whether the session is started or not. It is just a way to check if this Request
  9888. * is associated with a Session instance.
  9889. *
  9890. * @return bool true when the Request contains a Session object, false otherwise
  9891. * @static
  9892. */
  9893. public static function hasSession()
  9894. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9895. /** @var \Illuminate\Http\Request $instance */
  9896. return $instance->hasSession();
  9897. }
  9898. /**
  9899. *
  9900. *
  9901. * @static
  9902. */
  9903. public static function setSession($session)
  9904. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9905. /** @var \Illuminate\Http\Request $instance */
  9906. return $instance->setSession($session);
  9907. }
  9908. /**
  9909. *
  9910. *
  9911. * @internal
  9912. * @static
  9913. */
  9914. public static function setSessionFactory($factory)
  9915. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9916. /** @var \Illuminate\Http\Request $instance */
  9917. return $instance->setSessionFactory($factory);
  9918. }
  9919. /**
  9920. * Returns the client IP addresses.
  9921. *
  9922. * In the returned array the most trusted IP address is first, and the
  9923. * least trusted one last. The "real" client IP address is the last one,
  9924. * but this is also the least trusted one. Trusted proxies are stripped.
  9925. *
  9926. * Use this method carefully; you should use getClientIp() instead.
  9927. *
  9928. * @return array The client IP addresses
  9929. * @see getClientIp()
  9930. * @static
  9931. */
  9932. public static function getClientIps()
  9933. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9934. /** @var \Illuminate\Http\Request $instance */
  9935. return $instance->getClientIps();
  9936. }
  9937. /**
  9938. * Returns the client IP address.
  9939. *
  9940. * This method can read the client IP address from the "X-Forwarded-For" header
  9941. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  9942. * header value is a comma+space separated list of IP addresses, the left-most
  9943. * being the original client, and each successive proxy that passed the request
  9944. * adding the IP address where it received the request from.
  9945. *
  9946. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  9947. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  9948. * argument of the Request::setTrustedProxies() method instead.
  9949. *
  9950. * @return string|null The client IP address
  9951. * @see getClientIps()
  9952. * @see https://wikipedia.org/wiki/X-Forwarded-For
  9953. * @static
  9954. */
  9955. public static function getClientIp()
  9956. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9957. /** @var \Illuminate\Http\Request $instance */
  9958. return $instance->getClientIp();
  9959. }
  9960. /**
  9961. * Returns current script name.
  9962. *
  9963. * @return string
  9964. * @static
  9965. */
  9966. public static function getScriptName()
  9967. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9968. /** @var \Illuminate\Http\Request $instance */
  9969. return $instance->getScriptName();
  9970. }
  9971. /**
  9972. * Returns the path being requested relative to the executed script.
  9973. *
  9974. * The path info always starts with a /.
  9975. *
  9976. * Suppose this request is instantiated from /mysite on localhost:
  9977. *
  9978. * * http://localhost/mysite returns an empty string
  9979. * * http://localhost/mysite/about returns '/about'
  9980. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  9981. * * http://localhost/mysite/about?var=1 returns '/about'
  9982. *
  9983. * @return string The raw path (i.e. not urldecoded)
  9984. * @static
  9985. */
  9986. public static function getPathInfo()
  9987. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9988. /** @var \Illuminate\Http\Request $instance */
  9989. return $instance->getPathInfo();
  9990. }
  9991. /**
  9992. * Returns the root path from which this request is executed.
  9993. *
  9994. * Suppose that an index.php file instantiates this request object:
  9995. *
  9996. * * http://localhost/index.php returns an empty string
  9997. * * http://localhost/index.php/page returns an empty string
  9998. * * http://localhost/web/index.php returns '/web'
  9999. * * http://localhost/we%20b/index.php returns '/we%20b'
  10000. *
  10001. * @return string The raw path (i.e. not urldecoded)
  10002. * @static
  10003. */
  10004. public static function getBasePath()
  10005. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10006. /** @var \Illuminate\Http\Request $instance */
  10007. return $instance->getBasePath();
  10008. }
  10009. /**
  10010. * Returns the root URL from which this request is executed.
  10011. *
  10012. * The base URL never ends with a /.
  10013. *
  10014. * This is similar to getBasePath(), except that it also includes the
  10015. * script filename (e.g. index.php) if one exists.
  10016. *
  10017. * @return string The raw URL (i.e. not urldecoded)
  10018. * @static
  10019. */
  10020. public static function getBaseUrl()
  10021. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10022. /** @var \Illuminate\Http\Request $instance */
  10023. return $instance->getBaseUrl();
  10024. }
  10025. /**
  10026. * Gets the request's scheme.
  10027. *
  10028. * @return string
  10029. * @static
  10030. */
  10031. public static function getScheme()
  10032. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10033. /** @var \Illuminate\Http\Request $instance */
  10034. return $instance->getScheme();
  10035. }
  10036. /**
  10037. * Returns the port on which the request is made.
  10038. *
  10039. * This method can read the client port from the "X-Forwarded-Port" header
  10040. * when trusted proxies were set via "setTrustedProxies()".
  10041. *
  10042. * The "X-Forwarded-Port" header must contain the client port.
  10043. *
  10044. * @return int|string can be a string if fetched from the server bag
  10045. * @static
  10046. */
  10047. public static function getPort()
  10048. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10049. /** @var \Illuminate\Http\Request $instance */
  10050. return $instance->getPort();
  10051. }
  10052. /**
  10053. * Returns the user.
  10054. *
  10055. * @return string|null
  10056. * @static
  10057. */
  10058. public static function getUser()
  10059. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10060. /** @var \Illuminate\Http\Request $instance */
  10061. return $instance->getUser();
  10062. }
  10063. /**
  10064. * Returns the password.
  10065. *
  10066. * @return string|null
  10067. * @static
  10068. */
  10069. public static function getPassword()
  10070. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10071. /** @var \Illuminate\Http\Request $instance */
  10072. return $instance->getPassword();
  10073. }
  10074. /**
  10075. * Gets the user info.
  10076. *
  10077. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  10078. * @static
  10079. */
  10080. public static function getUserInfo()
  10081. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10082. /** @var \Illuminate\Http\Request $instance */
  10083. return $instance->getUserInfo();
  10084. }
  10085. /**
  10086. * Returns the HTTP host being requested.
  10087. *
  10088. * The port name will be appended to the host if it's non-standard.
  10089. *
  10090. * @return string
  10091. * @static
  10092. */
  10093. public static function getHttpHost()
  10094. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10095. /** @var \Illuminate\Http\Request $instance */
  10096. return $instance->getHttpHost();
  10097. }
  10098. /**
  10099. * Returns the requested URI (path and query string).
  10100. *
  10101. * @return string The raw URI (i.e. not URI decoded)
  10102. * @static
  10103. */
  10104. public static function getRequestUri()
  10105. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10106. /** @var \Illuminate\Http\Request $instance */
  10107. return $instance->getRequestUri();
  10108. }
  10109. /**
  10110. * Gets the scheme and HTTP host.
  10111. *
  10112. * If the URL was called with basic authentication, the user
  10113. * and the password are not added to the generated string.
  10114. *
  10115. * @return string The scheme and HTTP host
  10116. * @static
  10117. */
  10118. public static function getSchemeAndHttpHost()
  10119. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10120. /** @var \Illuminate\Http\Request $instance */
  10121. return $instance->getSchemeAndHttpHost();
  10122. }
  10123. /**
  10124. * Generates a normalized URI (URL) for the Request.
  10125. *
  10126. * @return string A normalized URI (URL) for the Request
  10127. * @see getQueryString()
  10128. * @static
  10129. */
  10130. public static function getUri()
  10131. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10132. /** @var \Illuminate\Http\Request $instance */
  10133. return $instance->getUri();
  10134. }
  10135. /**
  10136. * Generates a normalized URI for the given path.
  10137. *
  10138. * @param string $path A path to use instead of the current one
  10139. * @return string The normalized URI for the path
  10140. * @static
  10141. */
  10142. public static function getUriForPath($path)
  10143. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10144. /** @var \Illuminate\Http\Request $instance */
  10145. return $instance->getUriForPath($path);
  10146. }
  10147. /**
  10148. * Returns the path as relative reference from the current Request path.
  10149. *
  10150. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  10151. * Both paths must be absolute and not contain relative parts.
  10152. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  10153. * Furthermore, they can be used to reduce the link size in documents.
  10154. *
  10155. * Example target paths, given a base path of "/a/b/c/d":
  10156. * - "/a/b/c/d" -> ""
  10157. * - "/a/b/c/" -> "./"
  10158. * - "/a/b/" -> "../"
  10159. * - "/a/b/c/other" -> "other"
  10160. * - "/a/x/y" -> "../../x/y"
  10161. *
  10162. * @return string The relative target path
  10163. * @static
  10164. */
  10165. public static function getRelativeUriForPath($path)
  10166. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10167. /** @var \Illuminate\Http\Request $instance */
  10168. return $instance->getRelativeUriForPath($path);
  10169. }
  10170. /**
  10171. * Generates the normalized query string for the Request.
  10172. *
  10173. * It builds a normalized query string, where keys/value pairs are alphabetized
  10174. * and have consistent escaping.
  10175. *
  10176. * @return string|null A normalized query string for the Request
  10177. * @static
  10178. */
  10179. public static function getQueryString()
  10180. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10181. /** @var \Illuminate\Http\Request $instance */
  10182. return $instance->getQueryString();
  10183. }
  10184. /**
  10185. * Checks whether the request is secure or not.
  10186. *
  10187. * This method can read the client protocol from the "X-Forwarded-Proto" header
  10188. * when trusted proxies were set via "setTrustedProxies()".
  10189. *
  10190. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  10191. *
  10192. * @return bool
  10193. * @static
  10194. */
  10195. public static function isSecure()
  10196. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10197. /** @var \Illuminate\Http\Request $instance */
  10198. return $instance->isSecure();
  10199. }
  10200. /**
  10201. * Returns the host name.
  10202. *
  10203. * This method can read the client host name from the "X-Forwarded-Host" header
  10204. * when trusted proxies were set via "setTrustedProxies()".
  10205. *
  10206. * The "X-Forwarded-Host" header must contain the client host name.
  10207. *
  10208. * @return string
  10209. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  10210. * @static
  10211. */
  10212. public static function getHost()
  10213. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10214. /** @var \Illuminate\Http\Request $instance */
  10215. return $instance->getHost();
  10216. }
  10217. /**
  10218. * Sets the request method.
  10219. *
  10220. * @static
  10221. */
  10222. public static function setMethod($method)
  10223. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10224. /** @var \Illuminate\Http\Request $instance */
  10225. return $instance->setMethod($method);
  10226. }
  10227. /**
  10228. * Gets the request "intended" method.
  10229. *
  10230. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  10231. * then it is used to determine the "real" intended HTTP method.
  10232. *
  10233. * The _method request parameter can also be used to determine the HTTP method,
  10234. * but only if enableHttpMethodParameterOverride() has been called.
  10235. *
  10236. * The method is always an uppercased string.
  10237. *
  10238. * @return string The request method
  10239. * @see getRealMethod()
  10240. * @static
  10241. */
  10242. public static function getMethod()
  10243. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10244. /** @var \Illuminate\Http\Request $instance */
  10245. return $instance->getMethod();
  10246. }
  10247. /**
  10248. * Gets the "real" request method.
  10249. *
  10250. * @return string The request method
  10251. * @see getMethod()
  10252. * @static
  10253. */
  10254. public static function getRealMethod()
  10255. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10256. /** @var \Illuminate\Http\Request $instance */
  10257. return $instance->getRealMethod();
  10258. }
  10259. /**
  10260. * Gets the mime type associated with the format.
  10261. *
  10262. * @return string|null The associated mime type (null if not found)
  10263. * @static
  10264. */
  10265. public static function getMimeType($format)
  10266. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10267. /** @var \Illuminate\Http\Request $instance */
  10268. return $instance->getMimeType($format);
  10269. }
  10270. /**
  10271. * Gets the mime types associated with the format.
  10272. *
  10273. * @return array The associated mime types
  10274. * @static
  10275. */
  10276. public static function getMimeTypes($format)
  10277. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10278. return \Illuminate\Http\Request::getMimeTypes($format);
  10279. }
  10280. /**
  10281. * Gets the format associated with the mime type.
  10282. *
  10283. * @return string|null The format (null if not found)
  10284. * @static
  10285. */
  10286. public static function getFormat($mimeType)
  10287. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10288. /** @var \Illuminate\Http\Request $instance */
  10289. return $instance->getFormat($mimeType);
  10290. }
  10291. /**
  10292. * Associates a format with mime types.
  10293. *
  10294. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  10295. * @static
  10296. */
  10297. public static function setFormat($format, $mimeTypes)
  10298. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10299. /** @var \Illuminate\Http\Request $instance */
  10300. return $instance->setFormat($format, $mimeTypes);
  10301. }
  10302. /**
  10303. * Gets the request format.
  10304. *
  10305. * Here is the process to determine the format:
  10306. *
  10307. * * format defined by the user (with setRequestFormat())
  10308. * * _format request attribute
  10309. * * $default
  10310. *
  10311. * @see getPreferredFormat
  10312. * @return string|null The request format
  10313. * @static
  10314. */
  10315. public static function getRequestFormat($default = 'html')
  10316. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10317. /** @var \Illuminate\Http\Request $instance */
  10318. return $instance->getRequestFormat($default);
  10319. }
  10320. /**
  10321. * Sets the request format.
  10322. *
  10323. * @static
  10324. */
  10325. public static function setRequestFormat($format)
  10326. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10327. /** @var \Illuminate\Http\Request $instance */
  10328. return $instance->setRequestFormat($format);
  10329. }
  10330. /**
  10331. * Gets the format associated with the request.
  10332. *
  10333. * @return string|null The format (null if no content type is present)
  10334. * @static
  10335. */
  10336. public static function getContentType()
  10337. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10338. /** @var \Illuminate\Http\Request $instance */
  10339. return $instance->getContentType();
  10340. }
  10341. /**
  10342. * Sets the default locale.
  10343. *
  10344. * @static
  10345. */
  10346. public static function setDefaultLocale($locale)
  10347. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10348. /** @var \Illuminate\Http\Request $instance */
  10349. return $instance->setDefaultLocale($locale);
  10350. }
  10351. /**
  10352. * Get the default locale.
  10353. *
  10354. * @return string
  10355. * @static
  10356. */
  10357. public static function getDefaultLocale()
  10358. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10359. /** @var \Illuminate\Http\Request $instance */
  10360. return $instance->getDefaultLocale();
  10361. }
  10362. /**
  10363. * Sets the locale.
  10364. *
  10365. * @static
  10366. */
  10367. public static function setLocale($locale)
  10368. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10369. /** @var \Illuminate\Http\Request $instance */
  10370. return $instance->setLocale($locale);
  10371. }
  10372. /**
  10373. * Get the locale.
  10374. *
  10375. * @return string
  10376. * @static
  10377. */
  10378. public static function getLocale()
  10379. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10380. /** @var \Illuminate\Http\Request $instance */
  10381. return $instance->getLocale();
  10382. }
  10383. /**
  10384. * Checks if the request method is of specified type.
  10385. *
  10386. * @param string $method Uppercase request method (GET, POST etc)
  10387. * @return bool
  10388. * @static
  10389. */
  10390. public static function isMethod($method)
  10391. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10392. /** @var \Illuminate\Http\Request $instance */
  10393. return $instance->isMethod($method);
  10394. }
  10395. /**
  10396. * Checks whether or not the method is safe.
  10397. *
  10398. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  10399. * @return bool
  10400. * @static
  10401. */
  10402. public static function isMethodSafe()
  10403. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10404. /** @var \Illuminate\Http\Request $instance */
  10405. return $instance->isMethodSafe();
  10406. }
  10407. /**
  10408. * Checks whether or not the method is idempotent.
  10409. *
  10410. * @return bool
  10411. * @static
  10412. */
  10413. public static function isMethodIdempotent()
  10414. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10415. /** @var \Illuminate\Http\Request $instance */
  10416. return $instance->isMethodIdempotent();
  10417. }
  10418. /**
  10419. * Checks whether the method is cacheable or not.
  10420. *
  10421. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  10422. * @return bool True for GET and HEAD, false otherwise
  10423. * @static
  10424. */
  10425. public static function isMethodCacheable()
  10426. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10427. /** @var \Illuminate\Http\Request $instance */
  10428. return $instance->isMethodCacheable();
  10429. }
  10430. /**
  10431. * Returns the protocol version.
  10432. *
  10433. * If the application is behind a proxy, the protocol version used in the
  10434. * requests between the client and the proxy and between the proxy and the
  10435. * server might be different. This returns the former (from the "Via" header)
  10436. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  10437. * the latter (from the "SERVER_PROTOCOL" server parameter).
  10438. *
  10439. * @return string|null
  10440. * @static
  10441. */
  10442. public static function getProtocolVersion()
  10443. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10444. /** @var \Illuminate\Http\Request $instance */
  10445. return $instance->getProtocolVersion();
  10446. }
  10447. /**
  10448. * Returns the request body content.
  10449. *
  10450. * @param bool $asResource If true, a resource will be returned
  10451. * @return string|resource The request body content or a resource to read the body stream
  10452. * @static
  10453. */
  10454. public static function getContent($asResource = false)
  10455. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10456. /** @var \Illuminate\Http\Request $instance */
  10457. return $instance->getContent($asResource);
  10458. }
  10459. /**
  10460. * Gets the Etags.
  10461. *
  10462. * @return array The entity tags
  10463. * @static
  10464. */
  10465. public static function getETags()
  10466. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10467. /** @var \Illuminate\Http\Request $instance */
  10468. return $instance->getETags();
  10469. }
  10470. /**
  10471. *
  10472. *
  10473. * @return bool
  10474. * @static
  10475. */
  10476. public static function isNoCache()
  10477. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10478. /** @var \Illuminate\Http\Request $instance */
  10479. return $instance->isNoCache();
  10480. }
  10481. /**
  10482. * Gets the preferred format for the response by inspecting, in the following order:
  10483. * * the request format set using setRequestFormat;
  10484. * * the values of the Accept HTTP header.
  10485. *
  10486. * Note that if you use this method, you should send the "Vary: Accept" header
  10487. * in the response to prevent any issues with intermediary HTTP caches.
  10488. *
  10489. * @static
  10490. */
  10491. public static function getPreferredFormat($default = 'html')
  10492. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10493. /** @var \Illuminate\Http\Request $instance */
  10494. return $instance->getPreferredFormat($default);
  10495. }
  10496. /**
  10497. * Returns the preferred language.
  10498. *
  10499. * @param string[] $locales An array of ordered available locales
  10500. * @return string|null The preferred locale
  10501. * @static
  10502. */
  10503. public static function getPreferredLanguage($locales = null)
  10504. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10505. /** @var \Illuminate\Http\Request $instance */
  10506. return $instance->getPreferredLanguage($locales);
  10507. }
  10508. /**
  10509. * Gets a list of languages acceptable by the client browser.
  10510. *
  10511. * @return array Languages ordered in the user browser preferences
  10512. * @static
  10513. */
  10514. public static function getLanguages()
  10515. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10516. /** @var \Illuminate\Http\Request $instance */
  10517. return $instance->getLanguages();
  10518. }
  10519. /**
  10520. * Gets a list of charsets acceptable by the client browser.
  10521. *
  10522. * @return array List of charsets in preferable order
  10523. * @static
  10524. */
  10525. public static function getCharsets()
  10526. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10527. /** @var \Illuminate\Http\Request $instance */
  10528. return $instance->getCharsets();
  10529. }
  10530. /**
  10531. * Gets a list of encodings acceptable by the client browser.
  10532. *
  10533. * @return array List of encodings in preferable order
  10534. * @static
  10535. */
  10536. public static function getEncodings()
  10537. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10538. /** @var \Illuminate\Http\Request $instance */
  10539. return $instance->getEncodings();
  10540. }
  10541. /**
  10542. * Gets a list of content types acceptable by the client browser.
  10543. *
  10544. * @return array List of content types in preferable order
  10545. * @static
  10546. */
  10547. public static function getAcceptableContentTypes()
  10548. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10549. /** @var \Illuminate\Http\Request $instance */
  10550. return $instance->getAcceptableContentTypes();
  10551. }
  10552. /**
  10553. * Returns true if the request is an XMLHttpRequest.
  10554. *
  10555. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  10556. * It is known to work with common JavaScript frameworks:
  10557. *
  10558. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  10559. * @return bool true if the request is an XMLHttpRequest, false otherwise
  10560. * @static
  10561. */
  10562. public static function isXmlHttpRequest()
  10563. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10564. /** @var \Illuminate\Http\Request $instance */
  10565. return $instance->isXmlHttpRequest();
  10566. }
  10567. /**
  10568. * Checks whether the client browser prefers safe content or not according to RFC8674.
  10569. *
  10570. * @see https://tools.ietf.org/html/rfc8674
  10571. * @static
  10572. */
  10573. public static function preferSafeContent()
  10574. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10575. /** @var \Illuminate\Http\Request $instance */
  10576. return $instance->preferSafeContent();
  10577. }
  10578. /**
  10579. * Indicates whether this request originated from a trusted proxy.
  10580. *
  10581. * This can be useful to determine whether or not to trust the
  10582. * contents of a proxy-specific header.
  10583. *
  10584. * @return bool true if the request came from a trusted proxy, false otherwise
  10585. * @static
  10586. */
  10587. public static function isFromTrustedProxy()
  10588. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  10589. /** @var \Illuminate\Http\Request $instance */
  10590. return $instance->isFromTrustedProxy();
  10591. }
  10592. /**
  10593. * Determine if the request is sending JSON.
  10594. *
  10595. * @return bool
  10596. * @static
  10597. */
  10598. public static function isJson()
  10599. {
  10600. /** @var \Illuminate\Http\Request $instance */
  10601. return $instance->isJson();
  10602. }
  10603. /**
  10604. * Determine if the current request probably expects a JSON response.
  10605. *
  10606. * @return bool
  10607. * @static
  10608. */
  10609. public static function expectsJson()
  10610. {
  10611. /** @var \Illuminate\Http\Request $instance */
  10612. return $instance->expectsJson();
  10613. }
  10614. /**
  10615. * Determine if the current request is asking for JSON.
  10616. *
  10617. * @return bool
  10618. * @static
  10619. */
  10620. public static function wantsJson()
  10621. {
  10622. /** @var \Illuminate\Http\Request $instance */
  10623. return $instance->wantsJson();
  10624. }
  10625. /**
  10626. * Determines whether the current requests accepts a given content type.
  10627. *
  10628. * @param string|array $contentTypes
  10629. * @return bool
  10630. * @static
  10631. */
  10632. public static function accepts($contentTypes)
  10633. {
  10634. /** @var \Illuminate\Http\Request $instance */
  10635. return $instance->accepts($contentTypes);
  10636. }
  10637. /**
  10638. * Return the most suitable content type from the given array based on content negotiation.
  10639. *
  10640. * @param string|array $contentTypes
  10641. * @return string|null
  10642. * @static
  10643. */
  10644. public static function prefers($contentTypes)
  10645. {
  10646. /** @var \Illuminate\Http\Request $instance */
  10647. return $instance->prefers($contentTypes);
  10648. }
  10649. /**
  10650. * Determine if the current request accepts any content type.
  10651. *
  10652. * @return bool
  10653. * @static
  10654. */
  10655. public static function acceptsAnyContentType()
  10656. {
  10657. /** @var \Illuminate\Http\Request $instance */
  10658. return $instance->acceptsAnyContentType();
  10659. }
  10660. /**
  10661. * Determines whether a request accepts JSON.
  10662. *
  10663. * @return bool
  10664. * @static
  10665. */
  10666. public static function acceptsJson()
  10667. {
  10668. /** @var \Illuminate\Http\Request $instance */
  10669. return $instance->acceptsJson();
  10670. }
  10671. /**
  10672. * Determines whether a request accepts HTML.
  10673. *
  10674. * @return bool
  10675. * @static
  10676. */
  10677. public static function acceptsHtml()
  10678. {
  10679. /** @var \Illuminate\Http\Request $instance */
  10680. return $instance->acceptsHtml();
  10681. }
  10682. /**
  10683. * Determine if the given content types match.
  10684. *
  10685. * @param string $actual
  10686. * @param string $type
  10687. * @return bool
  10688. * @static
  10689. */
  10690. public static function matchesType($actual, $type)
  10691. {
  10692. return \Illuminate\Http\Request::matchesType($actual, $type);
  10693. }
  10694. /**
  10695. * Get the data format expected in the response.
  10696. *
  10697. * @param string $default
  10698. * @return string
  10699. * @static
  10700. */
  10701. public static function format($default = 'html')
  10702. {
  10703. /** @var \Illuminate\Http\Request $instance */
  10704. return $instance->format($default);
  10705. }
  10706. /**
  10707. * Retrieve an old input item.
  10708. *
  10709. * @param string|null $key
  10710. * @param string|array|null $default
  10711. * @return string|array|null
  10712. * @static
  10713. */
  10714. public static function old($key = null, $default = null)
  10715. {
  10716. /** @var \Illuminate\Http\Request $instance */
  10717. return $instance->old($key, $default);
  10718. }
  10719. /**
  10720. * Flash the input for the current request to the session.
  10721. *
  10722. * @return void
  10723. * @static
  10724. */
  10725. public static function flash()
  10726. {
  10727. /** @var \Illuminate\Http\Request $instance */
  10728. $instance->flash();
  10729. }
  10730. /**
  10731. * Flash only some of the input to the session.
  10732. *
  10733. * @param array|mixed $keys
  10734. * @return void
  10735. * @static
  10736. */
  10737. public static function flashOnly($keys)
  10738. {
  10739. /** @var \Illuminate\Http\Request $instance */
  10740. $instance->flashOnly($keys);
  10741. }
  10742. /**
  10743. * Flash only some of the input to the session.
  10744. *
  10745. * @param array|mixed $keys
  10746. * @return void
  10747. * @static
  10748. */
  10749. public static function flashExcept($keys)
  10750. {
  10751. /** @var \Illuminate\Http\Request $instance */
  10752. $instance->flashExcept($keys);
  10753. }
  10754. /**
  10755. * Flush all of the old input from the session.
  10756. *
  10757. * @return void
  10758. * @static
  10759. */
  10760. public static function flush()
  10761. {
  10762. /** @var \Illuminate\Http\Request $instance */
  10763. $instance->flush();
  10764. }
  10765. /**
  10766. * Retrieve a server variable from the request.
  10767. *
  10768. * @param string|null $key
  10769. * @param string|array|null $default
  10770. * @return string|array|null
  10771. * @static
  10772. */
  10773. public static function server($key = null, $default = null)
  10774. {
  10775. /** @var \Illuminate\Http\Request $instance */
  10776. return $instance->server($key, $default);
  10777. }
  10778. /**
  10779. * Determine if a header is set on the request.
  10780. *
  10781. * @param string $key
  10782. * @return bool
  10783. * @static
  10784. */
  10785. public static function hasHeader($key)
  10786. {
  10787. /** @var \Illuminate\Http\Request $instance */
  10788. return $instance->hasHeader($key);
  10789. }
  10790. /**
  10791. * Retrieve a header from the request.
  10792. *
  10793. * @param string|null $key
  10794. * @param string|array|null $default
  10795. * @return string|array|null
  10796. * @static
  10797. */
  10798. public static function header($key = null, $default = null)
  10799. {
  10800. /** @var \Illuminate\Http\Request $instance */
  10801. return $instance->header($key, $default);
  10802. }
  10803. /**
  10804. * Get the bearer token from the request headers.
  10805. *
  10806. * @return string|null
  10807. * @static
  10808. */
  10809. public static function bearerToken()
  10810. {
  10811. /** @var \Illuminate\Http\Request $instance */
  10812. return $instance->bearerToken();
  10813. }
  10814. /**
  10815. * Determine if the request contains a given input item key.
  10816. *
  10817. * @param string|array $key
  10818. * @return bool
  10819. * @static
  10820. */
  10821. public static function exists($key)
  10822. {
  10823. /** @var \Illuminate\Http\Request $instance */
  10824. return $instance->exists($key);
  10825. }
  10826. /**
  10827. * Determine if the request contains a given input item key.
  10828. *
  10829. * @param string|array $key
  10830. * @return bool
  10831. * @static
  10832. */
  10833. public static function has($key)
  10834. {
  10835. /** @var \Illuminate\Http\Request $instance */
  10836. return $instance->has($key);
  10837. }
  10838. /**
  10839. * Determine if the request contains any of the given inputs.
  10840. *
  10841. * @param string|array $keys
  10842. * @return bool
  10843. * @static
  10844. */
  10845. public static function hasAny($keys)
  10846. {
  10847. /** @var \Illuminate\Http\Request $instance */
  10848. return $instance->hasAny($keys);
  10849. }
  10850. /**
  10851. * Apply the callback if the request contains the given input item key.
  10852. *
  10853. * @param string $key
  10854. * @param callable $callback
  10855. * @param callable|null $default
  10856. * @return $this|mixed
  10857. * @static
  10858. */
  10859. public static function whenHas($key, $callback, $default = null)
  10860. {
  10861. /** @var \Illuminate\Http\Request $instance */
  10862. return $instance->whenHas($key, $callback, $default);
  10863. }
  10864. /**
  10865. * Determine if the request contains a non-empty value for an input item.
  10866. *
  10867. * @param string|array $key
  10868. * @return bool
  10869. * @static
  10870. */
  10871. public static function filled($key)
  10872. {
  10873. /** @var \Illuminate\Http\Request $instance */
  10874. return $instance->filled($key);
  10875. }
  10876. /**
  10877. * Determine if the request contains an empty value for an input item.
  10878. *
  10879. * @param string|array $key
  10880. * @return bool
  10881. * @static
  10882. */
  10883. public static function isNotFilled($key)
  10884. {
  10885. /** @var \Illuminate\Http\Request $instance */
  10886. return $instance->isNotFilled($key);
  10887. }
  10888. /**
  10889. * Determine if the request contains a non-empty value for any of the given inputs.
  10890. *
  10891. * @param string|array $keys
  10892. * @return bool
  10893. * @static
  10894. */
  10895. public static function anyFilled($keys)
  10896. {
  10897. /** @var \Illuminate\Http\Request $instance */
  10898. return $instance->anyFilled($keys);
  10899. }
  10900. /**
  10901. * Apply the callback if the request contains a non-empty value for the given input item key.
  10902. *
  10903. * @param string $key
  10904. * @param callable $callback
  10905. * @param callable|null $default
  10906. * @return $this|mixed
  10907. * @static
  10908. */
  10909. public static function whenFilled($key, $callback, $default = null)
  10910. {
  10911. /** @var \Illuminate\Http\Request $instance */
  10912. return $instance->whenFilled($key, $callback, $default);
  10913. }
  10914. /**
  10915. * Determine if the request is missing a given input item key.
  10916. *
  10917. * @param string|array $key
  10918. * @return bool
  10919. * @static
  10920. */
  10921. public static function missing($key)
  10922. {
  10923. /** @var \Illuminate\Http\Request $instance */
  10924. return $instance->missing($key);
  10925. }
  10926. /**
  10927. * Get the keys for all of the input and files.
  10928. *
  10929. * @return array
  10930. * @static
  10931. */
  10932. public static function keys()
  10933. {
  10934. /** @var \Illuminate\Http\Request $instance */
  10935. return $instance->keys();
  10936. }
  10937. /**
  10938. * Get all of the input and files for the request.
  10939. *
  10940. * @param array|mixed|null $keys
  10941. * @return array
  10942. * @static
  10943. */
  10944. public static function all($keys = null)
  10945. {
  10946. /** @var \Illuminate\Http\Request $instance */
  10947. return $instance->all($keys);
  10948. }
  10949. /**
  10950. * Retrieve an input item from the request.
  10951. *
  10952. * @param string|null $key
  10953. * @param mixed $default
  10954. * @return mixed
  10955. * @static
  10956. */
  10957. public static function input($key = null, $default = null)
  10958. {
  10959. /** @var \Illuminate\Http\Request $instance */
  10960. return $instance->input($key, $default);
  10961. }
  10962. /**
  10963. * Retrieve input as a boolean value.
  10964. *
  10965. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  10966. *
  10967. * @param string|null $key
  10968. * @param bool $default
  10969. * @return bool
  10970. * @static
  10971. */
  10972. public static function boolean($key = null, $default = false)
  10973. {
  10974. /** @var \Illuminate\Http\Request $instance */
  10975. return $instance->boolean($key, $default);
  10976. }
  10977. /**
  10978. * Get a subset containing the provided keys with values from the input data.
  10979. *
  10980. * @param array|mixed $keys
  10981. * @return array
  10982. * @static
  10983. */
  10984. public static function only($keys)
  10985. {
  10986. /** @var \Illuminate\Http\Request $instance */
  10987. return $instance->only($keys);
  10988. }
  10989. /**
  10990. * Get all of the input except for a specified array of items.
  10991. *
  10992. * @param array|mixed $keys
  10993. * @return array
  10994. * @static
  10995. */
  10996. public static function except($keys)
  10997. {
  10998. /** @var \Illuminate\Http\Request $instance */
  10999. return $instance->except($keys);
  11000. }
  11001. /**
  11002. * Retrieve a query string item from the request.
  11003. *
  11004. * @param string|null $key
  11005. * @param string|array|null $default
  11006. * @return string|array|null
  11007. * @static
  11008. */
  11009. public static function query($key = null, $default = null)
  11010. {
  11011. /** @var \Illuminate\Http\Request $instance */
  11012. return $instance->query($key, $default);
  11013. }
  11014. /**
  11015. * Retrieve a request payload item from the request.
  11016. *
  11017. * @param string|null $key
  11018. * @param string|array|null $default
  11019. * @return string|array|null
  11020. * @static
  11021. */
  11022. public static function post($key = null, $default = null)
  11023. {
  11024. /** @var \Illuminate\Http\Request $instance */
  11025. return $instance->post($key, $default);
  11026. }
  11027. /**
  11028. * Determine if a cookie is set on the request.
  11029. *
  11030. * @param string $key
  11031. * @return bool
  11032. * @static
  11033. */
  11034. public static function hasCookie($key)
  11035. {
  11036. /** @var \Illuminate\Http\Request $instance */
  11037. return $instance->hasCookie($key);
  11038. }
  11039. /**
  11040. * Retrieve a cookie from the request.
  11041. *
  11042. * @param string|null $key
  11043. * @param string|array|null $default
  11044. * @return string|array|null
  11045. * @static
  11046. */
  11047. public static function cookie($key = null, $default = null)
  11048. {
  11049. /** @var \Illuminate\Http\Request $instance */
  11050. return $instance->cookie($key, $default);
  11051. }
  11052. /**
  11053. * Get an array of all of the files on the request.
  11054. *
  11055. * @return array
  11056. * @static
  11057. */
  11058. public static function allFiles()
  11059. {
  11060. /** @var \Illuminate\Http\Request $instance */
  11061. return $instance->allFiles();
  11062. }
  11063. /**
  11064. * Determine if the uploaded data contains a file.
  11065. *
  11066. * @param string $key
  11067. * @return bool
  11068. * @static
  11069. */
  11070. public static function hasFile($key)
  11071. {
  11072. /** @var \Illuminate\Http\Request $instance */
  11073. return $instance->hasFile($key);
  11074. }
  11075. /**
  11076. * Retrieve a file from the request.
  11077. *
  11078. * @param string|null $key
  11079. * @param mixed $default
  11080. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  11081. * @static
  11082. */
  11083. public static function file($key = null, $default = null)
  11084. {
  11085. /** @var \Illuminate\Http\Request $instance */
  11086. return $instance->file($key, $default);
  11087. }
  11088. /**
  11089. * Dump the request items and end the script.
  11090. *
  11091. * @param array|mixed $keys
  11092. * @return void
  11093. * @static
  11094. */
  11095. public static function dd(...$keys)
  11096. {
  11097. /** @var \Illuminate\Http\Request $instance */
  11098. $instance->dd(...$keys);
  11099. }
  11100. /**
  11101. * Dump the items.
  11102. *
  11103. * @param array $keys
  11104. * @return \Illuminate\Http\Request
  11105. * @static
  11106. */
  11107. public static function dump($keys = [])
  11108. {
  11109. /** @var \Illuminate\Http\Request $instance */
  11110. return $instance->dump($keys);
  11111. }
  11112. /**
  11113. * Register a custom macro.
  11114. *
  11115. * @param string $name
  11116. * @param object|callable $macro
  11117. * @return void
  11118. * @static
  11119. */
  11120. public static function macro($name, $macro)
  11121. {
  11122. \Illuminate\Http\Request::macro($name, $macro);
  11123. }
  11124. /**
  11125. * Mix another object into the class.
  11126. *
  11127. * @param object $mixin
  11128. * @param bool $replace
  11129. * @return void
  11130. * @throws \ReflectionException
  11131. * @static
  11132. */
  11133. public static function mixin($mixin, $replace = true)
  11134. {
  11135. \Illuminate\Http\Request::mixin($mixin, $replace);
  11136. }
  11137. /**
  11138. * Checks if macro is registered.
  11139. *
  11140. * @param string $name
  11141. * @return bool
  11142. * @static
  11143. */
  11144. public static function hasMacro($name)
  11145. {
  11146. return \Illuminate\Http\Request::hasMacro($name);
  11147. }
  11148. /**
  11149. *
  11150. *
  11151. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11152. * @param array $rules
  11153. * @param mixed $params
  11154. * @static
  11155. */
  11156. public static function validate($rules, ...$params)
  11157. {
  11158. return \Illuminate\Http\Request::validate($rules, ...$params);
  11159. }
  11160. /**
  11161. *
  11162. *
  11163. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  11164. * @param string $errorBag
  11165. * @param array $rules
  11166. * @param mixed $params
  11167. * @static
  11168. */
  11169. public static function validateWithBag($errorBag, $rules, ...$params)
  11170. {
  11171. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  11172. }
  11173. /**
  11174. *
  11175. *
  11176. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11177. * @param mixed $absolute
  11178. * @static
  11179. */
  11180. public static function hasValidSignature($absolute = true)
  11181. {
  11182. return \Illuminate\Http\Request::hasValidSignature($absolute);
  11183. }
  11184. /**
  11185. *
  11186. *
  11187. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  11188. * @static
  11189. */
  11190. public static function hasValidRelativeSignature()
  11191. {
  11192. return \Illuminate\Http\Request::hasValidRelativeSignature();
  11193. }
  11194. }
  11195. /**
  11196. *
  11197. *
  11198. * @see \Illuminate\Contracts\Routing\ResponseFactory
  11199. */
  11200. class Response {
  11201. /**
  11202. * Create a new response instance.
  11203. *
  11204. * @param string $content
  11205. * @param int $status
  11206. * @param array $headers
  11207. * @return \Illuminate\Http\Response
  11208. * @static
  11209. */
  11210. public static function make($content = '', $status = 200, $headers = [])
  11211. {
  11212. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11213. return $instance->make($content, $status, $headers);
  11214. }
  11215. /**
  11216. * Create a new "no content" response.
  11217. *
  11218. * @param int $status
  11219. * @param array $headers
  11220. * @return \Illuminate\Http\Response
  11221. * @static
  11222. */
  11223. public static function noContent($status = 204, $headers = [])
  11224. {
  11225. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11226. return $instance->noContent($status, $headers);
  11227. }
  11228. /**
  11229. * Create a new response for a given view.
  11230. *
  11231. * @param string|array $view
  11232. * @param array $data
  11233. * @param int $status
  11234. * @param array $headers
  11235. * @return \Illuminate\Http\Response
  11236. * @static
  11237. */
  11238. public static function view($view, $data = [], $status = 200, $headers = [])
  11239. {
  11240. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11241. return $instance->view($view, $data, $status, $headers);
  11242. }
  11243. /**
  11244. * Create a new JSON response instance.
  11245. *
  11246. * @param mixed $data
  11247. * @param int $status
  11248. * @param array $headers
  11249. * @param int $options
  11250. * @return \Illuminate\Http\JsonResponse
  11251. * @static
  11252. */
  11253. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  11254. {
  11255. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11256. return $instance->json($data, $status, $headers, $options);
  11257. }
  11258. /**
  11259. * Create a new JSONP response instance.
  11260. *
  11261. * @param string $callback
  11262. * @param mixed $data
  11263. * @param int $status
  11264. * @param array $headers
  11265. * @param int $options
  11266. * @return \Illuminate\Http\JsonResponse
  11267. * @static
  11268. */
  11269. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  11270. {
  11271. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11272. return $instance->jsonp($callback, $data, $status, $headers, $options);
  11273. }
  11274. /**
  11275. * Create a new streamed response instance.
  11276. *
  11277. * @param \Closure $callback
  11278. * @param int $status
  11279. * @param array $headers
  11280. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11281. * @static
  11282. */
  11283. public static function stream($callback, $status = 200, $headers = [])
  11284. {
  11285. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11286. return $instance->stream($callback, $status, $headers);
  11287. }
  11288. /**
  11289. * Create a new streamed response instance as a file download.
  11290. *
  11291. * @param \Closure $callback
  11292. * @param string|null $name
  11293. * @param array $headers
  11294. * @param string|null $disposition
  11295. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11296. * @static
  11297. */
  11298. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  11299. {
  11300. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11301. return $instance->streamDownload($callback, $name, $headers, $disposition);
  11302. }
  11303. /**
  11304. * Create a new file download response.
  11305. *
  11306. * @param \SplFileInfo|string $file
  11307. * @param string|null $name
  11308. * @param array $headers
  11309. * @param string|null $disposition
  11310. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11311. * @static
  11312. */
  11313. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  11314. {
  11315. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11316. return $instance->download($file, $name, $headers, $disposition);
  11317. }
  11318. /**
  11319. * Return the raw contents of a binary file.
  11320. *
  11321. * @param \SplFileInfo|string $file
  11322. * @param array $headers
  11323. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  11324. * @static
  11325. */
  11326. public static function file($file, $headers = [])
  11327. {
  11328. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11329. return $instance->file($file, $headers);
  11330. }
  11331. /**
  11332. * Create a new redirect response to the given path.
  11333. *
  11334. * @param string $path
  11335. * @param int $status
  11336. * @param array $headers
  11337. * @param bool|null $secure
  11338. * @return \Illuminate\Http\RedirectResponse
  11339. * @static
  11340. */
  11341. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  11342. {
  11343. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11344. return $instance->redirectTo($path, $status, $headers, $secure);
  11345. }
  11346. /**
  11347. * Create a new redirect response to a named route.
  11348. *
  11349. * @param string $route
  11350. * @param mixed $parameters
  11351. * @param int $status
  11352. * @param array $headers
  11353. * @return \Illuminate\Http\RedirectResponse
  11354. * @static
  11355. */
  11356. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  11357. {
  11358. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11359. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  11360. }
  11361. /**
  11362. * Create a new redirect response to a controller action.
  11363. *
  11364. * @param string $action
  11365. * @param mixed $parameters
  11366. * @param int $status
  11367. * @param array $headers
  11368. * @return \Illuminate\Http\RedirectResponse
  11369. * @static
  11370. */
  11371. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  11372. {
  11373. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11374. return $instance->redirectToAction($action, $parameters, $status, $headers);
  11375. }
  11376. /**
  11377. * Create a new redirect response, while putting the current URL in the session.
  11378. *
  11379. * @param string $path
  11380. * @param int $status
  11381. * @param array $headers
  11382. * @param bool|null $secure
  11383. * @return \Illuminate\Http\RedirectResponse
  11384. * @static
  11385. */
  11386. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  11387. {
  11388. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11389. return $instance->redirectGuest($path, $status, $headers, $secure);
  11390. }
  11391. /**
  11392. * Create a new redirect response to the previously intended location.
  11393. *
  11394. * @param string $default
  11395. * @param int $status
  11396. * @param array $headers
  11397. * @param bool|null $secure
  11398. * @return \Illuminate\Http\RedirectResponse
  11399. * @static
  11400. */
  11401. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  11402. {
  11403. /** @var \Illuminate\Routing\ResponseFactory $instance */
  11404. return $instance->redirectToIntended($default, $status, $headers, $secure);
  11405. }
  11406. /**
  11407. * Register a custom macro.
  11408. *
  11409. * @param string $name
  11410. * @param object|callable $macro
  11411. * @return void
  11412. * @static
  11413. */
  11414. public static function macro($name, $macro)
  11415. {
  11416. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  11417. }
  11418. /**
  11419. * Mix another object into the class.
  11420. *
  11421. * @param object $mixin
  11422. * @param bool $replace
  11423. * @return void
  11424. * @throws \ReflectionException
  11425. * @static
  11426. */
  11427. public static function mixin($mixin, $replace = true)
  11428. {
  11429. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  11430. }
  11431. /**
  11432. * Checks if macro is registered.
  11433. *
  11434. * @param string $name
  11435. * @return bool
  11436. * @static
  11437. */
  11438. public static function hasMacro($name)
  11439. {
  11440. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  11441. }
  11442. }
  11443. /**
  11444. *
  11445. *
  11446. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  11447. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  11448. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  11449. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  11450. * @method static \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
  11451. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  11452. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  11453. * @see \Illuminate\Routing\Router
  11454. */
  11455. class Route {
  11456. /**
  11457. * Register a new GET route with the router.
  11458. *
  11459. * @param string $uri
  11460. * @param array|string|callable|null $action
  11461. * @return \Illuminate\Routing\Route
  11462. * @static
  11463. */
  11464. public static function get($uri, $action = null)
  11465. {
  11466. /** @var \Illuminate\Routing\Router $instance */
  11467. return $instance->get($uri, $action);
  11468. }
  11469. /**
  11470. * Register a new POST route with the router.
  11471. *
  11472. * @param string $uri
  11473. * @param array|string|callable|null $action
  11474. * @return \Illuminate\Routing\Route
  11475. * @static
  11476. */
  11477. public static function post($uri, $action = null)
  11478. {
  11479. /** @var \Illuminate\Routing\Router $instance */
  11480. return $instance->post($uri, $action);
  11481. }
  11482. /**
  11483. * Register a new PUT route with the router.
  11484. *
  11485. * @param string $uri
  11486. * @param array|string|callable|null $action
  11487. * @return \Illuminate\Routing\Route
  11488. * @static
  11489. */
  11490. public static function put($uri, $action = null)
  11491. {
  11492. /** @var \Illuminate\Routing\Router $instance */
  11493. return $instance->put($uri, $action);
  11494. }
  11495. /**
  11496. * Register a new PATCH route with the router.
  11497. *
  11498. * @param string $uri
  11499. * @param array|string|callable|null $action
  11500. * @return \Illuminate\Routing\Route
  11501. * @static
  11502. */
  11503. public static function patch($uri, $action = null)
  11504. {
  11505. /** @var \Illuminate\Routing\Router $instance */
  11506. return $instance->patch($uri, $action);
  11507. }
  11508. /**
  11509. * Register a new DELETE route with the router.
  11510. *
  11511. * @param string $uri
  11512. * @param array|string|callable|null $action
  11513. * @return \Illuminate\Routing\Route
  11514. * @static
  11515. */
  11516. public static function delete($uri, $action = null)
  11517. {
  11518. /** @var \Illuminate\Routing\Router $instance */
  11519. return $instance->delete($uri, $action);
  11520. }
  11521. /**
  11522. * Register a new OPTIONS route with the router.
  11523. *
  11524. * @param string $uri
  11525. * @param array|string|callable|null $action
  11526. * @return \Illuminate\Routing\Route
  11527. * @static
  11528. */
  11529. public static function options($uri, $action = null)
  11530. {
  11531. /** @var \Illuminate\Routing\Router $instance */
  11532. return $instance->options($uri, $action);
  11533. }
  11534. /**
  11535. * Register a new route responding to all verbs.
  11536. *
  11537. * @param string $uri
  11538. * @param array|string|callable|null $action
  11539. * @return \Illuminate\Routing\Route
  11540. * @static
  11541. */
  11542. public static function any($uri, $action = null)
  11543. {
  11544. /** @var \Illuminate\Routing\Router $instance */
  11545. return $instance->any($uri, $action);
  11546. }
  11547. /**
  11548. * Register a new Fallback route with the router.
  11549. *
  11550. * @param array|string|callable|null $action
  11551. * @return \Illuminate\Routing\Route
  11552. * @static
  11553. */
  11554. public static function fallback($action)
  11555. {
  11556. /** @var \Illuminate\Routing\Router $instance */
  11557. return $instance->fallback($action);
  11558. }
  11559. /**
  11560. * Create a redirect from one URI to another.
  11561. *
  11562. * @param string $uri
  11563. * @param string $destination
  11564. * @param int $status
  11565. * @return \Illuminate\Routing\Route
  11566. * @static
  11567. */
  11568. public static function redirect($uri, $destination, $status = 302)
  11569. {
  11570. /** @var \Illuminate\Routing\Router $instance */
  11571. return $instance->redirect($uri, $destination, $status);
  11572. }
  11573. /**
  11574. * Create a permanent redirect from one URI to another.
  11575. *
  11576. * @param string $uri
  11577. * @param string $destination
  11578. * @return \Illuminate\Routing\Route
  11579. * @static
  11580. */
  11581. public static function permanentRedirect($uri, $destination)
  11582. {
  11583. /** @var \Illuminate\Routing\Router $instance */
  11584. return $instance->permanentRedirect($uri, $destination);
  11585. }
  11586. /**
  11587. * Register a new route that returns a view.
  11588. *
  11589. * @param string $uri
  11590. * @param string $view
  11591. * @param array $data
  11592. * @param int|array $status
  11593. * @param array $headers
  11594. * @return \Illuminate\Routing\Route
  11595. * @static
  11596. */
  11597. public static function view($uri, $view, $data = [], $status = 200, $headers = [])
  11598. {
  11599. /** @var \Illuminate\Routing\Router $instance */
  11600. return $instance->view($uri, $view, $data, $status, $headers);
  11601. }
  11602. /**
  11603. * Register a new route with the given verbs.
  11604. *
  11605. * @param array|string $methods
  11606. * @param string $uri
  11607. * @param array|string|callable|null $action
  11608. * @return \Illuminate\Routing\Route
  11609. * @static
  11610. */
  11611. public static function match($methods, $uri, $action = null)
  11612. {
  11613. /** @var \Illuminate\Routing\Router $instance */
  11614. return $instance->match($methods, $uri, $action);
  11615. }
  11616. /**
  11617. * Register an array of resource controllers.
  11618. *
  11619. * @param array $resources
  11620. * @param array $options
  11621. * @return void
  11622. * @static
  11623. */
  11624. public static function resources($resources, $options = [])
  11625. {
  11626. /** @var \Illuminate\Routing\Router $instance */
  11627. $instance->resources($resources, $options);
  11628. }
  11629. /**
  11630. * Route a resource to a controller.
  11631. *
  11632. * @param string $name
  11633. * @param string $controller
  11634. * @param array $options
  11635. * @return \Illuminate\Routing\PendingResourceRegistration
  11636. * @static
  11637. */
  11638. public static function resource($name, $controller, $options = [])
  11639. {
  11640. /** @var \Illuminate\Routing\Router $instance */
  11641. return $instance->resource($name, $controller, $options);
  11642. }
  11643. /**
  11644. * Register an array of API resource controllers.
  11645. *
  11646. * @param array $resources
  11647. * @param array $options
  11648. * @return void
  11649. * @static
  11650. */
  11651. public static function apiResources($resources, $options = [])
  11652. {
  11653. /** @var \Illuminate\Routing\Router $instance */
  11654. $instance->apiResources($resources, $options);
  11655. }
  11656. /**
  11657. * Route an API resource to a controller.
  11658. *
  11659. * @param string $name
  11660. * @param string $controller
  11661. * @param array $options
  11662. * @return \Illuminate\Routing\PendingResourceRegistration
  11663. * @static
  11664. */
  11665. public static function apiResource($name, $controller, $options = [])
  11666. {
  11667. /** @var \Illuminate\Routing\Router $instance */
  11668. return $instance->apiResource($name, $controller, $options);
  11669. }
  11670. /**
  11671. * Create a route group with shared attributes.
  11672. *
  11673. * @param array $attributes
  11674. * @param \Closure|string $routes
  11675. * @return void
  11676. * @static
  11677. */
  11678. public static function group($attributes, $routes)
  11679. {
  11680. /** @var \Illuminate\Routing\Router $instance */
  11681. $instance->group($attributes, $routes);
  11682. }
  11683. /**
  11684. * Merge the given array with the last group stack.
  11685. *
  11686. * @param array $new
  11687. * @param bool $prependExistingPrefix
  11688. * @return array
  11689. * @static
  11690. */
  11691. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  11692. {
  11693. /** @var \Illuminate\Routing\Router $instance */
  11694. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  11695. }
  11696. /**
  11697. * Get the prefix from the last group on the stack.
  11698. *
  11699. * @return string
  11700. * @static
  11701. */
  11702. public static function getLastGroupPrefix()
  11703. {
  11704. /** @var \Illuminate\Routing\Router $instance */
  11705. return $instance->getLastGroupPrefix();
  11706. }
  11707. /**
  11708. * Add a route to the underlying route collection.
  11709. *
  11710. * @param array|string $methods
  11711. * @param string $uri
  11712. * @param array|string|callable|null $action
  11713. * @return \Illuminate\Routing\Route
  11714. * @static
  11715. */
  11716. public static function addRoute($methods, $uri, $action)
  11717. {
  11718. /** @var \Illuminate\Routing\Router $instance */
  11719. return $instance->addRoute($methods, $uri, $action);
  11720. }
  11721. /**
  11722. * Create a new Route object.
  11723. *
  11724. * @param array|string $methods
  11725. * @param string $uri
  11726. * @param mixed $action
  11727. * @return \Illuminate\Routing\Route
  11728. * @static
  11729. */
  11730. public static function newRoute($methods, $uri, $action)
  11731. {
  11732. /** @var \Illuminate\Routing\Router $instance */
  11733. return $instance->newRoute($methods, $uri, $action);
  11734. }
  11735. /**
  11736. * Return the response returned by the given route.
  11737. *
  11738. * @param string $name
  11739. * @return \Symfony\Component\HttpFoundation\Response
  11740. * @static
  11741. */
  11742. public static function respondWithRoute($name)
  11743. {
  11744. /** @var \Illuminate\Routing\Router $instance */
  11745. return $instance->respondWithRoute($name);
  11746. }
  11747. /**
  11748. * Dispatch the request to the application.
  11749. *
  11750. * @param \Illuminate\Http\Request $request
  11751. * @return \Symfony\Component\HttpFoundation\Response
  11752. * @static
  11753. */
  11754. public static function dispatch($request)
  11755. {
  11756. /** @var \Illuminate\Routing\Router $instance */
  11757. return $instance->dispatch($request);
  11758. }
  11759. /**
  11760. * Dispatch the request to a route and return the response.
  11761. *
  11762. * @param \Illuminate\Http\Request $request
  11763. * @return \Symfony\Component\HttpFoundation\Response
  11764. * @static
  11765. */
  11766. public static function dispatchToRoute($request)
  11767. {
  11768. /** @var \Illuminate\Routing\Router $instance */
  11769. return $instance->dispatchToRoute($request);
  11770. }
  11771. /**
  11772. * Gather the middleware for the given route with resolved class names.
  11773. *
  11774. * @param \Illuminate\Routing\Route $route
  11775. * @return array
  11776. * @static
  11777. */
  11778. public static function gatherRouteMiddleware($route)
  11779. {
  11780. /** @var \Illuminate\Routing\Router $instance */
  11781. return $instance->gatherRouteMiddleware($route);
  11782. }
  11783. /**
  11784. * Create a response instance from the given value.
  11785. *
  11786. * @param \Symfony\Component\HttpFoundation\Request $request
  11787. * @param mixed $response
  11788. * @return \Symfony\Component\HttpFoundation\Response
  11789. * @static
  11790. */
  11791. public static function prepareResponse($request, $response)
  11792. {
  11793. /** @var \Illuminate\Routing\Router $instance */
  11794. return $instance->prepareResponse($request, $response);
  11795. }
  11796. /**
  11797. * Static version of prepareResponse.
  11798. *
  11799. * @param \Symfony\Component\HttpFoundation\Request $request
  11800. * @param mixed $response
  11801. * @return \Symfony\Component\HttpFoundation\Response
  11802. * @static
  11803. */
  11804. public static function toResponse($request, $response)
  11805. {
  11806. return \Illuminate\Routing\Router::toResponse($request, $response);
  11807. }
  11808. /**
  11809. * Substitute the route bindings onto the route.
  11810. *
  11811. * @param \Illuminate\Routing\Route $route
  11812. * @return \Illuminate\Routing\Route
  11813. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11814. * @static
  11815. */
  11816. public static function substituteBindings($route)
  11817. {
  11818. /** @var \Illuminate\Routing\Router $instance */
  11819. return $instance->substituteBindings($route);
  11820. }
  11821. /**
  11822. * Substitute the implicit Eloquent model bindings for the route.
  11823. *
  11824. * @param \Illuminate\Routing\Route $route
  11825. * @return void
  11826. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  11827. * @static
  11828. */
  11829. public static function substituteImplicitBindings($route)
  11830. {
  11831. /** @var \Illuminate\Routing\Router $instance */
  11832. $instance->substituteImplicitBindings($route);
  11833. }
  11834. /**
  11835. * Register a route matched event listener.
  11836. *
  11837. * @param string|callable $callback
  11838. * @return void
  11839. * @static
  11840. */
  11841. public static function matched($callback)
  11842. {
  11843. /** @var \Illuminate\Routing\Router $instance */
  11844. $instance->matched($callback);
  11845. }
  11846. /**
  11847. * Get all of the defined middleware short-hand names.
  11848. *
  11849. * @return array
  11850. * @static
  11851. */
  11852. public static function getMiddleware()
  11853. {
  11854. /** @var \Illuminate\Routing\Router $instance */
  11855. return $instance->getMiddleware();
  11856. }
  11857. /**
  11858. * Register a short-hand name for a middleware.
  11859. *
  11860. * @param string $name
  11861. * @param string $class
  11862. * @return \Illuminate\Routing\Router
  11863. * @static
  11864. */
  11865. public static function aliasMiddleware($name, $class)
  11866. {
  11867. /** @var \Illuminate\Routing\Router $instance */
  11868. return $instance->aliasMiddleware($name, $class);
  11869. }
  11870. /**
  11871. * Check if a middlewareGroup with the given name exists.
  11872. *
  11873. * @param string $name
  11874. * @return bool
  11875. * @static
  11876. */
  11877. public static function hasMiddlewareGroup($name)
  11878. {
  11879. /** @var \Illuminate\Routing\Router $instance */
  11880. return $instance->hasMiddlewareGroup($name);
  11881. }
  11882. /**
  11883. * Get all of the defined middleware groups.
  11884. *
  11885. * @return array
  11886. * @static
  11887. */
  11888. public static function getMiddlewareGroups()
  11889. {
  11890. /** @var \Illuminate\Routing\Router $instance */
  11891. return $instance->getMiddlewareGroups();
  11892. }
  11893. /**
  11894. * Register a group of middleware.
  11895. *
  11896. * @param string $name
  11897. * @param array $middleware
  11898. * @return \Illuminate\Routing\Router
  11899. * @static
  11900. */
  11901. public static function middlewareGroup($name, $middleware)
  11902. {
  11903. /** @var \Illuminate\Routing\Router $instance */
  11904. return $instance->middlewareGroup($name, $middleware);
  11905. }
  11906. /**
  11907. * Add a middleware to the beginning of a middleware group.
  11908. *
  11909. * If the middleware is already in the group, it will not be added again.
  11910. *
  11911. * @param string $group
  11912. * @param string $middleware
  11913. * @return \Illuminate\Routing\Router
  11914. * @static
  11915. */
  11916. public static function prependMiddlewareToGroup($group, $middleware)
  11917. {
  11918. /** @var \Illuminate\Routing\Router $instance */
  11919. return $instance->prependMiddlewareToGroup($group, $middleware);
  11920. }
  11921. /**
  11922. * Add a middleware to the end of a middleware group.
  11923. *
  11924. * If the middleware is already in the group, it will not be added again.
  11925. *
  11926. * @param string $group
  11927. * @param string $middleware
  11928. * @return \Illuminate\Routing\Router
  11929. * @static
  11930. */
  11931. public static function pushMiddlewareToGroup($group, $middleware)
  11932. {
  11933. /** @var \Illuminate\Routing\Router $instance */
  11934. return $instance->pushMiddlewareToGroup($group, $middleware);
  11935. }
  11936. /**
  11937. * Flush the router's middleware groups.
  11938. *
  11939. * @return \Illuminate\Routing\Router
  11940. * @static
  11941. */
  11942. public static function flushMiddlewareGroups()
  11943. {
  11944. /** @var \Illuminate\Routing\Router $instance */
  11945. return $instance->flushMiddlewareGroups();
  11946. }
  11947. /**
  11948. * Add a new route parameter binder.
  11949. *
  11950. * @param string $key
  11951. * @param string|callable $binder
  11952. * @return void
  11953. * @static
  11954. */
  11955. public static function bind($key, $binder)
  11956. {
  11957. /** @var \Illuminate\Routing\Router $instance */
  11958. $instance->bind($key, $binder);
  11959. }
  11960. /**
  11961. * Register a model binder for a wildcard.
  11962. *
  11963. * @param string $key
  11964. * @param string $class
  11965. * @param \Closure|null $callback
  11966. * @return void
  11967. * @static
  11968. */
  11969. public static function model($key, $class, $callback = null)
  11970. {
  11971. /** @var \Illuminate\Routing\Router $instance */
  11972. $instance->model($key, $class, $callback);
  11973. }
  11974. /**
  11975. * Get the binding callback for a given binding.
  11976. *
  11977. * @param string $key
  11978. * @return \Closure|null
  11979. * @static
  11980. */
  11981. public static function getBindingCallback($key)
  11982. {
  11983. /** @var \Illuminate\Routing\Router $instance */
  11984. return $instance->getBindingCallback($key);
  11985. }
  11986. /**
  11987. * Get the global "where" patterns.
  11988. *
  11989. * @return array
  11990. * @static
  11991. */
  11992. public static function getPatterns()
  11993. {
  11994. /** @var \Illuminate\Routing\Router $instance */
  11995. return $instance->getPatterns();
  11996. }
  11997. /**
  11998. * Set a global where pattern on all routes.
  11999. *
  12000. * @param string $key
  12001. * @param string $pattern
  12002. * @return void
  12003. * @static
  12004. */
  12005. public static function pattern($key, $pattern)
  12006. {
  12007. /** @var \Illuminate\Routing\Router $instance */
  12008. $instance->pattern($key, $pattern);
  12009. }
  12010. /**
  12011. * Set a group of global where patterns on all routes.
  12012. *
  12013. * @param array $patterns
  12014. * @return void
  12015. * @static
  12016. */
  12017. public static function patterns($patterns)
  12018. {
  12019. /** @var \Illuminate\Routing\Router $instance */
  12020. $instance->patterns($patterns);
  12021. }
  12022. /**
  12023. * Determine if the router currently has a group stack.
  12024. *
  12025. * @return bool
  12026. * @static
  12027. */
  12028. public static function hasGroupStack()
  12029. {
  12030. /** @var \Illuminate\Routing\Router $instance */
  12031. return $instance->hasGroupStack();
  12032. }
  12033. /**
  12034. * Get the current group stack for the router.
  12035. *
  12036. * @return array
  12037. * @static
  12038. */
  12039. public static function getGroupStack()
  12040. {
  12041. /** @var \Illuminate\Routing\Router $instance */
  12042. return $instance->getGroupStack();
  12043. }
  12044. /**
  12045. * Get a route parameter for the current route.
  12046. *
  12047. * @param string $key
  12048. * @param string|null $default
  12049. * @return mixed
  12050. * @static
  12051. */
  12052. public static function input($key, $default = null)
  12053. {
  12054. /** @var \Illuminate\Routing\Router $instance */
  12055. return $instance->input($key, $default);
  12056. }
  12057. /**
  12058. * Get the request currently being dispatched.
  12059. *
  12060. * @return \Illuminate\Http\Request
  12061. * @static
  12062. */
  12063. public static function getCurrentRequest()
  12064. {
  12065. /** @var \Illuminate\Routing\Router $instance */
  12066. return $instance->getCurrentRequest();
  12067. }
  12068. /**
  12069. * Get the currently dispatched route instance.
  12070. *
  12071. * @return \Illuminate\Routing\Route|null
  12072. * @static
  12073. */
  12074. public static function getCurrentRoute()
  12075. {
  12076. /** @var \Illuminate\Routing\Router $instance */
  12077. return $instance->getCurrentRoute();
  12078. }
  12079. /**
  12080. * Get the currently dispatched route instance.
  12081. *
  12082. * @return \Illuminate\Routing\Route|null
  12083. * @static
  12084. */
  12085. public static function current()
  12086. {
  12087. /** @var \Illuminate\Routing\Router $instance */
  12088. return $instance->current();
  12089. }
  12090. /**
  12091. * Check if a route with the given name exists.
  12092. *
  12093. * @param string $name
  12094. * @return bool
  12095. * @static
  12096. */
  12097. public static function has($name)
  12098. {
  12099. /** @var \Illuminate\Routing\Router $instance */
  12100. return $instance->has($name);
  12101. }
  12102. /**
  12103. * Get the current route name.
  12104. *
  12105. * @return string|null
  12106. * @static
  12107. */
  12108. public static function currentRouteName()
  12109. {
  12110. /** @var \Illuminate\Routing\Router $instance */
  12111. return $instance->currentRouteName();
  12112. }
  12113. /**
  12114. * Alias for the "currentRouteNamed" method.
  12115. *
  12116. * @param mixed $patterns
  12117. * @return bool
  12118. * @static
  12119. */
  12120. public static function is(...$patterns)
  12121. {
  12122. /** @var \Illuminate\Routing\Router $instance */
  12123. return $instance->is(...$patterns);
  12124. }
  12125. /**
  12126. * Determine if the current route matches a pattern.
  12127. *
  12128. * @param mixed $patterns
  12129. * @return bool
  12130. * @static
  12131. */
  12132. public static function currentRouteNamed(...$patterns)
  12133. {
  12134. /** @var \Illuminate\Routing\Router $instance */
  12135. return $instance->currentRouteNamed(...$patterns);
  12136. }
  12137. /**
  12138. * Get the current route action.
  12139. *
  12140. * @return string|null
  12141. * @static
  12142. */
  12143. public static function currentRouteAction()
  12144. {
  12145. /** @var \Illuminate\Routing\Router $instance */
  12146. return $instance->currentRouteAction();
  12147. }
  12148. /**
  12149. * Alias for the "currentRouteUses" method.
  12150. *
  12151. * @param array $patterns
  12152. * @return bool
  12153. * @static
  12154. */
  12155. public static function uses(...$patterns)
  12156. {
  12157. /** @var \Illuminate\Routing\Router $instance */
  12158. return $instance->uses(...$patterns);
  12159. }
  12160. /**
  12161. * Determine if the current route action matches a given action.
  12162. *
  12163. * @param string $action
  12164. * @return bool
  12165. * @static
  12166. */
  12167. public static function currentRouteUses($action)
  12168. {
  12169. /** @var \Illuminate\Routing\Router $instance */
  12170. return $instance->currentRouteUses($action);
  12171. }
  12172. /**
  12173. * Set the unmapped global resource parameters to singular.
  12174. *
  12175. * @param bool $singular
  12176. * @return void
  12177. * @static
  12178. */
  12179. public static function singularResourceParameters($singular = true)
  12180. {
  12181. /** @var \Illuminate\Routing\Router $instance */
  12182. $instance->singularResourceParameters($singular);
  12183. }
  12184. /**
  12185. * Set the global resource parameter mapping.
  12186. *
  12187. * @param array $parameters
  12188. * @return void
  12189. * @static
  12190. */
  12191. public static function resourceParameters($parameters = [])
  12192. {
  12193. /** @var \Illuminate\Routing\Router $instance */
  12194. $instance->resourceParameters($parameters);
  12195. }
  12196. /**
  12197. * Get or set the verbs used in the resource URIs.
  12198. *
  12199. * @param array $verbs
  12200. * @return array|null
  12201. * @static
  12202. */
  12203. public static function resourceVerbs($verbs = [])
  12204. {
  12205. /** @var \Illuminate\Routing\Router $instance */
  12206. return $instance->resourceVerbs($verbs);
  12207. }
  12208. /**
  12209. * Get the underlying route collection.
  12210. *
  12211. * @return \Illuminate\Routing\RouteCollectionInterface
  12212. * @static
  12213. */
  12214. public static function getRoutes()
  12215. {
  12216. /** @var \Illuminate\Routing\Router $instance */
  12217. return $instance->getRoutes();
  12218. }
  12219. /**
  12220. * Set the route collection instance.
  12221. *
  12222. * @param \Illuminate\Routing\RouteCollection $routes
  12223. * @return void
  12224. * @static
  12225. */
  12226. public static function setRoutes($routes)
  12227. {
  12228. /** @var \Illuminate\Routing\Router $instance */
  12229. $instance->setRoutes($routes);
  12230. }
  12231. /**
  12232. * Set the compiled route collection instance.
  12233. *
  12234. * @param array $routes
  12235. * @return void
  12236. * @static
  12237. */
  12238. public static function setCompiledRoutes($routes)
  12239. {
  12240. /** @var \Illuminate\Routing\Router $instance */
  12241. $instance->setCompiledRoutes($routes);
  12242. }
  12243. /**
  12244. * Remove any duplicate middleware from the given array.
  12245. *
  12246. * @param array $middleware
  12247. * @return array
  12248. * @static
  12249. */
  12250. public static function uniqueMiddleware($middleware)
  12251. {
  12252. return \Illuminate\Routing\Router::uniqueMiddleware($middleware);
  12253. }
  12254. /**
  12255. * Set the container instance used by the router.
  12256. *
  12257. * @param \Illuminate\Container\Container $container
  12258. * @return \Illuminate\Routing\Router
  12259. * @static
  12260. */
  12261. public static function setContainer($container)
  12262. {
  12263. /** @var \Illuminate\Routing\Router $instance */
  12264. return $instance->setContainer($container);
  12265. }
  12266. /**
  12267. * Register a custom macro.
  12268. *
  12269. * @param string $name
  12270. * @param object|callable $macro
  12271. * @return void
  12272. * @static
  12273. */
  12274. public static function macro($name, $macro)
  12275. {
  12276. \Illuminate\Routing\Router::macro($name, $macro);
  12277. }
  12278. /**
  12279. * Mix another object into the class.
  12280. *
  12281. * @param object $mixin
  12282. * @param bool $replace
  12283. * @return void
  12284. * @throws \ReflectionException
  12285. * @static
  12286. */
  12287. public static function mixin($mixin, $replace = true)
  12288. {
  12289. \Illuminate\Routing\Router::mixin($mixin, $replace);
  12290. }
  12291. /**
  12292. * Checks if macro is registered.
  12293. *
  12294. * @param string $name
  12295. * @return bool
  12296. * @static
  12297. */
  12298. public static function hasMacro($name)
  12299. {
  12300. return \Illuminate\Routing\Router::hasMacro($name);
  12301. }
  12302. /**
  12303. * Dynamically handle calls to the class.
  12304. *
  12305. * @param string $method
  12306. * @param array $parameters
  12307. * @return mixed
  12308. * @throws \BadMethodCallException
  12309. * @static
  12310. */
  12311. public static function macroCall($method, $parameters)
  12312. {
  12313. /** @var \Illuminate\Routing\Router $instance */
  12314. return $instance->macroCall($method, $parameters);
  12315. }
  12316. }
  12317. /**
  12318. *
  12319. *
  12320. * @see \Illuminate\Database\Schema\Builder
  12321. */
  12322. class Schema {
  12323. /**
  12324. * Create a database in the schema.
  12325. *
  12326. * @param string $name
  12327. * @return bool
  12328. * @static
  12329. */
  12330. public static function createDatabase($name)
  12331. {
  12332. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12333. return $instance->createDatabase($name);
  12334. }
  12335. /**
  12336. * Drop a database from the schema if the database exists.
  12337. *
  12338. * @param string $name
  12339. * @return bool
  12340. * @static
  12341. */
  12342. public static function dropDatabaseIfExists($name)
  12343. {
  12344. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12345. return $instance->dropDatabaseIfExists($name);
  12346. }
  12347. /**
  12348. * Determine if the given table exists.
  12349. *
  12350. * @param string $table
  12351. * @return bool
  12352. * @static
  12353. */
  12354. public static function hasTable($table)
  12355. {
  12356. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12357. return $instance->hasTable($table);
  12358. }
  12359. /**
  12360. * Get the column listing for a given table.
  12361. *
  12362. * @param string $table
  12363. * @return array
  12364. * @static
  12365. */
  12366. public static function getColumnListing($table)
  12367. {
  12368. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12369. return $instance->getColumnListing($table);
  12370. }
  12371. /**
  12372. * Drop all tables from the database.
  12373. *
  12374. * @return void
  12375. * @static
  12376. */
  12377. public static function dropAllTables()
  12378. {
  12379. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12380. $instance->dropAllTables();
  12381. }
  12382. /**
  12383. * Drop all views from the database.
  12384. *
  12385. * @return void
  12386. * @static
  12387. */
  12388. public static function dropAllViews()
  12389. {
  12390. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12391. $instance->dropAllViews();
  12392. }
  12393. /**
  12394. * Get all of the table names for the database.
  12395. *
  12396. * @return array
  12397. * @static
  12398. */
  12399. public static function getAllTables()
  12400. {
  12401. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12402. return $instance->getAllTables();
  12403. }
  12404. /**
  12405. * Get all of the view names for the database.
  12406. *
  12407. * @return array
  12408. * @static
  12409. */
  12410. public static function getAllViews()
  12411. {
  12412. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12413. return $instance->getAllViews();
  12414. }
  12415. /**
  12416. * Set the default string length for migrations.
  12417. *
  12418. * @param int $length
  12419. * @return void
  12420. * @static
  12421. */
  12422. public static function defaultStringLength($length)
  12423. { //Method inherited from \Illuminate\Database\Schema\Builder
  12424. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  12425. }
  12426. /**
  12427. * Set the default morph key type for migrations.
  12428. *
  12429. * @param string $type
  12430. * @return void
  12431. * @throws \InvalidArgumentException
  12432. * @static
  12433. */
  12434. public static function defaultMorphKeyType($type)
  12435. { //Method inherited from \Illuminate\Database\Schema\Builder
  12436. \Illuminate\Database\Schema\MySqlBuilder::defaultMorphKeyType($type);
  12437. }
  12438. /**
  12439. * Set the default morph key type for migrations to UUIDs.
  12440. *
  12441. * @return void
  12442. * @static
  12443. */
  12444. public static function morphUsingUuids()
  12445. { //Method inherited from \Illuminate\Database\Schema\Builder
  12446. \Illuminate\Database\Schema\MySqlBuilder::morphUsingUuids();
  12447. }
  12448. /**
  12449. * Determine if the given table has a given column.
  12450. *
  12451. * @param string $table
  12452. * @param string $column
  12453. * @return bool
  12454. * @static
  12455. */
  12456. public static function hasColumn($table, $column)
  12457. { //Method inherited from \Illuminate\Database\Schema\Builder
  12458. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12459. return $instance->hasColumn($table, $column);
  12460. }
  12461. /**
  12462. * Determine if the given table has given columns.
  12463. *
  12464. * @param string $table
  12465. * @param array $columns
  12466. * @return bool
  12467. * @static
  12468. */
  12469. public static function hasColumns($table, $columns)
  12470. { //Method inherited from \Illuminate\Database\Schema\Builder
  12471. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12472. return $instance->hasColumns($table, $columns);
  12473. }
  12474. /**
  12475. * Get the data type for the given column name.
  12476. *
  12477. * @param string $table
  12478. * @param string $column
  12479. * @return string
  12480. * @static
  12481. */
  12482. public static function getColumnType($table, $column)
  12483. { //Method inherited from \Illuminate\Database\Schema\Builder
  12484. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12485. return $instance->getColumnType($table, $column);
  12486. }
  12487. /**
  12488. * Modify a table on the schema.
  12489. *
  12490. * @param string $table
  12491. * @param \Closure $callback
  12492. * @return void
  12493. * @static
  12494. */
  12495. public static function table($table, $callback)
  12496. { //Method inherited from \Illuminate\Database\Schema\Builder
  12497. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12498. $instance->table($table, $callback);
  12499. }
  12500. /**
  12501. * Create a new table on the schema.
  12502. *
  12503. * @param string $table
  12504. * @param \Closure $callback
  12505. * @return void
  12506. * @static
  12507. */
  12508. public static function create($table, $callback)
  12509. { //Method inherited from \Illuminate\Database\Schema\Builder
  12510. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12511. $instance->create($table, $callback);
  12512. }
  12513. /**
  12514. * Drop a table from the schema.
  12515. *
  12516. * @param string $table
  12517. * @return void
  12518. * @static
  12519. */
  12520. public static function drop($table)
  12521. { //Method inherited from \Illuminate\Database\Schema\Builder
  12522. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12523. $instance->drop($table);
  12524. }
  12525. /**
  12526. * Drop a table from the schema if it exists.
  12527. *
  12528. * @param string $table
  12529. * @return void
  12530. * @static
  12531. */
  12532. public static function dropIfExists($table)
  12533. { //Method inherited from \Illuminate\Database\Schema\Builder
  12534. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12535. $instance->dropIfExists($table);
  12536. }
  12537. /**
  12538. * Drop columns from a table schema.
  12539. *
  12540. * @param string $table
  12541. * @param string|array $columns
  12542. * @return void
  12543. * @static
  12544. */
  12545. public static function dropColumns($table, $columns)
  12546. { //Method inherited from \Illuminate\Database\Schema\Builder
  12547. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12548. $instance->dropColumns($table, $columns);
  12549. }
  12550. /**
  12551. * Drop all types from the database.
  12552. *
  12553. * @return void
  12554. * @throws \LogicException
  12555. * @static
  12556. */
  12557. public static function dropAllTypes()
  12558. { //Method inherited from \Illuminate\Database\Schema\Builder
  12559. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12560. $instance->dropAllTypes();
  12561. }
  12562. /**
  12563. * Rename a table on the schema.
  12564. *
  12565. * @param string $from
  12566. * @param string $to
  12567. * @return void
  12568. * @static
  12569. */
  12570. public static function rename($from, $to)
  12571. { //Method inherited from \Illuminate\Database\Schema\Builder
  12572. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12573. $instance->rename($from, $to);
  12574. }
  12575. /**
  12576. * Enable foreign key constraints.
  12577. *
  12578. * @return bool
  12579. * @static
  12580. */
  12581. public static function enableForeignKeyConstraints()
  12582. { //Method inherited from \Illuminate\Database\Schema\Builder
  12583. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12584. return $instance->enableForeignKeyConstraints();
  12585. }
  12586. /**
  12587. * Disable foreign key constraints.
  12588. *
  12589. * @return bool
  12590. * @static
  12591. */
  12592. public static function disableForeignKeyConstraints()
  12593. { //Method inherited from \Illuminate\Database\Schema\Builder
  12594. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12595. return $instance->disableForeignKeyConstraints();
  12596. }
  12597. /**
  12598. * Register a custom Doctrine mapping type.
  12599. *
  12600. * @param string $class
  12601. * @param string $name
  12602. * @param string $type
  12603. * @return void
  12604. * @throws \Doctrine\DBAL\DBALException
  12605. * @throws \RuntimeException
  12606. * @static
  12607. */
  12608. public static function registerCustomDoctrineType($class, $name, $type)
  12609. { //Method inherited from \Illuminate\Database\Schema\Builder
  12610. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12611. $instance->registerCustomDoctrineType($class, $name, $type);
  12612. }
  12613. /**
  12614. * Get the database connection instance.
  12615. *
  12616. * @return \Illuminate\Database\Connection
  12617. * @static
  12618. */
  12619. public static function getConnection()
  12620. { //Method inherited from \Illuminate\Database\Schema\Builder
  12621. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12622. return $instance->getConnection();
  12623. }
  12624. /**
  12625. * Set the database connection instance.
  12626. *
  12627. * @param \Illuminate\Database\Connection $connection
  12628. * @return \Illuminate\Database\Schema\MySqlBuilder
  12629. * @static
  12630. */
  12631. public static function setConnection($connection)
  12632. { //Method inherited from \Illuminate\Database\Schema\Builder
  12633. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12634. return $instance->setConnection($connection);
  12635. }
  12636. /**
  12637. * Set the Schema Blueprint resolver callback.
  12638. *
  12639. * @param \Closure $resolver
  12640. * @return void
  12641. * @static
  12642. */
  12643. public static function blueprintResolver($resolver)
  12644. { //Method inherited from \Illuminate\Database\Schema\Builder
  12645. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  12646. $instance->blueprintResolver($resolver);
  12647. }
  12648. }
  12649. /**
  12650. *
  12651. *
  12652. * @see \Illuminate\Session\SessionManager
  12653. * @see \Illuminate\Session\Store
  12654. */
  12655. class Session {
  12656. /**
  12657. * Determine if requests for the same session should wait for each to finish before executing.
  12658. *
  12659. * @return bool
  12660. * @static
  12661. */
  12662. public static function shouldBlock()
  12663. {
  12664. /** @var \Illuminate\Session\SessionManager $instance */
  12665. return $instance->shouldBlock();
  12666. }
  12667. /**
  12668. * Get the name of the cache store / driver that should be used to acquire session locks.
  12669. *
  12670. * @return string|null
  12671. * @static
  12672. */
  12673. public static function blockDriver()
  12674. {
  12675. /** @var \Illuminate\Session\SessionManager $instance */
  12676. return $instance->blockDriver();
  12677. }
  12678. /**
  12679. * Get the session configuration.
  12680. *
  12681. * @return array
  12682. * @static
  12683. */
  12684. public static function getSessionConfig()
  12685. {
  12686. /** @var \Illuminate\Session\SessionManager $instance */
  12687. return $instance->getSessionConfig();
  12688. }
  12689. /**
  12690. * Get the default session driver name.
  12691. *
  12692. * @return string
  12693. * @static
  12694. */
  12695. public static function getDefaultDriver()
  12696. {
  12697. /** @var \Illuminate\Session\SessionManager $instance */
  12698. return $instance->getDefaultDriver();
  12699. }
  12700. /**
  12701. * Set the default session driver name.
  12702. *
  12703. * @param string $name
  12704. * @return void
  12705. * @static
  12706. */
  12707. public static function setDefaultDriver($name)
  12708. {
  12709. /** @var \Illuminate\Session\SessionManager $instance */
  12710. $instance->setDefaultDriver($name);
  12711. }
  12712. /**
  12713. * Get a driver instance.
  12714. *
  12715. * @param string|null $driver
  12716. * @return mixed
  12717. * @throws \InvalidArgumentException
  12718. * @static
  12719. */
  12720. public static function driver($driver = null)
  12721. { //Method inherited from \Illuminate\Support\Manager
  12722. /** @var \Illuminate\Session\SessionManager $instance */
  12723. return $instance->driver($driver);
  12724. }
  12725. /**
  12726. * Register a custom driver creator Closure.
  12727. *
  12728. * @param string $driver
  12729. * @param \Closure $callback
  12730. * @return \Illuminate\Session\SessionManager
  12731. * @static
  12732. */
  12733. public static function extend($driver, $callback)
  12734. { //Method inherited from \Illuminate\Support\Manager
  12735. /** @var \Illuminate\Session\SessionManager $instance */
  12736. return $instance->extend($driver, $callback);
  12737. }
  12738. /**
  12739. * Get all of the created "drivers".
  12740. *
  12741. * @return array
  12742. * @static
  12743. */
  12744. public static function getDrivers()
  12745. { //Method inherited from \Illuminate\Support\Manager
  12746. /** @var \Illuminate\Session\SessionManager $instance */
  12747. return $instance->getDrivers();
  12748. }
  12749. /**
  12750. * Get the container instance used by the manager.
  12751. *
  12752. * @return \Illuminate\Contracts\Container\Container
  12753. * @static
  12754. */
  12755. public static function getContainer()
  12756. { //Method inherited from \Illuminate\Support\Manager
  12757. /** @var \Illuminate\Session\SessionManager $instance */
  12758. return $instance->getContainer();
  12759. }
  12760. /**
  12761. * Set the container instance used by the manager.
  12762. *
  12763. * @param \Illuminate\Contracts\Container\Container $container
  12764. * @return \Illuminate\Session\SessionManager
  12765. * @static
  12766. */
  12767. public static function setContainer($container)
  12768. { //Method inherited from \Illuminate\Support\Manager
  12769. /** @var \Illuminate\Session\SessionManager $instance */
  12770. return $instance->setContainer($container);
  12771. }
  12772. /**
  12773. * Forget all of the resolved driver instances.
  12774. *
  12775. * @return \Illuminate\Session\SessionManager
  12776. * @static
  12777. */
  12778. public static function forgetDrivers()
  12779. { //Method inherited from \Illuminate\Support\Manager
  12780. /** @var \Illuminate\Session\SessionManager $instance */
  12781. return $instance->forgetDrivers();
  12782. }
  12783. /**
  12784. * Start the session, reading the data from a handler.
  12785. *
  12786. * @return bool
  12787. * @static
  12788. */
  12789. public static function start()
  12790. {
  12791. /** @var \Illuminate\Session\Store $instance */
  12792. return $instance->start();
  12793. }
  12794. /**
  12795. * Save the session data to storage.
  12796. *
  12797. * @return void
  12798. * @static
  12799. */
  12800. public static function save()
  12801. {
  12802. /** @var \Illuminate\Session\Store $instance */
  12803. $instance->save();
  12804. }
  12805. /**
  12806. * Age the flash data for the session.
  12807. *
  12808. * @return void
  12809. * @static
  12810. */
  12811. public static function ageFlashData()
  12812. {
  12813. /** @var \Illuminate\Session\Store $instance */
  12814. $instance->ageFlashData();
  12815. }
  12816. /**
  12817. * Get all of the session data.
  12818. *
  12819. * @return array
  12820. * @static
  12821. */
  12822. public static function all()
  12823. {
  12824. /** @var \Illuminate\Session\Store $instance */
  12825. return $instance->all();
  12826. }
  12827. /**
  12828. * Get a subset of the session data.
  12829. *
  12830. * @param array $keys
  12831. * @return array
  12832. * @static
  12833. */
  12834. public static function only($keys)
  12835. {
  12836. /** @var \Illuminate\Session\Store $instance */
  12837. return $instance->only($keys);
  12838. }
  12839. /**
  12840. * Checks if a key exists.
  12841. *
  12842. * @param string|array $key
  12843. * @return bool
  12844. * @static
  12845. */
  12846. public static function exists($key)
  12847. {
  12848. /** @var \Illuminate\Session\Store $instance */
  12849. return $instance->exists($key);
  12850. }
  12851. /**
  12852. * Determine if the given key is missing from the session data.
  12853. *
  12854. * @param string|array $key
  12855. * @return bool
  12856. * @static
  12857. */
  12858. public static function missing($key)
  12859. {
  12860. /** @var \Illuminate\Session\Store $instance */
  12861. return $instance->missing($key);
  12862. }
  12863. /**
  12864. * Checks if a key is present and not null.
  12865. *
  12866. * @param string|array $key
  12867. * @return bool
  12868. * @static
  12869. */
  12870. public static function has($key)
  12871. {
  12872. /** @var \Illuminate\Session\Store $instance */
  12873. return $instance->has($key);
  12874. }
  12875. /**
  12876. * Get an item from the session.
  12877. *
  12878. * @param string $key
  12879. * @param mixed $default
  12880. * @return mixed
  12881. * @static
  12882. */
  12883. public static function get($key, $default = null)
  12884. {
  12885. /** @var \Illuminate\Session\Store $instance */
  12886. return $instance->get($key, $default);
  12887. }
  12888. /**
  12889. * Get the value of a given key and then forget it.
  12890. *
  12891. * @param string $key
  12892. * @param mixed $default
  12893. * @return mixed
  12894. * @static
  12895. */
  12896. public static function pull($key, $default = null)
  12897. {
  12898. /** @var \Illuminate\Session\Store $instance */
  12899. return $instance->pull($key, $default);
  12900. }
  12901. /**
  12902. * Determine if the session contains old input.
  12903. *
  12904. * @param string|null $key
  12905. * @return bool
  12906. * @static
  12907. */
  12908. public static function hasOldInput($key = null)
  12909. {
  12910. /** @var \Illuminate\Session\Store $instance */
  12911. return $instance->hasOldInput($key);
  12912. }
  12913. /**
  12914. * Get the requested item from the flashed input array.
  12915. *
  12916. * @param string|null $key
  12917. * @param mixed $default
  12918. * @return mixed
  12919. * @static
  12920. */
  12921. public static function getOldInput($key = null, $default = null)
  12922. {
  12923. /** @var \Illuminate\Session\Store $instance */
  12924. return $instance->getOldInput($key, $default);
  12925. }
  12926. /**
  12927. * Replace the given session attributes entirely.
  12928. *
  12929. * @param array $attributes
  12930. * @return void
  12931. * @static
  12932. */
  12933. public static function replace($attributes)
  12934. {
  12935. /** @var \Illuminate\Session\Store $instance */
  12936. $instance->replace($attributes);
  12937. }
  12938. /**
  12939. * Put a key / value pair or array of key / value pairs in the session.
  12940. *
  12941. * @param string|array $key
  12942. * @param mixed $value
  12943. * @return void
  12944. * @static
  12945. */
  12946. public static function put($key, $value = null)
  12947. {
  12948. /** @var \Illuminate\Session\Store $instance */
  12949. $instance->put($key, $value);
  12950. }
  12951. /**
  12952. * Get an item from the session, or store the default value.
  12953. *
  12954. * @param string $key
  12955. * @param \Closure $callback
  12956. * @return mixed
  12957. * @static
  12958. */
  12959. public static function remember($key, $callback)
  12960. {
  12961. /** @var \Illuminate\Session\Store $instance */
  12962. return $instance->remember($key, $callback);
  12963. }
  12964. /**
  12965. * Push a value onto a session array.
  12966. *
  12967. * @param string $key
  12968. * @param mixed $value
  12969. * @return void
  12970. * @static
  12971. */
  12972. public static function push($key, $value)
  12973. {
  12974. /** @var \Illuminate\Session\Store $instance */
  12975. $instance->push($key, $value);
  12976. }
  12977. /**
  12978. * Increment the value of an item in the session.
  12979. *
  12980. * @param string $key
  12981. * @param int $amount
  12982. * @return mixed
  12983. * @static
  12984. */
  12985. public static function increment($key, $amount = 1)
  12986. {
  12987. /** @var \Illuminate\Session\Store $instance */
  12988. return $instance->increment($key, $amount);
  12989. }
  12990. /**
  12991. * Decrement the value of an item in the session.
  12992. *
  12993. * @param string $key
  12994. * @param int $amount
  12995. * @return int
  12996. * @static
  12997. */
  12998. public static function decrement($key, $amount = 1)
  12999. {
  13000. /** @var \Illuminate\Session\Store $instance */
  13001. return $instance->decrement($key, $amount);
  13002. }
  13003. /**
  13004. * Flash a key / value pair to the session.
  13005. *
  13006. * @param string $key
  13007. * @param mixed $value
  13008. * @return void
  13009. * @static
  13010. */
  13011. public static function flash($key, $value = true)
  13012. {
  13013. /** @var \Illuminate\Session\Store $instance */
  13014. $instance->flash($key, $value);
  13015. }
  13016. /**
  13017. * Flash a key / value pair to the session for immediate use.
  13018. *
  13019. * @param string $key
  13020. * @param mixed $value
  13021. * @return void
  13022. * @static
  13023. */
  13024. public static function now($key, $value)
  13025. {
  13026. /** @var \Illuminate\Session\Store $instance */
  13027. $instance->now($key, $value);
  13028. }
  13029. /**
  13030. * Reflash all of the session flash data.
  13031. *
  13032. * @return void
  13033. * @static
  13034. */
  13035. public static function reflash()
  13036. {
  13037. /** @var \Illuminate\Session\Store $instance */
  13038. $instance->reflash();
  13039. }
  13040. /**
  13041. * Reflash a subset of the current flash data.
  13042. *
  13043. * @param array|mixed $keys
  13044. * @return void
  13045. * @static
  13046. */
  13047. public static function keep($keys = null)
  13048. {
  13049. /** @var \Illuminate\Session\Store $instance */
  13050. $instance->keep($keys);
  13051. }
  13052. /**
  13053. * Flash an input array to the session.
  13054. *
  13055. * @param array $value
  13056. * @return void
  13057. * @static
  13058. */
  13059. public static function flashInput($value)
  13060. {
  13061. /** @var \Illuminate\Session\Store $instance */
  13062. $instance->flashInput($value);
  13063. }
  13064. /**
  13065. * Remove an item from the session, returning its value.
  13066. *
  13067. * @param string $key
  13068. * @return mixed
  13069. * @static
  13070. */
  13071. public static function remove($key)
  13072. {
  13073. /** @var \Illuminate\Session\Store $instance */
  13074. return $instance->remove($key);
  13075. }
  13076. /**
  13077. * Remove one or many items from the session.
  13078. *
  13079. * @param string|array $keys
  13080. * @return void
  13081. * @static
  13082. */
  13083. public static function forget($keys)
  13084. {
  13085. /** @var \Illuminate\Session\Store $instance */
  13086. $instance->forget($keys);
  13087. }
  13088. /**
  13089. * Remove all of the items from the session.
  13090. *
  13091. * @return void
  13092. * @static
  13093. */
  13094. public static function flush()
  13095. {
  13096. /** @var \Illuminate\Session\Store $instance */
  13097. $instance->flush();
  13098. }
  13099. /**
  13100. * Flush the session data and regenerate the ID.
  13101. *
  13102. * @return bool
  13103. * @static
  13104. */
  13105. public static function invalidate()
  13106. {
  13107. /** @var \Illuminate\Session\Store $instance */
  13108. return $instance->invalidate();
  13109. }
  13110. /**
  13111. * Generate a new session identifier.
  13112. *
  13113. * @param bool $destroy
  13114. * @return bool
  13115. * @static
  13116. */
  13117. public static function regenerate($destroy = false)
  13118. {
  13119. /** @var \Illuminate\Session\Store $instance */
  13120. return $instance->regenerate($destroy);
  13121. }
  13122. /**
  13123. * Generate a new session ID for the session.
  13124. *
  13125. * @param bool $destroy
  13126. * @return bool
  13127. * @static
  13128. */
  13129. public static function migrate($destroy = false)
  13130. {
  13131. /** @var \Illuminate\Session\Store $instance */
  13132. return $instance->migrate($destroy);
  13133. }
  13134. /**
  13135. * Determine if the session has been started.
  13136. *
  13137. * @return bool
  13138. * @static
  13139. */
  13140. public static function isStarted()
  13141. {
  13142. /** @var \Illuminate\Session\Store $instance */
  13143. return $instance->isStarted();
  13144. }
  13145. /**
  13146. * Get the name of the session.
  13147. *
  13148. * @return string
  13149. * @static
  13150. */
  13151. public static function getName()
  13152. {
  13153. /** @var \Illuminate\Session\Store $instance */
  13154. return $instance->getName();
  13155. }
  13156. /**
  13157. * Set the name of the session.
  13158. *
  13159. * @param string $name
  13160. * @return void
  13161. * @static
  13162. */
  13163. public static function setName($name)
  13164. {
  13165. /** @var \Illuminate\Session\Store $instance */
  13166. $instance->setName($name);
  13167. }
  13168. /**
  13169. * Get the current session ID.
  13170. *
  13171. * @return string
  13172. * @static
  13173. */
  13174. public static function getId()
  13175. {
  13176. /** @var \Illuminate\Session\Store $instance */
  13177. return $instance->getId();
  13178. }
  13179. /**
  13180. * Set the session ID.
  13181. *
  13182. * @param string $id
  13183. * @return void
  13184. * @static
  13185. */
  13186. public static function setId($id)
  13187. {
  13188. /** @var \Illuminate\Session\Store $instance */
  13189. $instance->setId($id);
  13190. }
  13191. /**
  13192. * Determine if this is a valid session ID.
  13193. *
  13194. * @param string $id
  13195. * @return bool
  13196. * @static
  13197. */
  13198. public static function isValidId($id)
  13199. {
  13200. /** @var \Illuminate\Session\Store $instance */
  13201. return $instance->isValidId($id);
  13202. }
  13203. /**
  13204. * Set the existence of the session on the handler if applicable.
  13205. *
  13206. * @param bool $value
  13207. * @return void
  13208. * @static
  13209. */
  13210. public static function setExists($value)
  13211. {
  13212. /** @var \Illuminate\Session\Store $instance */
  13213. $instance->setExists($value);
  13214. }
  13215. /**
  13216. * Get the CSRF token value.
  13217. *
  13218. * @return string
  13219. * @static
  13220. */
  13221. public static function token()
  13222. {
  13223. /** @var \Illuminate\Session\Store $instance */
  13224. return $instance->token();
  13225. }
  13226. /**
  13227. * Regenerate the CSRF token value.
  13228. *
  13229. * @return void
  13230. * @static
  13231. */
  13232. public static function regenerateToken()
  13233. {
  13234. /** @var \Illuminate\Session\Store $instance */
  13235. $instance->regenerateToken();
  13236. }
  13237. /**
  13238. * Get the previous URL from the session.
  13239. *
  13240. * @return string|null
  13241. * @static
  13242. */
  13243. public static function previousUrl()
  13244. {
  13245. /** @var \Illuminate\Session\Store $instance */
  13246. return $instance->previousUrl();
  13247. }
  13248. /**
  13249. * Set the "previous" URL in the session.
  13250. *
  13251. * @param string $url
  13252. * @return void
  13253. * @static
  13254. */
  13255. public static function setPreviousUrl($url)
  13256. {
  13257. /** @var \Illuminate\Session\Store $instance */
  13258. $instance->setPreviousUrl($url);
  13259. }
  13260. /**
  13261. * Specify that the user has confirmed their password.
  13262. *
  13263. * @return void
  13264. * @static
  13265. */
  13266. public static function passwordConfirmed()
  13267. {
  13268. /** @var \Illuminate\Session\Store $instance */
  13269. $instance->passwordConfirmed();
  13270. }
  13271. /**
  13272. * Get the underlying session handler implementation.
  13273. *
  13274. * @return \SessionHandlerInterface
  13275. * @static
  13276. */
  13277. public static function getHandler()
  13278. {
  13279. /** @var \Illuminate\Session\Store $instance */
  13280. return $instance->getHandler();
  13281. }
  13282. /**
  13283. * Determine if the session handler needs a request.
  13284. *
  13285. * @return bool
  13286. * @static
  13287. */
  13288. public static function handlerNeedsRequest()
  13289. {
  13290. /** @var \Illuminate\Session\Store $instance */
  13291. return $instance->handlerNeedsRequest();
  13292. }
  13293. /**
  13294. * Set the request on the handler instance.
  13295. *
  13296. * @param \Illuminate\Http\Request $request
  13297. * @return void
  13298. * @static
  13299. */
  13300. public static function setRequestOnHandler($request)
  13301. {
  13302. /** @var \Illuminate\Session\Store $instance */
  13303. $instance->setRequestOnHandler($request);
  13304. }
  13305. }
  13306. /**
  13307. *
  13308. *
  13309. * @see \Illuminate\Filesystem\FilesystemManager
  13310. */
  13311. class Storage {
  13312. /**
  13313. * Get a filesystem instance.
  13314. *
  13315. * @param string|null $name
  13316. * @return \Illuminate\Filesystem\FilesystemAdapter
  13317. * @static
  13318. */
  13319. public static function drive($name = null)
  13320. {
  13321. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13322. return $instance->drive($name);
  13323. }
  13324. /**
  13325. * Get a filesystem instance.
  13326. *
  13327. * @param string|null $name
  13328. * @return \Illuminate\Filesystem\FilesystemAdapter
  13329. * @static
  13330. */
  13331. public static function disk($name = null)
  13332. {
  13333. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13334. return $instance->disk($name);
  13335. }
  13336. /**
  13337. * Get a default cloud filesystem instance.
  13338. *
  13339. * @return \Illuminate\Filesystem\FilesystemAdapter
  13340. * @static
  13341. */
  13342. public static function cloud()
  13343. {
  13344. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13345. return $instance->cloud();
  13346. }
  13347. /**
  13348. * Build an on-demand disk.
  13349. *
  13350. * @param string|array $config
  13351. * @return \Illuminate\Filesystem\FilesystemAdapter
  13352. * @static
  13353. */
  13354. public static function build($config)
  13355. {
  13356. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13357. return $instance->build($config);
  13358. }
  13359. /**
  13360. * Create an instance of the local driver.
  13361. *
  13362. * @param array $config
  13363. * @return \Illuminate\Filesystem\FilesystemAdapter
  13364. * @static
  13365. */
  13366. public static function createLocalDriver($config)
  13367. {
  13368. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13369. return $instance->createLocalDriver($config);
  13370. }
  13371. /**
  13372. * Create an instance of the ftp driver.
  13373. *
  13374. * @param array $config
  13375. * @return \Illuminate\Filesystem\FilesystemAdapter
  13376. * @static
  13377. */
  13378. public static function createFtpDriver($config)
  13379. {
  13380. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13381. return $instance->createFtpDriver($config);
  13382. }
  13383. /**
  13384. * Create an instance of the sftp driver.
  13385. *
  13386. * @param array $config
  13387. * @return \Illuminate\Filesystem\FilesystemAdapter
  13388. * @static
  13389. */
  13390. public static function createSftpDriver($config)
  13391. {
  13392. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13393. return $instance->createSftpDriver($config);
  13394. }
  13395. /**
  13396. * Create an instance of the Amazon S3 driver.
  13397. *
  13398. * @param array $config
  13399. * @return \Illuminate\Contracts\Filesystem\Cloud
  13400. * @static
  13401. */
  13402. public static function createS3Driver($config)
  13403. {
  13404. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13405. return $instance->createS3Driver($config);
  13406. }
  13407. /**
  13408. * Set the given disk instance.
  13409. *
  13410. * @param string $name
  13411. * @param mixed $disk
  13412. * @return \Illuminate\Filesystem\FilesystemManager
  13413. * @static
  13414. */
  13415. public static function set($name, $disk)
  13416. {
  13417. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13418. return $instance->set($name, $disk);
  13419. }
  13420. /**
  13421. * Get the default driver name.
  13422. *
  13423. * @return string
  13424. * @static
  13425. */
  13426. public static function getDefaultDriver()
  13427. {
  13428. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13429. return $instance->getDefaultDriver();
  13430. }
  13431. /**
  13432. * Get the default cloud driver name.
  13433. *
  13434. * @return string
  13435. * @static
  13436. */
  13437. public static function getDefaultCloudDriver()
  13438. {
  13439. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13440. return $instance->getDefaultCloudDriver();
  13441. }
  13442. /**
  13443. * Unset the given disk instances.
  13444. *
  13445. * @param array|string $disk
  13446. * @return \Illuminate\Filesystem\FilesystemManager
  13447. * @static
  13448. */
  13449. public static function forgetDisk($disk)
  13450. {
  13451. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13452. return $instance->forgetDisk($disk);
  13453. }
  13454. /**
  13455. * Disconnect the given disk and remove from local cache.
  13456. *
  13457. * @param string|null $name
  13458. * @return void
  13459. * @static
  13460. */
  13461. public static function purge($name = null)
  13462. {
  13463. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13464. $instance->purge($name);
  13465. }
  13466. /**
  13467. * Register a custom driver creator Closure.
  13468. *
  13469. * @param string $driver
  13470. * @param \Closure $callback
  13471. * @return \Illuminate\Filesystem\FilesystemManager
  13472. * @static
  13473. */
  13474. public static function extend($driver, $callback)
  13475. {
  13476. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  13477. return $instance->extend($driver, $callback);
  13478. }
  13479. /**
  13480. * Assert that the given file exists.
  13481. *
  13482. * @param string|array $path
  13483. * @param string|null $content
  13484. * @return \Illuminate\Filesystem\FilesystemAdapter
  13485. * @static
  13486. */
  13487. public static function assertExists($path, $content = null)
  13488. {
  13489. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13490. return $instance->assertExists($path, $content);
  13491. }
  13492. /**
  13493. * Assert that the given file does not exist.
  13494. *
  13495. * @param string|array $path
  13496. * @return \Illuminate\Filesystem\FilesystemAdapter
  13497. * @static
  13498. */
  13499. public static function assertMissing($path)
  13500. {
  13501. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13502. return $instance->assertMissing($path);
  13503. }
  13504. /**
  13505. * Determine if a file exists.
  13506. *
  13507. * @param string $path
  13508. * @return bool
  13509. * @static
  13510. */
  13511. public static function exists($path)
  13512. {
  13513. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13514. return $instance->exists($path);
  13515. }
  13516. /**
  13517. * Determine if a file or directory is missing.
  13518. *
  13519. * @param string $path
  13520. * @return bool
  13521. * @static
  13522. */
  13523. public static function missing($path)
  13524. {
  13525. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13526. return $instance->missing($path);
  13527. }
  13528. /**
  13529. * Get the full path for the file at the given "short" path.
  13530. *
  13531. * @param string $path
  13532. * @return string
  13533. * @static
  13534. */
  13535. public static function path($path)
  13536. {
  13537. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13538. return $instance->path($path);
  13539. }
  13540. /**
  13541. * Get the contents of a file.
  13542. *
  13543. * @param string $path
  13544. * @return string
  13545. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13546. * @static
  13547. */
  13548. public static function get($path)
  13549. {
  13550. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13551. return $instance->get($path);
  13552. }
  13553. /**
  13554. * Create a streamed response for a given file.
  13555. *
  13556. * @param string $path
  13557. * @param string|null $name
  13558. * @param array|null $headers
  13559. * @param string|null $disposition
  13560. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13561. * @static
  13562. */
  13563. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  13564. {
  13565. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13566. return $instance->response($path, $name, $headers, $disposition);
  13567. }
  13568. /**
  13569. * Create a streamed download response for a given file.
  13570. *
  13571. * @param string $path
  13572. * @param string|null $name
  13573. * @param array|null $headers
  13574. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  13575. * @static
  13576. */
  13577. public static function download($path, $name = null, $headers = [])
  13578. {
  13579. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13580. return $instance->download($path, $name, $headers);
  13581. }
  13582. /**
  13583. * Write the contents of a file.
  13584. *
  13585. * @param string $path
  13586. * @param string|resource $contents
  13587. * @param mixed $options
  13588. * @return bool
  13589. * @static
  13590. */
  13591. public static function put($path, $contents, $options = [])
  13592. {
  13593. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13594. return $instance->put($path, $contents, $options);
  13595. }
  13596. /**
  13597. * Store the uploaded file on the disk.
  13598. *
  13599. * @param string $path
  13600. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13601. * @param mixed $options
  13602. * @return string|false
  13603. * @static
  13604. */
  13605. public static function putFile($path, $file, $options = [])
  13606. {
  13607. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13608. return $instance->putFile($path, $file, $options);
  13609. }
  13610. /**
  13611. * Store the uploaded file on the disk with a given name.
  13612. *
  13613. * @param string $path
  13614. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  13615. * @param string $name
  13616. * @param mixed $options
  13617. * @return string|false
  13618. * @static
  13619. */
  13620. public static function putFileAs($path, $file, $name, $options = [])
  13621. {
  13622. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13623. return $instance->putFileAs($path, $file, $name, $options);
  13624. }
  13625. /**
  13626. * Get the visibility for the given path.
  13627. *
  13628. * @param string $path
  13629. * @return string
  13630. * @static
  13631. */
  13632. public static function getVisibility($path)
  13633. {
  13634. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13635. return $instance->getVisibility($path);
  13636. }
  13637. /**
  13638. * Set the visibility for the given path.
  13639. *
  13640. * @param string $path
  13641. * @param string $visibility
  13642. * @return bool
  13643. * @static
  13644. */
  13645. public static function setVisibility($path, $visibility)
  13646. {
  13647. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13648. return $instance->setVisibility($path, $visibility);
  13649. }
  13650. /**
  13651. * Prepend to a file.
  13652. *
  13653. * @param string $path
  13654. * @param string $data
  13655. * @param string $separator
  13656. * @return bool
  13657. * @static
  13658. */
  13659. public static function prepend($path, $data, $separator = '
  13660. ')
  13661. {
  13662. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13663. return $instance->prepend($path, $data, $separator);
  13664. }
  13665. /**
  13666. * Append to a file.
  13667. *
  13668. * @param string $path
  13669. * @param string $data
  13670. * @param string $separator
  13671. * @return bool
  13672. * @static
  13673. */
  13674. public static function append($path, $data, $separator = '
  13675. ')
  13676. {
  13677. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13678. return $instance->append($path, $data, $separator);
  13679. }
  13680. /**
  13681. * Delete the file at a given path.
  13682. *
  13683. * @param string|array $paths
  13684. * @return bool
  13685. * @static
  13686. */
  13687. public static function delete($paths)
  13688. {
  13689. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13690. return $instance->delete($paths);
  13691. }
  13692. /**
  13693. * Copy a file to a new location.
  13694. *
  13695. * @param string $from
  13696. * @param string $to
  13697. * @return bool
  13698. * @static
  13699. */
  13700. public static function copy($from, $to)
  13701. {
  13702. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13703. return $instance->copy($from, $to);
  13704. }
  13705. /**
  13706. * Move a file to a new location.
  13707. *
  13708. * @param string $from
  13709. * @param string $to
  13710. * @return bool
  13711. * @static
  13712. */
  13713. public static function move($from, $to)
  13714. {
  13715. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13716. return $instance->move($from, $to);
  13717. }
  13718. /**
  13719. * Get the file size of a given file.
  13720. *
  13721. * @param string $path
  13722. * @return int
  13723. * @static
  13724. */
  13725. public static function size($path)
  13726. {
  13727. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13728. return $instance->size($path);
  13729. }
  13730. /**
  13731. * Get the mime-type of a given file.
  13732. *
  13733. * @param string $path
  13734. * @return string|false
  13735. * @static
  13736. */
  13737. public static function mimeType($path)
  13738. {
  13739. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13740. return $instance->mimeType($path);
  13741. }
  13742. /**
  13743. * Get the file's last modification time.
  13744. *
  13745. * @param string $path
  13746. * @return int
  13747. * @static
  13748. */
  13749. public static function lastModified($path)
  13750. {
  13751. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13752. return $instance->lastModified($path);
  13753. }
  13754. /**
  13755. * Get the URL for the file at the given path.
  13756. *
  13757. * @param string $path
  13758. * @return string
  13759. * @throws \RuntimeException
  13760. * @static
  13761. */
  13762. public static function url($path)
  13763. {
  13764. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13765. return $instance->url($path);
  13766. }
  13767. /**
  13768. * Get a resource to read the file.
  13769. *
  13770. * @param string $path
  13771. * @return resource|null The path resource or null on failure.
  13772. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  13773. * @static
  13774. */
  13775. public static function readStream($path)
  13776. {
  13777. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13778. return $instance->readStream($path);
  13779. }
  13780. /**
  13781. * Write a new file using a stream.
  13782. *
  13783. * @param string $path
  13784. * @param resource $resource
  13785. * @param array $options
  13786. * @return bool
  13787. * @throws \InvalidArgumentException If $resource is not a file handle.
  13788. * @throws \Illuminate\Contracts\Filesystem\FileExistsException
  13789. * @static
  13790. */
  13791. public static function writeStream($path, $resource, $options = [])
  13792. {
  13793. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13794. return $instance->writeStream($path, $resource, $options);
  13795. }
  13796. /**
  13797. * Get a temporary URL for the file at the given path.
  13798. *
  13799. * @param string $path
  13800. * @param \DateTimeInterface $expiration
  13801. * @param array $options
  13802. * @return string
  13803. * @throws \RuntimeException
  13804. * @static
  13805. */
  13806. public static function temporaryUrl($path, $expiration, $options = [])
  13807. {
  13808. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13809. return $instance->temporaryUrl($path, $expiration, $options);
  13810. }
  13811. /**
  13812. * Get a temporary URL for the file at the given path.
  13813. *
  13814. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  13815. * @param string $path
  13816. * @param \DateTimeInterface $expiration
  13817. * @param array $options
  13818. * @return string
  13819. * @static
  13820. */
  13821. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  13822. {
  13823. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13824. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  13825. }
  13826. /**
  13827. * Get an array of all files in a directory.
  13828. *
  13829. * @param string|null $directory
  13830. * @param bool $recursive
  13831. * @return array
  13832. * @static
  13833. */
  13834. public static function files($directory = null, $recursive = false)
  13835. {
  13836. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13837. return $instance->files($directory, $recursive);
  13838. }
  13839. /**
  13840. * Get all of the files from the given directory (recursive).
  13841. *
  13842. * @param string|null $directory
  13843. * @return array
  13844. * @static
  13845. */
  13846. public static function allFiles($directory = null)
  13847. {
  13848. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13849. return $instance->allFiles($directory);
  13850. }
  13851. /**
  13852. * Get all of the directories within a given directory.
  13853. *
  13854. * @param string|null $directory
  13855. * @param bool $recursive
  13856. * @return array
  13857. * @static
  13858. */
  13859. public static function directories($directory = null, $recursive = false)
  13860. {
  13861. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13862. return $instance->directories($directory, $recursive);
  13863. }
  13864. /**
  13865. * Get all (recursive) of the directories within a given directory.
  13866. *
  13867. * @param string|null $directory
  13868. * @return array
  13869. * @static
  13870. */
  13871. public static function allDirectories($directory = null)
  13872. {
  13873. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13874. return $instance->allDirectories($directory);
  13875. }
  13876. /**
  13877. * Create a directory.
  13878. *
  13879. * @param string $path
  13880. * @return bool
  13881. * @static
  13882. */
  13883. public static function makeDirectory($path)
  13884. {
  13885. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13886. return $instance->makeDirectory($path);
  13887. }
  13888. /**
  13889. * Recursively delete a directory.
  13890. *
  13891. * @param string $directory
  13892. * @return bool
  13893. * @static
  13894. */
  13895. public static function deleteDirectory($directory)
  13896. {
  13897. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13898. return $instance->deleteDirectory($directory);
  13899. }
  13900. /**
  13901. * Flush the Flysystem cache.
  13902. *
  13903. * @return void
  13904. * @static
  13905. */
  13906. public static function flushCache()
  13907. {
  13908. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13909. $instance->flushCache();
  13910. }
  13911. /**
  13912. * Get the Flysystem driver.
  13913. *
  13914. * @return \League\Flysystem\FilesystemInterface
  13915. * @static
  13916. */
  13917. public static function getDriver()
  13918. {
  13919. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13920. return $instance->getDriver();
  13921. }
  13922. /**
  13923. * Register a custom macro.
  13924. *
  13925. * @param string $name
  13926. * @param object|callable $macro
  13927. * @return void
  13928. * @static
  13929. */
  13930. public static function macro($name, $macro)
  13931. {
  13932. \Illuminate\Filesystem\FilesystemAdapter::macro($name, $macro);
  13933. }
  13934. /**
  13935. * Mix another object into the class.
  13936. *
  13937. * @param object $mixin
  13938. * @param bool $replace
  13939. * @return void
  13940. * @throws \ReflectionException
  13941. * @static
  13942. */
  13943. public static function mixin($mixin, $replace = true)
  13944. {
  13945. \Illuminate\Filesystem\FilesystemAdapter::mixin($mixin, $replace);
  13946. }
  13947. /**
  13948. * Checks if macro is registered.
  13949. *
  13950. * @param string $name
  13951. * @return bool
  13952. * @static
  13953. */
  13954. public static function hasMacro($name)
  13955. {
  13956. return \Illuminate\Filesystem\FilesystemAdapter::hasMacro($name);
  13957. }
  13958. /**
  13959. * Dynamically handle calls to the class.
  13960. *
  13961. * @param string $method
  13962. * @param array $parameters
  13963. * @return mixed
  13964. * @throws \BadMethodCallException
  13965. * @static
  13966. */
  13967. public static function macroCall($method, $parameters)
  13968. {
  13969. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  13970. return $instance->macroCall($method, $parameters);
  13971. }
  13972. }
  13973. /**
  13974. *
  13975. *
  13976. * @see \Illuminate\Routing\UrlGenerator
  13977. */
  13978. class URL {
  13979. /**
  13980. * Get the full URL for the current request.
  13981. *
  13982. * @return string
  13983. * @static
  13984. */
  13985. public static function full()
  13986. {
  13987. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13988. return $instance->full();
  13989. }
  13990. /**
  13991. * Get the current URL for the request.
  13992. *
  13993. * @return string
  13994. * @static
  13995. */
  13996. public static function current()
  13997. {
  13998. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13999. return $instance->current();
  14000. }
  14001. /**
  14002. * Get the URL for the previous request.
  14003. *
  14004. * @param mixed $fallback
  14005. * @return string
  14006. * @static
  14007. */
  14008. public static function previous($fallback = false)
  14009. {
  14010. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14011. return $instance->previous($fallback);
  14012. }
  14013. /**
  14014. * Generate an absolute URL to the given path.
  14015. *
  14016. * @param string $path
  14017. * @param mixed $extra
  14018. * @param bool|null $secure
  14019. * @return string
  14020. * @static
  14021. */
  14022. public static function to($path, $extra = [], $secure = null)
  14023. {
  14024. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14025. return $instance->to($path, $extra, $secure);
  14026. }
  14027. /**
  14028. * Generate a secure, absolute URL to the given path.
  14029. *
  14030. * @param string $path
  14031. * @param array $parameters
  14032. * @return string
  14033. * @static
  14034. */
  14035. public static function secure($path, $parameters = [])
  14036. {
  14037. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14038. return $instance->secure($path, $parameters);
  14039. }
  14040. /**
  14041. * Generate the URL to an application asset.
  14042. *
  14043. * @param string $path
  14044. * @param bool|null $secure
  14045. * @return string
  14046. * @static
  14047. */
  14048. public static function asset($path, $secure = null)
  14049. {
  14050. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14051. return $instance->asset($path, $secure);
  14052. }
  14053. /**
  14054. * Generate the URL to a secure asset.
  14055. *
  14056. * @param string $path
  14057. * @return string
  14058. * @static
  14059. */
  14060. public static function secureAsset($path)
  14061. {
  14062. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14063. return $instance->secureAsset($path);
  14064. }
  14065. /**
  14066. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  14067. *
  14068. * @param string $root
  14069. * @param string $path
  14070. * @param bool|null $secure
  14071. * @return string
  14072. * @static
  14073. */
  14074. public static function assetFrom($root, $path, $secure = null)
  14075. {
  14076. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14077. return $instance->assetFrom($root, $path, $secure);
  14078. }
  14079. /**
  14080. * Get the default scheme for a raw URL.
  14081. *
  14082. * @param bool|null $secure
  14083. * @return string
  14084. * @static
  14085. */
  14086. public static function formatScheme($secure = null)
  14087. {
  14088. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14089. return $instance->formatScheme($secure);
  14090. }
  14091. /**
  14092. * Create a signed route URL for a named route.
  14093. *
  14094. * @param string $name
  14095. * @param mixed $parameters
  14096. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  14097. * @param bool $absolute
  14098. * @return string
  14099. * @throws \InvalidArgumentException
  14100. * @static
  14101. */
  14102. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  14103. {
  14104. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14105. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  14106. }
  14107. /**
  14108. * Create a temporary signed route URL for a named route.
  14109. *
  14110. * @param string $name
  14111. * @param \DateTimeInterface|\DateInterval|int $expiration
  14112. * @param array $parameters
  14113. * @param bool $absolute
  14114. * @return string
  14115. * @static
  14116. */
  14117. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  14118. {
  14119. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14120. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  14121. }
  14122. /**
  14123. * Determine if the given request has a valid signature.
  14124. *
  14125. * @param \Illuminate\Http\Request $request
  14126. * @param bool $absolute
  14127. * @return bool
  14128. * @static
  14129. */
  14130. public static function hasValidSignature($request, $absolute = true)
  14131. {
  14132. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14133. return $instance->hasValidSignature($request, $absolute);
  14134. }
  14135. /**
  14136. * Determine if the given request has a valid signature for a relative URL.
  14137. *
  14138. * @param \Illuminate\Http\Request $request
  14139. * @return bool
  14140. * @static
  14141. */
  14142. public static function hasValidRelativeSignature($request)
  14143. {
  14144. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14145. return $instance->hasValidRelativeSignature($request);
  14146. }
  14147. /**
  14148. * Determine if the signature from the given request matches the URL.
  14149. *
  14150. * @param \Illuminate\Http\Request $request
  14151. * @param bool $absolute
  14152. * @return bool
  14153. * @static
  14154. */
  14155. public static function hasCorrectSignature($request, $absolute = true)
  14156. {
  14157. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14158. return $instance->hasCorrectSignature($request, $absolute);
  14159. }
  14160. /**
  14161. * Determine if the expires timestamp from the given request is not from the past.
  14162. *
  14163. * @param \Illuminate\Http\Request $request
  14164. * @return bool
  14165. * @static
  14166. */
  14167. public static function signatureHasNotExpired($request)
  14168. {
  14169. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14170. return $instance->signatureHasNotExpired($request);
  14171. }
  14172. /**
  14173. * Get the URL to a named route.
  14174. *
  14175. * @param string $name
  14176. * @param mixed $parameters
  14177. * @param bool $absolute
  14178. * @return string
  14179. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  14180. * @static
  14181. */
  14182. public static function route($name, $parameters = [], $absolute = true)
  14183. {
  14184. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14185. return $instance->route($name, $parameters, $absolute);
  14186. }
  14187. /**
  14188. * Get the URL for a given route instance.
  14189. *
  14190. * @param \Illuminate\Routing\Route $route
  14191. * @param mixed $parameters
  14192. * @param bool $absolute
  14193. * @return string
  14194. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  14195. * @static
  14196. */
  14197. public static function toRoute($route, $parameters, $absolute)
  14198. {
  14199. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14200. return $instance->toRoute($route, $parameters, $absolute);
  14201. }
  14202. /**
  14203. * Get the URL to a controller action.
  14204. *
  14205. * @param string|array $action
  14206. * @param mixed $parameters
  14207. * @param bool $absolute
  14208. * @return string
  14209. * @throws \InvalidArgumentException
  14210. * @static
  14211. */
  14212. public static function action($action, $parameters = [], $absolute = true)
  14213. {
  14214. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14215. return $instance->action($action, $parameters, $absolute);
  14216. }
  14217. /**
  14218. * Format the array of URL parameters.
  14219. *
  14220. * @param mixed|array $parameters
  14221. * @return array
  14222. * @static
  14223. */
  14224. public static function formatParameters($parameters)
  14225. {
  14226. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14227. return $instance->formatParameters($parameters);
  14228. }
  14229. /**
  14230. * Get the base URL for the request.
  14231. *
  14232. * @param string $scheme
  14233. * @param string|null $root
  14234. * @return string
  14235. * @static
  14236. */
  14237. public static function formatRoot($scheme, $root = null)
  14238. {
  14239. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14240. return $instance->formatRoot($scheme, $root);
  14241. }
  14242. /**
  14243. * Format the given URL segments into a single URL.
  14244. *
  14245. * @param string $root
  14246. * @param string $path
  14247. * @param \Illuminate\Routing\Route|null $route
  14248. * @return string
  14249. * @static
  14250. */
  14251. public static function format($root, $path, $route = null)
  14252. {
  14253. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14254. return $instance->format($root, $path, $route);
  14255. }
  14256. /**
  14257. * Determine if the given path is a valid URL.
  14258. *
  14259. * @param string $path
  14260. * @return bool
  14261. * @static
  14262. */
  14263. public static function isValidUrl($path)
  14264. {
  14265. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14266. return $instance->isValidUrl($path);
  14267. }
  14268. /**
  14269. * Set the default named parameters used by the URL generator.
  14270. *
  14271. * @param array $defaults
  14272. * @return void
  14273. * @static
  14274. */
  14275. public static function defaults($defaults)
  14276. {
  14277. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14278. $instance->defaults($defaults);
  14279. }
  14280. /**
  14281. * Get the default named parameters used by the URL generator.
  14282. *
  14283. * @return array
  14284. * @static
  14285. */
  14286. public static function getDefaultParameters()
  14287. {
  14288. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14289. return $instance->getDefaultParameters();
  14290. }
  14291. /**
  14292. * Force the scheme for URLs.
  14293. *
  14294. * @param string|null $scheme
  14295. * @return void
  14296. * @static
  14297. */
  14298. public static function forceScheme($scheme)
  14299. {
  14300. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14301. $instance->forceScheme($scheme);
  14302. }
  14303. /**
  14304. * Set the forced root URL.
  14305. *
  14306. * @param string|null $root
  14307. * @return void
  14308. * @static
  14309. */
  14310. public static function forceRootUrl($root)
  14311. {
  14312. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14313. $instance->forceRootUrl($root);
  14314. }
  14315. /**
  14316. * Set a callback to be used to format the host of generated URLs.
  14317. *
  14318. * @param \Closure $callback
  14319. * @return \Illuminate\Routing\UrlGenerator
  14320. * @static
  14321. */
  14322. public static function formatHostUsing($callback)
  14323. {
  14324. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14325. return $instance->formatHostUsing($callback);
  14326. }
  14327. /**
  14328. * Set a callback to be used to format the path of generated URLs.
  14329. *
  14330. * @param \Closure $callback
  14331. * @return \Illuminate\Routing\UrlGenerator
  14332. * @static
  14333. */
  14334. public static function formatPathUsing($callback)
  14335. {
  14336. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14337. return $instance->formatPathUsing($callback);
  14338. }
  14339. /**
  14340. * Get the path formatter being used by the URL generator.
  14341. *
  14342. * @return \Closure
  14343. * @static
  14344. */
  14345. public static function pathFormatter()
  14346. {
  14347. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14348. return $instance->pathFormatter();
  14349. }
  14350. /**
  14351. * Get the request instance.
  14352. *
  14353. * @return \Illuminate\Http\Request
  14354. * @static
  14355. */
  14356. public static function getRequest()
  14357. {
  14358. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14359. return $instance->getRequest();
  14360. }
  14361. /**
  14362. * Set the current request instance.
  14363. *
  14364. * @param \Illuminate\Http\Request $request
  14365. * @return void
  14366. * @static
  14367. */
  14368. public static function setRequest($request)
  14369. {
  14370. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14371. $instance->setRequest($request);
  14372. }
  14373. /**
  14374. * Set the route collection.
  14375. *
  14376. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  14377. * @return \Illuminate\Routing\UrlGenerator
  14378. * @static
  14379. */
  14380. public static function setRoutes($routes)
  14381. {
  14382. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14383. return $instance->setRoutes($routes);
  14384. }
  14385. /**
  14386. * Set the session resolver for the generator.
  14387. *
  14388. * @param callable $sessionResolver
  14389. * @return \Illuminate\Routing\UrlGenerator
  14390. * @static
  14391. */
  14392. public static function setSessionResolver($sessionResolver)
  14393. {
  14394. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14395. return $instance->setSessionResolver($sessionResolver);
  14396. }
  14397. /**
  14398. * Set the encryption key resolver.
  14399. *
  14400. * @param callable $keyResolver
  14401. * @return \Illuminate\Routing\UrlGenerator
  14402. * @static
  14403. */
  14404. public static function setKeyResolver($keyResolver)
  14405. {
  14406. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14407. return $instance->setKeyResolver($keyResolver);
  14408. }
  14409. /**
  14410. * Set the root controller namespace.
  14411. *
  14412. * @param string $rootNamespace
  14413. * @return \Illuminate\Routing\UrlGenerator
  14414. * @static
  14415. */
  14416. public static function setRootControllerNamespace($rootNamespace)
  14417. {
  14418. /** @var \Illuminate\Routing\UrlGenerator $instance */
  14419. return $instance->setRootControllerNamespace($rootNamespace);
  14420. }
  14421. /**
  14422. * Register a custom macro.
  14423. *
  14424. * @param string $name
  14425. * @param object|callable $macro
  14426. * @return void
  14427. * @static
  14428. */
  14429. public static function macro($name, $macro)
  14430. {
  14431. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  14432. }
  14433. /**
  14434. * Mix another object into the class.
  14435. *
  14436. * @param object $mixin
  14437. * @param bool $replace
  14438. * @return void
  14439. * @throws \ReflectionException
  14440. * @static
  14441. */
  14442. public static function mixin($mixin, $replace = true)
  14443. {
  14444. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  14445. }
  14446. /**
  14447. * Checks if macro is registered.
  14448. *
  14449. * @param string $name
  14450. * @return bool
  14451. * @static
  14452. */
  14453. public static function hasMacro($name)
  14454. {
  14455. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  14456. }
  14457. }
  14458. /**
  14459. *
  14460. *
  14461. * @see \Illuminate\Validation\Factory
  14462. */
  14463. class Validator {
  14464. /**
  14465. * Create a new Validator instance.
  14466. *
  14467. * @param array $data
  14468. * @param array $rules
  14469. * @param array $messages
  14470. * @param array $customAttributes
  14471. * @return \Illuminate\Validation\Validator
  14472. * @static
  14473. */
  14474. public static function make($data, $rules, $messages = [], $customAttributes = [])
  14475. {
  14476. /** @var \Illuminate\Validation\Factory $instance */
  14477. return $instance->make($data, $rules, $messages, $customAttributes);
  14478. }
  14479. /**
  14480. * Validate the given data against the provided rules.
  14481. *
  14482. * @param array $data
  14483. * @param array $rules
  14484. * @param array $messages
  14485. * @param array $customAttributes
  14486. * @return array
  14487. * @throws \Illuminate\Validation\ValidationException
  14488. * @static
  14489. */
  14490. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  14491. {
  14492. /** @var \Illuminate\Validation\Factory $instance */
  14493. return $instance->validate($data, $rules, $messages, $customAttributes);
  14494. }
  14495. /**
  14496. * Register a custom validator extension.
  14497. *
  14498. * @param string $rule
  14499. * @param \Closure|string $extension
  14500. * @param string|null $message
  14501. * @return void
  14502. * @static
  14503. */
  14504. public static function extend($rule, $extension, $message = null)
  14505. {
  14506. /** @var \Illuminate\Validation\Factory $instance */
  14507. $instance->extend($rule, $extension, $message);
  14508. }
  14509. /**
  14510. * Register a custom implicit validator extension.
  14511. *
  14512. * @param string $rule
  14513. * @param \Closure|string $extension
  14514. * @param string|null $message
  14515. * @return void
  14516. * @static
  14517. */
  14518. public static function extendImplicit($rule, $extension, $message = null)
  14519. {
  14520. /** @var \Illuminate\Validation\Factory $instance */
  14521. $instance->extendImplicit($rule, $extension, $message);
  14522. }
  14523. /**
  14524. * Register a custom dependent validator extension.
  14525. *
  14526. * @param string $rule
  14527. * @param \Closure|string $extension
  14528. * @param string|null $message
  14529. * @return void
  14530. * @static
  14531. */
  14532. public static function extendDependent($rule, $extension, $message = null)
  14533. {
  14534. /** @var \Illuminate\Validation\Factory $instance */
  14535. $instance->extendDependent($rule, $extension, $message);
  14536. }
  14537. /**
  14538. * Register a custom validator message replacer.
  14539. *
  14540. * @param string $rule
  14541. * @param \Closure|string $replacer
  14542. * @return void
  14543. * @static
  14544. */
  14545. public static function replacer($rule, $replacer)
  14546. {
  14547. /** @var \Illuminate\Validation\Factory $instance */
  14548. $instance->replacer($rule, $replacer);
  14549. }
  14550. /**
  14551. * Indicate that unvalidated array keys should be excluded, even if the parent array was validated.
  14552. *
  14553. * @return void
  14554. * @static
  14555. */
  14556. public static function excludeUnvalidatedArrayKeys()
  14557. {
  14558. /** @var \Illuminate\Validation\Factory $instance */
  14559. $instance->excludeUnvalidatedArrayKeys();
  14560. }
  14561. /**
  14562. * Set the Validator instance resolver.
  14563. *
  14564. * @param \Closure $resolver
  14565. * @return void
  14566. * @static
  14567. */
  14568. public static function resolver($resolver)
  14569. {
  14570. /** @var \Illuminate\Validation\Factory $instance */
  14571. $instance->resolver($resolver);
  14572. }
  14573. /**
  14574. * Get the Translator implementation.
  14575. *
  14576. * @return \Illuminate\Contracts\Translation\Translator
  14577. * @static
  14578. */
  14579. public static function getTranslator()
  14580. {
  14581. /** @var \Illuminate\Validation\Factory $instance */
  14582. return $instance->getTranslator();
  14583. }
  14584. /**
  14585. * Get the Presence Verifier implementation.
  14586. *
  14587. * @return \Illuminate\Validation\PresenceVerifierInterface
  14588. * @static
  14589. */
  14590. public static function getPresenceVerifier()
  14591. {
  14592. /** @var \Illuminate\Validation\Factory $instance */
  14593. return $instance->getPresenceVerifier();
  14594. }
  14595. /**
  14596. * Set the Presence Verifier implementation.
  14597. *
  14598. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  14599. * @return void
  14600. * @static
  14601. */
  14602. public static function setPresenceVerifier($presenceVerifier)
  14603. {
  14604. /** @var \Illuminate\Validation\Factory $instance */
  14605. $instance->setPresenceVerifier($presenceVerifier);
  14606. }
  14607. /**
  14608. * Get the container instance used by the validation factory.
  14609. *
  14610. * @return \Illuminate\Contracts\Container\Container
  14611. * @static
  14612. */
  14613. public static function getContainer()
  14614. {
  14615. /** @var \Illuminate\Validation\Factory $instance */
  14616. return $instance->getContainer();
  14617. }
  14618. /**
  14619. * Set the container instance used by the validation factory.
  14620. *
  14621. * @param \Illuminate\Contracts\Container\Container $container
  14622. * @return \Illuminate\Validation\Factory
  14623. * @static
  14624. */
  14625. public static function setContainer($container)
  14626. {
  14627. /** @var \Illuminate\Validation\Factory $instance */
  14628. return $instance->setContainer($container);
  14629. }
  14630. }
  14631. /**
  14632. *
  14633. *
  14634. * @see \Illuminate\View\Factory
  14635. */
  14636. class View {
  14637. /**
  14638. * Get the evaluated view contents for the given view.
  14639. *
  14640. * @param string $path
  14641. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14642. * @param array $mergeData
  14643. * @return \Illuminate\Contracts\View\View
  14644. * @static
  14645. */
  14646. public static function file($path, $data = [], $mergeData = [])
  14647. {
  14648. /** @var \Illuminate\View\Factory $instance */
  14649. return $instance->file($path, $data, $mergeData);
  14650. }
  14651. /**
  14652. * Get the evaluated view contents for the given view.
  14653. *
  14654. * @param string $view
  14655. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14656. * @param array $mergeData
  14657. * @return \Illuminate\Contracts\View\View
  14658. * @static
  14659. */
  14660. public static function make($view, $data = [], $mergeData = [])
  14661. {
  14662. /** @var \Illuminate\View\Factory $instance */
  14663. return $instance->make($view, $data, $mergeData);
  14664. }
  14665. /**
  14666. * Get the first view that actually exists from the given list.
  14667. *
  14668. * @param array $views
  14669. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14670. * @param array $mergeData
  14671. * @return \Illuminate\Contracts\View\View
  14672. * @throws \InvalidArgumentException
  14673. * @static
  14674. */
  14675. public static function first($views, $data = [], $mergeData = [])
  14676. {
  14677. /** @var \Illuminate\View\Factory $instance */
  14678. return $instance->first($views, $data, $mergeData);
  14679. }
  14680. /**
  14681. * Get the rendered content of the view based on a given condition.
  14682. *
  14683. * @param bool $condition
  14684. * @param string $view
  14685. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  14686. * @param array $mergeData
  14687. * @return string
  14688. * @static
  14689. */
  14690. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  14691. {
  14692. /** @var \Illuminate\View\Factory $instance */
  14693. return $instance->renderWhen($condition, $view, $data, $mergeData);
  14694. }
  14695. /**
  14696. * Get the rendered contents of a partial from a loop.
  14697. *
  14698. * @param string $view
  14699. * @param array $data
  14700. * @param string $iterator
  14701. * @param string $empty
  14702. * @return string
  14703. * @static
  14704. */
  14705. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  14706. {
  14707. /** @var \Illuminate\View\Factory $instance */
  14708. return $instance->renderEach($view, $data, $iterator, $empty);
  14709. }
  14710. /**
  14711. * Determine if a given view exists.
  14712. *
  14713. * @param string $view
  14714. * @return bool
  14715. * @static
  14716. */
  14717. public static function exists($view)
  14718. {
  14719. /** @var \Illuminate\View\Factory $instance */
  14720. return $instance->exists($view);
  14721. }
  14722. /**
  14723. * Get the appropriate view engine for the given path.
  14724. *
  14725. * @param string $path
  14726. * @return \Illuminate\Contracts\View\Engine
  14727. * @throws \InvalidArgumentException
  14728. * @static
  14729. */
  14730. public static function getEngineFromPath($path)
  14731. {
  14732. /** @var \Illuminate\View\Factory $instance */
  14733. return $instance->getEngineFromPath($path);
  14734. }
  14735. /**
  14736. * Add a piece of shared data to the environment.
  14737. *
  14738. * @param array|string $key
  14739. * @param mixed|null $value
  14740. * @return mixed
  14741. * @static
  14742. */
  14743. public static function share($key, $value = null)
  14744. {
  14745. /** @var \Illuminate\View\Factory $instance */
  14746. return $instance->share($key, $value);
  14747. }
  14748. /**
  14749. * Increment the rendering counter.
  14750. *
  14751. * @return void
  14752. * @static
  14753. */
  14754. public static function incrementRender()
  14755. {
  14756. /** @var \Illuminate\View\Factory $instance */
  14757. $instance->incrementRender();
  14758. }
  14759. /**
  14760. * Decrement the rendering counter.
  14761. *
  14762. * @return void
  14763. * @static
  14764. */
  14765. public static function decrementRender()
  14766. {
  14767. /** @var \Illuminate\View\Factory $instance */
  14768. $instance->decrementRender();
  14769. }
  14770. /**
  14771. * Check if there are no active render operations.
  14772. *
  14773. * @return bool
  14774. * @static
  14775. */
  14776. public static function doneRendering()
  14777. {
  14778. /** @var \Illuminate\View\Factory $instance */
  14779. return $instance->doneRendering();
  14780. }
  14781. /**
  14782. * Determine if the given once token has been rendered.
  14783. *
  14784. * @param string $id
  14785. * @return bool
  14786. * @static
  14787. */
  14788. public static function hasRenderedOnce($id)
  14789. {
  14790. /** @var \Illuminate\View\Factory $instance */
  14791. return $instance->hasRenderedOnce($id);
  14792. }
  14793. /**
  14794. * Mark the given once token as having been rendered.
  14795. *
  14796. * @param string $id
  14797. * @return void
  14798. * @static
  14799. */
  14800. public static function markAsRenderedOnce($id)
  14801. {
  14802. /** @var \Illuminate\View\Factory $instance */
  14803. $instance->markAsRenderedOnce($id);
  14804. }
  14805. /**
  14806. * Add a location to the array of view locations.
  14807. *
  14808. * @param string $location
  14809. * @return void
  14810. * @static
  14811. */
  14812. public static function addLocation($location)
  14813. {
  14814. /** @var \Illuminate\View\Factory $instance */
  14815. $instance->addLocation($location);
  14816. }
  14817. /**
  14818. * Add a new namespace to the loader.
  14819. *
  14820. * @param string $namespace
  14821. * @param string|array $hints
  14822. * @return \Illuminate\View\Factory
  14823. * @static
  14824. */
  14825. public static function addNamespace($namespace, $hints)
  14826. {
  14827. /** @var \Illuminate\View\Factory $instance */
  14828. return $instance->addNamespace($namespace, $hints);
  14829. }
  14830. /**
  14831. * Prepend a new namespace to the loader.
  14832. *
  14833. * @param string $namespace
  14834. * @param string|array $hints
  14835. * @return \Illuminate\View\Factory
  14836. * @static
  14837. */
  14838. public static function prependNamespace($namespace, $hints)
  14839. {
  14840. /** @var \Illuminate\View\Factory $instance */
  14841. return $instance->prependNamespace($namespace, $hints);
  14842. }
  14843. /**
  14844. * Replace the namespace hints for the given namespace.
  14845. *
  14846. * @param string $namespace
  14847. * @param string|array $hints
  14848. * @return \Illuminate\View\Factory
  14849. * @static
  14850. */
  14851. public static function replaceNamespace($namespace, $hints)
  14852. {
  14853. /** @var \Illuminate\View\Factory $instance */
  14854. return $instance->replaceNamespace($namespace, $hints);
  14855. }
  14856. /**
  14857. * Register a valid view extension and its engine.
  14858. *
  14859. * @param string $extension
  14860. * @param string $engine
  14861. * @param \Closure|null $resolver
  14862. * @return void
  14863. * @static
  14864. */
  14865. public static function addExtension($extension, $engine, $resolver = null)
  14866. {
  14867. /** @var \Illuminate\View\Factory $instance */
  14868. $instance->addExtension($extension, $engine, $resolver);
  14869. }
  14870. /**
  14871. * Flush all of the factory state like sections and stacks.
  14872. *
  14873. * @return void
  14874. * @static
  14875. */
  14876. public static function flushState()
  14877. {
  14878. /** @var \Illuminate\View\Factory $instance */
  14879. $instance->flushState();
  14880. }
  14881. /**
  14882. * Flush all of the section contents if done rendering.
  14883. *
  14884. * @return void
  14885. * @static
  14886. */
  14887. public static function flushStateIfDoneRendering()
  14888. {
  14889. /** @var \Illuminate\View\Factory $instance */
  14890. $instance->flushStateIfDoneRendering();
  14891. }
  14892. /**
  14893. * Get the extension to engine bindings.
  14894. *
  14895. * @return array
  14896. * @static
  14897. */
  14898. public static function getExtensions()
  14899. {
  14900. /** @var \Illuminate\View\Factory $instance */
  14901. return $instance->getExtensions();
  14902. }
  14903. /**
  14904. * Get the engine resolver instance.
  14905. *
  14906. * @return \Illuminate\View\Engines\EngineResolver
  14907. * @static
  14908. */
  14909. public static function getEngineResolver()
  14910. {
  14911. /** @var \Illuminate\View\Factory $instance */
  14912. return $instance->getEngineResolver();
  14913. }
  14914. /**
  14915. * Get the view finder instance.
  14916. *
  14917. * @return \Illuminate\View\ViewFinderInterface
  14918. * @static
  14919. */
  14920. public static function getFinder()
  14921. {
  14922. /** @var \Illuminate\View\Factory $instance */
  14923. return $instance->getFinder();
  14924. }
  14925. /**
  14926. * Set the view finder instance.
  14927. *
  14928. * @param \Illuminate\View\ViewFinderInterface $finder
  14929. * @return void
  14930. * @static
  14931. */
  14932. public static function setFinder($finder)
  14933. {
  14934. /** @var \Illuminate\View\Factory $instance */
  14935. $instance->setFinder($finder);
  14936. }
  14937. /**
  14938. * Flush the cache of views located by the finder.
  14939. *
  14940. * @return void
  14941. * @static
  14942. */
  14943. public static function flushFinderCache()
  14944. {
  14945. /** @var \Illuminate\View\Factory $instance */
  14946. $instance->flushFinderCache();
  14947. }
  14948. /**
  14949. * Get the event dispatcher instance.
  14950. *
  14951. * @return \Illuminate\Contracts\Events\Dispatcher
  14952. * @static
  14953. */
  14954. public static function getDispatcher()
  14955. {
  14956. /** @var \Illuminate\View\Factory $instance */
  14957. return $instance->getDispatcher();
  14958. }
  14959. /**
  14960. * Set the event dispatcher instance.
  14961. *
  14962. * @param \Illuminate\Contracts\Events\Dispatcher $events
  14963. * @return void
  14964. * @static
  14965. */
  14966. public static function setDispatcher($events)
  14967. {
  14968. /** @var \Illuminate\View\Factory $instance */
  14969. $instance->setDispatcher($events);
  14970. }
  14971. /**
  14972. * Get the IoC container instance.
  14973. *
  14974. * @return \Illuminate\Contracts\Container\Container
  14975. * @static
  14976. */
  14977. public static function getContainer()
  14978. {
  14979. /** @var \Illuminate\View\Factory $instance */
  14980. return $instance->getContainer();
  14981. }
  14982. /**
  14983. * Set the IoC container instance.
  14984. *
  14985. * @param \Illuminate\Contracts\Container\Container $container
  14986. * @return void
  14987. * @static
  14988. */
  14989. public static function setContainer($container)
  14990. {
  14991. /** @var \Illuminate\View\Factory $instance */
  14992. $instance->setContainer($container);
  14993. }
  14994. /**
  14995. * Get an item from the shared data.
  14996. *
  14997. * @param string $key
  14998. * @param mixed $default
  14999. * @return mixed
  15000. * @static
  15001. */
  15002. public static function shared($key, $default = null)
  15003. {
  15004. /** @var \Illuminate\View\Factory $instance */
  15005. return $instance->shared($key, $default);
  15006. }
  15007. /**
  15008. * Get all of the shared data for the environment.
  15009. *
  15010. * @return array
  15011. * @static
  15012. */
  15013. public static function getShared()
  15014. {
  15015. /** @var \Illuminate\View\Factory $instance */
  15016. return $instance->getShared();
  15017. }
  15018. /**
  15019. * Register a custom macro.
  15020. *
  15021. * @param string $name
  15022. * @param object|callable $macro
  15023. * @return void
  15024. * @static
  15025. */
  15026. public static function macro($name, $macro)
  15027. {
  15028. \Illuminate\View\Factory::macro($name, $macro);
  15029. }
  15030. /**
  15031. * Mix another object into the class.
  15032. *
  15033. * @param object $mixin
  15034. * @param bool $replace
  15035. * @return void
  15036. * @throws \ReflectionException
  15037. * @static
  15038. */
  15039. public static function mixin($mixin, $replace = true)
  15040. {
  15041. \Illuminate\View\Factory::mixin($mixin, $replace);
  15042. }
  15043. /**
  15044. * Checks if macro is registered.
  15045. *
  15046. * @param string $name
  15047. * @return bool
  15048. * @static
  15049. */
  15050. public static function hasMacro($name)
  15051. {
  15052. return \Illuminate\View\Factory::hasMacro($name);
  15053. }
  15054. /**
  15055. * Start a component rendering process.
  15056. *
  15057. * @param \Illuminate\Contracts\View\View|\Illuminate\Contracts\Support\Htmlable|\Closure|string $view
  15058. * @param array $data
  15059. * @return void
  15060. * @static
  15061. */
  15062. public static function startComponent($view, $data = [])
  15063. {
  15064. /** @var \Illuminate\View\Factory $instance */
  15065. $instance->startComponent($view, $data);
  15066. }
  15067. /**
  15068. * Get the first view that actually exists from the given list, and start a component.
  15069. *
  15070. * @param array $names
  15071. * @param array $data
  15072. * @return void
  15073. * @static
  15074. */
  15075. public static function startComponentFirst($names, $data = [])
  15076. {
  15077. /** @var \Illuminate\View\Factory $instance */
  15078. $instance->startComponentFirst($names, $data);
  15079. }
  15080. /**
  15081. * Render the current component.
  15082. *
  15083. * @return string
  15084. * @static
  15085. */
  15086. public static function renderComponent()
  15087. {
  15088. /** @var \Illuminate\View\Factory $instance */
  15089. return $instance->renderComponent();
  15090. }
  15091. /**
  15092. * Start the slot rendering process.
  15093. *
  15094. * @param string $name
  15095. * @param string|null $content
  15096. * @return void
  15097. * @throws \InvalidArgumentException
  15098. * @static
  15099. */
  15100. public static function slot($name, $content = null)
  15101. {
  15102. /** @var \Illuminate\View\Factory $instance */
  15103. $instance->slot($name, $content);
  15104. }
  15105. /**
  15106. * Save the slot content for rendering.
  15107. *
  15108. * @return void
  15109. * @static
  15110. */
  15111. public static function endSlot()
  15112. {
  15113. /** @var \Illuminate\View\Factory $instance */
  15114. $instance->endSlot();
  15115. }
  15116. /**
  15117. * Register a view creator event.
  15118. *
  15119. * @param array|string $views
  15120. * @param \Closure|string $callback
  15121. * @return array
  15122. * @static
  15123. */
  15124. public static function creator($views, $callback)
  15125. {
  15126. /** @var \Illuminate\View\Factory $instance */
  15127. return $instance->creator($views, $callback);
  15128. }
  15129. /**
  15130. * Register multiple view composers via an array.
  15131. *
  15132. * @param array $composers
  15133. * @return array
  15134. * @static
  15135. */
  15136. public static function composers($composers)
  15137. {
  15138. /** @var \Illuminate\View\Factory $instance */
  15139. return $instance->composers($composers);
  15140. }
  15141. /**
  15142. * Register a view composer event.
  15143. *
  15144. * @param array|string $views
  15145. * @param \Closure|string $callback
  15146. * @return array
  15147. * @static
  15148. */
  15149. public static function composer($views, $callback)
  15150. {
  15151. /** @var \Illuminate\View\Factory $instance */
  15152. return $instance->composer($views, $callback);
  15153. }
  15154. /**
  15155. * Call the composer for a given view.
  15156. *
  15157. * @param \Illuminate\Contracts\View\View $view
  15158. * @return void
  15159. * @static
  15160. */
  15161. public static function callComposer($view)
  15162. {
  15163. /** @var \Illuminate\View\Factory $instance */
  15164. $instance->callComposer($view);
  15165. }
  15166. /**
  15167. * Call the creator for a given view.
  15168. *
  15169. * @param \Illuminate\Contracts\View\View $view
  15170. * @return void
  15171. * @static
  15172. */
  15173. public static function callCreator($view)
  15174. {
  15175. /** @var \Illuminate\View\Factory $instance */
  15176. $instance->callCreator($view);
  15177. }
  15178. /**
  15179. * Start injecting content into a section.
  15180. *
  15181. * @param string $section
  15182. * @param string|null $content
  15183. * @return void
  15184. * @static
  15185. */
  15186. public static function startSection($section, $content = null)
  15187. {
  15188. /** @var \Illuminate\View\Factory $instance */
  15189. $instance->startSection($section, $content);
  15190. }
  15191. /**
  15192. * Inject inline content into a section.
  15193. *
  15194. * @param string $section
  15195. * @param string $content
  15196. * @return void
  15197. * @static
  15198. */
  15199. public static function inject($section, $content)
  15200. {
  15201. /** @var \Illuminate\View\Factory $instance */
  15202. $instance->inject($section, $content);
  15203. }
  15204. /**
  15205. * Stop injecting content into a section and return its contents.
  15206. *
  15207. * @return string
  15208. * @static
  15209. */
  15210. public static function yieldSection()
  15211. {
  15212. /** @var \Illuminate\View\Factory $instance */
  15213. return $instance->yieldSection();
  15214. }
  15215. /**
  15216. * Stop injecting content into a section.
  15217. *
  15218. * @param bool $overwrite
  15219. * @return string
  15220. * @throws \InvalidArgumentException
  15221. * @static
  15222. */
  15223. public static function stopSection($overwrite = false)
  15224. {
  15225. /** @var \Illuminate\View\Factory $instance */
  15226. return $instance->stopSection($overwrite);
  15227. }
  15228. /**
  15229. * Stop injecting content into a section and append it.
  15230. *
  15231. * @return string
  15232. * @throws \InvalidArgumentException
  15233. * @static
  15234. */
  15235. public static function appendSection()
  15236. {
  15237. /** @var \Illuminate\View\Factory $instance */
  15238. return $instance->appendSection();
  15239. }
  15240. /**
  15241. * Get the string contents of a section.
  15242. *
  15243. * @param string $section
  15244. * @param string $default
  15245. * @return string
  15246. * @static
  15247. */
  15248. public static function yieldContent($section, $default = '')
  15249. {
  15250. /** @var \Illuminate\View\Factory $instance */
  15251. return $instance->yieldContent($section, $default);
  15252. }
  15253. /**
  15254. * Get the parent placeholder for the current request.
  15255. *
  15256. * @param string $section
  15257. * @return string
  15258. * @static
  15259. */
  15260. public static function parentPlaceholder($section = '')
  15261. {
  15262. return \Illuminate\View\Factory::parentPlaceholder($section);
  15263. }
  15264. /**
  15265. * Check if the section exists.
  15266. *
  15267. * @param string $name
  15268. * @return bool
  15269. * @static
  15270. */
  15271. public static function hasSection($name)
  15272. {
  15273. /** @var \Illuminate\View\Factory $instance */
  15274. return $instance->hasSection($name);
  15275. }
  15276. /**
  15277. * Check if section does not exist.
  15278. *
  15279. * @param string $name
  15280. * @return bool
  15281. * @static
  15282. */
  15283. public static function sectionMissing($name)
  15284. {
  15285. /** @var \Illuminate\View\Factory $instance */
  15286. return $instance->sectionMissing($name);
  15287. }
  15288. /**
  15289. * Get the contents of a section.
  15290. *
  15291. * @param string $name
  15292. * @param string|null $default
  15293. * @return mixed
  15294. * @static
  15295. */
  15296. public static function getSection($name, $default = null)
  15297. {
  15298. /** @var \Illuminate\View\Factory $instance */
  15299. return $instance->getSection($name, $default);
  15300. }
  15301. /**
  15302. * Get the entire array of sections.
  15303. *
  15304. * @return array
  15305. * @static
  15306. */
  15307. public static function getSections()
  15308. {
  15309. /** @var \Illuminate\View\Factory $instance */
  15310. return $instance->getSections();
  15311. }
  15312. /**
  15313. * Flush all of the sections.
  15314. *
  15315. * @return void
  15316. * @static
  15317. */
  15318. public static function flushSections()
  15319. {
  15320. /** @var \Illuminate\View\Factory $instance */
  15321. $instance->flushSections();
  15322. }
  15323. /**
  15324. * Add new loop to the stack.
  15325. *
  15326. * @param \Countable|array $data
  15327. * @return void
  15328. * @static
  15329. */
  15330. public static function addLoop($data)
  15331. {
  15332. /** @var \Illuminate\View\Factory $instance */
  15333. $instance->addLoop($data);
  15334. }
  15335. /**
  15336. * Increment the top loop's indices.
  15337. *
  15338. * @return void
  15339. * @static
  15340. */
  15341. public static function incrementLoopIndices()
  15342. {
  15343. /** @var \Illuminate\View\Factory $instance */
  15344. $instance->incrementLoopIndices();
  15345. }
  15346. /**
  15347. * Pop a loop from the top of the loop stack.
  15348. *
  15349. * @return void
  15350. * @static
  15351. */
  15352. public static function popLoop()
  15353. {
  15354. /** @var \Illuminate\View\Factory $instance */
  15355. $instance->popLoop();
  15356. }
  15357. /**
  15358. * Get an instance of the last loop in the stack.
  15359. *
  15360. * @return \stdClass|null
  15361. * @static
  15362. */
  15363. public static function getLastLoop()
  15364. {
  15365. /** @var \Illuminate\View\Factory $instance */
  15366. return $instance->getLastLoop();
  15367. }
  15368. /**
  15369. * Get the entire loop stack.
  15370. *
  15371. * @return array
  15372. * @static
  15373. */
  15374. public static function getLoopStack()
  15375. {
  15376. /** @var \Illuminate\View\Factory $instance */
  15377. return $instance->getLoopStack();
  15378. }
  15379. /**
  15380. * Start injecting content into a push section.
  15381. *
  15382. * @param string $section
  15383. * @param string $content
  15384. * @return void
  15385. * @static
  15386. */
  15387. public static function startPush($section, $content = '')
  15388. {
  15389. /** @var \Illuminate\View\Factory $instance */
  15390. $instance->startPush($section, $content);
  15391. }
  15392. /**
  15393. * Stop injecting content into a push section.
  15394. *
  15395. * @return string
  15396. * @throws \InvalidArgumentException
  15397. * @static
  15398. */
  15399. public static function stopPush()
  15400. {
  15401. /** @var \Illuminate\View\Factory $instance */
  15402. return $instance->stopPush();
  15403. }
  15404. /**
  15405. * Start prepending content into a push section.
  15406. *
  15407. * @param string $section
  15408. * @param string $content
  15409. * @return void
  15410. * @static
  15411. */
  15412. public static function startPrepend($section, $content = '')
  15413. {
  15414. /** @var \Illuminate\View\Factory $instance */
  15415. $instance->startPrepend($section, $content);
  15416. }
  15417. /**
  15418. * Stop prepending content into a push section.
  15419. *
  15420. * @return string
  15421. * @throws \InvalidArgumentException
  15422. * @static
  15423. */
  15424. public static function stopPrepend()
  15425. {
  15426. /** @var \Illuminate\View\Factory $instance */
  15427. return $instance->stopPrepend();
  15428. }
  15429. /**
  15430. * Get the string contents of a push section.
  15431. *
  15432. * @param string $section
  15433. * @param string $default
  15434. * @return string
  15435. * @static
  15436. */
  15437. public static function yieldPushContent($section, $default = '')
  15438. {
  15439. /** @var \Illuminate\View\Factory $instance */
  15440. return $instance->yieldPushContent($section, $default);
  15441. }
  15442. /**
  15443. * Flush all of the stacks.
  15444. *
  15445. * @return void
  15446. * @static
  15447. */
  15448. public static function flushStacks()
  15449. {
  15450. /** @var \Illuminate\View\Factory $instance */
  15451. $instance->flushStacks();
  15452. }
  15453. /**
  15454. * Start a translation block.
  15455. *
  15456. * @param array $replacements
  15457. * @return void
  15458. * @static
  15459. */
  15460. public static function startTranslation($replacements = [])
  15461. {
  15462. /** @var \Illuminate\View\Factory $instance */
  15463. $instance->startTranslation($replacements);
  15464. }
  15465. /**
  15466. * Render the current translation.
  15467. *
  15468. * @return string
  15469. * @static
  15470. */
  15471. public static function renderTranslation()
  15472. {
  15473. /** @var \Illuminate\View\Factory $instance */
  15474. return $instance->renderTranslation();
  15475. }
  15476. }
  15477. }
  15478. namespace Illuminate\Support {
  15479. /**
  15480. *
  15481. *
  15482. */
  15483. class Arr {
  15484. }
  15485. /**
  15486. *
  15487. *
  15488. */
  15489. class Str {
  15490. }
  15491. }
  15492. namespace Dingo\Api\Facade {
  15493. /**
  15494. *
  15495. *
  15496. */
  15497. class API {
  15498. /**
  15499. * Attach files to be uploaded.
  15500. *
  15501. * @param array $files
  15502. * @return \Dingo\Api\Dispatcher
  15503. * @static
  15504. */
  15505. public static function attach($files)
  15506. {
  15507. /** @var \Dingo\Api\Dispatcher $instance */
  15508. return $instance->attach($files);
  15509. }
  15510. /**
  15511. * Internal request will be authenticated as the given user.
  15512. *
  15513. * @param mixed $user
  15514. * @return \Dingo\Api\Dispatcher
  15515. * @static
  15516. */
  15517. public static function be($user)
  15518. {
  15519. /** @var \Dingo\Api\Dispatcher $instance */
  15520. return $instance->be($user);
  15521. }
  15522. /**
  15523. * Send a JSON payload in the request body.
  15524. *
  15525. * @param string|array $content
  15526. * @return \Dingo\Api\Dispatcher
  15527. * @static
  15528. */
  15529. public static function json($content)
  15530. {
  15531. /** @var \Dingo\Api\Dispatcher $instance */
  15532. return $instance->json($content);
  15533. }
  15534. /**
  15535. * Sets the domain to be used for the request.
  15536. *
  15537. * @param string $domain
  15538. * @return \Dingo\Api\Dispatcher
  15539. * @static
  15540. */
  15541. public static function on($domain)
  15542. {
  15543. /** @var \Dingo\Api\Dispatcher $instance */
  15544. return $instance->on($domain);
  15545. }
  15546. /**
  15547. * Return the raw response object once request is dispatched.
  15548. *
  15549. * @return \Dingo\Api\Dispatcher
  15550. * @static
  15551. */
  15552. public static function raw()
  15553. {
  15554. /** @var \Dingo\Api\Dispatcher $instance */
  15555. return $instance->raw();
  15556. }
  15557. /**
  15558. * Only authenticate with the given user for a single request.
  15559. *
  15560. * @return \Dingo\Api\Dispatcher
  15561. * @static
  15562. */
  15563. public static function once()
  15564. {
  15565. /** @var \Dingo\Api\Dispatcher $instance */
  15566. return $instance->once();
  15567. }
  15568. /**
  15569. * Set the version of the API for the next request.
  15570. *
  15571. * @param string $version
  15572. * @return \Dingo\Api\Dispatcher
  15573. * @static
  15574. */
  15575. public static function version($version)
  15576. {
  15577. /** @var \Dingo\Api\Dispatcher $instance */
  15578. return $instance->version($version);
  15579. }
  15580. /**
  15581. * Set the parameters to be sent on the next API request.
  15582. *
  15583. * @param string|array $parameters
  15584. * @return \Dingo\Api\Dispatcher
  15585. * @static
  15586. */
  15587. public static function with($parameters)
  15588. {
  15589. /** @var \Dingo\Api\Dispatcher $instance */
  15590. return $instance->with($parameters);
  15591. }
  15592. /**
  15593. * Set a header to be sent on the next API request.
  15594. *
  15595. * @param string $key
  15596. * @param string $value
  15597. * @return \Dingo\Api\Dispatcher
  15598. * @static
  15599. */
  15600. public static function header($key, $value)
  15601. {
  15602. /** @var \Dingo\Api\Dispatcher $instance */
  15603. return $instance->header($key, $value);
  15604. }
  15605. /**
  15606. * Set a cookie to be sent on the next API request.
  15607. *
  15608. * @param \Symfony\Component\HttpFoundation\Cookie $cookie
  15609. * @return \Dingo\Api\Dispatcher
  15610. * @static
  15611. */
  15612. public static function cookie($cookie)
  15613. {
  15614. /** @var \Dingo\Api\Dispatcher $instance */
  15615. return $instance->cookie($cookie);
  15616. }
  15617. /**
  15618. * Perform API GET request.
  15619. *
  15620. * @param string $uri
  15621. * @param string|array $parameters
  15622. * @return mixed
  15623. * @static
  15624. */
  15625. public static function get($uri, $parameters = [])
  15626. {
  15627. /** @var \Dingo\Api\Dispatcher $instance */
  15628. return $instance->get($uri, $parameters);
  15629. }
  15630. /**
  15631. * Perform API POST request.
  15632. *
  15633. * @param string $uri
  15634. * @param string|array $parameters
  15635. * @param string $content
  15636. * @return mixed
  15637. * @static
  15638. */
  15639. public static function post($uri, $parameters = [], $content = '')
  15640. {
  15641. /** @var \Dingo\Api\Dispatcher $instance */
  15642. return $instance->post($uri, $parameters, $content);
  15643. }
  15644. /**
  15645. * Perform API PUT request.
  15646. *
  15647. * @param string $uri
  15648. * @param string|array $parameters
  15649. * @param string $content
  15650. * @return mixed
  15651. * @static
  15652. */
  15653. public static function put($uri, $parameters = [], $content = '')
  15654. {
  15655. /** @var \Dingo\Api\Dispatcher $instance */
  15656. return $instance->put($uri, $parameters, $content);
  15657. }
  15658. /**
  15659. * Perform API PATCH request.
  15660. *
  15661. * @param string $uri
  15662. * @param string|array $parameters
  15663. * @param string $content
  15664. * @return mixed
  15665. * @static
  15666. */
  15667. public static function patch($uri, $parameters = [], $content = '')
  15668. {
  15669. /** @var \Dingo\Api\Dispatcher $instance */
  15670. return $instance->patch($uri, $parameters, $content);
  15671. }
  15672. /**
  15673. * Perform API DELETE request.
  15674. *
  15675. * @param string $uri
  15676. * @param string|array $parameters
  15677. * @param string $content
  15678. * @return mixed
  15679. * @static
  15680. */
  15681. public static function delete($uri, $parameters = [], $content = '')
  15682. {
  15683. /** @var \Dingo\Api\Dispatcher $instance */
  15684. return $instance->delete($uri, $parameters, $content);
  15685. }
  15686. /**
  15687. * Get the domain.
  15688. *
  15689. * @return string
  15690. * @static
  15691. */
  15692. public static function getDomain()
  15693. {
  15694. /** @var \Dingo\Api\Dispatcher $instance */
  15695. return $instance->getDomain();
  15696. }
  15697. /**
  15698. * Get the version.
  15699. *
  15700. * @return string
  15701. * @static
  15702. */
  15703. public static function getVersion()
  15704. {
  15705. /** @var \Dingo\Api\Dispatcher $instance */
  15706. return $instance->getVersion();
  15707. }
  15708. /**
  15709. * Get the format.
  15710. *
  15711. * @return string
  15712. * @static
  15713. */
  15714. public static function getFormat()
  15715. {
  15716. /** @var \Dingo\Api\Dispatcher $instance */
  15717. return $instance->getFormat();
  15718. }
  15719. /**
  15720. * Get the subtype.
  15721. *
  15722. * @return string
  15723. * @static
  15724. */
  15725. public static function getSubtype()
  15726. {
  15727. /** @var \Dingo\Api\Dispatcher $instance */
  15728. return $instance->getSubtype();
  15729. }
  15730. /**
  15731. * Set the subtype.
  15732. *
  15733. * @param string $subtype
  15734. * @return void
  15735. * @static
  15736. */
  15737. public static function setSubtype($subtype)
  15738. {
  15739. /** @var \Dingo\Api\Dispatcher $instance */
  15740. $instance->setSubtype($subtype);
  15741. }
  15742. /**
  15743. * Get the standards tree.
  15744. *
  15745. * @return string
  15746. * @static
  15747. */
  15748. public static function getStandardsTree()
  15749. {
  15750. /** @var \Dingo\Api\Dispatcher $instance */
  15751. return $instance->getStandardsTree();
  15752. }
  15753. /**
  15754. * Set the standards tree.
  15755. *
  15756. * @param string $standardsTree
  15757. * @return void
  15758. * @static
  15759. */
  15760. public static function setStandardsTree($standardsTree)
  15761. {
  15762. /** @var \Dingo\Api\Dispatcher $instance */
  15763. $instance->setStandardsTree($standardsTree);
  15764. }
  15765. /**
  15766. * Set the prefix.
  15767. *
  15768. * @param string $prefix
  15769. * @return void
  15770. * @static
  15771. */
  15772. public static function setPrefix($prefix)
  15773. {
  15774. /** @var \Dingo\Api\Dispatcher $instance */
  15775. $instance->setPrefix($prefix);
  15776. }
  15777. /**
  15778. * Set the default version.
  15779. *
  15780. * @param string $version
  15781. * @return void
  15782. * @static
  15783. */
  15784. public static function setDefaultVersion($version)
  15785. {
  15786. /** @var \Dingo\Api\Dispatcher $instance */
  15787. $instance->setDefaultVersion($version);
  15788. }
  15789. /**
  15790. * Set the default domain.
  15791. *
  15792. * @param string $domain
  15793. * @return void
  15794. * @static
  15795. */
  15796. public static function setDefaultDomain($domain)
  15797. {
  15798. /** @var \Dingo\Api\Dispatcher $instance */
  15799. $instance->setDefaultDomain($domain);
  15800. }
  15801. /**
  15802. * Set the default format.
  15803. *
  15804. * @param string $format
  15805. * @return void
  15806. * @static
  15807. */
  15808. public static function setDefaultFormat($format)
  15809. {
  15810. /** @var \Dingo\Api\Dispatcher $instance */
  15811. $instance->setDefaultFormat($format);
  15812. }
  15813. }
  15814. }
  15815. namespace Facade\Ignition\Facades {
  15816. /**
  15817. * Class Flare.
  15818. *
  15819. * @see \Facade\FlareClient\Flare
  15820. */
  15821. class Flare {
  15822. /**
  15823. *
  15824. *
  15825. * @static
  15826. */
  15827. public static function register($apiKey, $apiSecret = null, $contextDetector = null, $container = null)
  15828. {
  15829. return \Facade\FlareClient\Flare::register($apiKey, $apiSecret, $contextDetector, $container);
  15830. }
  15831. /**
  15832. *
  15833. *
  15834. * @static
  15835. */
  15836. public static function determineVersionUsing($determineVersionCallable)
  15837. {
  15838. /** @var \Facade\FlareClient\Flare $instance */
  15839. return $instance->determineVersionUsing($determineVersionCallable);
  15840. }
  15841. /**
  15842. *
  15843. *
  15844. * @static
  15845. */
  15846. public static function reportErrorLevels($reportErrorLevels)
  15847. {
  15848. /** @var \Facade\FlareClient\Flare $instance */
  15849. return $instance->reportErrorLevels($reportErrorLevels);
  15850. }
  15851. /**
  15852. *
  15853. *
  15854. * @static
  15855. */
  15856. public static function filterExceptionsUsing($filterExceptionsCallable)
  15857. {
  15858. /** @var \Facade\FlareClient\Flare $instance */
  15859. return $instance->filterExceptionsUsing($filterExceptionsCallable);
  15860. }
  15861. /**
  15862. *
  15863. *
  15864. * @return null|string
  15865. * @static
  15866. */
  15867. public static function version()
  15868. {
  15869. /** @var \Facade\FlareClient\Flare $instance */
  15870. return $instance->version();
  15871. }
  15872. /**
  15873. *
  15874. *
  15875. * @static
  15876. */
  15877. public static function getMiddleware()
  15878. {
  15879. /** @var \Facade\FlareClient\Flare $instance */
  15880. return $instance->getMiddleware();
  15881. }
  15882. /**
  15883. *
  15884. *
  15885. * @static
  15886. */
  15887. public static function registerFlareHandlers()
  15888. {
  15889. /** @var \Facade\FlareClient\Flare $instance */
  15890. return $instance->registerFlareHandlers();
  15891. }
  15892. /**
  15893. *
  15894. *
  15895. * @static
  15896. */
  15897. public static function registerExceptionHandler()
  15898. {
  15899. /** @var \Facade\FlareClient\Flare $instance */
  15900. return $instance->registerExceptionHandler();
  15901. }
  15902. /**
  15903. *
  15904. *
  15905. * @static
  15906. */
  15907. public static function registerErrorHandler()
  15908. {
  15909. /** @var \Facade\FlareClient\Flare $instance */
  15910. return $instance->registerErrorHandler();
  15911. }
  15912. /**
  15913. *
  15914. *
  15915. * @static
  15916. */
  15917. public static function registerMiddleware($callable)
  15918. {
  15919. /** @var \Facade\FlareClient\Flare $instance */
  15920. return $instance->registerMiddleware($callable);
  15921. }
  15922. /**
  15923. *
  15924. *
  15925. * @static
  15926. */
  15927. public static function getMiddlewares()
  15928. {
  15929. /** @var \Facade\FlareClient\Flare $instance */
  15930. return $instance->getMiddlewares();
  15931. }
  15932. /**
  15933. *
  15934. *
  15935. * @static
  15936. */
  15937. public static function glow($name, $messageLevel = 'info', $metaData = [])
  15938. {
  15939. /** @var \Facade\FlareClient\Flare $instance */
  15940. return $instance->glow($name, $messageLevel, $metaData);
  15941. }
  15942. /**
  15943. *
  15944. *
  15945. * @static
  15946. */
  15947. public static function handleException($throwable)
  15948. {
  15949. /** @var \Facade\FlareClient\Flare $instance */
  15950. return $instance->handleException($throwable);
  15951. }
  15952. /**
  15953. *
  15954. *
  15955. * @static
  15956. */
  15957. public static function handleError($code, $message, $file = '', $line = 0)
  15958. {
  15959. /** @var \Facade\FlareClient\Flare $instance */
  15960. return $instance->handleError($code, $message, $file, $line);
  15961. }
  15962. /**
  15963. *
  15964. *
  15965. * @static
  15966. */
  15967. public static function applicationPath($applicationPath)
  15968. {
  15969. /** @var \Facade\FlareClient\Flare $instance */
  15970. return $instance->applicationPath($applicationPath);
  15971. }
  15972. /**
  15973. *
  15974. *
  15975. * @static
  15976. */
  15977. public static function report($throwable, $callback = null)
  15978. {
  15979. /** @var \Facade\FlareClient\Flare $instance */
  15980. return $instance->report($throwable, $callback);
  15981. }
  15982. /**
  15983. *
  15984. *
  15985. * @static
  15986. */
  15987. public static function reportMessage($message, $logLevel, $callback = null)
  15988. {
  15989. /** @var \Facade\FlareClient\Flare $instance */
  15990. return $instance->reportMessage($message, $logLevel, $callback);
  15991. }
  15992. /**
  15993. *
  15994. *
  15995. * @static
  15996. */
  15997. public static function sendTestReport($throwable)
  15998. {
  15999. /** @var \Facade\FlareClient\Flare $instance */
  16000. return $instance->sendTestReport($throwable);
  16001. }
  16002. /**
  16003. *
  16004. *
  16005. * @static
  16006. */
  16007. public static function reset()
  16008. {
  16009. /** @var \Facade\FlareClient\Flare $instance */
  16010. return $instance->reset();
  16011. }
  16012. /**
  16013. *
  16014. *
  16015. * @static
  16016. */
  16017. public static function anonymizeIp()
  16018. {
  16019. /** @var \Facade\FlareClient\Flare $instance */
  16020. return $instance->anonymizeIp();
  16021. }
  16022. /**
  16023. *
  16024. *
  16025. * @static
  16026. */
  16027. public static function censorRequestBodyFields($fieldNames)
  16028. {
  16029. /** @var \Facade\FlareClient\Flare $instance */
  16030. return $instance->censorRequestBodyFields($fieldNames);
  16031. }
  16032. /**
  16033. *
  16034. *
  16035. * @static
  16036. */
  16037. public static function createReport($throwable)
  16038. {
  16039. /** @var \Facade\FlareClient\Flare $instance */
  16040. return $instance->createReport($throwable);
  16041. }
  16042. /**
  16043. *
  16044. *
  16045. * @static
  16046. */
  16047. public static function createReportFromMessage($message, $logLevel)
  16048. {
  16049. /** @var \Facade\FlareClient\Flare $instance */
  16050. return $instance->createReportFromMessage($message, $logLevel);
  16051. }
  16052. /**
  16053. *
  16054. *
  16055. * @static
  16056. */
  16057. public static function stage($stage)
  16058. {
  16059. /** @var \Facade\FlareClient\Flare $instance */
  16060. return $instance->stage($stage);
  16061. }
  16062. /**
  16063. *
  16064. *
  16065. * @static
  16066. */
  16067. public static function messageLevel($messageLevel)
  16068. {
  16069. /** @var \Facade\FlareClient\Flare $instance */
  16070. return $instance->messageLevel($messageLevel);
  16071. }
  16072. /**
  16073. *
  16074. *
  16075. * @static
  16076. */
  16077. public static function getGroup($groupName = 'context', $default = [])
  16078. {
  16079. /** @var \Facade\FlareClient\Flare $instance */
  16080. return $instance->getGroup($groupName, $default);
  16081. }
  16082. /**
  16083. *
  16084. *
  16085. * @static
  16086. */
  16087. public static function context($key, $value)
  16088. {
  16089. /** @var \Facade\FlareClient\Flare $instance */
  16090. return $instance->context($key, $value);
  16091. }
  16092. /**
  16093. *
  16094. *
  16095. * @static
  16096. */
  16097. public static function group($groupName, $properties)
  16098. {
  16099. /** @var \Facade\FlareClient\Flare $instance */
  16100. return $instance->group($groupName, $properties);
  16101. }
  16102. }
  16103. }
  16104. namespace Tymon\JWTAuth\Facades {
  16105. /**
  16106. *
  16107. *
  16108. */
  16109. class JWTAuth {
  16110. /**
  16111. * Attempt to authenticate the user and return the token.
  16112. *
  16113. * @param array $credentials
  16114. * @return false|string
  16115. * @static
  16116. */
  16117. public static function attempt($credentials)
  16118. {
  16119. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16120. return $instance->attempt($credentials);
  16121. }
  16122. /**
  16123. * Authenticate a user via a token.
  16124. *
  16125. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  16126. * @static
  16127. */
  16128. public static function authenticate()
  16129. {
  16130. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16131. return $instance->authenticate();
  16132. }
  16133. /**
  16134. * Alias for authenticate().
  16135. *
  16136. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  16137. * @static
  16138. */
  16139. public static function toUser()
  16140. {
  16141. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16142. return $instance->toUser();
  16143. }
  16144. /**
  16145. * Get the authenticated user.
  16146. *
  16147. * @return \Tymon\JWTAuth\Contracts\JWTSubject
  16148. * @static
  16149. */
  16150. public static function user()
  16151. {
  16152. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16153. return $instance->user();
  16154. }
  16155. /**
  16156. * Generate a token for a given subject.
  16157. *
  16158. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  16159. * @return string
  16160. * @static
  16161. */
  16162. public static function fromSubject($subject)
  16163. { //Method inherited from \Tymon\JWTAuth\JWT
  16164. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16165. return $instance->fromSubject($subject);
  16166. }
  16167. /**
  16168. * Alias to generate a token for a given user.
  16169. *
  16170. * @param \Tymon\JWTAuth\Contracts\JWTSubject $user
  16171. * @return string
  16172. * @static
  16173. */
  16174. public static function fromUser($user)
  16175. { //Method inherited from \Tymon\JWTAuth\JWT
  16176. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16177. return $instance->fromUser($user);
  16178. }
  16179. /**
  16180. * Refresh an expired token.
  16181. *
  16182. * @param bool $forceForever
  16183. * @param bool $resetClaims
  16184. * @return string
  16185. * @static
  16186. */
  16187. public static function refresh($forceForever = false, $resetClaims = false)
  16188. { //Method inherited from \Tymon\JWTAuth\JWT
  16189. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16190. return $instance->refresh($forceForever, $resetClaims);
  16191. }
  16192. /**
  16193. * Invalidate a token (add it to the blacklist).
  16194. *
  16195. * @param bool $forceForever
  16196. * @return \Tymon\JWTAuth\JWTAuth
  16197. * @static
  16198. */
  16199. public static function invalidate($forceForever = false)
  16200. { //Method inherited from \Tymon\JWTAuth\JWT
  16201. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16202. return $instance->invalidate($forceForever);
  16203. }
  16204. /**
  16205. * Alias to get the payload, and as a result checks that
  16206. * the token is valid i.e. not expired or blacklisted.
  16207. *
  16208. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  16209. * @return \Tymon\JWTAuth\Payload
  16210. * @static
  16211. */
  16212. public static function checkOrFail()
  16213. { //Method inherited from \Tymon\JWTAuth\JWT
  16214. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16215. return $instance->checkOrFail();
  16216. }
  16217. /**
  16218. * Check that the token is valid.
  16219. *
  16220. * @param bool $getPayload
  16221. * @return \Tymon\JWTAuth\Payload|bool
  16222. * @static
  16223. */
  16224. public static function check($getPayload = false)
  16225. { //Method inherited from \Tymon\JWTAuth\JWT
  16226. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16227. return $instance->check($getPayload);
  16228. }
  16229. /**
  16230. * Get the token.
  16231. *
  16232. * @return \Tymon\JWTAuth\Token|null
  16233. * @static
  16234. */
  16235. public static function getToken()
  16236. { //Method inherited from \Tymon\JWTAuth\JWT
  16237. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16238. return $instance->getToken();
  16239. }
  16240. /**
  16241. * Parse the token from the request.
  16242. *
  16243. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  16244. * @return \Tymon\JWTAuth\JWTAuth
  16245. * @static
  16246. */
  16247. public static function parseToken()
  16248. { //Method inherited from \Tymon\JWTAuth\JWT
  16249. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16250. return $instance->parseToken();
  16251. }
  16252. /**
  16253. * Get the raw Payload instance.
  16254. *
  16255. * @return \Tymon\JWTAuth\Payload
  16256. * @static
  16257. */
  16258. public static function getPayload()
  16259. { //Method inherited from \Tymon\JWTAuth\JWT
  16260. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16261. return $instance->getPayload();
  16262. }
  16263. /**
  16264. * Alias for getPayload().
  16265. *
  16266. * @return \Tymon\JWTAuth\Payload
  16267. * @static
  16268. */
  16269. public static function payload()
  16270. { //Method inherited from \Tymon\JWTAuth\JWT
  16271. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16272. return $instance->payload();
  16273. }
  16274. /**
  16275. * Convenience method to get a claim value.
  16276. *
  16277. * @param string $claim
  16278. * @return mixed
  16279. * @static
  16280. */
  16281. public static function getClaim($claim)
  16282. { //Method inherited from \Tymon\JWTAuth\JWT
  16283. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16284. return $instance->getClaim($claim);
  16285. }
  16286. /**
  16287. * Create a Payload instance.
  16288. *
  16289. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  16290. * @return \Tymon\JWTAuth\Payload
  16291. * @static
  16292. */
  16293. public static function makePayload($subject)
  16294. { //Method inherited from \Tymon\JWTAuth\JWT
  16295. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16296. return $instance->makePayload($subject);
  16297. }
  16298. /**
  16299. * Check if the subject model matches the one saved in the token.
  16300. *
  16301. * @param string|object $model
  16302. * @return bool
  16303. * @static
  16304. */
  16305. public static function checkSubjectModel($model)
  16306. { //Method inherited from \Tymon\JWTAuth\JWT
  16307. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16308. return $instance->checkSubjectModel($model);
  16309. }
  16310. /**
  16311. * Set the token.
  16312. *
  16313. * @param \Tymon\JWTAuth\Token|string $token
  16314. * @return \Tymon\JWTAuth\JWTAuth
  16315. * @static
  16316. */
  16317. public static function setToken($token)
  16318. { //Method inherited from \Tymon\JWTAuth\JWT
  16319. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16320. return $instance->setToken($token);
  16321. }
  16322. /**
  16323. * Unset the current token.
  16324. *
  16325. * @return \Tymon\JWTAuth\JWTAuth
  16326. * @static
  16327. */
  16328. public static function unsetToken()
  16329. { //Method inherited from \Tymon\JWTAuth\JWT
  16330. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16331. return $instance->unsetToken();
  16332. }
  16333. /**
  16334. * Set the request instance.
  16335. *
  16336. * @param \Illuminate\Http\Request $request
  16337. * @return \Tymon\JWTAuth\JWTAuth
  16338. * @static
  16339. */
  16340. public static function setRequest($request)
  16341. { //Method inherited from \Tymon\JWTAuth\JWT
  16342. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16343. return $instance->setRequest($request);
  16344. }
  16345. /**
  16346. * Set whether the subject should be "locked".
  16347. *
  16348. * @param bool $lock
  16349. * @return \Tymon\JWTAuth\JWTAuth
  16350. * @static
  16351. */
  16352. public static function lockSubject($lock)
  16353. { //Method inherited from \Tymon\JWTAuth\JWT
  16354. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16355. return $instance->lockSubject($lock);
  16356. }
  16357. /**
  16358. * Get the Manager instance.
  16359. *
  16360. * @return \Tymon\JWTAuth\Manager
  16361. * @static
  16362. */
  16363. public static function manager()
  16364. { //Method inherited from \Tymon\JWTAuth\JWT
  16365. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16366. return $instance->manager();
  16367. }
  16368. /**
  16369. * Get the Parser instance.
  16370. *
  16371. * @return \Tymon\JWTAuth\Http\Parser\Parser
  16372. * @static
  16373. */
  16374. public static function parser()
  16375. { //Method inherited from \Tymon\JWTAuth\JWT
  16376. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16377. return $instance->parser();
  16378. }
  16379. /**
  16380. * Get the Payload Factory.
  16381. *
  16382. * @return \Tymon\JWTAuth\Factory
  16383. * @static
  16384. */
  16385. public static function factory()
  16386. { //Method inherited from \Tymon\JWTAuth\JWT
  16387. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16388. return $instance->factory();
  16389. }
  16390. /**
  16391. * Get the Blacklist.
  16392. *
  16393. * @return \Tymon\JWTAuth\Blacklist
  16394. * @static
  16395. */
  16396. public static function blacklist()
  16397. { //Method inherited from \Tymon\JWTAuth\JWT
  16398. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16399. return $instance->blacklist();
  16400. }
  16401. /**
  16402. * Set the custom claims.
  16403. *
  16404. * @param array $customClaims
  16405. * @return \Tymon\JWTAuth\JWTAuth
  16406. * @static
  16407. */
  16408. public static function customClaims($customClaims)
  16409. { //Method inherited from \Tymon\JWTAuth\JWT
  16410. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16411. return $instance->customClaims($customClaims);
  16412. }
  16413. /**
  16414. * Alias to set the custom claims.
  16415. *
  16416. * @param array $customClaims
  16417. * @return \Tymon\JWTAuth\JWTAuth
  16418. * @static
  16419. */
  16420. public static function claims($customClaims)
  16421. { //Method inherited from \Tymon\JWTAuth\JWT
  16422. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16423. return $instance->claims($customClaims);
  16424. }
  16425. /**
  16426. * Get the custom claims.
  16427. *
  16428. * @return array
  16429. * @static
  16430. */
  16431. public static function getCustomClaims()
  16432. { //Method inherited from \Tymon\JWTAuth\JWT
  16433. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  16434. return $instance->getCustomClaims();
  16435. }
  16436. }
  16437. /**
  16438. *
  16439. *
  16440. */
  16441. class JWTFactory {
  16442. /**
  16443. * Create the Payload instance.
  16444. *
  16445. * @param bool $resetClaims
  16446. * @return \Tymon\JWTAuth\Payload
  16447. * @static
  16448. */
  16449. public static function make($resetClaims = false)
  16450. {
  16451. /** @var \Tymon\JWTAuth\Factory $instance */
  16452. return $instance->make($resetClaims);
  16453. }
  16454. /**
  16455. * Empty the claims collection.
  16456. *
  16457. * @return \Tymon\JWTAuth\Factory
  16458. * @static
  16459. */
  16460. public static function emptyClaims()
  16461. {
  16462. /** @var \Tymon\JWTAuth\Factory $instance */
  16463. return $instance->emptyClaims();
  16464. }
  16465. /**
  16466. * Build and get the Claims Collection.
  16467. *
  16468. * @return \Tymon\JWTAuth\Claims\Collection
  16469. * @static
  16470. */
  16471. public static function buildClaimsCollection()
  16472. {
  16473. /** @var \Tymon\JWTAuth\Factory $instance */
  16474. return $instance->buildClaimsCollection();
  16475. }
  16476. /**
  16477. * Get a Payload instance with a claims collection.
  16478. *
  16479. * @param \Tymon\JWTAuth\Claims\Collection $claims
  16480. * @return \Tymon\JWTAuth\Payload
  16481. * @static
  16482. */
  16483. public static function withClaims($claims)
  16484. {
  16485. /** @var \Tymon\JWTAuth\Factory $instance */
  16486. return $instance->withClaims($claims);
  16487. }
  16488. /**
  16489. * Set the default claims to be added to the Payload.
  16490. *
  16491. * @param array $claims
  16492. * @return \Tymon\JWTAuth\Factory
  16493. * @static
  16494. */
  16495. public static function setDefaultClaims($claims)
  16496. {
  16497. /** @var \Tymon\JWTAuth\Factory $instance */
  16498. return $instance->setDefaultClaims($claims);
  16499. }
  16500. /**
  16501. * Helper to set the ttl.
  16502. *
  16503. * @param int $ttl
  16504. * @return \Tymon\JWTAuth\Factory
  16505. * @static
  16506. */
  16507. public static function setTTL($ttl)
  16508. {
  16509. /** @var \Tymon\JWTAuth\Factory $instance */
  16510. return $instance->setTTL($ttl);
  16511. }
  16512. /**
  16513. * Helper to get the ttl.
  16514. *
  16515. * @return int
  16516. * @static
  16517. */
  16518. public static function getTTL()
  16519. {
  16520. /** @var \Tymon\JWTAuth\Factory $instance */
  16521. return $instance->getTTL();
  16522. }
  16523. /**
  16524. * Get the default claims.
  16525. *
  16526. * @return array
  16527. * @static
  16528. */
  16529. public static function getDefaultClaims()
  16530. {
  16531. /** @var \Tymon\JWTAuth\Factory $instance */
  16532. return $instance->getDefaultClaims();
  16533. }
  16534. /**
  16535. * Get the PayloadValidator instance.
  16536. *
  16537. * @return \Tymon\JWTAuth\Validators\PayloadValidator
  16538. * @static
  16539. */
  16540. public static function validator()
  16541. {
  16542. /** @var \Tymon\JWTAuth\Factory $instance */
  16543. return $instance->validator();
  16544. }
  16545. /**
  16546. * Set the custom claims.
  16547. *
  16548. * @param array $customClaims
  16549. * @return \Tymon\JWTAuth\Factory
  16550. * @static
  16551. */
  16552. public static function customClaims($customClaims)
  16553. {
  16554. /** @var \Tymon\JWTAuth\Factory $instance */
  16555. return $instance->customClaims($customClaims);
  16556. }
  16557. /**
  16558. * Alias to set the custom claims.
  16559. *
  16560. * @param array $customClaims
  16561. * @return \Tymon\JWTAuth\Factory
  16562. * @static
  16563. */
  16564. public static function claims($customClaims)
  16565. {
  16566. /** @var \Tymon\JWTAuth\Factory $instance */
  16567. return $instance->claims($customClaims);
  16568. }
  16569. /**
  16570. * Get the custom claims.
  16571. *
  16572. * @return array
  16573. * @static
  16574. */
  16575. public static function getCustomClaims()
  16576. {
  16577. /** @var \Tymon\JWTAuth\Factory $instance */
  16578. return $instance->getCustomClaims();
  16579. }
  16580. /**
  16581. * Set the refresh flow flag.
  16582. *
  16583. * @param bool $refreshFlow
  16584. * @return \Tymon\JWTAuth\Factory
  16585. * @static
  16586. */
  16587. public static function setRefreshFlow($refreshFlow = true)
  16588. {
  16589. /** @var \Tymon\JWTAuth\Factory $instance */
  16590. return $instance->setRefreshFlow($refreshFlow);
  16591. }
  16592. }
  16593. }
  16594. namespace Illuminate\Http {
  16595. /**
  16596. *
  16597. *
  16598. */
  16599. class Request {
  16600. /**
  16601. *
  16602. *
  16603. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  16604. * @param array $rules
  16605. * @param mixed $params
  16606. * @static
  16607. */
  16608. public static function validate($rules, ...$params)
  16609. {
  16610. return \Illuminate\Http\Request::validate($rules, ...$params);
  16611. }
  16612. /**
  16613. *
  16614. *
  16615. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestValidation()
  16616. * @param string $errorBag
  16617. * @param array $rules
  16618. * @param mixed $params
  16619. * @static
  16620. */
  16621. public static function validateWithBag($errorBag, $rules, ...$params)
  16622. {
  16623. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  16624. }
  16625. /**
  16626. *
  16627. *
  16628. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  16629. * @param mixed $absolute
  16630. * @static
  16631. */
  16632. public static function hasValidSignature($absolute = true)
  16633. {
  16634. return \Illuminate\Http\Request::hasValidSignature($absolute);
  16635. }
  16636. /**
  16637. *
  16638. *
  16639. * @see \Illuminate\Foundation\Providers\FoundationServiceProvider::registerRequestSignatureValidation()
  16640. * @static
  16641. */
  16642. public static function hasValidRelativeSignature()
  16643. {
  16644. return \Illuminate\Http\Request::hasValidRelativeSignature();
  16645. }
  16646. }
  16647. }
  16648. namespace {
  16649. class App extends \Illuminate\Support\Facades\App {}
  16650. class Arr extends \Illuminate\Support\Arr {}
  16651. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  16652. class Auth extends \Illuminate\Support\Facades\Auth {}
  16653. class Blade extends \Illuminate\Support\Facades\Blade {}
  16654. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  16655. class Bus extends \Illuminate\Support\Facades\Bus {}
  16656. class Cache extends \Illuminate\Support\Facades\Cache {}
  16657. class Config extends \Illuminate\Support\Facades\Config {}
  16658. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  16659. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  16660. class Date extends \Illuminate\Support\Facades\Date {}
  16661. class DB extends \Illuminate\Support\Facades\DB {}
  16662. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  16663. /**
  16664. * Create and return an un-saved model instance.
  16665. *
  16666. * @param array $attributes
  16667. * @return \Illuminate\Database\Eloquent\Model|static
  16668. * @static
  16669. */
  16670. public static function make($attributes = [])
  16671. {
  16672. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16673. return $instance->make($attributes);
  16674. }
  16675. /**
  16676. * Register a new global scope.
  16677. *
  16678. * @param string $identifier
  16679. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  16680. * @return \Illuminate\Database\Eloquent\Builder|static
  16681. * @static
  16682. */
  16683. public static function withGlobalScope($identifier, $scope)
  16684. {
  16685. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16686. return $instance->withGlobalScope($identifier, $scope);
  16687. }
  16688. /**
  16689. * Remove a registered global scope.
  16690. *
  16691. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  16692. * @return \Illuminate\Database\Eloquent\Builder|static
  16693. * @static
  16694. */
  16695. public static function withoutGlobalScope($scope)
  16696. {
  16697. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16698. return $instance->withoutGlobalScope($scope);
  16699. }
  16700. /**
  16701. * Remove all or passed registered global scopes.
  16702. *
  16703. * @param array|null $scopes
  16704. * @return \Illuminate\Database\Eloquent\Builder|static
  16705. * @static
  16706. */
  16707. public static function withoutGlobalScopes($scopes = null)
  16708. {
  16709. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16710. return $instance->withoutGlobalScopes($scopes);
  16711. }
  16712. /**
  16713. * Get an array of global scopes that were removed from the query.
  16714. *
  16715. * @return array
  16716. * @static
  16717. */
  16718. public static function removedScopes()
  16719. {
  16720. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16721. return $instance->removedScopes();
  16722. }
  16723. /**
  16724. * Add a where clause on the primary key to the query.
  16725. *
  16726. * @param mixed $id
  16727. * @return \Illuminate\Database\Eloquent\Builder|static
  16728. * @static
  16729. */
  16730. public static function whereKey($id)
  16731. {
  16732. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16733. return $instance->whereKey($id);
  16734. }
  16735. /**
  16736. * Add a where clause on the primary key to the query.
  16737. *
  16738. * @param mixed $id
  16739. * @return \Illuminate\Database\Eloquent\Builder|static
  16740. * @static
  16741. */
  16742. public static function whereKeyNot($id)
  16743. {
  16744. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16745. return $instance->whereKeyNot($id);
  16746. }
  16747. /**
  16748. * Add a basic where clause to the query.
  16749. *
  16750. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16751. * @param mixed $operator
  16752. * @param mixed $value
  16753. * @param string $boolean
  16754. * @return \Illuminate\Database\Eloquent\Builder|static
  16755. * @static
  16756. */
  16757. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  16758. {
  16759. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16760. return $instance->where($column, $operator, $value, $boolean);
  16761. }
  16762. /**
  16763. * Add a basic where clause to the query, and return the first result.
  16764. *
  16765. * @param \Closure|string|array|\Illuminate\Database\Query\Expression $column
  16766. * @param mixed $operator
  16767. * @param mixed $value
  16768. * @param string $boolean
  16769. * @return \Illuminate\Database\Eloquent\Model|static|null
  16770. * @static
  16771. */
  16772. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  16773. {
  16774. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16775. return $instance->firstWhere($column, $operator, $value, $boolean);
  16776. }
  16777. /**
  16778. * Add an "or where" clause to the query.
  16779. *
  16780. * @param \Closure|array|string|\Illuminate\Database\Query\Expression $column
  16781. * @param mixed $operator
  16782. * @param mixed $value
  16783. * @return \Illuminate\Database\Eloquent\Builder|static
  16784. * @static
  16785. */
  16786. public static function orWhere($column, $operator = null, $value = null)
  16787. {
  16788. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16789. return $instance->orWhere($column, $operator, $value);
  16790. }
  16791. /**
  16792. * Add an "order by" clause for a timestamp to the query.
  16793. *
  16794. * @param string|\Illuminate\Database\Query\Expression $column
  16795. * @return \Illuminate\Database\Eloquent\Builder|static
  16796. * @static
  16797. */
  16798. public static function latest($column = null)
  16799. {
  16800. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16801. return $instance->latest($column);
  16802. }
  16803. /**
  16804. * Add an "order by" clause for a timestamp to the query.
  16805. *
  16806. * @param string|\Illuminate\Database\Query\Expression $column
  16807. * @return \Illuminate\Database\Eloquent\Builder|static
  16808. * @static
  16809. */
  16810. public static function oldest($column = null)
  16811. {
  16812. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16813. return $instance->oldest($column);
  16814. }
  16815. /**
  16816. * Create a collection of models from plain arrays.
  16817. *
  16818. * @param array $items
  16819. * @return \Illuminate\Database\Eloquent\Collection
  16820. * @static
  16821. */
  16822. public static function hydrate($items)
  16823. {
  16824. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16825. return $instance->hydrate($items);
  16826. }
  16827. /**
  16828. * Create a collection of models from a raw query.
  16829. *
  16830. * @param string $query
  16831. * @param array $bindings
  16832. * @return \Illuminate\Database\Eloquent\Collection
  16833. * @static
  16834. */
  16835. public static function fromQuery($query, $bindings = [])
  16836. {
  16837. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16838. return $instance->fromQuery($query, $bindings);
  16839. }
  16840. /**
  16841. * Find a model by its primary key.
  16842. *
  16843. * @param mixed $id
  16844. * @param array $columns
  16845. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  16846. * @static
  16847. */
  16848. public static function find($id, $columns = [])
  16849. {
  16850. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16851. return $instance->find($id, $columns);
  16852. }
  16853. /**
  16854. * Find multiple models by their primary keys.
  16855. *
  16856. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  16857. * @param array $columns
  16858. * @return \Illuminate\Database\Eloquent\Collection
  16859. * @static
  16860. */
  16861. public static function findMany($ids, $columns = [])
  16862. {
  16863. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16864. return $instance->findMany($ids, $columns);
  16865. }
  16866. /**
  16867. * Find a model by its primary key or throw an exception.
  16868. *
  16869. * @param mixed $id
  16870. * @param array $columns
  16871. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  16872. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16873. * @static
  16874. */
  16875. public static function findOrFail($id, $columns = [])
  16876. {
  16877. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16878. return $instance->findOrFail($id, $columns);
  16879. }
  16880. /**
  16881. * Find a model by its primary key or return fresh model instance.
  16882. *
  16883. * @param mixed $id
  16884. * @param array $columns
  16885. * @return \Illuminate\Database\Eloquent\Model|static
  16886. * @static
  16887. */
  16888. public static function findOrNew($id, $columns = [])
  16889. {
  16890. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16891. return $instance->findOrNew($id, $columns);
  16892. }
  16893. /**
  16894. * Get the first record matching the attributes or instantiate it.
  16895. *
  16896. * @param array $attributes
  16897. * @param array $values
  16898. * @return \Illuminate\Database\Eloquent\Model|static
  16899. * @static
  16900. */
  16901. public static function firstOrNew($attributes = [], $values = [])
  16902. {
  16903. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16904. return $instance->firstOrNew($attributes, $values);
  16905. }
  16906. /**
  16907. * Get the first record matching the attributes or create it.
  16908. *
  16909. * @param array $attributes
  16910. * @param array $values
  16911. * @return \Illuminate\Database\Eloquent\Model|static
  16912. * @static
  16913. */
  16914. public static function firstOrCreate($attributes = [], $values = [])
  16915. {
  16916. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16917. return $instance->firstOrCreate($attributes, $values);
  16918. }
  16919. /**
  16920. * Create or update a record matching the attributes, and fill it with values.
  16921. *
  16922. * @param array $attributes
  16923. * @param array $values
  16924. * @return \Illuminate\Database\Eloquent\Model|static
  16925. * @static
  16926. */
  16927. public static function updateOrCreate($attributes, $values = [])
  16928. {
  16929. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16930. return $instance->updateOrCreate($attributes, $values);
  16931. }
  16932. /**
  16933. * Execute the query and get the first result or throw an exception.
  16934. *
  16935. * @param array $columns
  16936. * @return \Illuminate\Database\Eloquent\Model|static
  16937. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16938. * @static
  16939. */
  16940. public static function firstOrFail($columns = [])
  16941. {
  16942. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16943. return $instance->firstOrFail($columns);
  16944. }
  16945. /**
  16946. * Execute the query and get the first result or call a callback.
  16947. *
  16948. * @param \Closure|array $columns
  16949. * @param \Closure|null $callback
  16950. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  16951. * @static
  16952. */
  16953. public static function firstOr($columns = [], $callback = null)
  16954. {
  16955. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16956. return $instance->firstOr($columns, $callback);
  16957. }
  16958. /**
  16959. * Execute the query and get the first result if it's the sole matching record.
  16960. *
  16961. * @param array|string $columns
  16962. * @return \Illuminate\Database\Eloquent\Model
  16963. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  16964. * @throws \Illuminate\Database\MultipleRecordsFoundException
  16965. * @static
  16966. */
  16967. public static function sole($columns = [])
  16968. {
  16969. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16970. return $instance->sole($columns);
  16971. }
  16972. /**
  16973. * Get a single column's value from the first result of a query.
  16974. *
  16975. * @param string|\Illuminate\Database\Query\Expression $column
  16976. * @return mixed
  16977. * @static
  16978. */
  16979. public static function value($column)
  16980. {
  16981. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16982. return $instance->value($column);
  16983. }
  16984. /**
  16985. * Execute the query as a "select" statement.
  16986. *
  16987. * @param array|string $columns
  16988. * @return \Illuminate\Database\Eloquent\Collection|static[]
  16989. * @static
  16990. */
  16991. public static function get($columns = [])
  16992. {
  16993. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16994. return $instance->get($columns);
  16995. }
  16996. /**
  16997. * Get the hydrated models without eager loading.
  16998. *
  16999. * @param array|string $columns
  17000. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  17001. * @static
  17002. */
  17003. public static function getModels($columns = [])
  17004. {
  17005. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17006. return $instance->getModels($columns);
  17007. }
  17008. /**
  17009. * Eager load the relationships for the models.
  17010. *
  17011. * @param array $models
  17012. * @return array
  17013. * @static
  17014. */
  17015. public static function eagerLoadRelations($models)
  17016. {
  17017. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17018. return $instance->eagerLoadRelations($models);
  17019. }
  17020. /**
  17021. * Get a lazy collection for the given query.
  17022. *
  17023. * @return \Illuminate\Support\LazyCollection
  17024. * @static
  17025. */
  17026. public static function cursor()
  17027. {
  17028. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17029. return $instance->cursor();
  17030. }
  17031. /**
  17032. * Get an array with the values of a given column.
  17033. *
  17034. * @param string|\Illuminate\Database\Query\Expression $column
  17035. * @param string|null $key
  17036. * @return \Illuminate\Support\Collection
  17037. * @static
  17038. */
  17039. public static function pluck($column, $key = null)
  17040. {
  17041. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17042. return $instance->pluck($column, $key);
  17043. }
  17044. /**
  17045. * Paginate the given query.
  17046. *
  17047. * @param int|null $perPage
  17048. * @param array $columns
  17049. * @param string $pageName
  17050. * @param int|null $page
  17051. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  17052. * @throws \InvalidArgumentException
  17053. * @static
  17054. */
  17055. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  17056. {
  17057. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17058. return $instance->paginate($perPage, $columns, $pageName, $page);
  17059. }
  17060. /**
  17061. * Paginate the given query into a simple paginator.
  17062. *
  17063. * @param int|null $perPage
  17064. * @param array $columns
  17065. * @param string $pageName
  17066. * @param int|null $page
  17067. * @return \Illuminate\Contracts\Pagination\Paginator
  17068. * @static
  17069. */
  17070. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  17071. {
  17072. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17073. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  17074. }
  17075. /**
  17076. * Paginate the given query into a cursor paginator.
  17077. *
  17078. * @param int|null $perPage
  17079. * @param array $columns
  17080. * @param string $cursorName
  17081. * @param \Illuminate\Pagination\Cursor|string|null $cursor
  17082. * @return \Illuminate\Contracts\Pagination\CursorPaginator
  17083. * @static
  17084. */
  17085. public static function cursorPaginate($perPage = null, $columns = [], $cursorName = 'cursor', $cursor = null)
  17086. {
  17087. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17088. return $instance->cursorPaginate($perPage, $columns, $cursorName, $cursor);
  17089. }
  17090. /**
  17091. * Save a new model and return the instance.
  17092. *
  17093. * @param array $attributes
  17094. * @return \Illuminate\Database\Eloquent\Model|$this
  17095. * @static
  17096. */
  17097. public static function create($attributes = [])
  17098. {
  17099. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17100. return $instance->create($attributes);
  17101. }
  17102. /**
  17103. * Save a new model and return the instance. Allow mass-assignment.
  17104. *
  17105. * @param array $attributes
  17106. * @return \Illuminate\Database\Eloquent\Model|$this
  17107. * @static
  17108. */
  17109. public static function forceCreate($attributes)
  17110. {
  17111. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17112. return $instance->forceCreate($attributes);
  17113. }
  17114. /**
  17115. * Insert new records or update the existing ones.
  17116. *
  17117. * @param array $values
  17118. * @param array|string $uniqueBy
  17119. * @param array|null $update
  17120. * @return int
  17121. * @static
  17122. */
  17123. public static function upsert($values, $uniqueBy, $update = null)
  17124. {
  17125. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17126. return $instance->upsert($values, $uniqueBy, $update);
  17127. }
  17128. /**
  17129. * Register a replacement for the default delete function.
  17130. *
  17131. * @param \Closure $callback
  17132. * @return void
  17133. * @static
  17134. */
  17135. public static function onDelete($callback)
  17136. {
  17137. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17138. $instance->onDelete($callback);
  17139. }
  17140. /**
  17141. * Call the given local model scopes.
  17142. *
  17143. * @param array|string $scopes
  17144. * @return static|mixed
  17145. * @static
  17146. */
  17147. public static function scopes($scopes)
  17148. {
  17149. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17150. return $instance->scopes($scopes);
  17151. }
  17152. /**
  17153. * Apply the scopes to the Eloquent builder instance and return it.
  17154. *
  17155. * @return static
  17156. * @static
  17157. */
  17158. public static function applyScopes()
  17159. {
  17160. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17161. return $instance->applyScopes();
  17162. }
  17163. /**
  17164. * Prevent the specified relations from being eager loaded.
  17165. *
  17166. * @param mixed $relations
  17167. * @return \Illuminate\Database\Eloquent\Builder|static
  17168. * @static
  17169. */
  17170. public static function without($relations)
  17171. {
  17172. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17173. return $instance->without($relations);
  17174. }
  17175. /**
  17176. * Set the relationships that should be eager loaded while removing any previously added eager loading specifications.
  17177. *
  17178. * @param mixed $relations
  17179. * @return \Illuminate\Database\Eloquent\Builder|static
  17180. * @static
  17181. */
  17182. public static function withOnly($relations)
  17183. {
  17184. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17185. return $instance->withOnly($relations);
  17186. }
  17187. /**
  17188. * Create a new instance of the model being queried.
  17189. *
  17190. * @param array $attributes
  17191. * @return \Illuminate\Database\Eloquent\Model|static
  17192. * @static
  17193. */
  17194. public static function newModelInstance($attributes = [])
  17195. {
  17196. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17197. return $instance->newModelInstance($attributes);
  17198. }
  17199. /**
  17200. * Apply query-time casts to the model instance.
  17201. *
  17202. * @param array $casts
  17203. * @return \Illuminate\Database\Eloquent\Builder|static
  17204. * @static
  17205. */
  17206. public static function withCasts($casts)
  17207. {
  17208. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17209. return $instance->withCasts($casts);
  17210. }
  17211. /**
  17212. * Get the underlying query builder instance.
  17213. *
  17214. * @return \Illuminate\Database\Query\Builder
  17215. * @static
  17216. */
  17217. public static function getQuery()
  17218. {
  17219. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17220. return $instance->getQuery();
  17221. }
  17222. /**
  17223. * Set the underlying query builder instance.
  17224. *
  17225. * @param \Illuminate\Database\Query\Builder $query
  17226. * @return \Illuminate\Database\Eloquent\Builder|static
  17227. * @static
  17228. */
  17229. public static function setQuery($query)
  17230. {
  17231. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17232. return $instance->setQuery($query);
  17233. }
  17234. /**
  17235. * Get a base query builder instance.
  17236. *
  17237. * @return \Illuminate\Database\Query\Builder
  17238. * @static
  17239. */
  17240. public static function toBase()
  17241. {
  17242. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17243. return $instance->toBase();
  17244. }
  17245. /**
  17246. * Get the relationships being eagerly loaded.
  17247. *
  17248. * @return array
  17249. * @static
  17250. */
  17251. public static function getEagerLoads()
  17252. {
  17253. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17254. return $instance->getEagerLoads();
  17255. }
  17256. /**
  17257. * Set the relationships being eagerly loaded.
  17258. *
  17259. * @param array $eagerLoad
  17260. * @return \Illuminate\Database\Eloquent\Builder|static
  17261. * @static
  17262. */
  17263. public static function setEagerLoads($eagerLoad)
  17264. {
  17265. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17266. return $instance->setEagerLoads($eagerLoad);
  17267. }
  17268. /**
  17269. * Get the model instance being queried.
  17270. *
  17271. * @return \Illuminate\Database\Eloquent\Model|static
  17272. * @static
  17273. */
  17274. public static function getModel()
  17275. {
  17276. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17277. return $instance->getModel();
  17278. }
  17279. /**
  17280. * Set a model instance for the model being queried.
  17281. *
  17282. * @param \Illuminate\Database\Eloquent\Model $model
  17283. * @return \Illuminate\Database\Eloquent\Builder|static
  17284. * @static
  17285. */
  17286. public static function setModel($model)
  17287. {
  17288. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17289. return $instance->setModel($model);
  17290. }
  17291. /**
  17292. * Get the given macro by name.
  17293. *
  17294. * @param string $name
  17295. * @return \Closure
  17296. * @static
  17297. */
  17298. public static function getMacro($name)
  17299. {
  17300. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17301. return $instance->getMacro($name);
  17302. }
  17303. /**
  17304. * Checks if a macro is registered.
  17305. *
  17306. * @param string $name
  17307. * @return bool
  17308. * @static
  17309. */
  17310. public static function hasMacro($name)
  17311. {
  17312. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17313. return $instance->hasMacro($name);
  17314. }
  17315. /**
  17316. * Get the given global macro by name.
  17317. *
  17318. * @param string $name
  17319. * @return \Closure
  17320. * @static
  17321. */
  17322. public static function getGlobalMacro($name)
  17323. {
  17324. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  17325. }
  17326. /**
  17327. * Checks if a global macro is registered.
  17328. *
  17329. * @param string $name
  17330. * @return bool
  17331. * @static
  17332. */
  17333. public static function hasGlobalMacro($name)
  17334. {
  17335. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  17336. }
  17337. /**
  17338. * Clone the Eloquent query builder.
  17339. *
  17340. * @return static
  17341. * @static
  17342. */
  17343. public static function clone()
  17344. {
  17345. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17346. return $instance->clone();
  17347. }
  17348. /**
  17349. * Add a relationship count / exists condition to the query.
  17350. *
  17351. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  17352. * @param string $operator
  17353. * @param int $count
  17354. * @param string $boolean
  17355. * @param \Closure|null $callback
  17356. * @return \Illuminate\Database\Eloquent\Builder|static
  17357. * @throws \RuntimeException
  17358. * @static
  17359. */
  17360. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  17361. {
  17362. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17363. return $instance->has($relation, $operator, $count, $boolean, $callback);
  17364. }
  17365. /**
  17366. * Add a relationship count / exists condition to the query with an "or".
  17367. *
  17368. * @param string $relation
  17369. * @param string $operator
  17370. * @param int $count
  17371. * @return \Illuminate\Database\Eloquent\Builder|static
  17372. * @static
  17373. */
  17374. public static function orHas($relation, $operator = '>=', $count = 1)
  17375. {
  17376. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17377. return $instance->orHas($relation, $operator, $count);
  17378. }
  17379. /**
  17380. * Add a relationship count / exists condition to the query.
  17381. *
  17382. * @param string $relation
  17383. * @param string $boolean
  17384. * @param \Closure|null $callback
  17385. * @return \Illuminate\Database\Eloquent\Builder|static
  17386. * @static
  17387. */
  17388. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  17389. {
  17390. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17391. return $instance->doesntHave($relation, $boolean, $callback);
  17392. }
  17393. /**
  17394. * Add a relationship count / exists condition to the query with an "or".
  17395. *
  17396. * @param string $relation
  17397. * @return \Illuminate\Database\Eloquent\Builder|static
  17398. * @static
  17399. */
  17400. public static function orDoesntHave($relation)
  17401. {
  17402. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17403. return $instance->orDoesntHave($relation);
  17404. }
  17405. /**
  17406. * Add a relationship count / exists condition to the query with where clauses.
  17407. *
  17408. * @param string $relation
  17409. * @param \Closure|null $callback
  17410. * @param string $operator
  17411. * @param int $count
  17412. * @return \Illuminate\Database\Eloquent\Builder|static
  17413. * @static
  17414. */
  17415. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  17416. {
  17417. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17418. return $instance->whereHas($relation, $callback, $operator, $count);
  17419. }
  17420. /**
  17421. * Add a relationship count / exists condition to the query with where clauses and an "or".
  17422. *
  17423. * @param string $relation
  17424. * @param \Closure|null $callback
  17425. * @param string $operator
  17426. * @param int $count
  17427. * @return \Illuminate\Database\Eloquent\Builder|static
  17428. * @static
  17429. */
  17430. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  17431. {
  17432. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17433. return $instance->orWhereHas($relation, $callback, $operator, $count);
  17434. }
  17435. /**
  17436. * Add a relationship count / exists condition to the query with where clauses.
  17437. *
  17438. * @param string $relation
  17439. * @param \Closure|null $callback
  17440. * @return \Illuminate\Database\Eloquent\Builder|static
  17441. * @static
  17442. */
  17443. public static function whereDoesntHave($relation, $callback = null)
  17444. {
  17445. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17446. return $instance->whereDoesntHave($relation, $callback);
  17447. }
  17448. /**
  17449. * Add a relationship count / exists condition to the query with where clauses and an "or".
  17450. *
  17451. * @param string $relation
  17452. * @param \Closure|null $callback
  17453. * @return \Illuminate\Database\Eloquent\Builder|static
  17454. * @static
  17455. */
  17456. public static function orWhereDoesntHave($relation, $callback = null)
  17457. {
  17458. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17459. return $instance->orWhereDoesntHave($relation, $callback);
  17460. }
  17461. /**
  17462. * Add a polymorphic relationship count / exists condition to the query.
  17463. *
  17464. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17465. * @param string|array $types
  17466. * @param string $operator
  17467. * @param int $count
  17468. * @param string $boolean
  17469. * @param \Closure|null $callback
  17470. * @return \Illuminate\Database\Eloquent\Builder|static
  17471. * @static
  17472. */
  17473. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  17474. {
  17475. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17476. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  17477. }
  17478. /**
  17479. * Add a polymorphic relationship count / exists condition to the query with an "or".
  17480. *
  17481. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17482. * @param string|array $types
  17483. * @param string $operator
  17484. * @param int $count
  17485. * @return \Illuminate\Database\Eloquent\Builder|static
  17486. * @static
  17487. */
  17488. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  17489. {
  17490. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17491. return $instance->orHasMorph($relation, $types, $operator, $count);
  17492. }
  17493. /**
  17494. * Add a polymorphic relationship count / exists condition to the query.
  17495. *
  17496. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17497. * @param string|array $types
  17498. * @param string $boolean
  17499. * @param \Closure|null $callback
  17500. * @return \Illuminate\Database\Eloquent\Builder|static
  17501. * @static
  17502. */
  17503. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  17504. {
  17505. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17506. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  17507. }
  17508. /**
  17509. * Add a polymorphic relationship count / exists condition to the query with an "or".
  17510. *
  17511. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17512. * @param string|array $types
  17513. * @return \Illuminate\Database\Eloquent\Builder|static
  17514. * @static
  17515. */
  17516. public static function orDoesntHaveMorph($relation, $types)
  17517. {
  17518. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17519. return $instance->orDoesntHaveMorph($relation, $types);
  17520. }
  17521. /**
  17522. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  17523. *
  17524. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17525. * @param string|array $types
  17526. * @param \Closure|null $callback
  17527. * @param string $operator
  17528. * @param int $count
  17529. * @return \Illuminate\Database\Eloquent\Builder|static
  17530. * @static
  17531. */
  17532. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  17533. {
  17534. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17535. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  17536. }
  17537. /**
  17538. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  17539. *
  17540. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17541. * @param string|array $types
  17542. * @param \Closure|null $callback
  17543. * @param string $operator
  17544. * @param int $count
  17545. * @return \Illuminate\Database\Eloquent\Builder|static
  17546. * @static
  17547. */
  17548. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  17549. {
  17550. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17551. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  17552. }
  17553. /**
  17554. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  17555. *
  17556. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17557. * @param string|array $types
  17558. * @param \Closure|null $callback
  17559. * @return \Illuminate\Database\Eloquent\Builder|static
  17560. * @static
  17561. */
  17562. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  17563. {
  17564. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17565. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  17566. }
  17567. /**
  17568. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  17569. *
  17570. * @param \Illuminate\Database\Eloquent\Relations\MorphTo|string $relation
  17571. * @param string|array $types
  17572. * @param \Closure|null $callback
  17573. * @return \Illuminate\Database\Eloquent\Builder|static
  17574. * @static
  17575. */
  17576. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  17577. {
  17578. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17579. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  17580. }
  17581. /**
  17582. * Add subselect queries to include an aggregate value for a relationship.
  17583. *
  17584. * @param mixed $relations
  17585. * @param string $column
  17586. * @param string $function
  17587. * @return \Illuminate\Database\Eloquent\Builder|static
  17588. * @static
  17589. */
  17590. public static function withAggregate($relations, $column, $function = null)
  17591. {
  17592. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17593. return $instance->withAggregate($relations, $column, $function);
  17594. }
  17595. /**
  17596. * Add subselect queries to count the relations.
  17597. *
  17598. * @param mixed $relations
  17599. * @return \Illuminate\Database\Eloquent\Builder|static
  17600. * @static
  17601. */
  17602. public static function withCount($relations)
  17603. {
  17604. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17605. return $instance->withCount($relations);
  17606. }
  17607. /**
  17608. * Add subselect queries to include the max of the relation's column.
  17609. *
  17610. * @param string|array $relation
  17611. * @param string $column
  17612. * @return \Illuminate\Database\Eloquent\Builder|static
  17613. * @static
  17614. */
  17615. public static function withMax($relation, $column)
  17616. {
  17617. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17618. return $instance->withMax($relation, $column);
  17619. }
  17620. /**
  17621. * Add subselect queries to include the min of the relation's column.
  17622. *
  17623. * @param string|array $relation
  17624. * @param string $column
  17625. * @return \Illuminate\Database\Eloquent\Builder|static
  17626. * @static
  17627. */
  17628. public static function withMin($relation, $column)
  17629. {
  17630. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17631. return $instance->withMin($relation, $column);
  17632. }
  17633. /**
  17634. * Add subselect queries to include the sum of the relation's column.
  17635. *
  17636. * @param string|array $relation
  17637. * @param string $column
  17638. * @return \Illuminate\Database\Eloquent\Builder|static
  17639. * @static
  17640. */
  17641. public static function withSum($relation, $column)
  17642. {
  17643. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17644. return $instance->withSum($relation, $column);
  17645. }
  17646. /**
  17647. * Add subselect queries to include the average of the relation's column.
  17648. *
  17649. * @param string|array $relation
  17650. * @param string $column
  17651. * @return \Illuminate\Database\Eloquent\Builder|static
  17652. * @static
  17653. */
  17654. public static function withAvg($relation, $column)
  17655. {
  17656. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17657. return $instance->withAvg($relation, $column);
  17658. }
  17659. /**
  17660. * Add subselect queries to include the existence of related models.
  17661. *
  17662. * @param string|array $relation
  17663. * @return \Illuminate\Database\Eloquent\Builder|static
  17664. * @static
  17665. */
  17666. public static function withExists($relation)
  17667. {
  17668. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17669. return $instance->withExists($relation);
  17670. }
  17671. /**
  17672. * Merge the where constraints from another query to the current query.
  17673. *
  17674. * @param \Illuminate\Database\Eloquent\Builder $from
  17675. * @return \Illuminate\Database\Eloquent\Builder|static
  17676. * @static
  17677. */
  17678. public static function mergeConstraintsFrom($from)
  17679. {
  17680. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17681. return $instance->mergeConstraintsFrom($from);
  17682. }
  17683. /**
  17684. * Explains the query.
  17685. *
  17686. * @return \Illuminate\Support\Collection
  17687. * @static
  17688. */
  17689. public static function explain()
  17690. {
  17691. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17692. return $instance->explain();
  17693. }
  17694. /**
  17695. * Chunk the results of the query.
  17696. *
  17697. * @param int $count
  17698. * @param callable $callback
  17699. * @return bool
  17700. * @static
  17701. */
  17702. public static function chunk($count, $callback)
  17703. {
  17704. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17705. return $instance->chunk($count, $callback);
  17706. }
  17707. /**
  17708. * Run a map over each item while chunking.
  17709. *
  17710. * @param callable $callback
  17711. * @param int $count
  17712. * @return \Illuminate\Support\Collection
  17713. * @static
  17714. */
  17715. public static function chunkMap($callback, $count = 1000)
  17716. {
  17717. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17718. return $instance->chunkMap($callback, $count);
  17719. }
  17720. /**
  17721. * Execute a callback over each item while chunking.
  17722. *
  17723. * @param callable $callback
  17724. * @param int $count
  17725. * @return bool
  17726. * @throws \RuntimeException
  17727. * @static
  17728. */
  17729. public static function each($callback, $count = 1000)
  17730. {
  17731. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17732. return $instance->each($callback, $count);
  17733. }
  17734. /**
  17735. * Chunk the results of a query by comparing IDs.
  17736. *
  17737. * @param int $count
  17738. * @param callable $callback
  17739. * @param string|null $column
  17740. * @param string|null $alias
  17741. * @return bool
  17742. * @static
  17743. */
  17744. public static function chunkById($count, $callback, $column = null, $alias = null)
  17745. {
  17746. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17747. return $instance->chunkById($count, $callback, $column, $alias);
  17748. }
  17749. /**
  17750. * Execute a callback over each item while chunking by ID.
  17751. *
  17752. * @param callable $callback
  17753. * @param int $count
  17754. * @param string|null $column
  17755. * @param string|null $alias
  17756. * @return bool
  17757. * @static
  17758. */
  17759. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  17760. {
  17761. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17762. return $instance->eachById($callback, $count, $column, $alias);
  17763. }
  17764. /**
  17765. * Query lazily, by chunks of the given size.
  17766. *
  17767. * @param int $chunkSize
  17768. * @return \Illuminate\Support\LazyCollection
  17769. * @throws \InvalidArgumentException
  17770. * @static
  17771. */
  17772. public static function lazy($chunkSize = 1000)
  17773. {
  17774. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17775. return $instance->lazy($chunkSize);
  17776. }
  17777. /**
  17778. * Query lazily, by chunking the results of a query by comparing IDs.
  17779. *
  17780. * @param int $count
  17781. * @param string|null $column
  17782. * @param string|null $alias
  17783. * @return \Illuminate\Support\LazyCollection
  17784. * @throws \InvalidArgumentException
  17785. * @static
  17786. */
  17787. public static function lazyById($chunkSize = 1000, $column = null, $alias = null)
  17788. {
  17789. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17790. return $instance->lazyById($chunkSize, $column, $alias);
  17791. }
  17792. /**
  17793. * Execute the query and get the first result.
  17794. *
  17795. * @param array|string $columns
  17796. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  17797. * @static
  17798. */
  17799. public static function first($columns = [])
  17800. {
  17801. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17802. return $instance->first($columns);
  17803. }
  17804. /**
  17805. * Execute the query and get the first result if it's the sole matching record.
  17806. *
  17807. * @param array|string $columns
  17808. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  17809. * @throws \Illuminate\Database\RecordsNotFoundException
  17810. * @throws \Illuminate\Database\MultipleRecordsFoundException
  17811. * @static
  17812. */
  17813. public static function baseSole($columns = [])
  17814. {
  17815. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17816. return $instance->baseSole($columns);
  17817. }
  17818. /**
  17819. * Pass the query to a given callback.
  17820. *
  17821. * @param callable $callback
  17822. * @return \Illuminate\Database\Eloquent\Builder|static
  17823. * @static
  17824. */
  17825. public static function tap($callback)
  17826. {
  17827. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17828. return $instance->tap($callback);
  17829. }
  17830. /**
  17831. * Apply the callback if the given "value" is truthy.
  17832. *
  17833. * @param mixed $value
  17834. * @param callable $callback
  17835. * @param callable|null $default
  17836. * @return $this|mixed
  17837. * @static
  17838. */
  17839. public static function when($value, $callback, $default = null)
  17840. {
  17841. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17842. return $instance->when($value, $callback, $default);
  17843. }
  17844. /**
  17845. * Apply the callback if the given "value" is falsy.
  17846. *
  17847. * @param mixed $value
  17848. * @param callable $callback
  17849. * @param callable|null $default
  17850. * @return $this|mixed
  17851. * @static
  17852. */
  17853. public static function unless($value, $callback, $default = null)
  17854. {
  17855. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  17856. return $instance->unless($value, $callback, $default);
  17857. }
  17858. /**
  17859. * Set the columns to be selected.
  17860. *
  17861. * @param array|mixed $columns
  17862. * @return \Illuminate\Database\Query\Builder
  17863. * @static
  17864. */
  17865. public static function select($columns = [])
  17866. {
  17867. /** @var \Illuminate\Database\Query\Builder $instance */
  17868. return $instance->select($columns);
  17869. }
  17870. /**
  17871. * Add a subselect expression to the query.
  17872. *
  17873. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17874. * @param string $as
  17875. * @return \Illuminate\Database\Query\Builder
  17876. * @throws \InvalidArgumentException
  17877. * @static
  17878. */
  17879. public static function selectSub($query, $as)
  17880. {
  17881. /** @var \Illuminate\Database\Query\Builder $instance */
  17882. return $instance->selectSub($query, $as);
  17883. }
  17884. /**
  17885. * Add a new "raw" select expression to the query.
  17886. *
  17887. * @param string $expression
  17888. * @param array $bindings
  17889. * @return \Illuminate\Database\Query\Builder
  17890. * @static
  17891. */
  17892. public static function selectRaw($expression, $bindings = [])
  17893. {
  17894. /** @var \Illuminate\Database\Query\Builder $instance */
  17895. return $instance->selectRaw($expression, $bindings);
  17896. }
  17897. /**
  17898. * Makes "from" fetch from a subquery.
  17899. *
  17900. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17901. * @param string $as
  17902. * @return \Illuminate\Database\Query\Builder
  17903. * @throws \InvalidArgumentException
  17904. * @static
  17905. */
  17906. public static function fromSub($query, $as)
  17907. {
  17908. /** @var \Illuminate\Database\Query\Builder $instance */
  17909. return $instance->fromSub($query, $as);
  17910. }
  17911. /**
  17912. * Add a raw from clause to the query.
  17913. *
  17914. * @param string $expression
  17915. * @param mixed $bindings
  17916. * @return \Illuminate\Database\Query\Builder
  17917. * @static
  17918. */
  17919. public static function fromRaw($expression, $bindings = [])
  17920. {
  17921. /** @var \Illuminate\Database\Query\Builder $instance */
  17922. return $instance->fromRaw($expression, $bindings);
  17923. }
  17924. /**
  17925. * Add a new select column to the query.
  17926. *
  17927. * @param array|mixed $column
  17928. * @return \Illuminate\Database\Query\Builder
  17929. * @static
  17930. */
  17931. public static function addSelect($column)
  17932. {
  17933. /** @var \Illuminate\Database\Query\Builder $instance */
  17934. return $instance->addSelect($column);
  17935. }
  17936. /**
  17937. * Force the query to only return distinct results.
  17938. *
  17939. * @param mixed $distinct
  17940. * @return \Illuminate\Database\Query\Builder
  17941. * @static
  17942. */
  17943. public static function distinct()
  17944. {
  17945. /** @var \Illuminate\Database\Query\Builder $instance */
  17946. return $instance->distinct();
  17947. }
  17948. /**
  17949. * Set the table which the query is targeting.
  17950. *
  17951. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  17952. * @param string|null $as
  17953. * @return \Illuminate\Database\Query\Builder
  17954. * @static
  17955. */
  17956. public static function from($table, $as = null)
  17957. {
  17958. /** @var \Illuminate\Database\Query\Builder $instance */
  17959. return $instance->from($table, $as);
  17960. }
  17961. /**
  17962. * Add a join clause to the query.
  17963. *
  17964. * @param string $table
  17965. * @param \Closure|string $first
  17966. * @param string|null $operator
  17967. * @param string|null $second
  17968. * @param string $type
  17969. * @param bool $where
  17970. * @return \Illuminate\Database\Query\Builder
  17971. * @static
  17972. */
  17973. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  17974. {
  17975. /** @var \Illuminate\Database\Query\Builder $instance */
  17976. return $instance->join($table, $first, $operator, $second, $type, $where);
  17977. }
  17978. /**
  17979. * Add a "join where" clause to the query.
  17980. *
  17981. * @param string $table
  17982. * @param \Closure|string $first
  17983. * @param string $operator
  17984. * @param string $second
  17985. * @param string $type
  17986. * @return \Illuminate\Database\Query\Builder
  17987. * @static
  17988. */
  17989. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  17990. {
  17991. /** @var \Illuminate\Database\Query\Builder $instance */
  17992. return $instance->joinWhere($table, $first, $operator, $second, $type);
  17993. }
  17994. /**
  17995. * Add a subquery join clause to the query.
  17996. *
  17997. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  17998. * @param string $as
  17999. * @param \Closure|string $first
  18000. * @param string|null $operator
  18001. * @param string|null $second
  18002. * @param string $type
  18003. * @param bool $where
  18004. * @return \Illuminate\Database\Query\Builder
  18005. * @throws \InvalidArgumentException
  18006. * @static
  18007. */
  18008. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  18009. {
  18010. /** @var \Illuminate\Database\Query\Builder $instance */
  18011. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  18012. }
  18013. /**
  18014. * Add a left join to the query.
  18015. *
  18016. * @param string $table
  18017. * @param \Closure|string $first
  18018. * @param string|null $operator
  18019. * @param string|null $second
  18020. * @return \Illuminate\Database\Query\Builder
  18021. * @static
  18022. */
  18023. public static function leftJoin($table, $first, $operator = null, $second = null)
  18024. {
  18025. /** @var \Illuminate\Database\Query\Builder $instance */
  18026. return $instance->leftJoin($table, $first, $operator, $second);
  18027. }
  18028. /**
  18029. * Add a "join where" clause to the query.
  18030. *
  18031. * @param string $table
  18032. * @param \Closure|string $first
  18033. * @param string $operator
  18034. * @param string $second
  18035. * @return \Illuminate\Database\Query\Builder
  18036. * @static
  18037. */
  18038. public static function leftJoinWhere($table, $first, $operator, $second)
  18039. {
  18040. /** @var \Illuminate\Database\Query\Builder $instance */
  18041. return $instance->leftJoinWhere($table, $first, $operator, $second);
  18042. }
  18043. /**
  18044. * Add a subquery left join to the query.
  18045. *
  18046. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  18047. * @param string $as
  18048. * @param \Closure|string $first
  18049. * @param string|null $operator
  18050. * @param string|null $second
  18051. * @return \Illuminate\Database\Query\Builder
  18052. * @static
  18053. */
  18054. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  18055. {
  18056. /** @var \Illuminate\Database\Query\Builder $instance */
  18057. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  18058. }
  18059. /**
  18060. * Add a right join to the query.
  18061. *
  18062. * @param string $table
  18063. * @param \Closure|string $first
  18064. * @param string|null $operator
  18065. * @param string|null $second
  18066. * @return \Illuminate\Database\Query\Builder
  18067. * @static
  18068. */
  18069. public static function rightJoin($table, $first, $operator = null, $second = null)
  18070. {
  18071. /** @var \Illuminate\Database\Query\Builder $instance */
  18072. return $instance->rightJoin($table, $first, $operator, $second);
  18073. }
  18074. /**
  18075. * Add a "right join where" clause to the query.
  18076. *
  18077. * @param string $table
  18078. * @param \Closure|string $first
  18079. * @param string $operator
  18080. * @param string $second
  18081. * @return \Illuminate\Database\Query\Builder
  18082. * @static
  18083. */
  18084. public static function rightJoinWhere($table, $first, $operator, $second)
  18085. {
  18086. /** @var \Illuminate\Database\Query\Builder $instance */
  18087. return $instance->rightJoinWhere($table, $first, $operator, $second);
  18088. }
  18089. /**
  18090. * Add a subquery right join to the query.
  18091. *
  18092. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Eloquent\Builder|string $query
  18093. * @param string $as
  18094. * @param \Closure|string $first
  18095. * @param string|null $operator
  18096. * @param string|null $second
  18097. * @return \Illuminate\Database\Query\Builder
  18098. * @static
  18099. */
  18100. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  18101. {
  18102. /** @var \Illuminate\Database\Query\Builder $instance */
  18103. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  18104. }
  18105. /**
  18106. * Add a "cross join" clause to the query.
  18107. *
  18108. * @param string $table
  18109. * @param \Closure|string|null $first
  18110. * @param string|null $operator
  18111. * @param string|null $second
  18112. * @return \Illuminate\Database\Query\Builder
  18113. * @static
  18114. */
  18115. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  18116. {
  18117. /** @var \Illuminate\Database\Query\Builder $instance */
  18118. return $instance->crossJoin($table, $first, $operator, $second);
  18119. }
  18120. /**
  18121. * Add a subquery cross join to the query.
  18122. *
  18123. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  18124. * @param string $as
  18125. * @return \Illuminate\Database\Query\Builder
  18126. * @static
  18127. */
  18128. public static function crossJoinSub($query, $as)
  18129. {
  18130. /** @var \Illuminate\Database\Query\Builder $instance */
  18131. return $instance->crossJoinSub($query, $as);
  18132. }
  18133. /**
  18134. * Merge an array of where clauses and bindings.
  18135. *
  18136. * @param array $wheres
  18137. * @param array $bindings
  18138. * @return void
  18139. * @static
  18140. */
  18141. public static function mergeWheres($wheres, $bindings)
  18142. {
  18143. /** @var \Illuminate\Database\Query\Builder $instance */
  18144. $instance->mergeWheres($wheres, $bindings);
  18145. }
  18146. /**
  18147. * Prepare the value and operator for a where clause.
  18148. *
  18149. * @param string $value
  18150. * @param string $operator
  18151. * @param bool $useDefault
  18152. * @return array
  18153. * @throws \InvalidArgumentException
  18154. * @static
  18155. */
  18156. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  18157. {
  18158. /** @var \Illuminate\Database\Query\Builder $instance */
  18159. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  18160. }
  18161. /**
  18162. * Add a "where" clause comparing two columns to the query.
  18163. *
  18164. * @param string|array $first
  18165. * @param string|null $operator
  18166. * @param string|null $second
  18167. * @param string|null $boolean
  18168. * @return \Illuminate\Database\Query\Builder
  18169. * @static
  18170. */
  18171. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  18172. {
  18173. /** @var \Illuminate\Database\Query\Builder $instance */
  18174. return $instance->whereColumn($first, $operator, $second, $boolean);
  18175. }
  18176. /**
  18177. * Add an "or where" clause comparing two columns to the query.
  18178. *
  18179. * @param string|array $first
  18180. * @param string|null $operator
  18181. * @param string|null $second
  18182. * @return \Illuminate\Database\Query\Builder
  18183. * @static
  18184. */
  18185. public static function orWhereColumn($first, $operator = null, $second = null)
  18186. {
  18187. /** @var \Illuminate\Database\Query\Builder $instance */
  18188. return $instance->orWhereColumn($first, $operator, $second);
  18189. }
  18190. /**
  18191. * Add a raw where clause to the query.
  18192. *
  18193. * @param string $sql
  18194. * @param mixed $bindings
  18195. * @param string $boolean
  18196. * @return \Illuminate\Database\Query\Builder
  18197. * @static
  18198. */
  18199. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  18200. {
  18201. /** @var \Illuminate\Database\Query\Builder $instance */
  18202. return $instance->whereRaw($sql, $bindings, $boolean);
  18203. }
  18204. /**
  18205. * Add a raw or where clause to the query.
  18206. *
  18207. * @param string $sql
  18208. * @param mixed $bindings
  18209. * @return \Illuminate\Database\Query\Builder
  18210. * @static
  18211. */
  18212. public static function orWhereRaw($sql, $bindings = [])
  18213. {
  18214. /** @var \Illuminate\Database\Query\Builder $instance */
  18215. return $instance->orWhereRaw($sql, $bindings);
  18216. }
  18217. /**
  18218. * Add a "where in" clause to the query.
  18219. *
  18220. * @param string $column
  18221. * @param mixed $values
  18222. * @param string $boolean
  18223. * @param bool $not
  18224. * @return \Illuminate\Database\Query\Builder
  18225. * @static
  18226. */
  18227. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  18228. {
  18229. /** @var \Illuminate\Database\Query\Builder $instance */
  18230. return $instance->whereIn($column, $values, $boolean, $not);
  18231. }
  18232. /**
  18233. * Add an "or where in" clause to the query.
  18234. *
  18235. * @param string $column
  18236. * @param mixed $values
  18237. * @return \Illuminate\Database\Query\Builder
  18238. * @static
  18239. */
  18240. public static function orWhereIn($column, $values)
  18241. {
  18242. /** @var \Illuminate\Database\Query\Builder $instance */
  18243. return $instance->orWhereIn($column, $values);
  18244. }
  18245. /**
  18246. * Add a "where not in" clause to the query.
  18247. *
  18248. * @param string $column
  18249. * @param mixed $values
  18250. * @param string $boolean
  18251. * @return \Illuminate\Database\Query\Builder
  18252. * @static
  18253. */
  18254. public static function whereNotIn($column, $values, $boolean = 'and')
  18255. {
  18256. /** @var \Illuminate\Database\Query\Builder $instance */
  18257. return $instance->whereNotIn($column, $values, $boolean);
  18258. }
  18259. /**
  18260. * Add an "or where not in" clause to the query.
  18261. *
  18262. * @param string $column
  18263. * @param mixed $values
  18264. * @return \Illuminate\Database\Query\Builder
  18265. * @static
  18266. */
  18267. public static function orWhereNotIn($column, $values)
  18268. {
  18269. /** @var \Illuminate\Database\Query\Builder $instance */
  18270. return $instance->orWhereNotIn($column, $values);
  18271. }
  18272. /**
  18273. * Add a "where in raw" clause for integer values to the query.
  18274. *
  18275. * @param string $column
  18276. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  18277. * @param string $boolean
  18278. * @param bool $not
  18279. * @return \Illuminate\Database\Query\Builder
  18280. * @static
  18281. */
  18282. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  18283. {
  18284. /** @var \Illuminate\Database\Query\Builder $instance */
  18285. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  18286. }
  18287. /**
  18288. * Add an "or where in raw" clause for integer values to the query.
  18289. *
  18290. * @param string $column
  18291. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  18292. * @return \Illuminate\Database\Query\Builder
  18293. * @static
  18294. */
  18295. public static function orWhereIntegerInRaw($column, $values)
  18296. {
  18297. /** @var \Illuminate\Database\Query\Builder $instance */
  18298. return $instance->orWhereIntegerInRaw($column, $values);
  18299. }
  18300. /**
  18301. * Add a "where not in raw" clause for integer values to the query.
  18302. *
  18303. * @param string $column
  18304. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  18305. * @param string $boolean
  18306. * @return \Illuminate\Database\Query\Builder
  18307. * @static
  18308. */
  18309. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  18310. {
  18311. /** @var \Illuminate\Database\Query\Builder $instance */
  18312. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  18313. }
  18314. /**
  18315. * Add an "or where not in raw" clause for integer values to the query.
  18316. *
  18317. * @param string $column
  18318. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  18319. * @return \Illuminate\Database\Query\Builder
  18320. * @static
  18321. */
  18322. public static function orWhereIntegerNotInRaw($column, $values)
  18323. {
  18324. /** @var \Illuminate\Database\Query\Builder $instance */
  18325. return $instance->orWhereIntegerNotInRaw($column, $values);
  18326. }
  18327. /**
  18328. * Add a "where null" clause to the query.
  18329. *
  18330. * @param string|array $columns
  18331. * @param string $boolean
  18332. * @param bool $not
  18333. * @return \Illuminate\Database\Query\Builder
  18334. * @static
  18335. */
  18336. public static function whereNull($columns, $boolean = 'and', $not = false)
  18337. {
  18338. /** @var \Illuminate\Database\Query\Builder $instance */
  18339. return $instance->whereNull($columns, $boolean, $not);
  18340. }
  18341. /**
  18342. * Add an "or where null" clause to the query.
  18343. *
  18344. * @param string|array $column
  18345. * @return \Illuminate\Database\Query\Builder
  18346. * @static
  18347. */
  18348. public static function orWhereNull($column)
  18349. {
  18350. /** @var \Illuminate\Database\Query\Builder $instance */
  18351. return $instance->orWhereNull($column);
  18352. }
  18353. /**
  18354. * Add a "where not null" clause to the query.
  18355. *
  18356. * @param string|array $columns
  18357. * @param string $boolean
  18358. * @return \Illuminate\Database\Query\Builder
  18359. * @static
  18360. */
  18361. public static function whereNotNull($columns, $boolean = 'and')
  18362. {
  18363. /** @var \Illuminate\Database\Query\Builder $instance */
  18364. return $instance->whereNotNull($columns, $boolean);
  18365. }
  18366. /**
  18367. * Add a where between statement to the query.
  18368. *
  18369. * @param string|\Illuminate\Database\Query\Expression $column
  18370. * @param array $values
  18371. * @param string $boolean
  18372. * @param bool $not
  18373. * @return \Illuminate\Database\Query\Builder
  18374. * @static
  18375. */
  18376. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  18377. {
  18378. /** @var \Illuminate\Database\Query\Builder $instance */
  18379. return $instance->whereBetween($column, $values, $boolean, $not);
  18380. }
  18381. /**
  18382. * Add a where between statement using columns to the query.
  18383. *
  18384. * @param string $column
  18385. * @param array $values
  18386. * @param string $boolean
  18387. * @param bool $not
  18388. * @return \Illuminate\Database\Query\Builder
  18389. * @static
  18390. */
  18391. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  18392. {
  18393. /** @var \Illuminate\Database\Query\Builder $instance */
  18394. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  18395. }
  18396. /**
  18397. * Add an or where between statement to the query.
  18398. *
  18399. * @param string $column
  18400. * @param array $values
  18401. * @return \Illuminate\Database\Query\Builder
  18402. * @static
  18403. */
  18404. public static function orWhereBetween($column, $values)
  18405. {
  18406. /** @var \Illuminate\Database\Query\Builder $instance */
  18407. return $instance->orWhereBetween($column, $values);
  18408. }
  18409. /**
  18410. * Add an or where between statement using columns to the query.
  18411. *
  18412. * @param string $column
  18413. * @param array $values
  18414. * @return \Illuminate\Database\Query\Builder
  18415. * @static
  18416. */
  18417. public static function orWhereBetweenColumns($column, $values)
  18418. {
  18419. /** @var \Illuminate\Database\Query\Builder $instance */
  18420. return $instance->orWhereBetweenColumns($column, $values);
  18421. }
  18422. /**
  18423. * Add a where not between statement to the query.
  18424. *
  18425. * @param string $column
  18426. * @param array $values
  18427. * @param string $boolean
  18428. * @return \Illuminate\Database\Query\Builder
  18429. * @static
  18430. */
  18431. public static function whereNotBetween($column, $values, $boolean = 'and')
  18432. {
  18433. /** @var \Illuminate\Database\Query\Builder $instance */
  18434. return $instance->whereNotBetween($column, $values, $boolean);
  18435. }
  18436. /**
  18437. * Add a where not between statement using columns to the query.
  18438. *
  18439. * @param string $column
  18440. * @param array $values
  18441. * @param string $boolean
  18442. * @return \Illuminate\Database\Query\Builder
  18443. * @static
  18444. */
  18445. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  18446. {
  18447. /** @var \Illuminate\Database\Query\Builder $instance */
  18448. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  18449. }
  18450. /**
  18451. * Add an or where not between statement to the query.
  18452. *
  18453. * @param string $column
  18454. * @param array $values
  18455. * @return \Illuminate\Database\Query\Builder
  18456. * @static
  18457. */
  18458. public static function orWhereNotBetween($column, $values)
  18459. {
  18460. /** @var \Illuminate\Database\Query\Builder $instance */
  18461. return $instance->orWhereNotBetween($column, $values);
  18462. }
  18463. /**
  18464. * Add an or where not between statement using columns to the query.
  18465. *
  18466. * @param string $column
  18467. * @param array $values
  18468. * @return \Illuminate\Database\Query\Builder
  18469. * @static
  18470. */
  18471. public static function orWhereNotBetweenColumns($column, $values)
  18472. {
  18473. /** @var \Illuminate\Database\Query\Builder $instance */
  18474. return $instance->orWhereNotBetweenColumns($column, $values);
  18475. }
  18476. /**
  18477. * Add an "or where not null" clause to the query.
  18478. *
  18479. * @param string $column
  18480. * @return \Illuminate\Database\Query\Builder
  18481. * @static
  18482. */
  18483. public static function orWhereNotNull($column)
  18484. {
  18485. /** @var \Illuminate\Database\Query\Builder $instance */
  18486. return $instance->orWhereNotNull($column);
  18487. }
  18488. /**
  18489. * Add a "where date" statement to the query.
  18490. *
  18491. * @param string $column
  18492. * @param string $operator
  18493. * @param \DateTimeInterface|string|null $value
  18494. * @param string $boolean
  18495. * @return \Illuminate\Database\Query\Builder
  18496. * @static
  18497. */
  18498. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  18499. {
  18500. /** @var \Illuminate\Database\Query\Builder $instance */
  18501. return $instance->whereDate($column, $operator, $value, $boolean);
  18502. }
  18503. /**
  18504. * Add an "or where date" statement to the query.
  18505. *
  18506. * @param string $column
  18507. * @param string $operator
  18508. * @param \DateTimeInterface|string|null $value
  18509. * @return \Illuminate\Database\Query\Builder
  18510. * @static
  18511. */
  18512. public static function orWhereDate($column, $operator, $value = null)
  18513. {
  18514. /** @var \Illuminate\Database\Query\Builder $instance */
  18515. return $instance->orWhereDate($column, $operator, $value);
  18516. }
  18517. /**
  18518. * Add a "where time" statement to the query.
  18519. *
  18520. * @param string $column
  18521. * @param string $operator
  18522. * @param \DateTimeInterface|string|null $value
  18523. * @param string $boolean
  18524. * @return \Illuminate\Database\Query\Builder
  18525. * @static
  18526. */
  18527. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  18528. {
  18529. /** @var \Illuminate\Database\Query\Builder $instance */
  18530. return $instance->whereTime($column, $operator, $value, $boolean);
  18531. }
  18532. /**
  18533. * Add an "or where time" statement to the query.
  18534. *
  18535. * @param string $column
  18536. * @param string $operator
  18537. * @param \DateTimeInterface|string|null $value
  18538. * @return \Illuminate\Database\Query\Builder
  18539. * @static
  18540. */
  18541. public static function orWhereTime($column, $operator, $value = null)
  18542. {
  18543. /** @var \Illuminate\Database\Query\Builder $instance */
  18544. return $instance->orWhereTime($column, $operator, $value);
  18545. }
  18546. /**
  18547. * Add a "where day" statement to the query.
  18548. *
  18549. * @param string $column
  18550. * @param string $operator
  18551. * @param \DateTimeInterface|string|null $value
  18552. * @param string $boolean
  18553. * @return \Illuminate\Database\Query\Builder
  18554. * @static
  18555. */
  18556. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  18557. {
  18558. /** @var \Illuminate\Database\Query\Builder $instance */
  18559. return $instance->whereDay($column, $operator, $value, $boolean);
  18560. }
  18561. /**
  18562. * Add an "or where day" statement to the query.
  18563. *
  18564. * @param string $column
  18565. * @param string $operator
  18566. * @param \DateTimeInterface|string|null $value
  18567. * @return \Illuminate\Database\Query\Builder
  18568. * @static
  18569. */
  18570. public static function orWhereDay($column, $operator, $value = null)
  18571. {
  18572. /** @var \Illuminate\Database\Query\Builder $instance */
  18573. return $instance->orWhereDay($column, $operator, $value);
  18574. }
  18575. /**
  18576. * Add a "where month" statement to the query.
  18577. *
  18578. * @param string $column
  18579. * @param string $operator
  18580. * @param \DateTimeInterface|string|null $value
  18581. * @param string $boolean
  18582. * @return \Illuminate\Database\Query\Builder
  18583. * @static
  18584. */
  18585. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  18586. {
  18587. /** @var \Illuminate\Database\Query\Builder $instance */
  18588. return $instance->whereMonth($column, $operator, $value, $boolean);
  18589. }
  18590. /**
  18591. * Add an "or where month" statement to the query.
  18592. *
  18593. * @param string $column
  18594. * @param string $operator
  18595. * @param \DateTimeInterface|string|null $value
  18596. * @return \Illuminate\Database\Query\Builder
  18597. * @static
  18598. */
  18599. public static function orWhereMonth($column, $operator, $value = null)
  18600. {
  18601. /** @var \Illuminate\Database\Query\Builder $instance */
  18602. return $instance->orWhereMonth($column, $operator, $value);
  18603. }
  18604. /**
  18605. * Add a "where year" statement to the query.
  18606. *
  18607. * @param string $column
  18608. * @param string $operator
  18609. * @param \DateTimeInterface|string|int|null $value
  18610. * @param string $boolean
  18611. * @return \Illuminate\Database\Query\Builder
  18612. * @static
  18613. */
  18614. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  18615. {
  18616. /** @var \Illuminate\Database\Query\Builder $instance */
  18617. return $instance->whereYear($column, $operator, $value, $boolean);
  18618. }
  18619. /**
  18620. * Add an "or where year" statement to the query.
  18621. *
  18622. * @param string $column
  18623. * @param string $operator
  18624. * @param \DateTimeInterface|string|int|null $value
  18625. * @return \Illuminate\Database\Query\Builder
  18626. * @static
  18627. */
  18628. public static function orWhereYear($column, $operator, $value = null)
  18629. {
  18630. /** @var \Illuminate\Database\Query\Builder $instance */
  18631. return $instance->orWhereYear($column, $operator, $value);
  18632. }
  18633. /**
  18634. * Add a nested where statement to the query.
  18635. *
  18636. * @param \Closure $callback
  18637. * @param string $boolean
  18638. * @return \Illuminate\Database\Query\Builder
  18639. * @static
  18640. */
  18641. public static function whereNested($callback, $boolean = 'and')
  18642. {
  18643. /** @var \Illuminate\Database\Query\Builder $instance */
  18644. return $instance->whereNested($callback, $boolean);
  18645. }
  18646. /**
  18647. * Create a new query instance for nested where condition.
  18648. *
  18649. * @return \Illuminate\Database\Query\Builder
  18650. * @static
  18651. */
  18652. public static function forNestedWhere()
  18653. {
  18654. /** @var \Illuminate\Database\Query\Builder $instance */
  18655. return $instance->forNestedWhere();
  18656. }
  18657. /**
  18658. * Add another query builder as a nested where to the query builder.
  18659. *
  18660. * @param \Illuminate\Database\Query\Builder $query
  18661. * @param string $boolean
  18662. * @return \Illuminate\Database\Query\Builder
  18663. * @static
  18664. */
  18665. public static function addNestedWhereQuery($query, $boolean = 'and')
  18666. {
  18667. /** @var \Illuminate\Database\Query\Builder $instance */
  18668. return $instance->addNestedWhereQuery($query, $boolean);
  18669. }
  18670. /**
  18671. * Add an exists clause to the query.
  18672. *
  18673. * @param \Closure $callback
  18674. * @param string $boolean
  18675. * @param bool $not
  18676. * @return \Illuminate\Database\Query\Builder
  18677. * @static
  18678. */
  18679. public static function whereExists($callback, $boolean = 'and', $not = false)
  18680. {
  18681. /** @var \Illuminate\Database\Query\Builder $instance */
  18682. return $instance->whereExists($callback, $boolean, $not);
  18683. }
  18684. /**
  18685. * Add an or exists clause to the query.
  18686. *
  18687. * @param \Closure $callback
  18688. * @param bool $not
  18689. * @return \Illuminate\Database\Query\Builder
  18690. * @static
  18691. */
  18692. public static function orWhereExists($callback, $not = false)
  18693. {
  18694. /** @var \Illuminate\Database\Query\Builder $instance */
  18695. return $instance->orWhereExists($callback, $not);
  18696. }
  18697. /**
  18698. * Add a where not exists clause to the query.
  18699. *
  18700. * @param \Closure $callback
  18701. * @param string $boolean
  18702. * @return \Illuminate\Database\Query\Builder
  18703. * @static
  18704. */
  18705. public static function whereNotExists($callback, $boolean = 'and')
  18706. {
  18707. /** @var \Illuminate\Database\Query\Builder $instance */
  18708. return $instance->whereNotExists($callback, $boolean);
  18709. }
  18710. /**
  18711. * Add a where not exists clause to the query.
  18712. *
  18713. * @param \Closure $callback
  18714. * @return \Illuminate\Database\Query\Builder
  18715. * @static
  18716. */
  18717. public static function orWhereNotExists($callback)
  18718. {
  18719. /** @var \Illuminate\Database\Query\Builder $instance */
  18720. return $instance->orWhereNotExists($callback);
  18721. }
  18722. /**
  18723. * Add an exists clause to the query.
  18724. *
  18725. * @param \Illuminate\Database\Query\Builder $query
  18726. * @param string $boolean
  18727. * @param bool $not
  18728. * @return \Illuminate\Database\Query\Builder
  18729. * @static
  18730. */
  18731. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  18732. {
  18733. /** @var \Illuminate\Database\Query\Builder $instance */
  18734. return $instance->addWhereExistsQuery($query, $boolean, $not);
  18735. }
  18736. /**
  18737. * Adds a where condition using row values.
  18738. *
  18739. * @param array $columns
  18740. * @param string $operator
  18741. * @param array $values
  18742. * @param string $boolean
  18743. * @return \Illuminate\Database\Query\Builder
  18744. * @throws \InvalidArgumentException
  18745. * @static
  18746. */
  18747. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  18748. {
  18749. /** @var \Illuminate\Database\Query\Builder $instance */
  18750. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  18751. }
  18752. /**
  18753. * Adds an or where condition using row values.
  18754. *
  18755. * @param array $columns
  18756. * @param string $operator
  18757. * @param array $values
  18758. * @return \Illuminate\Database\Query\Builder
  18759. * @static
  18760. */
  18761. public static function orWhereRowValues($columns, $operator, $values)
  18762. {
  18763. /** @var \Illuminate\Database\Query\Builder $instance */
  18764. return $instance->orWhereRowValues($columns, $operator, $values);
  18765. }
  18766. /**
  18767. * Add a "where JSON contains" clause to the query.
  18768. *
  18769. * @param string $column
  18770. * @param mixed $value
  18771. * @param string $boolean
  18772. * @param bool $not
  18773. * @return \Illuminate\Database\Query\Builder
  18774. * @static
  18775. */
  18776. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  18777. {
  18778. /** @var \Illuminate\Database\Query\Builder $instance */
  18779. return $instance->whereJsonContains($column, $value, $boolean, $not);
  18780. }
  18781. /**
  18782. * Add an "or where JSON contains" clause to the query.
  18783. *
  18784. * @param string $column
  18785. * @param mixed $value
  18786. * @return \Illuminate\Database\Query\Builder
  18787. * @static
  18788. */
  18789. public static function orWhereJsonContains($column, $value)
  18790. {
  18791. /** @var \Illuminate\Database\Query\Builder $instance */
  18792. return $instance->orWhereJsonContains($column, $value);
  18793. }
  18794. /**
  18795. * Add a "where JSON not contains" clause to the query.
  18796. *
  18797. * @param string $column
  18798. * @param mixed $value
  18799. * @param string $boolean
  18800. * @return \Illuminate\Database\Query\Builder
  18801. * @static
  18802. */
  18803. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  18804. {
  18805. /** @var \Illuminate\Database\Query\Builder $instance */
  18806. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  18807. }
  18808. /**
  18809. * Add an "or where JSON not contains" clause to the query.
  18810. *
  18811. * @param string $column
  18812. * @param mixed $value
  18813. * @return \Illuminate\Database\Query\Builder
  18814. * @static
  18815. */
  18816. public static function orWhereJsonDoesntContain($column, $value)
  18817. {
  18818. /** @var \Illuminate\Database\Query\Builder $instance */
  18819. return $instance->orWhereJsonDoesntContain($column, $value);
  18820. }
  18821. /**
  18822. * Add a "where JSON length" clause to the query.
  18823. *
  18824. * @param string $column
  18825. * @param mixed $operator
  18826. * @param mixed $value
  18827. * @param string $boolean
  18828. * @return \Illuminate\Database\Query\Builder
  18829. * @static
  18830. */
  18831. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  18832. {
  18833. /** @var \Illuminate\Database\Query\Builder $instance */
  18834. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  18835. }
  18836. /**
  18837. * Add an "or where JSON length" clause to the query.
  18838. *
  18839. * @param string $column
  18840. * @param mixed $operator
  18841. * @param mixed $value
  18842. * @return \Illuminate\Database\Query\Builder
  18843. * @static
  18844. */
  18845. public static function orWhereJsonLength($column, $operator, $value = null)
  18846. {
  18847. /** @var \Illuminate\Database\Query\Builder $instance */
  18848. return $instance->orWhereJsonLength($column, $operator, $value);
  18849. }
  18850. /**
  18851. * Handles dynamic "where" clauses to the query.
  18852. *
  18853. * @param string $method
  18854. * @param array $parameters
  18855. * @return \Illuminate\Database\Query\Builder
  18856. * @static
  18857. */
  18858. public static function dynamicWhere($method, $parameters)
  18859. {
  18860. /** @var \Illuminate\Database\Query\Builder $instance */
  18861. return $instance->dynamicWhere($method, $parameters);
  18862. }
  18863. /**
  18864. * Add a "group by" clause to the query.
  18865. *
  18866. * @param array|string $groups
  18867. * @return \Illuminate\Database\Query\Builder
  18868. * @static
  18869. */
  18870. public static function groupBy(...$groups)
  18871. {
  18872. /** @var \Illuminate\Database\Query\Builder $instance */
  18873. return $instance->groupBy(...$groups);
  18874. }
  18875. /**
  18876. * Add a raw groupBy clause to the query.
  18877. *
  18878. * @param string $sql
  18879. * @param array $bindings
  18880. * @return \Illuminate\Database\Query\Builder
  18881. * @static
  18882. */
  18883. public static function groupByRaw($sql, $bindings = [])
  18884. {
  18885. /** @var \Illuminate\Database\Query\Builder $instance */
  18886. return $instance->groupByRaw($sql, $bindings);
  18887. }
  18888. /**
  18889. * Add a "having" clause to the query.
  18890. *
  18891. * @param string $column
  18892. * @param string|null $operator
  18893. * @param string|null $value
  18894. * @param string $boolean
  18895. * @return \Illuminate\Database\Query\Builder
  18896. * @static
  18897. */
  18898. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  18899. {
  18900. /** @var \Illuminate\Database\Query\Builder $instance */
  18901. return $instance->having($column, $operator, $value, $boolean);
  18902. }
  18903. /**
  18904. * Add an "or having" clause to the query.
  18905. *
  18906. * @param string $column
  18907. * @param string|null $operator
  18908. * @param string|null $value
  18909. * @return \Illuminate\Database\Query\Builder
  18910. * @static
  18911. */
  18912. public static function orHaving($column, $operator = null, $value = null)
  18913. {
  18914. /** @var \Illuminate\Database\Query\Builder $instance */
  18915. return $instance->orHaving($column, $operator, $value);
  18916. }
  18917. /**
  18918. * Add a "having between " clause to the query.
  18919. *
  18920. * @param string $column
  18921. * @param array $values
  18922. * @param string $boolean
  18923. * @param bool $not
  18924. * @return \Illuminate\Database\Query\Builder
  18925. * @static
  18926. */
  18927. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  18928. {
  18929. /** @var \Illuminate\Database\Query\Builder $instance */
  18930. return $instance->havingBetween($column, $values, $boolean, $not);
  18931. }
  18932. /**
  18933. * Add a raw having clause to the query.
  18934. *
  18935. * @param string $sql
  18936. * @param array $bindings
  18937. * @param string $boolean
  18938. * @return \Illuminate\Database\Query\Builder
  18939. * @static
  18940. */
  18941. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  18942. {
  18943. /** @var \Illuminate\Database\Query\Builder $instance */
  18944. return $instance->havingRaw($sql, $bindings, $boolean);
  18945. }
  18946. /**
  18947. * Add a raw or having clause to the query.
  18948. *
  18949. * @param string $sql
  18950. * @param array $bindings
  18951. * @return \Illuminate\Database\Query\Builder
  18952. * @static
  18953. */
  18954. public static function orHavingRaw($sql, $bindings = [])
  18955. {
  18956. /** @var \Illuminate\Database\Query\Builder $instance */
  18957. return $instance->orHavingRaw($sql, $bindings);
  18958. }
  18959. /**
  18960. * Add an "order by" clause to the query.
  18961. *
  18962. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  18963. * @param string $direction
  18964. * @return \Illuminate\Database\Query\Builder
  18965. * @throws \InvalidArgumentException
  18966. * @static
  18967. */
  18968. public static function orderBy($column, $direction = 'asc')
  18969. {
  18970. /** @var \Illuminate\Database\Query\Builder $instance */
  18971. return $instance->orderBy($column, $direction);
  18972. }
  18973. /**
  18974. * Add a descending "order by" clause to the query.
  18975. *
  18976. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  18977. * @return \Illuminate\Database\Query\Builder
  18978. * @static
  18979. */
  18980. public static function orderByDesc($column)
  18981. {
  18982. /** @var \Illuminate\Database\Query\Builder $instance */
  18983. return $instance->orderByDesc($column);
  18984. }
  18985. /**
  18986. * Put the query's results in random order.
  18987. *
  18988. * @param string $seed
  18989. * @return \Illuminate\Database\Query\Builder
  18990. * @static
  18991. */
  18992. public static function inRandomOrder($seed = '')
  18993. {
  18994. /** @var \Illuminate\Database\Query\Builder $instance */
  18995. return $instance->inRandomOrder($seed);
  18996. }
  18997. /**
  18998. * Add a raw "order by" clause to the query.
  18999. *
  19000. * @param string $sql
  19001. * @param array $bindings
  19002. * @return \Illuminate\Database\Query\Builder
  19003. * @static
  19004. */
  19005. public static function orderByRaw($sql, $bindings = [])
  19006. {
  19007. /** @var \Illuminate\Database\Query\Builder $instance */
  19008. return $instance->orderByRaw($sql, $bindings);
  19009. }
  19010. /**
  19011. * Alias to set the "offset" value of the query.
  19012. *
  19013. * @param int $value
  19014. * @return \Illuminate\Database\Query\Builder
  19015. * @static
  19016. */
  19017. public static function skip($value)
  19018. {
  19019. /** @var \Illuminate\Database\Query\Builder $instance */
  19020. return $instance->skip($value);
  19021. }
  19022. /**
  19023. * Set the "offset" value of the query.
  19024. *
  19025. * @param int $value
  19026. * @return \Illuminate\Database\Query\Builder
  19027. * @static
  19028. */
  19029. public static function offset($value)
  19030. {
  19031. /** @var \Illuminate\Database\Query\Builder $instance */
  19032. return $instance->offset($value);
  19033. }
  19034. /**
  19035. * Alias to set the "limit" value of the query.
  19036. *
  19037. * @param int $value
  19038. * @return \Illuminate\Database\Query\Builder
  19039. * @static
  19040. */
  19041. public static function take($value)
  19042. {
  19043. /** @var \Illuminate\Database\Query\Builder $instance */
  19044. return $instance->take($value);
  19045. }
  19046. /**
  19047. * Set the "limit" value of the query.
  19048. *
  19049. * @param int $value
  19050. * @return \Illuminate\Database\Query\Builder
  19051. * @static
  19052. */
  19053. public static function limit($value)
  19054. {
  19055. /** @var \Illuminate\Database\Query\Builder $instance */
  19056. return $instance->limit($value);
  19057. }
  19058. /**
  19059. * Set the limit and offset for a given page.
  19060. *
  19061. * @param int $page
  19062. * @param int $perPage
  19063. * @return \Illuminate\Database\Query\Builder
  19064. * @static
  19065. */
  19066. public static function forPage($page, $perPage = 15)
  19067. {
  19068. /** @var \Illuminate\Database\Query\Builder $instance */
  19069. return $instance->forPage($page, $perPage);
  19070. }
  19071. /**
  19072. * Constrain the query to the previous "page" of results before a given ID.
  19073. *
  19074. * @param int $perPage
  19075. * @param int|null $lastId
  19076. * @param string $column
  19077. * @return \Illuminate\Database\Query\Builder
  19078. * @static
  19079. */
  19080. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  19081. {
  19082. /** @var \Illuminate\Database\Query\Builder $instance */
  19083. return $instance->forPageBeforeId($perPage, $lastId, $column);
  19084. }
  19085. /**
  19086. * Constrain the query to the next "page" of results after a given ID.
  19087. *
  19088. * @param int $perPage
  19089. * @param int|null $lastId
  19090. * @param string $column
  19091. * @return \Illuminate\Database\Query\Builder
  19092. * @static
  19093. */
  19094. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  19095. {
  19096. /** @var \Illuminate\Database\Query\Builder $instance */
  19097. return $instance->forPageAfterId($perPage, $lastId, $column);
  19098. }
  19099. /**
  19100. * Remove all existing orders and optionally add a new order.
  19101. *
  19102. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string|null $column
  19103. * @param string $direction
  19104. * @return \Illuminate\Database\Query\Builder
  19105. * @static
  19106. */
  19107. public static function reorder($column = null, $direction = 'asc')
  19108. {
  19109. /** @var \Illuminate\Database\Query\Builder $instance */
  19110. return $instance->reorder($column, $direction);
  19111. }
  19112. /**
  19113. * Add a union statement to the query.
  19114. *
  19115. * @param \Illuminate\Database\Query\Builder|\Closure $query
  19116. * @param bool $all
  19117. * @return \Illuminate\Database\Query\Builder
  19118. * @static
  19119. */
  19120. public static function union($query, $all = false)
  19121. {
  19122. /** @var \Illuminate\Database\Query\Builder $instance */
  19123. return $instance->union($query, $all);
  19124. }
  19125. /**
  19126. * Add a union all statement to the query.
  19127. *
  19128. * @param \Illuminate\Database\Query\Builder|\Closure $query
  19129. * @return \Illuminate\Database\Query\Builder
  19130. * @static
  19131. */
  19132. public static function unionAll($query)
  19133. {
  19134. /** @var \Illuminate\Database\Query\Builder $instance */
  19135. return $instance->unionAll($query);
  19136. }
  19137. /**
  19138. * Lock the selected rows in the table.
  19139. *
  19140. * @param string|bool $value
  19141. * @return \Illuminate\Database\Query\Builder
  19142. * @static
  19143. */
  19144. public static function lock($value = true)
  19145. {
  19146. /** @var \Illuminate\Database\Query\Builder $instance */
  19147. return $instance->lock($value);
  19148. }
  19149. /**
  19150. * Lock the selected rows in the table for updating.
  19151. *
  19152. * @return \Illuminate\Database\Query\Builder
  19153. * @static
  19154. */
  19155. public static function lockForUpdate()
  19156. {
  19157. /** @var \Illuminate\Database\Query\Builder $instance */
  19158. return $instance->lockForUpdate();
  19159. }
  19160. /**
  19161. * Share lock the selected rows in the table.
  19162. *
  19163. * @return \Illuminate\Database\Query\Builder
  19164. * @static
  19165. */
  19166. public static function sharedLock()
  19167. {
  19168. /** @var \Illuminate\Database\Query\Builder $instance */
  19169. return $instance->sharedLock();
  19170. }
  19171. /**
  19172. * Register a closure to be invoked before the query is executed.
  19173. *
  19174. * @param callable $callback
  19175. * @return \Illuminate\Database\Query\Builder
  19176. * @static
  19177. */
  19178. public static function beforeQuery($callback)
  19179. {
  19180. /** @var \Illuminate\Database\Query\Builder $instance */
  19181. return $instance->beforeQuery($callback);
  19182. }
  19183. /**
  19184. * Invoke the "before query" modification callbacks.
  19185. *
  19186. * @return void
  19187. * @static
  19188. */
  19189. public static function applyBeforeQueryCallbacks()
  19190. {
  19191. /** @var \Illuminate\Database\Query\Builder $instance */
  19192. $instance->applyBeforeQueryCallbacks();
  19193. }
  19194. /**
  19195. * Get the SQL representation of the query.
  19196. *
  19197. * @return string
  19198. * @static
  19199. */
  19200. public static function toSql()
  19201. {
  19202. /** @var \Illuminate\Database\Query\Builder $instance */
  19203. return $instance->toSql();
  19204. }
  19205. /**
  19206. * Get the count of the total records for the paginator.
  19207. *
  19208. * @param array $columns
  19209. * @return int
  19210. * @static
  19211. */
  19212. public static function getCountForPagination($columns = [])
  19213. {
  19214. /** @var \Illuminate\Database\Query\Builder $instance */
  19215. return $instance->getCountForPagination($columns);
  19216. }
  19217. /**
  19218. * Concatenate values of a given column as a string.
  19219. *
  19220. * @param string $column
  19221. * @param string $glue
  19222. * @return string
  19223. * @static
  19224. */
  19225. public static function implode($column, $glue = '')
  19226. {
  19227. /** @var \Illuminate\Database\Query\Builder $instance */
  19228. return $instance->implode($column, $glue);
  19229. }
  19230. /**
  19231. * Determine if any rows exist for the current query.
  19232. *
  19233. * @return bool
  19234. * @static
  19235. */
  19236. public static function exists()
  19237. {
  19238. /** @var \Illuminate\Database\Query\Builder $instance */
  19239. return $instance->exists();
  19240. }
  19241. /**
  19242. * Determine if no rows exist for the current query.
  19243. *
  19244. * @return bool
  19245. * @static
  19246. */
  19247. public static function doesntExist()
  19248. {
  19249. /** @var \Illuminate\Database\Query\Builder $instance */
  19250. return $instance->doesntExist();
  19251. }
  19252. /**
  19253. * Execute the given callback if no rows exist for the current query.
  19254. *
  19255. * @param \Closure $callback
  19256. * @return mixed
  19257. * @static
  19258. */
  19259. public static function existsOr($callback)
  19260. {
  19261. /** @var \Illuminate\Database\Query\Builder $instance */
  19262. return $instance->existsOr($callback);
  19263. }
  19264. /**
  19265. * Execute the given callback if rows exist for the current query.
  19266. *
  19267. * @param \Closure $callback
  19268. * @return mixed
  19269. * @static
  19270. */
  19271. public static function doesntExistOr($callback)
  19272. {
  19273. /** @var \Illuminate\Database\Query\Builder $instance */
  19274. return $instance->doesntExistOr($callback);
  19275. }
  19276. /**
  19277. * Retrieve the "count" result of the query.
  19278. *
  19279. * @param string $columns
  19280. * @return int
  19281. * @static
  19282. */
  19283. public static function count($columns = '*')
  19284. {
  19285. /** @var \Illuminate\Database\Query\Builder $instance */
  19286. return $instance->count($columns);
  19287. }
  19288. /**
  19289. * Retrieve the minimum value of a given column.
  19290. *
  19291. * @param string $column
  19292. * @return mixed
  19293. * @static
  19294. */
  19295. public static function min($column)
  19296. {
  19297. /** @var \Illuminate\Database\Query\Builder $instance */
  19298. return $instance->min($column);
  19299. }
  19300. /**
  19301. * Retrieve the maximum value of a given column.
  19302. *
  19303. * @param string $column
  19304. * @return mixed
  19305. * @static
  19306. */
  19307. public static function max($column)
  19308. {
  19309. /** @var \Illuminate\Database\Query\Builder $instance */
  19310. return $instance->max($column);
  19311. }
  19312. /**
  19313. * Retrieve the sum of the values of a given column.
  19314. *
  19315. * @param string $column
  19316. * @return mixed
  19317. * @static
  19318. */
  19319. public static function sum($column)
  19320. {
  19321. /** @var \Illuminate\Database\Query\Builder $instance */
  19322. return $instance->sum($column);
  19323. }
  19324. /**
  19325. * Retrieve the average of the values of a given column.
  19326. *
  19327. * @param string $column
  19328. * @return mixed
  19329. * @static
  19330. */
  19331. public static function avg($column)
  19332. {
  19333. /** @var \Illuminate\Database\Query\Builder $instance */
  19334. return $instance->avg($column);
  19335. }
  19336. /**
  19337. * Alias for the "avg" method.
  19338. *
  19339. * @param string $column
  19340. * @return mixed
  19341. * @static
  19342. */
  19343. public static function average($column)
  19344. {
  19345. /** @var \Illuminate\Database\Query\Builder $instance */
  19346. return $instance->average($column);
  19347. }
  19348. /**
  19349. * Execute an aggregate function on the database.
  19350. *
  19351. * @param string $function
  19352. * @param array $columns
  19353. * @return mixed
  19354. * @static
  19355. */
  19356. public static function aggregate($function, $columns = [])
  19357. {
  19358. /** @var \Illuminate\Database\Query\Builder $instance */
  19359. return $instance->aggregate($function, $columns);
  19360. }
  19361. /**
  19362. * Execute a numeric aggregate function on the database.
  19363. *
  19364. * @param string $function
  19365. * @param array $columns
  19366. * @return float|int
  19367. * @static
  19368. */
  19369. public static function numericAggregate($function, $columns = [])
  19370. {
  19371. /** @var \Illuminate\Database\Query\Builder $instance */
  19372. return $instance->numericAggregate($function, $columns);
  19373. }
  19374. /**
  19375. * Insert new records into the database.
  19376. *
  19377. * @param array $values
  19378. * @return bool
  19379. * @static
  19380. */
  19381. public static function insert($values)
  19382. {
  19383. /** @var \Illuminate\Database\Query\Builder $instance */
  19384. return $instance->insert($values);
  19385. }
  19386. /**
  19387. * Insert new records into the database while ignoring errors.
  19388. *
  19389. * @param array $values
  19390. * @return int
  19391. * @static
  19392. */
  19393. public static function insertOrIgnore($values)
  19394. {
  19395. /** @var \Illuminate\Database\Query\Builder $instance */
  19396. return $instance->insertOrIgnore($values);
  19397. }
  19398. /**
  19399. * Insert a new record and get the value of the primary key.
  19400. *
  19401. * @param array $values
  19402. * @param string|null $sequence
  19403. * @return int
  19404. * @static
  19405. */
  19406. public static function insertGetId($values, $sequence = null)
  19407. {
  19408. /** @var \Illuminate\Database\Query\Builder $instance */
  19409. return $instance->insertGetId($values, $sequence);
  19410. }
  19411. /**
  19412. * Insert new records into the table using a subquery.
  19413. *
  19414. * @param array $columns
  19415. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  19416. * @return int
  19417. * @static
  19418. */
  19419. public static function insertUsing($columns, $query)
  19420. {
  19421. /** @var \Illuminate\Database\Query\Builder $instance */
  19422. return $instance->insertUsing($columns, $query);
  19423. }
  19424. /**
  19425. * Insert or update a record matching the attributes, and fill it with values.
  19426. *
  19427. * @param array $attributes
  19428. * @param array $values
  19429. * @return bool
  19430. * @static
  19431. */
  19432. public static function updateOrInsert($attributes, $values = [])
  19433. {
  19434. /** @var \Illuminate\Database\Query\Builder $instance */
  19435. return $instance->updateOrInsert($attributes, $values);
  19436. }
  19437. /**
  19438. * Run a truncate statement on the table.
  19439. *
  19440. * @return void
  19441. * @static
  19442. */
  19443. public static function truncate()
  19444. {
  19445. /** @var \Illuminate\Database\Query\Builder $instance */
  19446. $instance->truncate();
  19447. }
  19448. /**
  19449. * Create a raw database expression.
  19450. *
  19451. * @param mixed $value
  19452. * @return \Illuminate\Database\Query\Expression
  19453. * @static
  19454. */
  19455. public static function raw($value)
  19456. {
  19457. /** @var \Illuminate\Database\Query\Builder $instance */
  19458. return $instance->raw($value);
  19459. }
  19460. /**
  19461. * Get the current query value bindings in a flattened array.
  19462. *
  19463. * @return array
  19464. * @static
  19465. */
  19466. public static function getBindings()
  19467. {
  19468. /** @var \Illuminate\Database\Query\Builder $instance */
  19469. return $instance->getBindings();
  19470. }
  19471. /**
  19472. * Get the raw array of bindings.
  19473. *
  19474. * @return array
  19475. * @static
  19476. */
  19477. public static function getRawBindings()
  19478. {
  19479. /** @var \Illuminate\Database\Query\Builder $instance */
  19480. return $instance->getRawBindings();
  19481. }
  19482. /**
  19483. * Set the bindings on the query builder.
  19484. *
  19485. * @param array $bindings
  19486. * @param string $type
  19487. * @return \Illuminate\Database\Query\Builder
  19488. * @throws \InvalidArgumentException
  19489. * @static
  19490. */
  19491. public static function setBindings($bindings, $type = 'where')
  19492. {
  19493. /** @var \Illuminate\Database\Query\Builder $instance */
  19494. return $instance->setBindings($bindings, $type);
  19495. }
  19496. /**
  19497. * Add a binding to the query.
  19498. *
  19499. * @param mixed $value
  19500. * @param string $type
  19501. * @return \Illuminate\Database\Query\Builder
  19502. * @throws \InvalidArgumentException
  19503. * @static
  19504. */
  19505. public static function addBinding($value, $type = 'where')
  19506. {
  19507. /** @var \Illuminate\Database\Query\Builder $instance */
  19508. return $instance->addBinding($value, $type);
  19509. }
  19510. /**
  19511. * Merge an array of bindings into our bindings.
  19512. *
  19513. * @param \Illuminate\Database\Query\Builder $query
  19514. * @return \Illuminate\Database\Query\Builder
  19515. * @static
  19516. */
  19517. public static function mergeBindings($query)
  19518. {
  19519. /** @var \Illuminate\Database\Query\Builder $instance */
  19520. return $instance->mergeBindings($query);
  19521. }
  19522. /**
  19523. * Remove all of the expressions from a list of bindings.
  19524. *
  19525. * @param array $bindings
  19526. * @return array
  19527. * @static
  19528. */
  19529. public static function cleanBindings($bindings)
  19530. {
  19531. /** @var \Illuminate\Database\Query\Builder $instance */
  19532. return $instance->cleanBindings($bindings);
  19533. }
  19534. /**
  19535. * Get the database query processor instance.
  19536. *
  19537. * @return \Illuminate\Database\Query\Processors\Processor
  19538. * @static
  19539. */
  19540. public static function getProcessor()
  19541. {
  19542. /** @var \Illuminate\Database\Query\Builder $instance */
  19543. return $instance->getProcessor();
  19544. }
  19545. /**
  19546. * Get the query grammar instance.
  19547. *
  19548. * @return \Illuminate\Database\Query\Grammars\Grammar
  19549. * @static
  19550. */
  19551. public static function getGrammar()
  19552. {
  19553. /** @var \Illuminate\Database\Query\Builder $instance */
  19554. return $instance->getGrammar();
  19555. }
  19556. /**
  19557. * Use the write pdo for query.
  19558. *
  19559. * @return \Illuminate\Database\Query\Builder
  19560. * @static
  19561. */
  19562. public static function useWritePdo()
  19563. {
  19564. /** @var \Illuminate\Database\Query\Builder $instance */
  19565. return $instance->useWritePdo();
  19566. }
  19567. /**
  19568. * Clone the query without the given properties.
  19569. *
  19570. * @param array $properties
  19571. * @return static
  19572. * @static
  19573. */
  19574. public static function cloneWithout($properties)
  19575. {
  19576. /** @var \Illuminate\Database\Query\Builder $instance */
  19577. return $instance->cloneWithout($properties);
  19578. }
  19579. /**
  19580. * Clone the query without the given bindings.
  19581. *
  19582. * @param array $except
  19583. * @return static
  19584. * @static
  19585. */
  19586. public static function cloneWithoutBindings($except)
  19587. {
  19588. /** @var \Illuminate\Database\Query\Builder $instance */
  19589. return $instance->cloneWithoutBindings($except);
  19590. }
  19591. /**
  19592. * Dump the current SQL and bindings.
  19593. *
  19594. * @return \Illuminate\Database\Query\Builder
  19595. * @static
  19596. */
  19597. public static function dump()
  19598. {
  19599. /** @var \Illuminate\Database\Query\Builder $instance */
  19600. return $instance->dump();
  19601. }
  19602. /**
  19603. * Die and dump the current SQL and bindings.
  19604. *
  19605. * @return void
  19606. * @static
  19607. */
  19608. public static function dd()
  19609. {
  19610. /** @var \Illuminate\Database\Query\Builder $instance */
  19611. $instance->dd();
  19612. }
  19613. /**
  19614. * Register a custom macro.
  19615. *
  19616. * @param string $name
  19617. * @param object|callable $macro
  19618. * @return void
  19619. * @static
  19620. */
  19621. public static function macro($name, $macro)
  19622. {
  19623. \Illuminate\Database\Query\Builder::macro($name, $macro);
  19624. }
  19625. /**
  19626. * Mix another object into the class.
  19627. *
  19628. * @param object $mixin
  19629. * @param bool $replace
  19630. * @return void
  19631. * @throws \ReflectionException
  19632. * @static
  19633. */
  19634. public static function mixin($mixin, $replace = true)
  19635. {
  19636. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  19637. }
  19638. /**
  19639. * Dynamically handle calls to the class.
  19640. *
  19641. * @param string $method
  19642. * @param array $parameters
  19643. * @return mixed
  19644. * @throws \BadMethodCallException
  19645. * @static
  19646. */
  19647. public static function macroCall($method, $parameters)
  19648. {
  19649. /** @var \Illuminate\Database\Query\Builder $instance */
  19650. return $instance->macroCall($method, $parameters);
  19651. }
  19652. }
  19653. class Event extends \Illuminate\Support\Facades\Event {}
  19654. class File extends \Illuminate\Support\Facades\File {}
  19655. class Gate extends \Illuminate\Support\Facades\Gate {}
  19656. class Hash extends \Illuminate\Support\Facades\Hash {}
  19657. class Http extends \Illuminate\Support\Facades\Http {}
  19658. class Lang extends \Illuminate\Support\Facades\Lang {}
  19659. class Log extends \Illuminate\Support\Facades\Log {}
  19660. class Mail extends \Illuminate\Support\Facades\Mail {}
  19661. class Notification extends \Illuminate\Support\Facades\Notification {}
  19662. class Password extends \Illuminate\Support\Facades\Password {}
  19663. class Queue extends \Illuminate\Support\Facades\Queue {}
  19664. class RateLimiter extends \Illuminate\Support\Facades\RateLimiter {}
  19665. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  19666. class Request extends \Illuminate\Support\Facades\Request {}
  19667. class Response extends \Illuminate\Support\Facades\Response {}
  19668. class Route extends \Illuminate\Support\Facades\Route {}
  19669. class Schema extends \Illuminate\Support\Facades\Schema {}
  19670. class Session extends \Illuminate\Support\Facades\Session {}
  19671. class Storage extends \Illuminate\Support\Facades\Storage {}
  19672. class Str extends \Illuminate\Support\Str {}
  19673. class URL extends \Illuminate\Support\Facades\URL {}
  19674. class Validator extends \Illuminate\Support\Facades\Validator {}
  19675. class View extends \Illuminate\Support\Facades\View {}
  19676. class API extends \Dingo\Api\Facade\API {}
  19677. class Flare extends \Facade\Ignition\Facades\Flare {}
  19678. class JWTAuth extends \Tymon\JWTAuth\Facades\JWTAuth {}
  19679. class JWTFactory extends \Tymon\JWTAuth\Facades\JWTFactory {}
  19680. }