_ide_helper.php 642 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel, to provide autocomplete information to your IDE
  5. * Generated for Laravel 5.8.38.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  10. * @see https://github.com/barryvdh/laravel-ide-helper
  11. */
  12. namespace Illuminate\Support\Facades {
  13. /**
  14. *
  15. *
  16. * @see \Illuminate\Contracts\Foundation\Application
  17. */
  18. class App {
  19. /**
  20. * Get the version number of the application.
  21. *
  22. * @return string
  23. * @static
  24. */
  25. public static function version()
  26. {
  27. /** @var \Illuminate\Foundation\Application $instance */
  28. return $instance->version();
  29. }
  30. /**
  31. * Run the given array of bootstrap classes.
  32. *
  33. * @param string[] $bootstrappers
  34. * @return void
  35. * @static
  36. */
  37. public static function bootstrapWith($bootstrappers)
  38. {
  39. /** @var \Illuminate\Foundation\Application $instance */
  40. $instance->bootstrapWith($bootstrappers);
  41. }
  42. /**
  43. * Register a callback to run after loading the environment.
  44. *
  45. * @param \Closure $callback
  46. * @return void
  47. * @static
  48. */
  49. public static function afterLoadingEnvironment($callback)
  50. {
  51. /** @var \Illuminate\Foundation\Application $instance */
  52. $instance->afterLoadingEnvironment($callback);
  53. }
  54. /**
  55. * Register a callback to run before a bootstrapper.
  56. *
  57. * @param string $bootstrapper
  58. * @param \Closure $callback
  59. * @return void
  60. * @static
  61. */
  62. public static function beforeBootstrapping($bootstrapper, $callback)
  63. {
  64. /** @var \Illuminate\Foundation\Application $instance */
  65. $instance->beforeBootstrapping($bootstrapper, $callback);
  66. }
  67. /**
  68. * Register a callback to run after a bootstrapper.
  69. *
  70. * @param string $bootstrapper
  71. * @param \Closure $callback
  72. * @return void
  73. * @static
  74. */
  75. public static function afterBootstrapping($bootstrapper, $callback)
  76. {
  77. /** @var \Illuminate\Foundation\Application $instance */
  78. $instance->afterBootstrapping($bootstrapper, $callback);
  79. }
  80. /**
  81. * Determine if the application has been bootstrapped before.
  82. *
  83. * @return bool
  84. * @static
  85. */
  86. public static function hasBeenBootstrapped()
  87. {
  88. /** @var \Illuminate\Foundation\Application $instance */
  89. return $instance->hasBeenBootstrapped();
  90. }
  91. /**
  92. * Set the base path for the application.
  93. *
  94. * @param string $basePath
  95. * @return \Illuminate\Foundation\Application
  96. * @static
  97. */
  98. public static function setBasePath($basePath)
  99. {
  100. /** @var \Illuminate\Foundation\Application $instance */
  101. return $instance->setBasePath($basePath);
  102. }
  103. /**
  104. * Get the path to the application "app" directory.
  105. *
  106. * @param string $path
  107. * @return string
  108. * @static
  109. */
  110. public static function path($path = '')
  111. {
  112. /** @var \Illuminate\Foundation\Application $instance */
  113. return $instance->path($path);
  114. }
  115. /**
  116. * Set the application directory.
  117. *
  118. * @param string $path
  119. * @return \Illuminate\Foundation\Application
  120. * @static
  121. */
  122. public static function useAppPath($path)
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->useAppPath($path);
  126. }
  127. /**
  128. * Get the base path of the Laravel installation.
  129. *
  130. * @param string $path Optionally, a path to append to the base path
  131. * @return string
  132. * @static
  133. */
  134. public static function basePath($path = '')
  135. {
  136. /** @var \Illuminate\Foundation\Application $instance */
  137. return $instance->basePath($path);
  138. }
  139. /**
  140. * Get the path to the bootstrap directory.
  141. *
  142. * @param string $path Optionally, a path to append to the bootstrap path
  143. * @return string
  144. * @static
  145. */
  146. public static function bootstrapPath($path = '')
  147. {
  148. /** @var \Illuminate\Foundation\Application $instance */
  149. return $instance->bootstrapPath($path);
  150. }
  151. /**
  152. * Get the path to the application configuration files.
  153. *
  154. * @param string $path Optionally, a path to append to the config path
  155. * @return string
  156. * @static
  157. */
  158. public static function configPath($path = '')
  159. {
  160. /** @var \Illuminate\Foundation\Application $instance */
  161. return $instance->configPath($path);
  162. }
  163. /**
  164. * Get the path to the database directory.
  165. *
  166. * @param string $path Optionally, a path to append to the database path
  167. * @return string
  168. * @static
  169. */
  170. public static function databasePath($path = '')
  171. {
  172. /** @var \Illuminate\Foundation\Application $instance */
  173. return $instance->databasePath($path);
  174. }
  175. /**
  176. * Set the database directory.
  177. *
  178. * @param string $path
  179. * @return \Illuminate\Foundation\Application
  180. * @static
  181. */
  182. public static function useDatabasePath($path)
  183. {
  184. /** @var \Illuminate\Foundation\Application $instance */
  185. return $instance->useDatabasePath($path);
  186. }
  187. /**
  188. * Get the path to the language files.
  189. *
  190. * @return string
  191. * @static
  192. */
  193. public static function langPath()
  194. {
  195. /** @var \Illuminate\Foundation\Application $instance */
  196. return $instance->langPath();
  197. }
  198. /**
  199. * Get the path to the public / web directory.
  200. *
  201. * @return string
  202. * @static
  203. */
  204. public static function publicPath()
  205. {
  206. /** @var \Illuminate\Foundation\Application $instance */
  207. return $instance->publicPath();
  208. }
  209. /**
  210. * Get the path to the storage directory.
  211. *
  212. * @return string
  213. * @static
  214. */
  215. public static function storagePath()
  216. {
  217. /** @var \Illuminate\Foundation\Application $instance */
  218. return $instance->storagePath();
  219. }
  220. /**
  221. * Set the storage directory.
  222. *
  223. * @param string $path
  224. * @return \Illuminate\Foundation\Application
  225. * @static
  226. */
  227. public static function useStoragePath($path)
  228. {
  229. /** @var \Illuminate\Foundation\Application $instance */
  230. return $instance->useStoragePath($path);
  231. }
  232. /**
  233. * Get the path to the resources directory.
  234. *
  235. * @param string $path
  236. * @return string
  237. * @static
  238. */
  239. public static function resourcePath($path = '')
  240. {
  241. /** @var \Illuminate\Foundation\Application $instance */
  242. return $instance->resourcePath($path);
  243. }
  244. /**
  245. * Get the path to the environment file directory.
  246. *
  247. * @return string
  248. * @static
  249. */
  250. public static function environmentPath()
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->environmentPath();
  254. }
  255. /**
  256. * Set the directory for the environment file.
  257. *
  258. * @param string $path
  259. * @return \Illuminate\Foundation\Application
  260. * @static
  261. */
  262. public static function useEnvironmentPath($path)
  263. {
  264. /** @var \Illuminate\Foundation\Application $instance */
  265. return $instance->useEnvironmentPath($path);
  266. }
  267. /**
  268. * Set the environment file to be loaded during bootstrapping.
  269. *
  270. * @param string $file
  271. * @return \Illuminate\Foundation\Application
  272. * @static
  273. */
  274. public static function loadEnvironmentFrom($file)
  275. {
  276. /** @var \Illuminate\Foundation\Application $instance */
  277. return $instance->loadEnvironmentFrom($file);
  278. }
  279. /**
  280. * Get the environment file the application is using.
  281. *
  282. * @return string
  283. * @static
  284. */
  285. public static function environmentFile()
  286. {
  287. /** @var \Illuminate\Foundation\Application $instance */
  288. return $instance->environmentFile();
  289. }
  290. /**
  291. * Get the fully qualified path to the environment file.
  292. *
  293. * @return string
  294. * @static
  295. */
  296. public static function environmentFilePath()
  297. {
  298. /** @var \Illuminate\Foundation\Application $instance */
  299. return $instance->environmentFilePath();
  300. }
  301. /**
  302. * Get or check the current application environment.
  303. *
  304. * @param string|array $environments
  305. * @return string|bool
  306. * @static
  307. */
  308. public static function environment(...$environments)
  309. {
  310. /** @var \Illuminate\Foundation\Application $instance */
  311. return $instance->environment(...$environments);
  312. }
  313. /**
  314. * Determine if application is in local environment.
  315. *
  316. * @return bool
  317. * @static
  318. */
  319. public static function isLocal()
  320. {
  321. /** @var \Illuminate\Foundation\Application $instance */
  322. return $instance->isLocal();
  323. }
  324. /**
  325. * Determine if application is in production environment.
  326. *
  327. * @return bool
  328. * @static
  329. */
  330. public static function isProduction()
  331. {
  332. /** @var \Illuminate\Foundation\Application $instance */
  333. return $instance->isProduction();
  334. }
  335. /**
  336. * Detect the application's current environment.
  337. *
  338. * @param \Closure $callback
  339. * @return string
  340. * @static
  341. */
  342. public static function detectEnvironment($callback)
  343. {
  344. /** @var \Illuminate\Foundation\Application $instance */
  345. return $instance->detectEnvironment($callback);
  346. }
  347. /**
  348. * Determine if the application is running in the console.
  349. *
  350. * @return bool
  351. * @static
  352. */
  353. public static function runningInConsole()
  354. {
  355. /** @var \Illuminate\Foundation\Application $instance */
  356. return $instance->runningInConsole();
  357. }
  358. /**
  359. * Determine if the application is running unit tests.
  360. *
  361. * @return bool
  362. * @static
  363. */
  364. public static function runningUnitTests()
  365. {
  366. /** @var \Illuminate\Foundation\Application $instance */
  367. return $instance->runningUnitTests();
  368. }
  369. /**
  370. * Register all of the configured providers.
  371. *
  372. * @return void
  373. * @static
  374. */
  375. public static function registerConfiguredProviders()
  376. {
  377. /** @var \Illuminate\Foundation\Application $instance */
  378. $instance->registerConfiguredProviders();
  379. }
  380. /**
  381. * Register a service provider with the application.
  382. *
  383. * @param \Illuminate\Support\ServiceProvider|string $provider
  384. * @param bool $force
  385. * @return \Illuminate\Support\ServiceProvider
  386. * @static
  387. */
  388. public static function register($provider, $force = false)
  389. {
  390. /** @var \Illuminate\Foundation\Application $instance */
  391. return $instance->register($provider, $force);
  392. }
  393. /**
  394. * Get the registered service provider instance if it exists.
  395. *
  396. * @param \Illuminate\Support\ServiceProvider|string $provider
  397. * @return \Illuminate\Support\ServiceProvider|null
  398. * @static
  399. */
  400. public static function getProvider($provider)
  401. {
  402. /** @var \Illuminate\Foundation\Application $instance */
  403. return $instance->getProvider($provider);
  404. }
  405. /**
  406. * Get the registered service provider instances if any exist.
  407. *
  408. * @param \Illuminate\Support\ServiceProvider|string $provider
  409. * @return array
  410. * @static
  411. */
  412. public static function getProviders($provider)
  413. {
  414. /** @var \Illuminate\Foundation\Application $instance */
  415. return $instance->getProviders($provider);
  416. }
  417. /**
  418. * Resolve a service provider instance from the class name.
  419. *
  420. * @param string $provider
  421. * @return \Illuminate\Support\ServiceProvider
  422. * @static
  423. */
  424. public static function resolveProvider($provider)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. return $instance->resolveProvider($provider);
  428. }
  429. /**
  430. * Load and boot all of the remaining deferred providers.
  431. *
  432. * @return void
  433. * @static
  434. */
  435. public static function loadDeferredProviders()
  436. {
  437. /** @var \Illuminate\Foundation\Application $instance */
  438. $instance->loadDeferredProviders();
  439. }
  440. /**
  441. * Load the provider for a deferred service.
  442. *
  443. * @param string $service
  444. * @return void
  445. * @static
  446. */
  447. public static function loadDeferredProvider($service)
  448. {
  449. /** @var \Illuminate\Foundation\Application $instance */
  450. $instance->loadDeferredProvider($service);
  451. }
  452. /**
  453. * Register a deferred provider and service.
  454. *
  455. * @param string $provider
  456. * @param string|null $service
  457. * @return void
  458. * @static
  459. */
  460. public static function registerDeferredProvider($provider, $service = null)
  461. {
  462. /** @var \Illuminate\Foundation\Application $instance */
  463. $instance->registerDeferredProvider($provider, $service);
  464. }
  465. /**
  466. * Resolve the given type from the container.
  467. *
  468. * (Overriding Container::make)
  469. *
  470. * @param string $abstract
  471. * @param array $parameters
  472. * @return mixed
  473. * @static
  474. */
  475. public static function make($abstract, $parameters = [])
  476. {
  477. /** @var \Illuminate\Foundation\Application $instance */
  478. return $instance->make($abstract, $parameters);
  479. }
  480. /**
  481. * Determine if the given abstract type has been bound.
  482. *
  483. * (Overriding Container::bound)
  484. *
  485. * @param string $abstract
  486. * @return bool
  487. * @static
  488. */
  489. public static function bound($abstract)
  490. {
  491. /** @var \Illuminate\Foundation\Application $instance */
  492. return $instance->bound($abstract);
  493. }
  494. /**
  495. * Determine if the application has booted.
  496. *
  497. * @return bool
  498. * @static
  499. */
  500. public static function isBooted()
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. return $instance->isBooted();
  504. }
  505. /**
  506. * Boot the application's service providers.
  507. *
  508. * @return void
  509. * @static
  510. */
  511. public static function boot()
  512. {
  513. /** @var \Illuminate\Foundation\Application $instance */
  514. $instance->boot();
  515. }
  516. /**
  517. * Register a new boot listener.
  518. *
  519. * @param callable $callback
  520. * @return void
  521. * @static
  522. */
  523. public static function booting($callback)
  524. {
  525. /** @var \Illuminate\Foundation\Application $instance */
  526. $instance->booting($callback);
  527. }
  528. /**
  529. * Register a new "booted" listener.
  530. *
  531. * @param callable $callback
  532. * @return void
  533. * @static
  534. */
  535. public static function booted($callback)
  536. {
  537. /** @var \Illuminate\Foundation\Application $instance */
  538. $instance->booted($callback);
  539. }
  540. /**
  541. * {@inheritdoc}
  542. *
  543. * @static
  544. */
  545. public static function handle($request, $type = 1, $catch = true)
  546. {
  547. /** @var \Illuminate\Foundation\Application $instance */
  548. return $instance->handle($request, $type, $catch);
  549. }
  550. /**
  551. * Determine if middleware has been disabled for the application.
  552. *
  553. * @return bool
  554. * @static
  555. */
  556. public static function shouldSkipMiddleware()
  557. {
  558. /** @var \Illuminate\Foundation\Application $instance */
  559. return $instance->shouldSkipMiddleware();
  560. }
  561. /**
  562. * Get the path to the cached services.php file.
  563. *
  564. * @return string
  565. * @static
  566. */
  567. public static function getCachedServicesPath()
  568. {
  569. /** @var \Illuminate\Foundation\Application $instance */
  570. return $instance->getCachedServicesPath();
  571. }
  572. /**
  573. * Get the path to the cached packages.php file.
  574. *
  575. * @return string
  576. * @static
  577. */
  578. public static function getCachedPackagesPath()
  579. {
  580. /** @var \Illuminate\Foundation\Application $instance */
  581. return $instance->getCachedPackagesPath();
  582. }
  583. /**
  584. * Determine if the application configuration is cached.
  585. *
  586. * @return bool
  587. * @static
  588. */
  589. public static function configurationIsCached()
  590. {
  591. /** @var \Illuminate\Foundation\Application $instance */
  592. return $instance->configurationIsCached();
  593. }
  594. /**
  595. * Get the path to the configuration cache file.
  596. *
  597. * @return string
  598. * @static
  599. */
  600. public static function getCachedConfigPath()
  601. {
  602. /** @var \Illuminate\Foundation\Application $instance */
  603. return $instance->getCachedConfigPath();
  604. }
  605. /**
  606. * Determine if the application routes are cached.
  607. *
  608. * @return bool
  609. * @static
  610. */
  611. public static function routesAreCached()
  612. {
  613. /** @var \Illuminate\Foundation\Application $instance */
  614. return $instance->routesAreCached();
  615. }
  616. /**
  617. * Get the path to the routes cache file.
  618. *
  619. * @return string
  620. * @static
  621. */
  622. public static function getCachedRoutesPath()
  623. {
  624. /** @var \Illuminate\Foundation\Application $instance */
  625. return $instance->getCachedRoutesPath();
  626. }
  627. /**
  628. * Determine if the application events are cached.
  629. *
  630. * @return bool
  631. * @static
  632. */
  633. public static function eventsAreCached()
  634. {
  635. /** @var \Illuminate\Foundation\Application $instance */
  636. return $instance->eventsAreCached();
  637. }
  638. /**
  639. * Get the path to the events cache file.
  640. *
  641. * @return string
  642. * @static
  643. */
  644. public static function getCachedEventsPath()
  645. {
  646. /** @var \Illuminate\Foundation\Application $instance */
  647. return $instance->getCachedEventsPath();
  648. }
  649. /**
  650. * Determine if the application is currently down for maintenance.
  651. *
  652. * @return bool
  653. * @static
  654. */
  655. public static function isDownForMaintenance()
  656. {
  657. /** @var \Illuminate\Foundation\Application $instance */
  658. return $instance->isDownForMaintenance();
  659. }
  660. /**
  661. * Throw an HttpException with the given data.
  662. *
  663. * @param int $code
  664. * @param string $message
  665. * @param array $headers
  666. * @return void
  667. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  668. * @static
  669. */
  670. public static function abort($code, $message = '', $headers = [])
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. $instance->abort($code, $message, $headers);
  674. }
  675. /**
  676. * Register a terminating callback with the application.
  677. *
  678. * @param callable|string $callback
  679. * @return \Illuminate\Foundation\Application
  680. * @static
  681. */
  682. public static function terminating($callback)
  683. {
  684. /** @var \Illuminate\Foundation\Application $instance */
  685. return $instance->terminating($callback);
  686. }
  687. /**
  688. * Terminate the application.
  689. *
  690. * @return void
  691. * @static
  692. */
  693. public static function terminate()
  694. {
  695. /** @var \Illuminate\Foundation\Application $instance */
  696. $instance->terminate();
  697. }
  698. /**
  699. * Get the service providers that have been loaded.
  700. *
  701. * @return array
  702. * @static
  703. */
  704. public static function getLoadedProviders()
  705. {
  706. /** @var \Illuminate\Foundation\Application $instance */
  707. return $instance->getLoadedProviders();
  708. }
  709. /**
  710. * Get the application's deferred services.
  711. *
  712. * @return array
  713. * @static
  714. */
  715. public static function getDeferredServices()
  716. {
  717. /** @var \Illuminate\Foundation\Application $instance */
  718. return $instance->getDeferredServices();
  719. }
  720. /**
  721. * Set the application's deferred services.
  722. *
  723. * @param array $services
  724. * @return void
  725. * @static
  726. */
  727. public static function setDeferredServices($services)
  728. {
  729. /** @var \Illuminate\Foundation\Application $instance */
  730. $instance->setDeferredServices($services);
  731. }
  732. /**
  733. * Add an array of services to the application's deferred services.
  734. *
  735. * @param array $services
  736. * @return void
  737. * @static
  738. */
  739. public static function addDeferredServices($services)
  740. {
  741. /** @var \Illuminate\Foundation\Application $instance */
  742. $instance->addDeferredServices($services);
  743. }
  744. /**
  745. * Determine if the given service is a deferred service.
  746. *
  747. * @param string $service
  748. * @return bool
  749. * @static
  750. */
  751. public static function isDeferredService($service)
  752. {
  753. /** @var \Illuminate\Foundation\Application $instance */
  754. return $instance->isDeferredService($service);
  755. }
  756. /**
  757. * Configure the real-time facade namespace.
  758. *
  759. * @param string $namespace
  760. * @return void
  761. * @static
  762. */
  763. public static function provideFacades($namespace)
  764. {
  765. /** @var \Illuminate\Foundation\Application $instance */
  766. $instance->provideFacades($namespace);
  767. }
  768. /**
  769. * Get the current application locale.
  770. *
  771. * @return string
  772. * @static
  773. */
  774. public static function getLocale()
  775. {
  776. /** @var \Illuminate\Foundation\Application $instance */
  777. return $instance->getLocale();
  778. }
  779. /**
  780. * Set the current application locale.
  781. *
  782. * @param string $locale
  783. * @return void
  784. * @static
  785. */
  786. public static function setLocale($locale)
  787. {
  788. /** @var \Illuminate\Foundation\Application $instance */
  789. $instance->setLocale($locale);
  790. }
  791. /**
  792. * Determine if application locale is the given locale.
  793. *
  794. * @param string $locale
  795. * @return bool
  796. * @static
  797. */
  798. public static function isLocale($locale)
  799. {
  800. /** @var \Illuminate\Foundation\Application $instance */
  801. return $instance->isLocale($locale);
  802. }
  803. /**
  804. * Register the core class aliases in the container.
  805. *
  806. * @return void
  807. * @static
  808. */
  809. public static function registerCoreContainerAliases()
  810. {
  811. /** @var \Illuminate\Foundation\Application $instance */
  812. $instance->registerCoreContainerAliases();
  813. }
  814. /**
  815. * Flush the container of all bindings and resolved instances.
  816. *
  817. * @return void
  818. * @static
  819. */
  820. public static function flush()
  821. {
  822. /** @var \Illuminate\Foundation\Application $instance */
  823. $instance->flush();
  824. }
  825. /**
  826. * Get the application namespace.
  827. *
  828. * @return string
  829. * @throws \RuntimeException
  830. * @static
  831. */
  832. public static function getNamespace()
  833. {
  834. /** @var \Illuminate\Foundation\Application $instance */
  835. return $instance->getNamespace();
  836. }
  837. /**
  838. * Define a contextual binding.
  839. *
  840. * @param array|string $concrete
  841. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  842. * @static
  843. */
  844. public static function when($concrete)
  845. { //Method inherited from \Illuminate\Container\Container
  846. /** @var \Illuminate\Foundation\Application $instance */
  847. return $instance->when($concrete);
  848. }
  849. /**
  850. * Returns true if the container can return an entry for the given identifier.
  851. *
  852. * Returns false otherwise.
  853. *
  854. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  855. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  856. *
  857. * @param string $id Identifier of the entry to look for.
  858. * @return bool
  859. * @static
  860. */
  861. public static function has($id)
  862. { //Method inherited from \Illuminate\Container\Container
  863. /** @var \Illuminate\Foundation\Application $instance */
  864. return $instance->has($id);
  865. }
  866. /**
  867. * Determine if the given abstract type has been resolved.
  868. *
  869. * @param string $abstract
  870. * @return bool
  871. * @static
  872. */
  873. public static function resolved($abstract)
  874. { //Method inherited from \Illuminate\Container\Container
  875. /** @var \Illuminate\Foundation\Application $instance */
  876. return $instance->resolved($abstract);
  877. }
  878. /**
  879. * Determine if a given type is shared.
  880. *
  881. * @param string $abstract
  882. * @return bool
  883. * @static
  884. */
  885. public static function isShared($abstract)
  886. { //Method inherited from \Illuminate\Container\Container
  887. /** @var \Illuminate\Foundation\Application $instance */
  888. return $instance->isShared($abstract);
  889. }
  890. /**
  891. * Determine if a given string is an alias.
  892. *
  893. * @param string $name
  894. * @return bool
  895. * @static
  896. */
  897. public static function isAlias($name)
  898. { //Method inherited from \Illuminate\Container\Container
  899. /** @var \Illuminate\Foundation\Application $instance */
  900. return $instance->isAlias($name);
  901. }
  902. /**
  903. * Register a binding with the container.
  904. *
  905. * @param string $abstract
  906. * @param \Closure|string|null $concrete
  907. * @param bool $shared
  908. * @return void
  909. * @static
  910. */
  911. public static function bind($abstract, $concrete = null, $shared = false)
  912. { //Method inherited from \Illuminate\Container\Container
  913. /** @var \Illuminate\Foundation\Application $instance */
  914. $instance->bind($abstract, $concrete, $shared);
  915. }
  916. /**
  917. * Determine if the container has a method binding.
  918. *
  919. * @param string $method
  920. * @return bool
  921. * @static
  922. */
  923. public static function hasMethodBinding($method)
  924. { //Method inherited from \Illuminate\Container\Container
  925. /** @var \Illuminate\Foundation\Application $instance */
  926. return $instance->hasMethodBinding($method);
  927. }
  928. /**
  929. * Bind a callback to resolve with Container::call.
  930. *
  931. * @param array|string $method
  932. * @param \Closure $callback
  933. * @return void
  934. * @static
  935. */
  936. public static function bindMethod($method, $callback)
  937. { //Method inherited from \Illuminate\Container\Container
  938. /** @var \Illuminate\Foundation\Application $instance */
  939. $instance->bindMethod($method, $callback);
  940. }
  941. /**
  942. * Get the method binding for the given method.
  943. *
  944. * @param string $method
  945. * @param mixed $instance
  946. * @return mixed
  947. * @static
  948. */
  949. public static function callMethodBinding($method, $instance)
  950. { //Method inherited from \Illuminate\Container\Container
  951. /** @var \Illuminate\Foundation\Application $instance */
  952. return $instance->callMethodBinding($method, $instance);
  953. }
  954. /**
  955. * Add a contextual binding to the container.
  956. *
  957. * @param string $concrete
  958. * @param string $abstract
  959. * @param \Closure|string $implementation
  960. * @return void
  961. * @static
  962. */
  963. public static function addContextualBinding($concrete, $abstract, $implementation)
  964. { //Method inherited from \Illuminate\Container\Container
  965. /** @var \Illuminate\Foundation\Application $instance */
  966. $instance->addContextualBinding($concrete, $abstract, $implementation);
  967. }
  968. /**
  969. * Register a binding if it hasn't already been registered.
  970. *
  971. * @param string $abstract
  972. * @param \Closure|string|null $concrete
  973. * @param bool $shared
  974. * @return void
  975. * @static
  976. */
  977. public static function bindIf($abstract, $concrete = null, $shared = false)
  978. { //Method inherited from \Illuminate\Container\Container
  979. /** @var \Illuminate\Foundation\Application $instance */
  980. $instance->bindIf($abstract, $concrete, $shared);
  981. }
  982. /**
  983. * Register a shared binding in the container.
  984. *
  985. * @param string $abstract
  986. * @param \Closure|string|null $concrete
  987. * @return void
  988. * @static
  989. */
  990. public static function singleton($abstract, $concrete = null)
  991. { //Method inherited from \Illuminate\Container\Container
  992. /** @var \Illuminate\Foundation\Application $instance */
  993. $instance->singleton($abstract, $concrete);
  994. }
  995. /**
  996. * "Extend" an abstract type in the container.
  997. *
  998. * @param string $abstract
  999. * @param \Closure $closure
  1000. * @return void
  1001. * @throws \InvalidArgumentException
  1002. * @static
  1003. */
  1004. public static function extend($abstract, $closure)
  1005. { //Method inherited from \Illuminate\Container\Container
  1006. /** @var \Illuminate\Foundation\Application $instance */
  1007. $instance->extend($abstract, $closure);
  1008. }
  1009. /**
  1010. * Register an existing instance as shared in the container.
  1011. *
  1012. * @param string $abstract
  1013. * @param mixed $instance
  1014. * @return mixed
  1015. * @static
  1016. */
  1017. public static function instance($abstract, $instance)
  1018. { //Method inherited from \Illuminate\Container\Container
  1019. /** @var \Illuminate\Foundation\Application $instance */
  1020. return $instance->instance($abstract, $instance);
  1021. }
  1022. /**
  1023. * Assign a set of tags to a given binding.
  1024. *
  1025. * @param array|string $abstracts
  1026. * @param array|mixed $tags
  1027. * @return void
  1028. * @static
  1029. */
  1030. public static function tag($abstracts, $tags)
  1031. { //Method inherited from \Illuminate\Container\Container
  1032. /** @var \Illuminate\Foundation\Application $instance */
  1033. $instance->tag($abstracts, $tags);
  1034. }
  1035. /**
  1036. * Resolve all of the bindings for a given tag.
  1037. *
  1038. * @param string $tag
  1039. * @return \Illuminate\Container\iterable
  1040. * @static
  1041. */
  1042. public static function tagged($tag)
  1043. { //Method inherited from \Illuminate\Container\Container
  1044. /** @var \Illuminate\Foundation\Application $instance */
  1045. return $instance->tagged($tag);
  1046. }
  1047. /**
  1048. * Alias a type to a different name.
  1049. *
  1050. * @param string $abstract
  1051. * @param string $alias
  1052. * @return void
  1053. * @throws \LogicException
  1054. * @static
  1055. */
  1056. public static function alias($abstract, $alias)
  1057. { //Method inherited from \Illuminate\Container\Container
  1058. /** @var \Illuminate\Foundation\Application $instance */
  1059. $instance->alias($abstract, $alias);
  1060. }
  1061. /**
  1062. * Bind a new callback to an abstract's rebind event.
  1063. *
  1064. * @param string $abstract
  1065. * @param \Closure $callback
  1066. * @return mixed
  1067. * @static
  1068. */
  1069. public static function rebinding($abstract, $callback)
  1070. { //Method inherited from \Illuminate\Container\Container
  1071. /** @var \Illuminate\Foundation\Application $instance */
  1072. return $instance->rebinding($abstract, $callback);
  1073. }
  1074. /**
  1075. * Refresh an instance on the given target and method.
  1076. *
  1077. * @param string $abstract
  1078. * @param mixed $target
  1079. * @param string $method
  1080. * @return mixed
  1081. * @static
  1082. */
  1083. public static function refresh($abstract, $target, $method)
  1084. { //Method inherited from \Illuminate\Container\Container
  1085. /** @var \Illuminate\Foundation\Application $instance */
  1086. return $instance->refresh($abstract, $target, $method);
  1087. }
  1088. /**
  1089. * Wrap the given closure such that its dependencies will be injected when executed.
  1090. *
  1091. * @param \Closure $callback
  1092. * @param array $parameters
  1093. * @return \Closure
  1094. * @static
  1095. */
  1096. public static function wrap($callback, $parameters = [])
  1097. { //Method inherited from \Illuminate\Container\Container
  1098. /** @var \Illuminate\Foundation\Application $instance */
  1099. return $instance->wrap($callback, $parameters);
  1100. }
  1101. /**
  1102. * Call the given Closure / class@method and inject its dependencies.
  1103. *
  1104. * @param callable|string $callback
  1105. * @param array $parameters
  1106. * @param string|null $defaultMethod
  1107. * @return mixed
  1108. * @static
  1109. */
  1110. public static function call($callback, $parameters = [], $defaultMethod = null)
  1111. { //Method inherited from \Illuminate\Container\Container
  1112. /** @var \Illuminate\Foundation\Application $instance */
  1113. return $instance->call($callback, $parameters, $defaultMethod);
  1114. }
  1115. /**
  1116. * Get a closure to resolve the given type from the container.
  1117. *
  1118. * @param string $abstract
  1119. * @return \Closure
  1120. * @static
  1121. */
  1122. public static function factory($abstract)
  1123. { //Method inherited from \Illuminate\Container\Container
  1124. /** @var \Illuminate\Foundation\Application $instance */
  1125. return $instance->factory($abstract);
  1126. }
  1127. /**
  1128. * An alias function name for make().
  1129. *
  1130. * @param string $abstract
  1131. * @param array $parameters
  1132. * @return mixed
  1133. * @static
  1134. */
  1135. public static function makeWith($abstract, $parameters = [])
  1136. { //Method inherited from \Illuminate\Container\Container
  1137. /** @var \Illuminate\Foundation\Application $instance */
  1138. return $instance->makeWith($abstract, $parameters);
  1139. }
  1140. /**
  1141. * Finds an entry of the container by its identifier and returns it.
  1142. *
  1143. * @param string $id Identifier of the entry to look for.
  1144. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1145. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1146. * @return mixed Entry.
  1147. * @static
  1148. */
  1149. public static function get($id)
  1150. { //Method inherited from \Illuminate\Container\Container
  1151. /** @var \Illuminate\Foundation\Application $instance */
  1152. return $instance->get($id);
  1153. }
  1154. /**
  1155. * Instantiate a concrete instance of the given type.
  1156. *
  1157. * @param string $concrete
  1158. * @return mixed
  1159. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1160. * @static
  1161. */
  1162. public static function build($concrete)
  1163. { //Method inherited from \Illuminate\Container\Container
  1164. /** @var \Illuminate\Foundation\Application $instance */
  1165. return $instance->build($concrete);
  1166. }
  1167. /**
  1168. * Register a new resolving callback.
  1169. *
  1170. * @param \Closure|string $abstract
  1171. * @param \Closure|null $callback
  1172. * @return void
  1173. * @static
  1174. */
  1175. public static function resolving($abstract, $callback = null)
  1176. { //Method inherited from \Illuminate\Container\Container
  1177. /** @var \Illuminate\Foundation\Application $instance */
  1178. $instance->resolving($abstract, $callback);
  1179. }
  1180. /**
  1181. * Register a new after resolving callback for all types.
  1182. *
  1183. * @param \Closure|string $abstract
  1184. * @param \Closure|null $callback
  1185. * @return void
  1186. * @static
  1187. */
  1188. public static function afterResolving($abstract, $callback = null)
  1189. { //Method inherited from \Illuminate\Container\Container
  1190. /** @var \Illuminate\Foundation\Application $instance */
  1191. $instance->afterResolving($abstract, $callback);
  1192. }
  1193. /**
  1194. * Get the container's bindings.
  1195. *
  1196. * @return array
  1197. * @static
  1198. */
  1199. public static function getBindings()
  1200. { //Method inherited from \Illuminate\Container\Container
  1201. /** @var \Illuminate\Foundation\Application $instance */
  1202. return $instance->getBindings();
  1203. }
  1204. /**
  1205. * Get the alias for an abstract if available.
  1206. *
  1207. * @param string $abstract
  1208. * @return string
  1209. * @static
  1210. */
  1211. public static function getAlias($abstract)
  1212. { //Method inherited from \Illuminate\Container\Container
  1213. /** @var \Illuminate\Foundation\Application $instance */
  1214. return $instance->getAlias($abstract);
  1215. }
  1216. /**
  1217. * Remove all of the extender callbacks for a given type.
  1218. *
  1219. * @param string $abstract
  1220. * @return void
  1221. * @static
  1222. */
  1223. public static function forgetExtenders($abstract)
  1224. { //Method inherited from \Illuminate\Container\Container
  1225. /** @var \Illuminate\Foundation\Application $instance */
  1226. $instance->forgetExtenders($abstract);
  1227. }
  1228. /**
  1229. * Remove a resolved instance from the instance cache.
  1230. *
  1231. * @param string $abstract
  1232. * @return void
  1233. * @static
  1234. */
  1235. public static function forgetInstance($abstract)
  1236. { //Method inherited from \Illuminate\Container\Container
  1237. /** @var \Illuminate\Foundation\Application $instance */
  1238. $instance->forgetInstance($abstract);
  1239. }
  1240. /**
  1241. * Clear all of the instances from the container.
  1242. *
  1243. * @return void
  1244. * @static
  1245. */
  1246. public static function forgetInstances()
  1247. { //Method inherited from \Illuminate\Container\Container
  1248. /** @var \Illuminate\Foundation\Application $instance */
  1249. $instance->forgetInstances();
  1250. }
  1251. /**
  1252. * Get the globally available instance of the container.
  1253. *
  1254. * @return static
  1255. * @static
  1256. */
  1257. public static function getInstance()
  1258. { //Method inherited from \Illuminate\Container\Container
  1259. return \Illuminate\Foundation\Application::getInstance();
  1260. }
  1261. /**
  1262. * Set the shared instance of the container.
  1263. *
  1264. * @param \Illuminate\Contracts\Container\Container|null $container
  1265. * @return \Illuminate\Contracts\Container\Container|static
  1266. * @static
  1267. */
  1268. public static function setInstance($container = null)
  1269. { //Method inherited from \Illuminate\Container\Container
  1270. return \Illuminate\Foundation\Application::setInstance($container);
  1271. }
  1272. /**
  1273. * Determine if a given offset exists.
  1274. *
  1275. * @param string $key
  1276. * @return bool
  1277. * @static
  1278. */
  1279. public static function offsetExists($key)
  1280. { //Method inherited from \Illuminate\Container\Container
  1281. /** @var \Illuminate\Foundation\Application $instance */
  1282. return $instance->offsetExists($key);
  1283. }
  1284. /**
  1285. * Get the value at a given offset.
  1286. *
  1287. * @param string $key
  1288. * @return mixed
  1289. * @static
  1290. */
  1291. public static function offsetGet($key)
  1292. { //Method inherited from \Illuminate\Container\Container
  1293. /** @var \Illuminate\Foundation\Application $instance */
  1294. return $instance->offsetGet($key);
  1295. }
  1296. /**
  1297. * Set the value at a given offset.
  1298. *
  1299. * @param string $key
  1300. * @param mixed $value
  1301. * @return void
  1302. * @static
  1303. */
  1304. public static function offsetSet($key, $value)
  1305. { //Method inherited from \Illuminate\Container\Container
  1306. /** @var \Illuminate\Foundation\Application $instance */
  1307. $instance->offsetSet($key, $value);
  1308. }
  1309. /**
  1310. * Unset the value at a given offset.
  1311. *
  1312. * @param string $key
  1313. * @return void
  1314. * @static
  1315. */
  1316. public static function offsetUnset($key)
  1317. { //Method inherited from \Illuminate\Container\Container
  1318. /** @var \Illuminate\Foundation\Application $instance */
  1319. $instance->offsetUnset($key);
  1320. }
  1321. }
  1322. /**
  1323. *
  1324. *
  1325. * @see \Illuminate\Contracts\Console\Kernel
  1326. */
  1327. class Artisan {
  1328. /**
  1329. * Run the console application.
  1330. *
  1331. * @param \Symfony\Component\Console\Input\InputInterface $input
  1332. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1333. * @return int
  1334. * @static
  1335. */
  1336. public static function handle($input, $output = null)
  1337. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1338. /** @var \App\Console\Kernel $instance */
  1339. return $instance->handle($input, $output);
  1340. }
  1341. /**
  1342. * Terminate the application.
  1343. *
  1344. * @param \Symfony\Component\Console\Input\InputInterface $input
  1345. * @param int $status
  1346. * @return void
  1347. * @static
  1348. */
  1349. public static function terminate($input, $status)
  1350. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1351. /** @var \App\Console\Kernel $instance */
  1352. $instance->terminate($input, $status);
  1353. }
  1354. /**
  1355. * Register a Closure based command with the application.
  1356. *
  1357. * @param string $signature
  1358. * @param \Closure $callback
  1359. * @return \Illuminate\Foundation\Console\ClosureCommand
  1360. * @static
  1361. */
  1362. public static function command($signature, $callback)
  1363. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1364. /** @var \App\Console\Kernel $instance */
  1365. return $instance->command($signature, $callback);
  1366. }
  1367. /**
  1368. * Register the given command with the console application.
  1369. *
  1370. * @param \Symfony\Component\Console\Command\Command $command
  1371. * @return void
  1372. * @static
  1373. */
  1374. public static function registerCommand($command)
  1375. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1376. /** @var \App\Console\Kernel $instance */
  1377. $instance->registerCommand($command);
  1378. }
  1379. /**
  1380. * Run an Artisan console command by name.
  1381. *
  1382. * @param string $command
  1383. * @param array $parameters
  1384. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1385. * @return int
  1386. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1387. * @static
  1388. */
  1389. public static function call($command, $parameters = [], $outputBuffer = null)
  1390. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1391. /** @var \App\Console\Kernel $instance */
  1392. return $instance->call($command, $parameters, $outputBuffer);
  1393. }
  1394. /**
  1395. * Queue the given console command.
  1396. *
  1397. * @param string $command
  1398. * @param array $parameters
  1399. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1400. * @static
  1401. */
  1402. public static function queue($command, $parameters = [])
  1403. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1404. /** @var \App\Console\Kernel $instance */
  1405. return $instance->queue($command, $parameters);
  1406. }
  1407. /**
  1408. * Get all of the commands registered with the console.
  1409. *
  1410. * @return array
  1411. * @static
  1412. */
  1413. public static function all()
  1414. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1415. /** @var \App\Console\Kernel $instance */
  1416. return $instance->all();
  1417. }
  1418. /**
  1419. * Get the output for the last run command.
  1420. *
  1421. * @return string
  1422. * @static
  1423. */
  1424. public static function output()
  1425. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1426. /** @var \App\Console\Kernel $instance */
  1427. return $instance->output();
  1428. }
  1429. /**
  1430. * Bootstrap the application for artisan commands.
  1431. *
  1432. * @return void
  1433. * @static
  1434. */
  1435. public static function bootstrap()
  1436. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1437. /** @var \App\Console\Kernel $instance */
  1438. $instance->bootstrap();
  1439. }
  1440. /**
  1441. * Set the Artisan application instance.
  1442. *
  1443. * @param \Illuminate\Console\Application $artisan
  1444. * @return void
  1445. * @static
  1446. */
  1447. public static function setArtisan($artisan)
  1448. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1449. /** @var \App\Console\Kernel $instance */
  1450. $instance->setArtisan($artisan);
  1451. }
  1452. }
  1453. /**
  1454. *
  1455. *
  1456. * @see \Illuminate\Auth\AuthManager
  1457. * @see \Illuminate\Contracts\Auth\Factory
  1458. * @see \Illuminate\Contracts\Auth\Guard
  1459. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1460. */
  1461. class Auth {
  1462. /**
  1463. * Attempt to get the guard from the local cache.
  1464. *
  1465. * @param string|null $name
  1466. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1467. * @static
  1468. */
  1469. public static function guard($name = null)
  1470. {
  1471. /** @var \Illuminate\Auth\AuthManager $instance */
  1472. return $instance->guard($name);
  1473. }
  1474. /**
  1475. * Create a session based authentication guard.
  1476. *
  1477. * @param string $name
  1478. * @param array $config
  1479. * @return \Illuminate\Auth\SessionGuard
  1480. * @static
  1481. */
  1482. public static function createSessionDriver($name, $config)
  1483. {
  1484. /** @var \Illuminate\Auth\AuthManager $instance */
  1485. return $instance->createSessionDriver($name, $config);
  1486. }
  1487. /**
  1488. * Create a token based authentication guard.
  1489. *
  1490. * @param string $name
  1491. * @param array $config
  1492. * @return \Illuminate\Auth\TokenGuard
  1493. * @static
  1494. */
  1495. public static function createTokenDriver($name, $config)
  1496. {
  1497. /** @var \Illuminate\Auth\AuthManager $instance */
  1498. return $instance->createTokenDriver($name, $config);
  1499. }
  1500. /**
  1501. * Get the default authentication driver name.
  1502. *
  1503. * @return string
  1504. * @static
  1505. */
  1506. public static function getDefaultDriver()
  1507. {
  1508. /** @var \Illuminate\Auth\AuthManager $instance */
  1509. return $instance->getDefaultDriver();
  1510. }
  1511. /**
  1512. * Set the default guard driver the factory should serve.
  1513. *
  1514. * @param string $name
  1515. * @return void
  1516. * @static
  1517. */
  1518. public static function shouldUse($name)
  1519. {
  1520. /** @var \Illuminate\Auth\AuthManager $instance */
  1521. $instance->shouldUse($name);
  1522. }
  1523. /**
  1524. * Set the default authentication driver name.
  1525. *
  1526. * @param string $name
  1527. * @return void
  1528. * @static
  1529. */
  1530. public static function setDefaultDriver($name)
  1531. {
  1532. /** @var \Illuminate\Auth\AuthManager $instance */
  1533. $instance->setDefaultDriver($name);
  1534. }
  1535. /**
  1536. * Register a new callback based request guard.
  1537. *
  1538. * @param string $driver
  1539. * @param callable $callback
  1540. * @return \Illuminate\Auth\AuthManager
  1541. * @static
  1542. */
  1543. public static function viaRequest($driver, $callback)
  1544. {
  1545. /** @var \Illuminate\Auth\AuthManager $instance */
  1546. return $instance->viaRequest($driver, $callback);
  1547. }
  1548. /**
  1549. * Get the user resolver callback.
  1550. *
  1551. * @return \Closure
  1552. * @static
  1553. */
  1554. public static function userResolver()
  1555. {
  1556. /** @var \Illuminate\Auth\AuthManager $instance */
  1557. return $instance->userResolver();
  1558. }
  1559. /**
  1560. * Set the callback to be used to resolve users.
  1561. *
  1562. * @param \Closure $userResolver
  1563. * @return \Illuminate\Auth\AuthManager
  1564. * @static
  1565. */
  1566. public static function resolveUsersUsing($userResolver)
  1567. {
  1568. /** @var \Illuminate\Auth\AuthManager $instance */
  1569. return $instance->resolveUsersUsing($userResolver);
  1570. }
  1571. /**
  1572. * Register a custom driver creator Closure.
  1573. *
  1574. * @param string $driver
  1575. * @param \Closure $callback
  1576. * @return \Illuminate\Auth\AuthManager
  1577. * @static
  1578. */
  1579. public static function extend($driver, $callback)
  1580. {
  1581. /** @var \Illuminate\Auth\AuthManager $instance */
  1582. return $instance->extend($driver, $callback);
  1583. }
  1584. /**
  1585. * Register a custom provider creator Closure.
  1586. *
  1587. * @param string $name
  1588. * @param \Closure $callback
  1589. * @return \Illuminate\Auth\AuthManager
  1590. * @static
  1591. */
  1592. public static function provider($name, $callback)
  1593. {
  1594. /** @var \Illuminate\Auth\AuthManager $instance */
  1595. return $instance->provider($name, $callback);
  1596. }
  1597. /**
  1598. * Create the user provider implementation for the driver.
  1599. *
  1600. * @param string|null $provider
  1601. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1602. * @throws \InvalidArgumentException
  1603. * @static
  1604. */
  1605. public static function createUserProvider($provider = null)
  1606. {
  1607. /** @var \Illuminate\Auth\AuthManager $instance */
  1608. return $instance->createUserProvider($provider);
  1609. }
  1610. /**
  1611. * Get the default user provider name.
  1612. *
  1613. * @return string
  1614. * @static
  1615. */
  1616. public static function getDefaultUserProvider()
  1617. {
  1618. /** @var \Illuminate\Auth\AuthManager $instance */
  1619. return $instance->getDefaultUserProvider();
  1620. }
  1621. /**
  1622. * Get the currently authenticated user.
  1623. *
  1624. * @return \App\User|null
  1625. * @static
  1626. */
  1627. public static function user()
  1628. {
  1629. /** @var \Illuminate\Auth\SessionGuard $instance */
  1630. return $instance->user();
  1631. }
  1632. /**
  1633. * Get the ID for the currently authenticated user.
  1634. *
  1635. * @return int|null
  1636. * @static
  1637. */
  1638. public static function id()
  1639. {
  1640. /** @var \Illuminate\Auth\SessionGuard $instance */
  1641. return $instance->id();
  1642. }
  1643. /**
  1644. * Log a user into the application without sessions or cookies.
  1645. *
  1646. * @param array $credentials
  1647. * @return bool
  1648. * @static
  1649. */
  1650. public static function once($credentials = [])
  1651. {
  1652. /** @var \Illuminate\Auth\SessionGuard $instance */
  1653. return $instance->once($credentials);
  1654. }
  1655. /**
  1656. * Log the given user ID into the application without sessions or cookies.
  1657. *
  1658. * @param mixed $id
  1659. * @return \App\User|false
  1660. * @static
  1661. */
  1662. public static function onceUsingId($id)
  1663. {
  1664. /** @var \Illuminate\Auth\SessionGuard $instance */
  1665. return $instance->onceUsingId($id);
  1666. }
  1667. /**
  1668. * Validate a user's credentials.
  1669. *
  1670. * @param array $credentials
  1671. * @return bool
  1672. * @static
  1673. */
  1674. public static function validate($credentials = [])
  1675. {
  1676. /** @var \Illuminate\Auth\SessionGuard $instance */
  1677. return $instance->validate($credentials);
  1678. }
  1679. /**
  1680. * Attempt to authenticate using HTTP Basic Auth.
  1681. *
  1682. * @param string $field
  1683. * @param array $extraConditions
  1684. * @return \Symfony\Component\HttpFoundation\Response|null
  1685. * @static
  1686. */
  1687. public static function basic($field = 'email', $extraConditions = [])
  1688. {
  1689. /** @var \Illuminate\Auth\SessionGuard $instance */
  1690. return $instance->basic($field, $extraConditions);
  1691. }
  1692. /**
  1693. * Perform a stateless HTTP Basic login attempt.
  1694. *
  1695. * @param string $field
  1696. * @param array $extraConditions
  1697. * @return \Symfony\Component\HttpFoundation\Response|null
  1698. * @static
  1699. */
  1700. public static function onceBasic($field = 'email', $extraConditions = [])
  1701. {
  1702. /** @var \Illuminate\Auth\SessionGuard $instance */
  1703. return $instance->onceBasic($field, $extraConditions);
  1704. }
  1705. /**
  1706. * Attempt to authenticate a user using the given credentials.
  1707. *
  1708. * @param array $credentials
  1709. * @param bool $remember
  1710. * @return bool
  1711. * @static
  1712. */
  1713. public static function attempt($credentials = [], $remember = false)
  1714. {
  1715. /** @var \Illuminate\Auth\SessionGuard $instance */
  1716. return $instance->attempt($credentials, $remember);
  1717. }
  1718. /**
  1719. * Log the given user ID into the application.
  1720. *
  1721. * @param mixed $id
  1722. * @param bool $remember
  1723. * @return \App\User|false
  1724. * @static
  1725. */
  1726. public static function loginUsingId($id, $remember = false)
  1727. {
  1728. /** @var \Illuminate\Auth\SessionGuard $instance */
  1729. return $instance->loginUsingId($id, $remember);
  1730. }
  1731. /**
  1732. * Log a user into the application.
  1733. *
  1734. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1735. * @param bool $remember
  1736. * @return void
  1737. * @static
  1738. */
  1739. public static function login($user, $remember = false)
  1740. {
  1741. /** @var \Illuminate\Auth\SessionGuard $instance */
  1742. $instance->login($user, $remember);
  1743. }
  1744. /**
  1745. * Log the user out of the application.
  1746. *
  1747. * @return void
  1748. * @static
  1749. */
  1750. public static function logout()
  1751. {
  1752. /** @var \Illuminate\Auth\SessionGuard $instance */
  1753. $instance->logout();
  1754. }
  1755. /**
  1756. * Invalidate other sessions for the current user.
  1757. *
  1758. * The application must be using the AuthenticateSession middleware.
  1759. *
  1760. * @param string $password
  1761. * @param string $attribute
  1762. * @return bool|null
  1763. * @static
  1764. */
  1765. public static function logoutOtherDevices($password, $attribute = 'password')
  1766. {
  1767. /** @var \Illuminate\Auth\SessionGuard $instance */
  1768. return $instance->logoutOtherDevices($password, $attribute);
  1769. }
  1770. /**
  1771. * Register an authentication attempt event listener.
  1772. *
  1773. * @param mixed $callback
  1774. * @return void
  1775. * @static
  1776. */
  1777. public static function attempting($callback)
  1778. {
  1779. /** @var \Illuminate\Auth\SessionGuard $instance */
  1780. $instance->attempting($callback);
  1781. }
  1782. /**
  1783. * Get the last user we attempted to authenticate.
  1784. *
  1785. * @return \App\User
  1786. * @static
  1787. */
  1788. public static function getLastAttempted()
  1789. {
  1790. /** @var \Illuminate\Auth\SessionGuard $instance */
  1791. return $instance->getLastAttempted();
  1792. }
  1793. /**
  1794. * Get a unique identifier for the auth session value.
  1795. *
  1796. * @return string
  1797. * @static
  1798. */
  1799. public static function getName()
  1800. {
  1801. /** @var \Illuminate\Auth\SessionGuard $instance */
  1802. return $instance->getName();
  1803. }
  1804. /**
  1805. * Get the name of the cookie used to store the "recaller".
  1806. *
  1807. * @return string
  1808. * @static
  1809. */
  1810. public static function getRecallerName()
  1811. {
  1812. /** @var \Illuminate\Auth\SessionGuard $instance */
  1813. return $instance->getRecallerName();
  1814. }
  1815. /**
  1816. * Determine if the user was authenticated via "remember me" cookie.
  1817. *
  1818. * @return bool
  1819. * @static
  1820. */
  1821. public static function viaRemember()
  1822. {
  1823. /** @var \Illuminate\Auth\SessionGuard $instance */
  1824. return $instance->viaRemember();
  1825. }
  1826. /**
  1827. * Get the cookie creator instance used by the guard.
  1828. *
  1829. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1830. * @throws \RuntimeException
  1831. * @static
  1832. */
  1833. public static function getCookieJar()
  1834. {
  1835. /** @var \Illuminate\Auth\SessionGuard $instance */
  1836. return $instance->getCookieJar();
  1837. }
  1838. /**
  1839. * Set the cookie creator instance used by the guard.
  1840. *
  1841. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1842. * @return void
  1843. * @static
  1844. */
  1845. public static function setCookieJar($cookie)
  1846. {
  1847. /** @var \Illuminate\Auth\SessionGuard $instance */
  1848. $instance->setCookieJar($cookie);
  1849. }
  1850. /**
  1851. * Get the event dispatcher instance.
  1852. *
  1853. * @return \Illuminate\Contracts\Events\Dispatcher
  1854. * @static
  1855. */
  1856. public static function getDispatcher()
  1857. {
  1858. /** @var \Illuminate\Auth\SessionGuard $instance */
  1859. return $instance->getDispatcher();
  1860. }
  1861. /**
  1862. * Set the event dispatcher instance.
  1863. *
  1864. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1865. * @return void
  1866. * @static
  1867. */
  1868. public static function setDispatcher($events)
  1869. {
  1870. /** @var \Illuminate\Auth\SessionGuard $instance */
  1871. $instance->setDispatcher($events);
  1872. }
  1873. /**
  1874. * Get the session store used by the guard.
  1875. *
  1876. * @return \Illuminate\Contracts\Session\Session
  1877. * @static
  1878. */
  1879. public static function getSession()
  1880. {
  1881. /** @var \Illuminate\Auth\SessionGuard $instance */
  1882. return $instance->getSession();
  1883. }
  1884. /**
  1885. * Return the currently cached user.
  1886. *
  1887. * @return \App\User|null
  1888. * @static
  1889. */
  1890. public static function getUser()
  1891. {
  1892. /** @var \Illuminate\Auth\SessionGuard $instance */
  1893. return $instance->getUser();
  1894. }
  1895. /**
  1896. * Set the current user.
  1897. *
  1898. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1899. * @return \Illuminate\Auth\SessionGuard
  1900. * @static
  1901. */
  1902. public static function setUser($user)
  1903. {
  1904. /** @var \Illuminate\Auth\SessionGuard $instance */
  1905. return $instance->setUser($user);
  1906. }
  1907. /**
  1908. * Get the current request instance.
  1909. *
  1910. * @return \Symfony\Component\HttpFoundation\Request
  1911. * @static
  1912. */
  1913. public static function getRequest()
  1914. {
  1915. /** @var \Illuminate\Auth\SessionGuard $instance */
  1916. return $instance->getRequest();
  1917. }
  1918. /**
  1919. * Set the current request instance.
  1920. *
  1921. * @param \Symfony\Component\HttpFoundation\Request $request
  1922. * @return \Illuminate\Auth\SessionGuard
  1923. * @static
  1924. */
  1925. public static function setRequest($request)
  1926. {
  1927. /** @var \Illuminate\Auth\SessionGuard $instance */
  1928. return $instance->setRequest($request);
  1929. }
  1930. /**
  1931. * Determine if current user is authenticated. If not, throw an exception.
  1932. *
  1933. * @return \App\User
  1934. * @throws \Illuminate\Auth\AuthenticationException
  1935. * @static
  1936. */
  1937. public static function authenticate()
  1938. {
  1939. /** @var \Illuminate\Auth\SessionGuard $instance */
  1940. return $instance->authenticate();
  1941. }
  1942. /**
  1943. * Determine if the guard has a user instance.
  1944. *
  1945. * @return bool
  1946. * @static
  1947. */
  1948. public static function hasUser()
  1949. {
  1950. /** @var \Illuminate\Auth\SessionGuard $instance */
  1951. return $instance->hasUser();
  1952. }
  1953. /**
  1954. * Determine if the current user is authenticated.
  1955. *
  1956. * @return bool
  1957. * @static
  1958. */
  1959. public static function check()
  1960. {
  1961. /** @var \Illuminate\Auth\SessionGuard $instance */
  1962. return $instance->check();
  1963. }
  1964. /**
  1965. * Determine if the current user is a guest.
  1966. *
  1967. * @return bool
  1968. * @static
  1969. */
  1970. public static function guest()
  1971. {
  1972. /** @var \Illuminate\Auth\SessionGuard $instance */
  1973. return $instance->guest();
  1974. }
  1975. /**
  1976. * Get the user provider used by the guard.
  1977. *
  1978. * @return \Illuminate\Contracts\Auth\UserProvider
  1979. * @static
  1980. */
  1981. public static function getProvider()
  1982. {
  1983. /** @var \Illuminate\Auth\SessionGuard $instance */
  1984. return $instance->getProvider();
  1985. }
  1986. /**
  1987. * Set the user provider used by the guard.
  1988. *
  1989. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  1990. * @return void
  1991. * @static
  1992. */
  1993. public static function setProvider($provider)
  1994. {
  1995. /** @var \Illuminate\Auth\SessionGuard $instance */
  1996. $instance->setProvider($provider);
  1997. }
  1998. /**
  1999. * Register a custom macro.
  2000. *
  2001. * @param string $name
  2002. * @param object|callable $macro
  2003. * @return void
  2004. * @static
  2005. */
  2006. public static function macro($name, $macro)
  2007. {
  2008. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2009. }
  2010. /**
  2011. * Mix another object into the class.
  2012. *
  2013. * @param object $mixin
  2014. * @param bool $replace
  2015. * @return void
  2016. * @throws \ReflectionException
  2017. * @static
  2018. */
  2019. public static function mixin($mixin, $replace = true)
  2020. {
  2021. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2022. }
  2023. /**
  2024. * Checks if macro is registered.
  2025. *
  2026. * @param string $name
  2027. * @return bool
  2028. * @static
  2029. */
  2030. public static function hasMacro($name)
  2031. {
  2032. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2033. }
  2034. }
  2035. /**
  2036. *
  2037. *
  2038. * @see \Illuminate\View\Compilers\BladeCompiler
  2039. */
  2040. class Blade {
  2041. /**
  2042. * Compile the view at the given path.
  2043. *
  2044. * @param string|null $path
  2045. * @return void
  2046. * @static
  2047. */
  2048. public static function compile($path = null)
  2049. {
  2050. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2051. $instance->compile($path);
  2052. }
  2053. /**
  2054. * Get the path currently being compiled.
  2055. *
  2056. * @return string
  2057. * @static
  2058. */
  2059. public static function getPath()
  2060. {
  2061. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2062. return $instance->getPath();
  2063. }
  2064. /**
  2065. * Set the path currently being compiled.
  2066. *
  2067. * @param string $path
  2068. * @return void
  2069. * @static
  2070. */
  2071. public static function setPath($path)
  2072. {
  2073. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2074. $instance->setPath($path);
  2075. }
  2076. /**
  2077. * Compile the given Blade template contents.
  2078. *
  2079. * @param string $value
  2080. * @return string
  2081. * @static
  2082. */
  2083. public static function compileString($value)
  2084. {
  2085. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2086. return $instance->compileString($value);
  2087. }
  2088. /**
  2089. * Strip the parentheses from the given expression.
  2090. *
  2091. * @param string $expression
  2092. * @return string
  2093. * @static
  2094. */
  2095. public static function stripParentheses($expression)
  2096. {
  2097. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2098. return $instance->stripParentheses($expression);
  2099. }
  2100. /**
  2101. * Register a custom Blade compiler.
  2102. *
  2103. * @param callable $compiler
  2104. * @return void
  2105. * @static
  2106. */
  2107. public static function extend($compiler)
  2108. {
  2109. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2110. $instance->extend($compiler);
  2111. }
  2112. /**
  2113. * Get the extensions used by the compiler.
  2114. *
  2115. * @return array
  2116. * @static
  2117. */
  2118. public static function getExtensions()
  2119. {
  2120. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2121. return $instance->getExtensions();
  2122. }
  2123. /**
  2124. * Register an "if" statement directive.
  2125. *
  2126. * @param string $name
  2127. * @param callable $callback
  2128. * @return void
  2129. * @static
  2130. */
  2131. public static function if($name, $callback)
  2132. {
  2133. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2134. $instance->if($name, $callback);
  2135. }
  2136. /**
  2137. * Check the result of a condition.
  2138. *
  2139. * @param string $name
  2140. * @param array $parameters
  2141. * @return bool
  2142. * @static
  2143. */
  2144. public static function check($name, ...$parameters)
  2145. {
  2146. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2147. return $instance->check($name, ...$parameters);
  2148. }
  2149. /**
  2150. * Register a component alias directive.
  2151. *
  2152. * @param string $path
  2153. * @param string|null $alias
  2154. * @return void
  2155. * @static
  2156. */
  2157. public static function component($path, $alias = null)
  2158. {
  2159. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2160. $instance->component($path, $alias);
  2161. }
  2162. /**
  2163. * Register an include alias directive.
  2164. *
  2165. * @param string $path
  2166. * @param string|null $alias
  2167. * @return void
  2168. * @static
  2169. */
  2170. public static function include($path, $alias = null)
  2171. {
  2172. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2173. $instance->include($path, $alias);
  2174. }
  2175. /**
  2176. * Register a handler for custom directives.
  2177. *
  2178. * @param string $name
  2179. * @param callable $handler
  2180. * @return void
  2181. * @static
  2182. */
  2183. public static function directive($name, $handler)
  2184. {
  2185. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2186. $instance->directive($name, $handler);
  2187. }
  2188. /**
  2189. * Get the list of custom directives.
  2190. *
  2191. * @return array
  2192. * @static
  2193. */
  2194. public static function getCustomDirectives()
  2195. {
  2196. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2197. return $instance->getCustomDirectives();
  2198. }
  2199. /**
  2200. * Set the echo format to be used by the compiler.
  2201. *
  2202. * @param string $format
  2203. * @return void
  2204. * @static
  2205. */
  2206. public static function setEchoFormat($format)
  2207. {
  2208. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2209. $instance->setEchoFormat($format);
  2210. }
  2211. /**
  2212. * Set the "echo" format to double encode entities.
  2213. *
  2214. * @return void
  2215. * @static
  2216. */
  2217. public static function withDoubleEncoding()
  2218. {
  2219. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2220. $instance->withDoubleEncoding();
  2221. }
  2222. /**
  2223. * Set the "echo" format to not double encode entities.
  2224. *
  2225. * @return void
  2226. * @static
  2227. */
  2228. public static function withoutDoubleEncoding()
  2229. {
  2230. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2231. $instance->withoutDoubleEncoding();
  2232. }
  2233. /**
  2234. * Get the path to the compiled version of a view.
  2235. *
  2236. * @param string $path
  2237. * @return string
  2238. * @static
  2239. */
  2240. public static function getCompiledPath($path)
  2241. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2242. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2243. return $instance->getCompiledPath($path);
  2244. }
  2245. /**
  2246. * Determine if the view at the given path is expired.
  2247. *
  2248. * @param string $path
  2249. * @return bool
  2250. * @static
  2251. */
  2252. public static function isExpired($path)
  2253. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2254. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2255. return $instance->isExpired($path);
  2256. }
  2257. }
  2258. /**
  2259. *
  2260. *
  2261. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback)
  2262. * @method static mixed auth(\Illuminate\Http\Request $request)
  2263. * @see \Illuminate\Contracts\Broadcasting\Factory
  2264. */
  2265. class Broadcast {
  2266. /**
  2267. * Register the routes for handling broadcast authentication and sockets.
  2268. *
  2269. * @param array|null $attributes
  2270. * @return void
  2271. * @static
  2272. */
  2273. public static function routes($attributes = null)
  2274. {
  2275. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2276. $instance->routes($attributes);
  2277. }
  2278. /**
  2279. * Get the socket ID for the given request.
  2280. *
  2281. * @param \Illuminate\Http\Request|null $request
  2282. * @return string|null
  2283. * @static
  2284. */
  2285. public static function socket($request = null)
  2286. {
  2287. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2288. return $instance->socket($request);
  2289. }
  2290. /**
  2291. * Begin broadcasting an event.
  2292. *
  2293. * @param mixed|null $event
  2294. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2295. * @static
  2296. */
  2297. public static function event($event = null)
  2298. {
  2299. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2300. return $instance->event($event);
  2301. }
  2302. /**
  2303. * Queue the given event for broadcast.
  2304. *
  2305. * @param mixed $event
  2306. * @return void
  2307. * @static
  2308. */
  2309. public static function queue($event)
  2310. {
  2311. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2312. $instance->queue($event);
  2313. }
  2314. /**
  2315. * Get a driver instance.
  2316. *
  2317. * @param string|null $driver
  2318. * @return mixed
  2319. * @static
  2320. */
  2321. public static function connection($driver = null)
  2322. {
  2323. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2324. return $instance->connection($driver);
  2325. }
  2326. /**
  2327. * Get a driver instance.
  2328. *
  2329. * @param string|null $name
  2330. * @return mixed
  2331. * @static
  2332. */
  2333. public static function driver($name = null)
  2334. {
  2335. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2336. return $instance->driver($name);
  2337. }
  2338. /**
  2339. * Get the default driver name.
  2340. *
  2341. * @return string
  2342. * @static
  2343. */
  2344. public static function getDefaultDriver()
  2345. {
  2346. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2347. return $instance->getDefaultDriver();
  2348. }
  2349. /**
  2350. * Set the default driver name.
  2351. *
  2352. * @param string $name
  2353. * @return void
  2354. * @static
  2355. */
  2356. public static function setDefaultDriver($name)
  2357. {
  2358. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2359. $instance->setDefaultDriver($name);
  2360. }
  2361. /**
  2362. * Register a custom driver creator Closure.
  2363. *
  2364. * @param string $driver
  2365. * @param \Closure $callback
  2366. * @return \Illuminate\Broadcasting\BroadcastManager
  2367. * @static
  2368. */
  2369. public static function extend($driver, $callback)
  2370. {
  2371. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2372. return $instance->extend($driver, $callback);
  2373. }
  2374. }
  2375. /**
  2376. *
  2377. *
  2378. * @see \Illuminate\Contracts\Bus\Dispatcher
  2379. */
  2380. class Bus {
  2381. /**
  2382. * Dispatch a command to its appropriate handler.
  2383. *
  2384. * @param mixed $command
  2385. * @return mixed
  2386. * @static
  2387. */
  2388. public static function dispatch($command)
  2389. {
  2390. /** @var \Illuminate\Bus\Dispatcher $instance */
  2391. return $instance->dispatch($command);
  2392. }
  2393. /**
  2394. * Dispatch a command to its appropriate handler in the current process.
  2395. *
  2396. * @param mixed $command
  2397. * @param mixed $handler
  2398. * @return mixed
  2399. * @static
  2400. */
  2401. public static function dispatchNow($command, $handler = null)
  2402. {
  2403. /** @var \Illuminate\Bus\Dispatcher $instance */
  2404. return $instance->dispatchNow($command, $handler);
  2405. }
  2406. /**
  2407. * Determine if the given command has a handler.
  2408. *
  2409. * @param mixed $command
  2410. * @return bool
  2411. * @static
  2412. */
  2413. public static function hasCommandHandler($command)
  2414. {
  2415. /** @var \Illuminate\Bus\Dispatcher $instance */
  2416. return $instance->hasCommandHandler($command);
  2417. }
  2418. /**
  2419. * Retrieve the handler for a command.
  2420. *
  2421. * @param mixed $command
  2422. * @return bool|mixed
  2423. * @static
  2424. */
  2425. public static function getCommandHandler($command)
  2426. {
  2427. /** @var \Illuminate\Bus\Dispatcher $instance */
  2428. return $instance->getCommandHandler($command);
  2429. }
  2430. /**
  2431. * Dispatch a command to its appropriate handler behind a queue.
  2432. *
  2433. * @param mixed $command
  2434. * @return mixed
  2435. * @throws \RuntimeException
  2436. * @static
  2437. */
  2438. public static function dispatchToQueue($command)
  2439. {
  2440. /** @var \Illuminate\Bus\Dispatcher $instance */
  2441. return $instance->dispatchToQueue($command);
  2442. }
  2443. /**
  2444. * Set the pipes through which commands should be piped before dispatching.
  2445. *
  2446. * @param array $pipes
  2447. * @return \Illuminate\Bus\Dispatcher
  2448. * @static
  2449. */
  2450. public static function pipeThrough($pipes)
  2451. {
  2452. /** @var \Illuminate\Bus\Dispatcher $instance */
  2453. return $instance->pipeThrough($pipes);
  2454. }
  2455. /**
  2456. * Map a command to a handler.
  2457. *
  2458. * @param array $map
  2459. * @return \Illuminate\Bus\Dispatcher
  2460. * @static
  2461. */
  2462. public static function map($map)
  2463. {
  2464. /** @var \Illuminate\Bus\Dispatcher $instance */
  2465. return $instance->map($map);
  2466. }
  2467. /**
  2468. * Assert if a job was dispatched based on a truth-test callback.
  2469. *
  2470. * @param string $command
  2471. * @param callable|int|null $callback
  2472. * @return void
  2473. * @static
  2474. */
  2475. public static function assertDispatched($command, $callback = null)
  2476. {
  2477. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2478. $instance->assertDispatched($command, $callback);
  2479. }
  2480. /**
  2481. * Determine if a job was dispatched based on a truth-test callback.
  2482. *
  2483. * @param string $command
  2484. * @param callable|null $callback
  2485. * @return void
  2486. * @static
  2487. */
  2488. public static function assertNotDispatched($command, $callback = null)
  2489. {
  2490. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2491. $instance->assertNotDispatched($command, $callback);
  2492. }
  2493. /**
  2494. * Get all of the jobs matching a truth-test callback.
  2495. *
  2496. * @param string $command
  2497. * @param callable|null $callback
  2498. * @return \Illuminate\Support\Collection
  2499. * @static
  2500. */
  2501. public static function dispatched($command, $callback = null)
  2502. {
  2503. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2504. return $instance->dispatched($command, $callback);
  2505. }
  2506. /**
  2507. * Determine if there are any stored commands for a given class.
  2508. *
  2509. * @param string $command
  2510. * @return bool
  2511. * @static
  2512. */
  2513. public static function hasDispatched($command)
  2514. {
  2515. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2516. return $instance->hasDispatched($command);
  2517. }
  2518. }
  2519. /**
  2520. *
  2521. *
  2522. * @see \Illuminate\Cache\CacheManager
  2523. * @see \Illuminate\Cache\Repository
  2524. */
  2525. class Cache {
  2526. /**
  2527. * Get a cache store instance by name, wrapped in a repository.
  2528. *
  2529. * @param string|null $name
  2530. * @return \Illuminate\Contracts\Cache\Repository
  2531. * @static
  2532. */
  2533. public static function store($name = null)
  2534. {
  2535. /** @var \Illuminate\Cache\CacheManager $instance */
  2536. return $instance->store($name);
  2537. }
  2538. /**
  2539. * Get a cache driver instance.
  2540. *
  2541. * @param string|null $driver
  2542. * @return \Illuminate\Contracts\Cache\Repository
  2543. * @static
  2544. */
  2545. public static function driver($driver = null)
  2546. {
  2547. /** @var \Illuminate\Cache\CacheManager $instance */
  2548. return $instance->driver($driver);
  2549. }
  2550. /**
  2551. * Create a new cache repository with the given implementation.
  2552. *
  2553. * @param \Illuminate\Contracts\Cache\Store $store
  2554. * @return \Illuminate\Cache\Repository
  2555. * @static
  2556. */
  2557. public static function repository($store)
  2558. {
  2559. /** @var \Illuminate\Cache\CacheManager $instance */
  2560. return $instance->repository($store);
  2561. }
  2562. /**
  2563. * Get the default cache driver name.
  2564. *
  2565. * @return string
  2566. * @static
  2567. */
  2568. public static function getDefaultDriver()
  2569. {
  2570. /** @var \Illuminate\Cache\CacheManager $instance */
  2571. return $instance->getDefaultDriver();
  2572. }
  2573. /**
  2574. * Set the default cache driver name.
  2575. *
  2576. * @param string $name
  2577. * @return void
  2578. * @static
  2579. */
  2580. public static function setDefaultDriver($name)
  2581. {
  2582. /** @var \Illuminate\Cache\CacheManager $instance */
  2583. $instance->setDefaultDriver($name);
  2584. }
  2585. /**
  2586. * Unset the given driver instances.
  2587. *
  2588. * @param array|string|null $name
  2589. * @return \Illuminate\Cache\CacheManager
  2590. * @static
  2591. */
  2592. public static function forgetDriver($name = null)
  2593. {
  2594. /** @var \Illuminate\Cache\CacheManager $instance */
  2595. return $instance->forgetDriver($name);
  2596. }
  2597. /**
  2598. * Register a custom driver creator Closure.
  2599. *
  2600. * @param string $driver
  2601. * @param \Closure $callback
  2602. * @return \Illuminate\Cache\CacheManager
  2603. * @static
  2604. */
  2605. public static function extend($driver, $callback)
  2606. {
  2607. /** @var \Illuminate\Cache\CacheManager $instance */
  2608. return $instance->extend($driver, $callback);
  2609. }
  2610. /**
  2611. * Determine if an item exists in the cache.
  2612. *
  2613. * @param string $key
  2614. * @return bool
  2615. * @static
  2616. */
  2617. public static function has($key)
  2618. {
  2619. /** @var \Illuminate\Cache\Repository $instance */
  2620. return $instance->has($key);
  2621. }
  2622. /**
  2623. * Determine if an item doesn't exist in the cache.
  2624. *
  2625. * @param string $key
  2626. * @return bool
  2627. * @static
  2628. */
  2629. public static function missing($key)
  2630. {
  2631. /** @var \Illuminate\Cache\Repository $instance */
  2632. return $instance->missing($key);
  2633. }
  2634. /**
  2635. * Retrieve an item from the cache by key.
  2636. *
  2637. * @param string $key
  2638. * @param mixed $default
  2639. * @return mixed
  2640. * @static
  2641. */
  2642. public static function get($key, $default = null)
  2643. {
  2644. /** @var \Illuminate\Cache\Repository $instance */
  2645. return $instance->get($key, $default);
  2646. }
  2647. /**
  2648. * Retrieve multiple items from the cache by key.
  2649. *
  2650. * Items not found in the cache will have a null value.
  2651. *
  2652. * @param array $keys
  2653. * @return array
  2654. * @static
  2655. */
  2656. public static function many($keys)
  2657. {
  2658. /** @var \Illuminate\Cache\Repository $instance */
  2659. return $instance->many($keys);
  2660. }
  2661. /**
  2662. * Obtains multiple cache items by their unique keys.
  2663. *
  2664. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2665. * @param mixed $default Default value to return for keys that do not exist.
  2666. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2667. * @throws \Psr\SimpleCache\InvalidArgumentException
  2668. * MUST be thrown if $keys is neither an array nor a Traversable,
  2669. * or if any of the $keys are not a legal value.
  2670. * @static
  2671. */
  2672. public static function getMultiple($keys, $default = null)
  2673. {
  2674. /** @var \Illuminate\Cache\Repository $instance */
  2675. return $instance->getMultiple($keys, $default);
  2676. }
  2677. /**
  2678. * Retrieve an item from the cache and delete it.
  2679. *
  2680. * @param string $key
  2681. * @param mixed $default
  2682. * @return mixed
  2683. * @static
  2684. */
  2685. public static function pull($key, $default = null)
  2686. {
  2687. /** @var \Illuminate\Cache\Repository $instance */
  2688. return $instance->pull($key, $default);
  2689. }
  2690. /**
  2691. * Store an item in the cache.
  2692. *
  2693. * @param string $key
  2694. * @param mixed $value
  2695. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2696. * @return bool
  2697. * @static
  2698. */
  2699. public static function put($key, $value, $ttl = null)
  2700. {
  2701. /** @var \Illuminate\Cache\Repository $instance */
  2702. return $instance->put($key, $value, $ttl);
  2703. }
  2704. /**
  2705. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2706. *
  2707. * @param string $key The key of the item to store.
  2708. * @param mixed $value The value of the item to store, must be serializable.
  2709. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2710. * the driver supports TTL then the library may set a default value
  2711. * for it or let the driver take care of that.
  2712. * @return bool True on success and false on failure.
  2713. * @throws \Psr\SimpleCache\InvalidArgumentException
  2714. * MUST be thrown if the $key string is not a legal value.
  2715. * @static
  2716. */
  2717. public static function set($key, $value, $ttl = null)
  2718. {
  2719. /** @var \Illuminate\Cache\Repository $instance */
  2720. return $instance->set($key, $value, $ttl);
  2721. }
  2722. /**
  2723. * Store multiple items in the cache for a given number of seconds.
  2724. *
  2725. * @param array $values
  2726. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2727. * @return bool
  2728. * @static
  2729. */
  2730. public static function putMany($values, $ttl = null)
  2731. {
  2732. /** @var \Illuminate\Cache\Repository $instance */
  2733. return $instance->putMany($values, $ttl);
  2734. }
  2735. /**
  2736. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2737. *
  2738. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2739. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2740. * the driver supports TTL then the library may set a default value
  2741. * for it or let the driver take care of that.
  2742. * @return bool True on success and false on failure.
  2743. * @throws \Psr\SimpleCache\InvalidArgumentException
  2744. * MUST be thrown if $values is neither an array nor a Traversable,
  2745. * or if any of the $values are not a legal value.
  2746. * @static
  2747. */
  2748. public static function setMultiple($values, $ttl = null)
  2749. {
  2750. /** @var \Illuminate\Cache\Repository $instance */
  2751. return $instance->setMultiple($values, $ttl);
  2752. }
  2753. /**
  2754. * Store an item in the cache if the key does not exist.
  2755. *
  2756. * @param string $key
  2757. * @param mixed $value
  2758. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2759. * @return bool
  2760. * @static
  2761. */
  2762. public static function add($key, $value, $ttl = null)
  2763. {
  2764. /** @var \Illuminate\Cache\Repository $instance */
  2765. return $instance->add($key, $value, $ttl);
  2766. }
  2767. /**
  2768. * Increment the value of an item in the cache.
  2769. *
  2770. * @param string $key
  2771. * @param mixed $value
  2772. * @return int|bool
  2773. * @static
  2774. */
  2775. public static function increment($key, $value = 1)
  2776. {
  2777. /** @var \Illuminate\Cache\Repository $instance */
  2778. return $instance->increment($key, $value);
  2779. }
  2780. /**
  2781. * Decrement the value of an item in the cache.
  2782. *
  2783. * @param string $key
  2784. * @param mixed $value
  2785. * @return int|bool
  2786. * @static
  2787. */
  2788. public static function decrement($key, $value = 1)
  2789. {
  2790. /** @var \Illuminate\Cache\Repository $instance */
  2791. return $instance->decrement($key, $value);
  2792. }
  2793. /**
  2794. * Store an item in the cache indefinitely.
  2795. *
  2796. * @param string $key
  2797. * @param mixed $value
  2798. * @return bool
  2799. * @static
  2800. */
  2801. public static function forever($key, $value)
  2802. {
  2803. /** @var \Illuminate\Cache\Repository $instance */
  2804. return $instance->forever($key, $value);
  2805. }
  2806. /**
  2807. * Get an item from the cache, or execute the given Closure and store the result.
  2808. *
  2809. * @param string $key
  2810. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2811. * @param \Closure $callback
  2812. * @return mixed
  2813. * @static
  2814. */
  2815. public static function remember($key, $ttl, $callback)
  2816. {
  2817. /** @var \Illuminate\Cache\Repository $instance */
  2818. return $instance->remember($key, $ttl, $callback);
  2819. }
  2820. /**
  2821. * Get an item from the cache, or execute the given Closure and store the result forever.
  2822. *
  2823. * @param string $key
  2824. * @param \Closure $callback
  2825. * @return mixed
  2826. * @static
  2827. */
  2828. public static function sear($key, $callback)
  2829. {
  2830. /** @var \Illuminate\Cache\Repository $instance */
  2831. return $instance->sear($key, $callback);
  2832. }
  2833. /**
  2834. * Get an item from the cache, or execute the given Closure and store the result forever.
  2835. *
  2836. * @param string $key
  2837. * @param \Closure $callback
  2838. * @return mixed
  2839. * @static
  2840. */
  2841. public static function rememberForever($key, $callback)
  2842. {
  2843. /** @var \Illuminate\Cache\Repository $instance */
  2844. return $instance->rememberForever($key, $callback);
  2845. }
  2846. /**
  2847. * Remove an item from the cache.
  2848. *
  2849. * @param string $key
  2850. * @return bool
  2851. * @static
  2852. */
  2853. public static function forget($key)
  2854. {
  2855. /** @var \Illuminate\Cache\Repository $instance */
  2856. return $instance->forget($key);
  2857. }
  2858. /**
  2859. * Delete an item from the cache by its unique key.
  2860. *
  2861. * @param string $key The unique cache key of the item to delete.
  2862. * @return bool True if the item was successfully removed. False if there was an error.
  2863. * @throws \Psr\SimpleCache\InvalidArgumentException
  2864. * MUST be thrown if the $key string is not a legal value.
  2865. * @static
  2866. */
  2867. public static function delete($key)
  2868. {
  2869. /** @var \Illuminate\Cache\Repository $instance */
  2870. return $instance->delete($key);
  2871. }
  2872. /**
  2873. * Deletes multiple cache items in a single operation.
  2874. *
  2875. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2876. * @return bool True if the items were successfully removed. False if there was an error.
  2877. * @throws \Psr\SimpleCache\InvalidArgumentException
  2878. * MUST be thrown if $keys is neither an array nor a Traversable,
  2879. * or if any of the $keys are not a legal value.
  2880. * @static
  2881. */
  2882. public static function deleteMultiple($keys)
  2883. {
  2884. /** @var \Illuminate\Cache\Repository $instance */
  2885. return $instance->deleteMultiple($keys);
  2886. }
  2887. /**
  2888. * Wipes clean the entire cache's keys.
  2889. *
  2890. * @return bool True on success and false on failure.
  2891. * @static
  2892. */
  2893. public static function clear()
  2894. {
  2895. /** @var \Illuminate\Cache\Repository $instance */
  2896. return $instance->clear();
  2897. }
  2898. /**
  2899. * Begin executing a new tags operation if the store supports it.
  2900. *
  2901. * @param array|mixed $names
  2902. * @return \Illuminate\Cache\TaggedCache
  2903. * @throws \BadMethodCallException
  2904. * @static
  2905. */
  2906. public static function tags($names)
  2907. {
  2908. /** @var \Illuminate\Cache\Repository $instance */
  2909. return $instance->tags($names);
  2910. }
  2911. /**
  2912. * Get the default cache time.
  2913. *
  2914. * @return int
  2915. * @static
  2916. */
  2917. public static function getDefaultCacheTime()
  2918. {
  2919. /** @var \Illuminate\Cache\Repository $instance */
  2920. return $instance->getDefaultCacheTime();
  2921. }
  2922. /**
  2923. * Set the default cache time in seconds.
  2924. *
  2925. * @param int|null $seconds
  2926. * @return \Illuminate\Cache\Repository
  2927. * @static
  2928. */
  2929. public static function setDefaultCacheTime($seconds)
  2930. {
  2931. /** @var \Illuminate\Cache\Repository $instance */
  2932. return $instance->setDefaultCacheTime($seconds);
  2933. }
  2934. /**
  2935. * Get the cache store implementation.
  2936. *
  2937. * @return \Illuminate\Contracts\Cache\Store
  2938. * @static
  2939. */
  2940. public static function getStore()
  2941. {
  2942. /** @var \Illuminate\Cache\Repository $instance */
  2943. return $instance->getStore();
  2944. }
  2945. /**
  2946. * Set the event dispatcher instance.
  2947. *
  2948. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2949. * @return void
  2950. * @static
  2951. */
  2952. public static function setEventDispatcher($events)
  2953. {
  2954. /** @var \Illuminate\Cache\Repository $instance */
  2955. $instance->setEventDispatcher($events);
  2956. }
  2957. /**
  2958. * Determine if a cached value exists.
  2959. *
  2960. * @param string $key
  2961. * @return bool
  2962. * @static
  2963. */
  2964. public static function offsetExists($key)
  2965. {
  2966. /** @var \Illuminate\Cache\Repository $instance */
  2967. return $instance->offsetExists($key);
  2968. }
  2969. /**
  2970. * Retrieve an item from the cache by key.
  2971. *
  2972. * @param string $key
  2973. * @return mixed
  2974. * @static
  2975. */
  2976. public static function offsetGet($key)
  2977. {
  2978. /** @var \Illuminate\Cache\Repository $instance */
  2979. return $instance->offsetGet($key);
  2980. }
  2981. /**
  2982. * Store an item in the cache for the default time.
  2983. *
  2984. * @param string $key
  2985. * @param mixed $value
  2986. * @return void
  2987. * @static
  2988. */
  2989. public static function offsetSet($key, $value)
  2990. {
  2991. /** @var \Illuminate\Cache\Repository $instance */
  2992. $instance->offsetSet($key, $value);
  2993. }
  2994. /**
  2995. * Remove an item from the cache.
  2996. *
  2997. * @param string $key
  2998. * @return void
  2999. * @static
  3000. */
  3001. public static function offsetUnset($key)
  3002. {
  3003. /** @var \Illuminate\Cache\Repository $instance */
  3004. $instance->offsetUnset($key);
  3005. }
  3006. /**
  3007. * Register a custom macro.
  3008. *
  3009. * @param string $name
  3010. * @param object|callable $macro
  3011. * @return void
  3012. * @static
  3013. */
  3014. public static function macro($name, $macro)
  3015. {
  3016. \Illuminate\Cache\Repository::macro($name, $macro);
  3017. }
  3018. /**
  3019. * Mix another object into the class.
  3020. *
  3021. * @param object $mixin
  3022. * @param bool $replace
  3023. * @return void
  3024. * @throws \ReflectionException
  3025. * @static
  3026. */
  3027. public static function mixin($mixin, $replace = true)
  3028. {
  3029. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3030. }
  3031. /**
  3032. * Checks if macro is registered.
  3033. *
  3034. * @param string $name
  3035. * @return bool
  3036. * @static
  3037. */
  3038. public static function hasMacro($name)
  3039. {
  3040. return \Illuminate\Cache\Repository::hasMacro($name);
  3041. }
  3042. /**
  3043. * Dynamically handle calls to the class.
  3044. *
  3045. * @param string $method
  3046. * @param array $parameters
  3047. * @return mixed
  3048. * @throws \BadMethodCallException
  3049. * @static
  3050. */
  3051. public static function macroCall($method, $parameters)
  3052. {
  3053. /** @var \Illuminate\Cache\Repository $instance */
  3054. return $instance->macroCall($method, $parameters);
  3055. }
  3056. /**
  3057. * Remove all items from the cache.
  3058. *
  3059. * @return bool
  3060. * @static
  3061. */
  3062. public static function flush()
  3063. {
  3064. /** @var \Illuminate\Cache\FileStore $instance */
  3065. return $instance->flush();
  3066. }
  3067. /**
  3068. * Get the Filesystem instance.
  3069. *
  3070. * @return \Illuminate\Filesystem\Filesystem
  3071. * @static
  3072. */
  3073. public static function getFilesystem()
  3074. {
  3075. /** @var \Illuminate\Cache\FileStore $instance */
  3076. return $instance->getFilesystem();
  3077. }
  3078. /**
  3079. * Get the working directory of the cache.
  3080. *
  3081. * @return string
  3082. * @static
  3083. */
  3084. public static function getDirectory()
  3085. {
  3086. /** @var \Illuminate\Cache\FileStore $instance */
  3087. return $instance->getDirectory();
  3088. }
  3089. /**
  3090. * Get the cache key prefix.
  3091. *
  3092. * @return string
  3093. * @static
  3094. */
  3095. public static function getPrefix()
  3096. {
  3097. /** @var \Illuminate\Cache\FileStore $instance */
  3098. return $instance->getPrefix();
  3099. }
  3100. }
  3101. /**
  3102. *
  3103. *
  3104. * @see \Illuminate\Config\Repository
  3105. */
  3106. class Config {
  3107. /**
  3108. * Determine if the given configuration value exists.
  3109. *
  3110. * @param string $key
  3111. * @return bool
  3112. * @static
  3113. */
  3114. public static function has($key)
  3115. {
  3116. /** @var \Illuminate\Config\Repository $instance */
  3117. return $instance->has($key);
  3118. }
  3119. /**
  3120. * Get the specified configuration value.
  3121. *
  3122. * @param array|string $key
  3123. * @param mixed $default
  3124. * @return mixed
  3125. * @static
  3126. */
  3127. public static function get($key, $default = null)
  3128. {
  3129. /** @var \Illuminate\Config\Repository $instance */
  3130. return $instance->get($key, $default);
  3131. }
  3132. /**
  3133. * Get many configuration values.
  3134. *
  3135. * @param array $keys
  3136. * @return array
  3137. * @static
  3138. */
  3139. public static function getMany($keys)
  3140. {
  3141. /** @var \Illuminate\Config\Repository $instance */
  3142. return $instance->getMany($keys);
  3143. }
  3144. /**
  3145. * Set a given configuration value.
  3146. *
  3147. * @param array|string $key
  3148. * @param mixed $value
  3149. * @return void
  3150. * @static
  3151. */
  3152. public static function set($key, $value = null)
  3153. {
  3154. /** @var \Illuminate\Config\Repository $instance */
  3155. $instance->set($key, $value);
  3156. }
  3157. /**
  3158. * Prepend a value onto an array configuration value.
  3159. *
  3160. * @param string $key
  3161. * @param mixed $value
  3162. * @return void
  3163. * @static
  3164. */
  3165. public static function prepend($key, $value)
  3166. {
  3167. /** @var \Illuminate\Config\Repository $instance */
  3168. $instance->prepend($key, $value);
  3169. }
  3170. /**
  3171. * Push a value onto an array configuration value.
  3172. *
  3173. * @param string $key
  3174. * @param mixed $value
  3175. * @return void
  3176. * @static
  3177. */
  3178. public static function push($key, $value)
  3179. {
  3180. /** @var \Illuminate\Config\Repository $instance */
  3181. $instance->push($key, $value);
  3182. }
  3183. /**
  3184. * Get all of the configuration items for the application.
  3185. *
  3186. * @return array
  3187. * @static
  3188. */
  3189. public static function all()
  3190. {
  3191. /** @var \Illuminate\Config\Repository $instance */
  3192. return $instance->all();
  3193. }
  3194. /**
  3195. * Determine if the given configuration option exists.
  3196. *
  3197. * @param string $key
  3198. * @return bool
  3199. * @static
  3200. */
  3201. public static function offsetExists($key)
  3202. {
  3203. /** @var \Illuminate\Config\Repository $instance */
  3204. return $instance->offsetExists($key);
  3205. }
  3206. /**
  3207. * Get a configuration option.
  3208. *
  3209. * @param string $key
  3210. * @return mixed
  3211. * @static
  3212. */
  3213. public static function offsetGet($key)
  3214. {
  3215. /** @var \Illuminate\Config\Repository $instance */
  3216. return $instance->offsetGet($key);
  3217. }
  3218. /**
  3219. * Set a configuration option.
  3220. *
  3221. * @param string $key
  3222. * @param mixed $value
  3223. * @return void
  3224. * @static
  3225. */
  3226. public static function offsetSet($key, $value)
  3227. {
  3228. /** @var \Illuminate\Config\Repository $instance */
  3229. $instance->offsetSet($key, $value);
  3230. }
  3231. /**
  3232. * Unset a configuration option.
  3233. *
  3234. * @param string $key
  3235. * @return void
  3236. * @static
  3237. */
  3238. public static function offsetUnset($key)
  3239. {
  3240. /** @var \Illuminate\Config\Repository $instance */
  3241. $instance->offsetUnset($key);
  3242. }
  3243. }
  3244. /**
  3245. *
  3246. *
  3247. * @see \Illuminate\Cookie\CookieJar
  3248. */
  3249. class Cookie {
  3250. /**
  3251. * Create a new cookie instance.
  3252. *
  3253. * @param string $name
  3254. * @param string $value
  3255. * @param int $minutes
  3256. * @param string|null $path
  3257. * @param string|null $domain
  3258. * @param bool|null $secure
  3259. * @param bool $httpOnly
  3260. * @param bool $raw
  3261. * @param string|null $sameSite
  3262. * @return \Symfony\Component\HttpFoundation\Cookie
  3263. * @static
  3264. */
  3265. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3266. {
  3267. /** @var \Illuminate\Cookie\CookieJar $instance */
  3268. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3269. }
  3270. /**
  3271. * Create a cookie that lasts "forever" (five years).
  3272. *
  3273. * @param string $name
  3274. * @param string $value
  3275. * @param string|null $path
  3276. * @param string|null $domain
  3277. * @param bool|null $secure
  3278. * @param bool $httpOnly
  3279. * @param bool $raw
  3280. * @param string|null $sameSite
  3281. * @return \Symfony\Component\HttpFoundation\Cookie
  3282. * @static
  3283. */
  3284. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3285. {
  3286. /** @var \Illuminate\Cookie\CookieJar $instance */
  3287. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3288. }
  3289. /**
  3290. * Expire the given cookie.
  3291. *
  3292. * @param string $name
  3293. * @param string|null $path
  3294. * @param string|null $domain
  3295. * @return \Symfony\Component\HttpFoundation\Cookie
  3296. * @static
  3297. */
  3298. public static function forget($name, $path = null, $domain = null)
  3299. {
  3300. /** @var \Illuminate\Cookie\CookieJar $instance */
  3301. return $instance->forget($name, $path, $domain);
  3302. }
  3303. /**
  3304. * Determine if a cookie has been queued.
  3305. *
  3306. * @param string $key
  3307. * @return bool
  3308. * @static
  3309. */
  3310. public static function hasQueued($key)
  3311. {
  3312. /** @var \Illuminate\Cookie\CookieJar $instance */
  3313. return $instance->hasQueued($key);
  3314. }
  3315. /**
  3316. * Get a queued cookie instance.
  3317. *
  3318. * @param string $key
  3319. * @param mixed $default
  3320. * @return \Symfony\Component\HttpFoundation\Cookie
  3321. * @static
  3322. */
  3323. public static function queued($key, $default = null)
  3324. {
  3325. /** @var \Illuminate\Cookie\CookieJar $instance */
  3326. return $instance->queued($key, $default);
  3327. }
  3328. /**
  3329. * Queue a cookie to send with the next response.
  3330. *
  3331. * @param array $parameters
  3332. * @return void
  3333. * @static
  3334. */
  3335. public static function queue(...$parameters)
  3336. {
  3337. /** @var \Illuminate\Cookie\CookieJar $instance */
  3338. $instance->queue(...$parameters);
  3339. }
  3340. /**
  3341. * Remove a cookie from the queue.
  3342. *
  3343. * @param string $name
  3344. * @return void
  3345. * @static
  3346. */
  3347. public static function unqueue($name)
  3348. {
  3349. /** @var \Illuminate\Cookie\CookieJar $instance */
  3350. $instance->unqueue($name);
  3351. }
  3352. /**
  3353. * Set the default path and domain for the jar.
  3354. *
  3355. * @param string $path
  3356. * @param string $domain
  3357. * @param bool $secure
  3358. * @param string|null $sameSite
  3359. * @return \Illuminate\Cookie\CookieJar
  3360. * @static
  3361. */
  3362. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3363. {
  3364. /** @var \Illuminate\Cookie\CookieJar $instance */
  3365. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3366. }
  3367. /**
  3368. * Get the cookies which have been queued for the next request.
  3369. *
  3370. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3371. * @static
  3372. */
  3373. public static function getQueuedCookies()
  3374. {
  3375. /** @var \Illuminate\Cookie\CookieJar $instance */
  3376. return $instance->getQueuedCookies();
  3377. }
  3378. /**
  3379. * Register a custom macro.
  3380. *
  3381. * @param string $name
  3382. * @param object|callable $macro
  3383. * @return void
  3384. * @static
  3385. */
  3386. public static function macro($name, $macro)
  3387. {
  3388. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  3389. }
  3390. /**
  3391. * Mix another object into the class.
  3392. *
  3393. * @param object $mixin
  3394. * @param bool $replace
  3395. * @return void
  3396. * @throws \ReflectionException
  3397. * @static
  3398. */
  3399. public static function mixin($mixin, $replace = true)
  3400. {
  3401. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  3402. }
  3403. /**
  3404. * Checks if macro is registered.
  3405. *
  3406. * @param string $name
  3407. * @return bool
  3408. * @static
  3409. */
  3410. public static function hasMacro($name)
  3411. {
  3412. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  3413. }
  3414. }
  3415. /**
  3416. *
  3417. *
  3418. * @see \Illuminate\Encryption\Encrypter
  3419. */
  3420. class Crypt {
  3421. /**
  3422. * Determine if the given key and cipher combination is valid.
  3423. *
  3424. * @param string $key
  3425. * @param string $cipher
  3426. * @return bool
  3427. * @static
  3428. */
  3429. public static function supported($key, $cipher)
  3430. {
  3431. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3432. }
  3433. /**
  3434. * Create a new encryption key for the given cipher.
  3435. *
  3436. * @param string $cipher
  3437. * @return string
  3438. * @static
  3439. */
  3440. public static function generateKey($cipher)
  3441. {
  3442. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3443. }
  3444. /**
  3445. * Encrypt the given value.
  3446. *
  3447. * @param mixed $value
  3448. * @param bool $serialize
  3449. * @return string
  3450. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3451. * @static
  3452. */
  3453. public static function encrypt($value, $serialize = true)
  3454. {
  3455. /** @var \Illuminate\Encryption\Encrypter $instance */
  3456. return $instance->encrypt($value, $serialize);
  3457. }
  3458. /**
  3459. * Encrypt a string without serialization.
  3460. *
  3461. * @param string $value
  3462. * @return string
  3463. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3464. * @static
  3465. */
  3466. public static function encryptString($value)
  3467. {
  3468. /** @var \Illuminate\Encryption\Encrypter $instance */
  3469. return $instance->encryptString($value);
  3470. }
  3471. /**
  3472. * Decrypt the given value.
  3473. *
  3474. * @param string $payload
  3475. * @param bool $unserialize
  3476. * @return mixed
  3477. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3478. * @static
  3479. */
  3480. public static function decrypt($payload, $unserialize = true)
  3481. {
  3482. /** @var \Illuminate\Encryption\Encrypter $instance */
  3483. return $instance->decrypt($payload, $unserialize);
  3484. }
  3485. /**
  3486. * Decrypt the given string without unserialization.
  3487. *
  3488. * @param string $payload
  3489. * @return string
  3490. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3491. * @static
  3492. */
  3493. public static function decryptString($payload)
  3494. {
  3495. /** @var \Illuminate\Encryption\Encrypter $instance */
  3496. return $instance->decryptString($payload);
  3497. }
  3498. /**
  3499. * Get the encryption key.
  3500. *
  3501. * @return string
  3502. * @static
  3503. */
  3504. public static function getKey()
  3505. {
  3506. /** @var \Illuminate\Encryption\Encrypter $instance */
  3507. return $instance->getKey();
  3508. }
  3509. }
  3510. /**
  3511. *
  3512. *
  3513. * @see \Illuminate\Database\DatabaseManager
  3514. * @see \Illuminate\Database\Connection
  3515. */
  3516. class DB {
  3517. /**
  3518. * Get a database connection instance.
  3519. *
  3520. * @param string|null $name
  3521. * @return \Illuminate\Database\Connection
  3522. * @static
  3523. */
  3524. public static function connection($name = null)
  3525. {
  3526. /** @var \Illuminate\Database\DatabaseManager $instance */
  3527. return $instance->connection($name);
  3528. }
  3529. /**
  3530. * Disconnect from the given database and remove from local cache.
  3531. *
  3532. * @param string|null $name
  3533. * @return void
  3534. * @static
  3535. */
  3536. public static function purge($name = null)
  3537. {
  3538. /** @var \Illuminate\Database\DatabaseManager $instance */
  3539. $instance->purge($name);
  3540. }
  3541. /**
  3542. * Disconnect from the given database.
  3543. *
  3544. * @param string|null $name
  3545. * @return void
  3546. * @static
  3547. */
  3548. public static function disconnect($name = null)
  3549. {
  3550. /** @var \Illuminate\Database\DatabaseManager $instance */
  3551. $instance->disconnect($name);
  3552. }
  3553. /**
  3554. * Reconnect to the given database.
  3555. *
  3556. * @param string|null $name
  3557. * @return \Illuminate\Database\Connection
  3558. * @static
  3559. */
  3560. public static function reconnect($name = null)
  3561. {
  3562. /** @var \Illuminate\Database\DatabaseManager $instance */
  3563. return $instance->reconnect($name);
  3564. }
  3565. /**
  3566. * Get the default connection name.
  3567. *
  3568. * @return string
  3569. * @static
  3570. */
  3571. public static function getDefaultConnection()
  3572. {
  3573. /** @var \Illuminate\Database\DatabaseManager $instance */
  3574. return $instance->getDefaultConnection();
  3575. }
  3576. /**
  3577. * Set the default connection name.
  3578. *
  3579. * @param string $name
  3580. * @return void
  3581. * @static
  3582. */
  3583. public static function setDefaultConnection($name)
  3584. {
  3585. /** @var \Illuminate\Database\DatabaseManager $instance */
  3586. $instance->setDefaultConnection($name);
  3587. }
  3588. /**
  3589. * Get all of the support drivers.
  3590. *
  3591. * @return array
  3592. * @static
  3593. */
  3594. public static function supportedDrivers()
  3595. {
  3596. /** @var \Illuminate\Database\DatabaseManager $instance */
  3597. return $instance->supportedDrivers();
  3598. }
  3599. /**
  3600. * Get all of the drivers that are actually available.
  3601. *
  3602. * @return array
  3603. * @static
  3604. */
  3605. public static function availableDrivers()
  3606. {
  3607. /** @var \Illuminate\Database\DatabaseManager $instance */
  3608. return $instance->availableDrivers();
  3609. }
  3610. /**
  3611. * Register an extension connection resolver.
  3612. *
  3613. * @param string $name
  3614. * @param callable $resolver
  3615. * @return void
  3616. * @static
  3617. */
  3618. public static function extend($name, $resolver)
  3619. {
  3620. /** @var \Illuminate\Database\DatabaseManager $instance */
  3621. $instance->extend($name, $resolver);
  3622. }
  3623. /**
  3624. * Return all of the created connections.
  3625. *
  3626. * @return array
  3627. * @static
  3628. */
  3629. public static function getConnections()
  3630. {
  3631. /** @var \Illuminate\Database\DatabaseManager $instance */
  3632. return $instance->getConnections();
  3633. }
  3634. /**
  3635. * Set the database reconnector callback.
  3636. *
  3637. * @param callable $reconnector
  3638. * @return void
  3639. * @static
  3640. */
  3641. public static function setReconnector($reconnector)
  3642. {
  3643. /** @var \Illuminate\Database\DatabaseManager $instance */
  3644. $instance->setReconnector($reconnector);
  3645. }
  3646. /**
  3647. * Get a schema builder instance for the connection.
  3648. *
  3649. * @return \Illuminate\Database\Schema\MySqlBuilder
  3650. * @static
  3651. */
  3652. public static function getSchemaBuilder()
  3653. {
  3654. /** @var \Illuminate\Database\MySqlConnection $instance */
  3655. return $instance->getSchemaBuilder();
  3656. }
  3657. /**
  3658. * Bind values to their parameters in the given statement.
  3659. *
  3660. * @param \PDOStatement $statement
  3661. * @param array $bindings
  3662. * @return void
  3663. * @static
  3664. */
  3665. public static function bindValues($statement, $bindings)
  3666. {
  3667. /** @var \Illuminate\Database\MySqlConnection $instance */
  3668. $instance->bindValues($statement, $bindings);
  3669. }
  3670. /**
  3671. * Set the query grammar to the default implementation.
  3672. *
  3673. * @return void
  3674. * @static
  3675. */
  3676. public static function useDefaultQueryGrammar()
  3677. { //Method inherited from \Illuminate\Database\Connection
  3678. /** @var \Illuminate\Database\MySqlConnection $instance */
  3679. $instance->useDefaultQueryGrammar();
  3680. }
  3681. /**
  3682. * Set the schema grammar to the default implementation.
  3683. *
  3684. * @return void
  3685. * @static
  3686. */
  3687. public static function useDefaultSchemaGrammar()
  3688. { //Method inherited from \Illuminate\Database\Connection
  3689. /** @var \Illuminate\Database\MySqlConnection $instance */
  3690. $instance->useDefaultSchemaGrammar();
  3691. }
  3692. /**
  3693. * Set the query post processor to the default implementation.
  3694. *
  3695. * @return void
  3696. * @static
  3697. */
  3698. public static function useDefaultPostProcessor()
  3699. { //Method inherited from \Illuminate\Database\Connection
  3700. /** @var \Illuminate\Database\MySqlConnection $instance */
  3701. $instance->useDefaultPostProcessor();
  3702. }
  3703. /**
  3704. * Begin a fluent query against a database table.
  3705. *
  3706. * @param string $table
  3707. * @return \Illuminate\Database\Query\Builder
  3708. * @static
  3709. */
  3710. public static function table($table)
  3711. { //Method inherited from \Illuminate\Database\Connection
  3712. /** @var \Illuminate\Database\MySqlConnection $instance */
  3713. return $instance->table($table);
  3714. }
  3715. /**
  3716. * Get a new query builder instance.
  3717. *
  3718. * @return \Illuminate\Database\Query\Builder
  3719. * @static
  3720. */
  3721. public static function query()
  3722. { //Method inherited from \Illuminate\Database\Connection
  3723. /** @var \Illuminate\Database\MySqlConnection $instance */
  3724. return $instance->query();
  3725. }
  3726. /**
  3727. * Run a select statement and return a single result.
  3728. *
  3729. * @param string $query
  3730. * @param array $bindings
  3731. * @param bool $useReadPdo
  3732. * @return mixed
  3733. * @static
  3734. */
  3735. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  3736. { //Method inherited from \Illuminate\Database\Connection
  3737. /** @var \Illuminate\Database\MySqlConnection $instance */
  3738. return $instance->selectOne($query, $bindings, $useReadPdo);
  3739. }
  3740. /**
  3741. * Run a select statement against the database.
  3742. *
  3743. * @param string $query
  3744. * @param array $bindings
  3745. * @return array
  3746. * @static
  3747. */
  3748. public static function selectFromWriteConnection($query, $bindings = [])
  3749. { //Method inherited from \Illuminate\Database\Connection
  3750. /** @var \Illuminate\Database\MySqlConnection $instance */
  3751. return $instance->selectFromWriteConnection($query, $bindings);
  3752. }
  3753. /**
  3754. * Run a select statement against the database.
  3755. *
  3756. * @param string $query
  3757. * @param array $bindings
  3758. * @param bool $useReadPdo
  3759. * @return array
  3760. * @static
  3761. */
  3762. public static function select($query, $bindings = [], $useReadPdo = true)
  3763. { //Method inherited from \Illuminate\Database\Connection
  3764. /** @var \Illuminate\Database\MySqlConnection $instance */
  3765. return $instance->select($query, $bindings, $useReadPdo);
  3766. }
  3767. /**
  3768. * Run a select statement against the database and returns a generator.
  3769. *
  3770. * @param string $query
  3771. * @param array $bindings
  3772. * @param bool $useReadPdo
  3773. * @return \Generator
  3774. * @static
  3775. */
  3776. public static function cursor($query, $bindings = [], $useReadPdo = true)
  3777. { //Method inherited from \Illuminate\Database\Connection
  3778. /** @var \Illuminate\Database\MySqlConnection $instance */
  3779. return $instance->cursor($query, $bindings, $useReadPdo);
  3780. }
  3781. /**
  3782. * Run an insert statement against the database.
  3783. *
  3784. * @param string $query
  3785. * @param array $bindings
  3786. * @return bool
  3787. * @static
  3788. */
  3789. public static function insert($query, $bindings = [])
  3790. { //Method inherited from \Illuminate\Database\Connection
  3791. /** @var \Illuminate\Database\MySqlConnection $instance */
  3792. return $instance->insert($query, $bindings);
  3793. }
  3794. /**
  3795. * Run an update statement against the database.
  3796. *
  3797. * @param string $query
  3798. * @param array $bindings
  3799. * @return int
  3800. * @static
  3801. */
  3802. public static function update($query, $bindings = [])
  3803. { //Method inherited from \Illuminate\Database\Connection
  3804. /** @var \Illuminate\Database\MySqlConnection $instance */
  3805. return $instance->update($query, $bindings);
  3806. }
  3807. /**
  3808. * Run a delete statement against the database.
  3809. *
  3810. * @param string $query
  3811. * @param array $bindings
  3812. * @return int
  3813. * @static
  3814. */
  3815. public static function delete($query, $bindings = [])
  3816. { //Method inherited from \Illuminate\Database\Connection
  3817. /** @var \Illuminate\Database\MySqlConnection $instance */
  3818. return $instance->delete($query, $bindings);
  3819. }
  3820. /**
  3821. * Execute an SQL statement and return the boolean result.
  3822. *
  3823. * @param string $query
  3824. * @param array $bindings
  3825. * @return bool
  3826. * @static
  3827. */
  3828. public static function statement($query, $bindings = [])
  3829. { //Method inherited from \Illuminate\Database\Connection
  3830. /** @var \Illuminate\Database\MySqlConnection $instance */
  3831. return $instance->statement($query, $bindings);
  3832. }
  3833. /**
  3834. * Run an SQL statement and get the number of rows affected.
  3835. *
  3836. * @param string $query
  3837. * @param array $bindings
  3838. * @return int
  3839. * @static
  3840. */
  3841. public static function affectingStatement($query, $bindings = [])
  3842. { //Method inherited from \Illuminate\Database\Connection
  3843. /** @var \Illuminate\Database\MySqlConnection $instance */
  3844. return $instance->affectingStatement($query, $bindings);
  3845. }
  3846. /**
  3847. * Run a raw, unprepared query against the PDO connection.
  3848. *
  3849. * @param string $query
  3850. * @return bool
  3851. * @static
  3852. */
  3853. public static function unprepared($query)
  3854. { //Method inherited from \Illuminate\Database\Connection
  3855. /** @var \Illuminate\Database\MySqlConnection $instance */
  3856. return $instance->unprepared($query);
  3857. }
  3858. /**
  3859. * Execute the given callback in "dry run" mode.
  3860. *
  3861. * @param \Closure $callback
  3862. * @return array
  3863. * @static
  3864. */
  3865. public static function pretend($callback)
  3866. { //Method inherited from \Illuminate\Database\Connection
  3867. /** @var \Illuminate\Database\MySqlConnection $instance */
  3868. return $instance->pretend($callback);
  3869. }
  3870. /**
  3871. * Prepare the query bindings for execution.
  3872. *
  3873. * @param array $bindings
  3874. * @return array
  3875. * @static
  3876. */
  3877. public static function prepareBindings($bindings)
  3878. { //Method inherited from \Illuminate\Database\Connection
  3879. /** @var \Illuminate\Database\MySqlConnection $instance */
  3880. return $instance->prepareBindings($bindings);
  3881. }
  3882. /**
  3883. * Log a query in the connection's query log.
  3884. *
  3885. * @param string $query
  3886. * @param array $bindings
  3887. * @param float|null $time
  3888. * @return void
  3889. * @static
  3890. */
  3891. public static function logQuery($query, $bindings, $time = null)
  3892. { //Method inherited from \Illuminate\Database\Connection
  3893. /** @var \Illuminate\Database\MySqlConnection $instance */
  3894. $instance->logQuery($query, $bindings, $time);
  3895. }
  3896. /**
  3897. * Register a database query listener with the connection.
  3898. *
  3899. * @param \Closure $callback
  3900. * @return void
  3901. * @static
  3902. */
  3903. public static function listen($callback)
  3904. { //Method inherited from \Illuminate\Database\Connection
  3905. /** @var \Illuminate\Database\MySqlConnection $instance */
  3906. $instance->listen($callback);
  3907. }
  3908. /**
  3909. * Get a new raw query expression.
  3910. *
  3911. * @param mixed $value
  3912. * @return \Illuminate\Database\Query\Expression
  3913. * @static
  3914. */
  3915. public static function raw($value)
  3916. { //Method inherited from \Illuminate\Database\Connection
  3917. /** @var \Illuminate\Database\MySqlConnection $instance */
  3918. return $instance->raw($value);
  3919. }
  3920. /**
  3921. * Indicate if any records have been modified.
  3922. *
  3923. * @param bool $value
  3924. * @return void
  3925. * @static
  3926. */
  3927. public static function recordsHaveBeenModified($value = true)
  3928. { //Method inherited from \Illuminate\Database\Connection
  3929. /** @var \Illuminate\Database\MySqlConnection $instance */
  3930. $instance->recordsHaveBeenModified($value);
  3931. }
  3932. /**
  3933. * Is Doctrine available?
  3934. *
  3935. * @return bool
  3936. * @static
  3937. */
  3938. public static function isDoctrineAvailable()
  3939. { //Method inherited from \Illuminate\Database\Connection
  3940. /** @var \Illuminate\Database\MySqlConnection $instance */
  3941. return $instance->isDoctrineAvailable();
  3942. }
  3943. /**
  3944. * Get a Doctrine Schema Column instance.
  3945. *
  3946. * @param string $table
  3947. * @param string $column
  3948. * @return \Doctrine\DBAL\Schema\Column
  3949. * @static
  3950. */
  3951. public static function getDoctrineColumn($table, $column)
  3952. { //Method inherited from \Illuminate\Database\Connection
  3953. /** @var \Illuminate\Database\MySqlConnection $instance */
  3954. return $instance->getDoctrineColumn($table, $column);
  3955. }
  3956. /**
  3957. * Get the Doctrine DBAL schema manager for the connection.
  3958. *
  3959. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3960. * @static
  3961. */
  3962. public static function getDoctrineSchemaManager()
  3963. { //Method inherited from \Illuminate\Database\Connection
  3964. /** @var \Illuminate\Database\MySqlConnection $instance */
  3965. return $instance->getDoctrineSchemaManager();
  3966. }
  3967. /**
  3968. * Get the Doctrine DBAL database connection instance.
  3969. *
  3970. * @return \Doctrine\DBAL\Connection
  3971. * @static
  3972. */
  3973. public static function getDoctrineConnection()
  3974. { //Method inherited from \Illuminate\Database\Connection
  3975. /** @var \Illuminate\Database\MySqlConnection $instance */
  3976. return $instance->getDoctrineConnection();
  3977. }
  3978. /**
  3979. * Get the current PDO connection.
  3980. *
  3981. * @return \PDO
  3982. * @static
  3983. */
  3984. public static function getPdo()
  3985. { //Method inherited from \Illuminate\Database\Connection
  3986. /** @var \Illuminate\Database\MySqlConnection $instance */
  3987. return $instance->getPdo();
  3988. }
  3989. /**
  3990. * Get the current PDO connection used for reading.
  3991. *
  3992. * @return \PDO
  3993. * @static
  3994. */
  3995. public static function getReadPdo()
  3996. { //Method inherited from \Illuminate\Database\Connection
  3997. /** @var \Illuminate\Database\MySqlConnection $instance */
  3998. return $instance->getReadPdo();
  3999. }
  4000. /**
  4001. * Set the PDO connection.
  4002. *
  4003. * @param \PDO|\Closure|null $pdo
  4004. * @return \Illuminate\Database\MySqlConnection
  4005. * @static
  4006. */
  4007. public static function setPdo($pdo)
  4008. { //Method inherited from \Illuminate\Database\Connection
  4009. /** @var \Illuminate\Database\MySqlConnection $instance */
  4010. return $instance->setPdo($pdo);
  4011. }
  4012. /**
  4013. * Set the PDO connection used for reading.
  4014. *
  4015. * @param \PDO|\Closure|null $pdo
  4016. * @return \Illuminate\Database\MySqlConnection
  4017. * @static
  4018. */
  4019. public static function setReadPdo($pdo)
  4020. { //Method inherited from \Illuminate\Database\Connection
  4021. /** @var \Illuminate\Database\MySqlConnection $instance */
  4022. return $instance->setReadPdo($pdo);
  4023. }
  4024. /**
  4025. * Get the database connection name.
  4026. *
  4027. * @return string|null
  4028. * @static
  4029. */
  4030. public static function getName()
  4031. { //Method inherited from \Illuminate\Database\Connection
  4032. /** @var \Illuminate\Database\MySqlConnection $instance */
  4033. return $instance->getName();
  4034. }
  4035. /**
  4036. * Get an option from the configuration options.
  4037. *
  4038. * @param string|null $option
  4039. * @return mixed
  4040. * @static
  4041. */
  4042. public static function getConfig($option = null)
  4043. { //Method inherited from \Illuminate\Database\Connection
  4044. /** @var \Illuminate\Database\MySqlConnection $instance */
  4045. return $instance->getConfig($option);
  4046. }
  4047. /**
  4048. * Get the PDO driver name.
  4049. *
  4050. * @return string
  4051. * @static
  4052. */
  4053. public static function getDriverName()
  4054. { //Method inherited from \Illuminate\Database\Connection
  4055. /** @var \Illuminate\Database\MySqlConnection $instance */
  4056. return $instance->getDriverName();
  4057. }
  4058. /**
  4059. * Get the query grammar used by the connection.
  4060. *
  4061. * @return \Illuminate\Database\Query\Grammars\Grammar
  4062. * @static
  4063. */
  4064. public static function getQueryGrammar()
  4065. { //Method inherited from \Illuminate\Database\Connection
  4066. /** @var \Illuminate\Database\MySqlConnection $instance */
  4067. return $instance->getQueryGrammar();
  4068. }
  4069. /**
  4070. * Set the query grammar used by the connection.
  4071. *
  4072. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4073. * @return \Illuminate\Database\MySqlConnection
  4074. * @static
  4075. */
  4076. public static function setQueryGrammar($grammar)
  4077. { //Method inherited from \Illuminate\Database\Connection
  4078. /** @var \Illuminate\Database\MySqlConnection $instance */
  4079. return $instance->setQueryGrammar($grammar);
  4080. }
  4081. /**
  4082. * Get the schema grammar used by the connection.
  4083. *
  4084. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4085. * @static
  4086. */
  4087. public static function getSchemaGrammar()
  4088. { //Method inherited from \Illuminate\Database\Connection
  4089. /** @var \Illuminate\Database\MySqlConnection $instance */
  4090. return $instance->getSchemaGrammar();
  4091. }
  4092. /**
  4093. * Set the schema grammar used by the connection.
  4094. *
  4095. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4096. * @return \Illuminate\Database\MySqlConnection
  4097. * @static
  4098. */
  4099. public static function setSchemaGrammar($grammar)
  4100. { //Method inherited from \Illuminate\Database\Connection
  4101. /** @var \Illuminate\Database\MySqlConnection $instance */
  4102. return $instance->setSchemaGrammar($grammar);
  4103. }
  4104. /**
  4105. * Get the query post processor used by the connection.
  4106. *
  4107. * @return \Illuminate\Database\Query\Processors\Processor
  4108. * @static
  4109. */
  4110. public static function getPostProcessor()
  4111. { //Method inherited from \Illuminate\Database\Connection
  4112. /** @var \Illuminate\Database\MySqlConnection $instance */
  4113. return $instance->getPostProcessor();
  4114. }
  4115. /**
  4116. * Set the query post processor used by the connection.
  4117. *
  4118. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4119. * @return \Illuminate\Database\MySqlConnection
  4120. * @static
  4121. */
  4122. public static function setPostProcessor($processor)
  4123. { //Method inherited from \Illuminate\Database\Connection
  4124. /** @var \Illuminate\Database\MySqlConnection $instance */
  4125. return $instance->setPostProcessor($processor);
  4126. }
  4127. /**
  4128. * Get the event dispatcher used by the connection.
  4129. *
  4130. * @return \Illuminate\Contracts\Events\Dispatcher
  4131. * @static
  4132. */
  4133. public static function getEventDispatcher()
  4134. { //Method inherited from \Illuminate\Database\Connection
  4135. /** @var \Illuminate\Database\MySqlConnection $instance */
  4136. return $instance->getEventDispatcher();
  4137. }
  4138. /**
  4139. * Set the event dispatcher instance on the connection.
  4140. *
  4141. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4142. * @return \Illuminate\Database\MySqlConnection
  4143. * @static
  4144. */
  4145. public static function setEventDispatcher($events)
  4146. { //Method inherited from \Illuminate\Database\Connection
  4147. /** @var \Illuminate\Database\MySqlConnection $instance */
  4148. return $instance->setEventDispatcher($events);
  4149. }
  4150. /**
  4151. * Unset the event dispatcher for this connection.
  4152. *
  4153. * @return void
  4154. * @static
  4155. */
  4156. public static function unsetEventDispatcher()
  4157. { //Method inherited from \Illuminate\Database\Connection
  4158. /** @var \Illuminate\Database\MySqlConnection $instance */
  4159. $instance->unsetEventDispatcher();
  4160. }
  4161. /**
  4162. * Determine if the connection is in a "dry run".
  4163. *
  4164. * @return bool
  4165. * @static
  4166. */
  4167. public static function pretending()
  4168. { //Method inherited from \Illuminate\Database\Connection
  4169. /** @var \Illuminate\Database\MySqlConnection $instance */
  4170. return $instance->pretending();
  4171. }
  4172. /**
  4173. * Get the connection query log.
  4174. *
  4175. * @return array
  4176. * @static
  4177. */
  4178. public static function getQueryLog()
  4179. { //Method inherited from \Illuminate\Database\Connection
  4180. /** @var \Illuminate\Database\MySqlConnection $instance */
  4181. return $instance->getQueryLog();
  4182. }
  4183. /**
  4184. * Clear the query log.
  4185. *
  4186. * @return void
  4187. * @static
  4188. */
  4189. public static function flushQueryLog()
  4190. { //Method inherited from \Illuminate\Database\Connection
  4191. /** @var \Illuminate\Database\MySqlConnection $instance */
  4192. $instance->flushQueryLog();
  4193. }
  4194. /**
  4195. * Enable the query log on the connection.
  4196. *
  4197. * @return void
  4198. * @static
  4199. */
  4200. public static function enableQueryLog()
  4201. { //Method inherited from \Illuminate\Database\Connection
  4202. /** @var \Illuminate\Database\MySqlConnection $instance */
  4203. $instance->enableQueryLog();
  4204. }
  4205. /**
  4206. * Disable the query log on the connection.
  4207. *
  4208. * @return void
  4209. * @static
  4210. */
  4211. public static function disableQueryLog()
  4212. { //Method inherited from \Illuminate\Database\Connection
  4213. /** @var \Illuminate\Database\MySqlConnection $instance */
  4214. $instance->disableQueryLog();
  4215. }
  4216. /**
  4217. * Determine whether we're logging queries.
  4218. *
  4219. * @return bool
  4220. * @static
  4221. */
  4222. public static function logging()
  4223. { //Method inherited from \Illuminate\Database\Connection
  4224. /** @var \Illuminate\Database\MySqlConnection $instance */
  4225. return $instance->logging();
  4226. }
  4227. /**
  4228. * Get the name of the connected database.
  4229. *
  4230. * @return string
  4231. * @static
  4232. */
  4233. public static function getDatabaseName()
  4234. { //Method inherited from \Illuminate\Database\Connection
  4235. /** @var \Illuminate\Database\MySqlConnection $instance */
  4236. return $instance->getDatabaseName();
  4237. }
  4238. /**
  4239. * Set the name of the connected database.
  4240. *
  4241. * @param string $database
  4242. * @return \Illuminate\Database\MySqlConnection
  4243. * @static
  4244. */
  4245. public static function setDatabaseName($database)
  4246. { //Method inherited from \Illuminate\Database\Connection
  4247. /** @var \Illuminate\Database\MySqlConnection $instance */
  4248. return $instance->setDatabaseName($database);
  4249. }
  4250. /**
  4251. * Get the table prefix for the connection.
  4252. *
  4253. * @return string
  4254. * @static
  4255. */
  4256. public static function getTablePrefix()
  4257. { //Method inherited from \Illuminate\Database\Connection
  4258. /** @var \Illuminate\Database\MySqlConnection $instance */
  4259. return $instance->getTablePrefix();
  4260. }
  4261. /**
  4262. * Set the table prefix in use by the connection.
  4263. *
  4264. * @param string $prefix
  4265. * @return \Illuminate\Database\MySqlConnection
  4266. * @static
  4267. */
  4268. public static function setTablePrefix($prefix)
  4269. { //Method inherited from \Illuminate\Database\Connection
  4270. /** @var \Illuminate\Database\MySqlConnection $instance */
  4271. return $instance->setTablePrefix($prefix);
  4272. }
  4273. /**
  4274. * Set the table prefix and return the grammar.
  4275. *
  4276. * @param \Illuminate\Database\Grammar $grammar
  4277. * @return \Illuminate\Database\Grammar
  4278. * @static
  4279. */
  4280. public static function withTablePrefix($grammar)
  4281. { //Method inherited from \Illuminate\Database\Connection
  4282. /** @var \Illuminate\Database\MySqlConnection $instance */
  4283. return $instance->withTablePrefix($grammar);
  4284. }
  4285. /**
  4286. * Register a connection resolver.
  4287. *
  4288. * @param string $driver
  4289. * @param \Closure $callback
  4290. * @return void
  4291. * @static
  4292. */
  4293. public static function resolverFor($driver, $callback)
  4294. { //Method inherited from \Illuminate\Database\Connection
  4295. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4296. }
  4297. /**
  4298. * Get the connection resolver for the given driver.
  4299. *
  4300. * @param string $driver
  4301. * @return mixed
  4302. * @static
  4303. */
  4304. public static function getResolver($driver)
  4305. { //Method inherited from \Illuminate\Database\Connection
  4306. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4307. }
  4308. /**
  4309. * Execute a Closure within a transaction.
  4310. *
  4311. * @param \Closure $callback
  4312. * @param int $attempts
  4313. * @return mixed
  4314. * @throws \Exception|\Throwable
  4315. * @static
  4316. */
  4317. public static function transaction($callback, $attempts = 1)
  4318. { //Method inherited from \Illuminate\Database\Connection
  4319. /** @var \Illuminate\Database\MySqlConnection $instance */
  4320. return $instance->transaction($callback, $attempts);
  4321. }
  4322. /**
  4323. * Start a new database transaction.
  4324. *
  4325. * @return void
  4326. * @throws \Exception
  4327. * @static
  4328. */
  4329. public static function beginTransaction()
  4330. { //Method inherited from \Illuminate\Database\Connection
  4331. /** @var \Illuminate\Database\MySqlConnection $instance */
  4332. $instance->beginTransaction();
  4333. }
  4334. /**
  4335. * Commit the active database transaction.
  4336. *
  4337. * @return void
  4338. * @static
  4339. */
  4340. public static function commit()
  4341. { //Method inherited from \Illuminate\Database\Connection
  4342. /** @var \Illuminate\Database\MySqlConnection $instance */
  4343. $instance->commit();
  4344. }
  4345. /**
  4346. * Rollback the active database transaction.
  4347. *
  4348. * @param int|null $toLevel
  4349. * @return void
  4350. * @throws \Exception
  4351. * @static
  4352. */
  4353. public static function rollBack($toLevel = null)
  4354. { //Method inherited from \Illuminate\Database\Connection
  4355. /** @var \Illuminate\Database\MySqlConnection $instance */
  4356. $instance->rollBack($toLevel);
  4357. }
  4358. /**
  4359. * Get the number of active transactions.
  4360. *
  4361. * @return int
  4362. * @static
  4363. */
  4364. public static function transactionLevel()
  4365. { //Method inherited from \Illuminate\Database\Connection
  4366. /** @var \Illuminate\Database\MySqlConnection $instance */
  4367. return $instance->transactionLevel();
  4368. }
  4369. }
  4370. /**
  4371. *
  4372. *
  4373. * @see \Illuminate\Events\Dispatcher
  4374. */
  4375. class Event {
  4376. /**
  4377. * Register an event listener with the dispatcher.
  4378. *
  4379. * @param string|array $events
  4380. * @param mixed $listener
  4381. * @return void
  4382. * @static
  4383. */
  4384. public static function listen($events, $listener)
  4385. {
  4386. /** @var \Illuminate\Events\Dispatcher $instance */
  4387. $instance->listen($events, $listener);
  4388. }
  4389. /**
  4390. * Determine if a given event has listeners.
  4391. *
  4392. * @param string $eventName
  4393. * @return bool
  4394. * @static
  4395. */
  4396. public static function hasListeners($eventName)
  4397. {
  4398. /** @var \Illuminate\Events\Dispatcher $instance */
  4399. return $instance->hasListeners($eventName);
  4400. }
  4401. /**
  4402. * Register an event and payload to be fired later.
  4403. *
  4404. * @param string $event
  4405. * @param array $payload
  4406. * @return void
  4407. * @static
  4408. */
  4409. public static function push($event, $payload = [])
  4410. {
  4411. /** @var \Illuminate\Events\Dispatcher $instance */
  4412. $instance->push($event, $payload);
  4413. }
  4414. /**
  4415. * Flush a set of pushed events.
  4416. *
  4417. * @param string $event
  4418. * @return void
  4419. * @static
  4420. */
  4421. public static function flush($event)
  4422. {
  4423. /** @var \Illuminate\Events\Dispatcher $instance */
  4424. $instance->flush($event);
  4425. }
  4426. /**
  4427. * Register an event subscriber with the dispatcher.
  4428. *
  4429. * @param object|string $subscriber
  4430. * @return void
  4431. * @static
  4432. */
  4433. public static function subscribe($subscriber)
  4434. {
  4435. /** @var \Illuminate\Events\Dispatcher $instance */
  4436. $instance->subscribe($subscriber);
  4437. }
  4438. /**
  4439. * Fire an event until the first non-null response is returned.
  4440. *
  4441. * @param string|object $event
  4442. * @param mixed $payload
  4443. * @return array|null
  4444. * @static
  4445. */
  4446. public static function until($event, $payload = [])
  4447. {
  4448. /** @var \Illuminate\Events\Dispatcher $instance */
  4449. return $instance->until($event, $payload);
  4450. }
  4451. /**
  4452. * Fire an event and call the listeners.
  4453. *
  4454. * @param string|object $event
  4455. * @param mixed $payload
  4456. * @param bool $halt
  4457. * @return array|null
  4458. * @static
  4459. */
  4460. public static function dispatch($event, $payload = [], $halt = false)
  4461. {
  4462. /** @var \Illuminate\Events\Dispatcher $instance */
  4463. return $instance->dispatch($event, $payload, $halt);
  4464. }
  4465. /**
  4466. * Get all of the listeners for a given event name.
  4467. *
  4468. * @param string $eventName
  4469. * @return array
  4470. * @static
  4471. */
  4472. public static function getListeners($eventName)
  4473. {
  4474. /** @var \Illuminate\Events\Dispatcher $instance */
  4475. return $instance->getListeners($eventName);
  4476. }
  4477. /**
  4478. * Register an event listener with the dispatcher.
  4479. *
  4480. * @param \Closure|string $listener
  4481. * @param bool $wildcard
  4482. * @return \Closure
  4483. * @static
  4484. */
  4485. public static function makeListener($listener, $wildcard = false)
  4486. {
  4487. /** @var \Illuminate\Events\Dispatcher $instance */
  4488. return $instance->makeListener($listener, $wildcard);
  4489. }
  4490. /**
  4491. * Create a class based listener using the IoC container.
  4492. *
  4493. * @param string $listener
  4494. * @param bool $wildcard
  4495. * @return \Closure
  4496. * @static
  4497. */
  4498. public static function createClassListener($listener, $wildcard = false)
  4499. {
  4500. /** @var \Illuminate\Events\Dispatcher $instance */
  4501. return $instance->createClassListener($listener, $wildcard);
  4502. }
  4503. /**
  4504. * Remove a set of listeners from the dispatcher.
  4505. *
  4506. * @param string $event
  4507. * @return void
  4508. * @static
  4509. */
  4510. public static function forget($event)
  4511. {
  4512. /** @var \Illuminate\Events\Dispatcher $instance */
  4513. $instance->forget($event);
  4514. }
  4515. /**
  4516. * Forget all of the pushed listeners.
  4517. *
  4518. * @return void
  4519. * @static
  4520. */
  4521. public static function forgetPushed()
  4522. {
  4523. /** @var \Illuminate\Events\Dispatcher $instance */
  4524. $instance->forgetPushed();
  4525. }
  4526. /**
  4527. * Set the queue resolver implementation.
  4528. *
  4529. * @param callable $resolver
  4530. * @return \Illuminate\Events\Dispatcher
  4531. * @static
  4532. */
  4533. public static function setQueueResolver($resolver)
  4534. {
  4535. /** @var \Illuminate\Events\Dispatcher $instance */
  4536. return $instance->setQueueResolver($resolver);
  4537. }
  4538. /**
  4539. * Assert if an event was dispatched based on a truth-test callback.
  4540. *
  4541. * @param string $event
  4542. * @param callable|int|null $callback
  4543. * @return void
  4544. * @static
  4545. */
  4546. public static function assertDispatched($event, $callback = null)
  4547. {
  4548. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4549. $instance->assertDispatched($event, $callback);
  4550. }
  4551. /**
  4552. * Assert if a event was dispatched a number of times.
  4553. *
  4554. * @param string $event
  4555. * @param int $times
  4556. * @return void
  4557. * @static
  4558. */
  4559. public static function assertDispatchedTimes($event, $times = 1)
  4560. {
  4561. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4562. $instance->assertDispatchedTimes($event, $times);
  4563. }
  4564. /**
  4565. * Determine if an event was dispatched based on a truth-test callback.
  4566. *
  4567. * @param string $event
  4568. * @param callable|null $callback
  4569. * @return void
  4570. * @static
  4571. */
  4572. public static function assertNotDispatched($event, $callback = null)
  4573. {
  4574. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4575. $instance->assertNotDispatched($event, $callback);
  4576. }
  4577. /**
  4578. * Get all of the events matching a truth-test callback.
  4579. *
  4580. * @param string $event
  4581. * @param callable|null $callback
  4582. * @return \Illuminate\Support\Collection
  4583. * @static
  4584. */
  4585. public static function dispatched($event, $callback = null)
  4586. {
  4587. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4588. return $instance->dispatched($event, $callback);
  4589. }
  4590. /**
  4591. * Determine if the given event has been dispatched.
  4592. *
  4593. * @param string $event
  4594. * @return bool
  4595. * @static
  4596. */
  4597. public static function hasDispatched($event)
  4598. {
  4599. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4600. return $instance->hasDispatched($event);
  4601. }
  4602. }
  4603. /**
  4604. *
  4605. *
  4606. * @see \Illuminate\Filesystem\Filesystem
  4607. */
  4608. class File {
  4609. /**
  4610. * Determine if a file or directory exists.
  4611. *
  4612. * @param string $path
  4613. * @return bool
  4614. * @static
  4615. */
  4616. public static function exists($path)
  4617. {
  4618. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4619. return $instance->exists($path);
  4620. }
  4621. /**
  4622. * Get the contents of a file.
  4623. *
  4624. * @param string $path
  4625. * @param bool $lock
  4626. * @return string
  4627. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4628. * @static
  4629. */
  4630. public static function get($path, $lock = false)
  4631. {
  4632. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4633. return $instance->get($path, $lock);
  4634. }
  4635. /**
  4636. * Get contents of a file with shared access.
  4637. *
  4638. * @param string $path
  4639. * @return string
  4640. * @static
  4641. */
  4642. public static function sharedGet($path)
  4643. {
  4644. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4645. return $instance->sharedGet($path);
  4646. }
  4647. /**
  4648. * Get the returned value of a file.
  4649. *
  4650. * @param string $path
  4651. * @return mixed
  4652. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4653. * @static
  4654. */
  4655. public static function getRequire($path)
  4656. {
  4657. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4658. return $instance->getRequire($path);
  4659. }
  4660. /**
  4661. * Require the given file once.
  4662. *
  4663. * @param string $file
  4664. * @return mixed
  4665. * @static
  4666. */
  4667. public static function requireOnce($file)
  4668. {
  4669. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4670. return $instance->requireOnce($file);
  4671. }
  4672. /**
  4673. * Get the MD5 hash of the file at the given path.
  4674. *
  4675. * @param string $path
  4676. * @return string
  4677. * @static
  4678. */
  4679. public static function hash($path)
  4680. {
  4681. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4682. return $instance->hash($path);
  4683. }
  4684. /**
  4685. * Write the contents of a file.
  4686. *
  4687. * @param string $path
  4688. * @param string $contents
  4689. * @param bool $lock
  4690. * @return int|bool
  4691. * @static
  4692. */
  4693. public static function put($path, $contents, $lock = false)
  4694. {
  4695. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4696. return $instance->put($path, $contents, $lock);
  4697. }
  4698. /**
  4699. * Write the contents of a file, replacing it atomically if it already exists.
  4700. *
  4701. * @param string $path
  4702. * @param string $content
  4703. * @return void
  4704. * @static
  4705. */
  4706. public static function replace($path, $content)
  4707. {
  4708. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4709. $instance->replace($path, $content);
  4710. }
  4711. /**
  4712. * Prepend to a file.
  4713. *
  4714. * @param string $path
  4715. * @param string $data
  4716. * @return int
  4717. * @static
  4718. */
  4719. public static function prepend($path, $data)
  4720. {
  4721. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4722. return $instance->prepend($path, $data);
  4723. }
  4724. /**
  4725. * Append to a file.
  4726. *
  4727. * @param string $path
  4728. * @param string $data
  4729. * @return int
  4730. * @static
  4731. */
  4732. public static function append($path, $data)
  4733. {
  4734. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4735. return $instance->append($path, $data);
  4736. }
  4737. /**
  4738. * Get or set UNIX mode of a file or directory.
  4739. *
  4740. * @param string $path
  4741. * @param int|null $mode
  4742. * @return mixed
  4743. * @static
  4744. */
  4745. public static function chmod($path, $mode = null)
  4746. {
  4747. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4748. return $instance->chmod($path, $mode);
  4749. }
  4750. /**
  4751. * Delete the file at a given path.
  4752. *
  4753. * @param string|array $paths
  4754. * @return bool
  4755. * @static
  4756. */
  4757. public static function delete($paths)
  4758. {
  4759. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4760. return $instance->delete($paths);
  4761. }
  4762. /**
  4763. * Move a file to a new location.
  4764. *
  4765. * @param string $path
  4766. * @param string $target
  4767. * @return bool
  4768. * @static
  4769. */
  4770. public static function move($path, $target)
  4771. {
  4772. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4773. return $instance->move($path, $target);
  4774. }
  4775. /**
  4776. * Copy a file to a new location.
  4777. *
  4778. * @param string $path
  4779. * @param string $target
  4780. * @return bool
  4781. * @static
  4782. */
  4783. public static function copy($path, $target)
  4784. {
  4785. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4786. return $instance->copy($path, $target);
  4787. }
  4788. /**
  4789. * Create a hard link to the target file or directory.
  4790. *
  4791. * @param string $target
  4792. * @param string $link
  4793. * @return void
  4794. * @static
  4795. */
  4796. public static function link($target, $link)
  4797. {
  4798. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4799. $instance->link($target, $link);
  4800. }
  4801. /**
  4802. * Extract the file name from a file path.
  4803. *
  4804. * @param string $path
  4805. * @return string
  4806. * @static
  4807. */
  4808. public static function name($path)
  4809. {
  4810. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4811. return $instance->name($path);
  4812. }
  4813. /**
  4814. * Extract the trailing name component from a file path.
  4815. *
  4816. * @param string $path
  4817. * @return string
  4818. * @static
  4819. */
  4820. public static function basename($path)
  4821. {
  4822. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4823. return $instance->basename($path);
  4824. }
  4825. /**
  4826. * Extract the parent directory from a file path.
  4827. *
  4828. * @param string $path
  4829. * @return string
  4830. * @static
  4831. */
  4832. public static function dirname($path)
  4833. {
  4834. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4835. return $instance->dirname($path);
  4836. }
  4837. /**
  4838. * Extract the file extension from a file path.
  4839. *
  4840. * @param string $path
  4841. * @return string
  4842. * @static
  4843. */
  4844. public static function extension($path)
  4845. {
  4846. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4847. return $instance->extension($path);
  4848. }
  4849. /**
  4850. * Get the file type of a given file.
  4851. *
  4852. * @param string $path
  4853. * @return string
  4854. * @static
  4855. */
  4856. public static function type($path)
  4857. {
  4858. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4859. return $instance->type($path);
  4860. }
  4861. /**
  4862. * Get the mime-type of a given file.
  4863. *
  4864. * @param string $path
  4865. * @return string|false
  4866. * @static
  4867. */
  4868. public static function mimeType($path)
  4869. {
  4870. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4871. return $instance->mimeType($path);
  4872. }
  4873. /**
  4874. * Get the file size of a given file.
  4875. *
  4876. * @param string $path
  4877. * @return int
  4878. * @static
  4879. */
  4880. public static function size($path)
  4881. {
  4882. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4883. return $instance->size($path);
  4884. }
  4885. /**
  4886. * Get the file's last modification time.
  4887. *
  4888. * @param string $path
  4889. * @return int
  4890. * @static
  4891. */
  4892. public static function lastModified($path)
  4893. {
  4894. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4895. return $instance->lastModified($path);
  4896. }
  4897. /**
  4898. * Determine if the given path is a directory.
  4899. *
  4900. * @param string $directory
  4901. * @return bool
  4902. * @static
  4903. */
  4904. public static function isDirectory($directory)
  4905. {
  4906. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4907. return $instance->isDirectory($directory);
  4908. }
  4909. /**
  4910. * Determine if the given path is readable.
  4911. *
  4912. * @param string $path
  4913. * @return bool
  4914. * @static
  4915. */
  4916. public static function isReadable($path)
  4917. {
  4918. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4919. return $instance->isReadable($path);
  4920. }
  4921. /**
  4922. * Determine if the given path is writable.
  4923. *
  4924. * @param string $path
  4925. * @return bool
  4926. * @static
  4927. */
  4928. public static function isWritable($path)
  4929. {
  4930. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4931. return $instance->isWritable($path);
  4932. }
  4933. /**
  4934. * Determine if the given path is a file.
  4935. *
  4936. * @param string $file
  4937. * @return bool
  4938. * @static
  4939. */
  4940. public static function isFile($file)
  4941. {
  4942. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4943. return $instance->isFile($file);
  4944. }
  4945. /**
  4946. * Find path names matching a given pattern.
  4947. *
  4948. * @param string $pattern
  4949. * @param int $flags
  4950. * @return array
  4951. * @static
  4952. */
  4953. public static function glob($pattern, $flags = 0)
  4954. {
  4955. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4956. return $instance->glob($pattern, $flags);
  4957. }
  4958. /**
  4959. * Get an array of all files in a directory.
  4960. *
  4961. * @param string $directory
  4962. * @param bool $hidden
  4963. * @return \Symfony\Component\Finder\SplFileInfo[]
  4964. * @static
  4965. */
  4966. public static function files($directory, $hidden = false)
  4967. {
  4968. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4969. return $instance->files($directory, $hidden);
  4970. }
  4971. /**
  4972. * Get all of the files from the given directory (recursive).
  4973. *
  4974. * @param string $directory
  4975. * @param bool $hidden
  4976. * @return \Symfony\Component\Finder\SplFileInfo[]
  4977. * @static
  4978. */
  4979. public static function allFiles($directory, $hidden = false)
  4980. {
  4981. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4982. return $instance->allFiles($directory, $hidden);
  4983. }
  4984. /**
  4985. * Get all of the directories within a given directory.
  4986. *
  4987. * @param string $directory
  4988. * @return array
  4989. * @static
  4990. */
  4991. public static function directories($directory)
  4992. {
  4993. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4994. return $instance->directories($directory);
  4995. }
  4996. /**
  4997. * Create a directory.
  4998. *
  4999. * @param string $path
  5000. * @param int $mode
  5001. * @param bool $recursive
  5002. * @param bool $force
  5003. * @return bool
  5004. * @static
  5005. */
  5006. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  5007. {
  5008. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5009. return $instance->makeDirectory($path, $mode, $recursive, $force);
  5010. }
  5011. /**
  5012. * Move a directory.
  5013. *
  5014. * @param string $from
  5015. * @param string $to
  5016. * @param bool $overwrite
  5017. * @return bool
  5018. * @static
  5019. */
  5020. public static function moveDirectory($from, $to, $overwrite = false)
  5021. {
  5022. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5023. return $instance->moveDirectory($from, $to, $overwrite);
  5024. }
  5025. /**
  5026. * Copy a directory from one location to another.
  5027. *
  5028. * @param string $directory
  5029. * @param string $destination
  5030. * @param int|null $options
  5031. * @return bool
  5032. * @static
  5033. */
  5034. public static function copyDirectory($directory, $destination, $options = null)
  5035. {
  5036. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5037. return $instance->copyDirectory($directory, $destination, $options);
  5038. }
  5039. /**
  5040. * Recursively delete a directory.
  5041. *
  5042. * The directory itself may be optionally preserved.
  5043. *
  5044. * @param string $directory
  5045. * @param bool $preserve
  5046. * @return bool
  5047. * @static
  5048. */
  5049. public static function deleteDirectory($directory, $preserve = false)
  5050. {
  5051. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5052. return $instance->deleteDirectory($directory, $preserve);
  5053. }
  5054. /**
  5055. * Remove all of the directories within a given directory.
  5056. *
  5057. * @param string $directory
  5058. * @return bool
  5059. * @static
  5060. */
  5061. public static function deleteDirectories($directory)
  5062. {
  5063. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5064. return $instance->deleteDirectories($directory);
  5065. }
  5066. /**
  5067. * Empty the specified directory of all files and folders.
  5068. *
  5069. * @param string $directory
  5070. * @return bool
  5071. * @static
  5072. */
  5073. public static function cleanDirectory($directory)
  5074. {
  5075. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5076. return $instance->cleanDirectory($directory);
  5077. }
  5078. /**
  5079. * Register a custom macro.
  5080. *
  5081. * @param string $name
  5082. * @param object|callable $macro
  5083. * @return void
  5084. * @static
  5085. */
  5086. public static function macro($name, $macro)
  5087. {
  5088. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5089. }
  5090. /**
  5091. * Mix another object into the class.
  5092. *
  5093. * @param object $mixin
  5094. * @param bool $replace
  5095. * @return void
  5096. * @throws \ReflectionException
  5097. * @static
  5098. */
  5099. public static function mixin($mixin, $replace = true)
  5100. {
  5101. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  5102. }
  5103. /**
  5104. * Checks if macro is registered.
  5105. *
  5106. * @param string $name
  5107. * @return bool
  5108. * @static
  5109. */
  5110. public static function hasMacro($name)
  5111. {
  5112. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5113. }
  5114. }
  5115. /**
  5116. *
  5117. *
  5118. * @see \Illuminate\Contracts\Auth\Access\Gate
  5119. */
  5120. class Gate {
  5121. /**
  5122. * Determine if a given ability has been defined.
  5123. *
  5124. * @param string|array $ability
  5125. * @return bool
  5126. * @static
  5127. */
  5128. public static function has($ability)
  5129. {
  5130. /** @var \Illuminate\Auth\Access\Gate $instance */
  5131. return $instance->has($ability);
  5132. }
  5133. /**
  5134. * Define a new ability.
  5135. *
  5136. * @param string $ability
  5137. * @param callable|string $callback
  5138. * @return \Illuminate\Auth\Access\Gate
  5139. * @throws \InvalidArgumentException
  5140. * @static
  5141. */
  5142. public static function define($ability, $callback)
  5143. {
  5144. /** @var \Illuminate\Auth\Access\Gate $instance */
  5145. return $instance->define($ability, $callback);
  5146. }
  5147. /**
  5148. * Define abilities for a resource.
  5149. *
  5150. * @param string $name
  5151. * @param string $class
  5152. * @param array|null $abilities
  5153. * @return \Illuminate\Auth\Access\Gate
  5154. * @static
  5155. */
  5156. public static function resource($name, $class, $abilities = null)
  5157. {
  5158. /** @var \Illuminate\Auth\Access\Gate $instance */
  5159. return $instance->resource($name, $class, $abilities);
  5160. }
  5161. /**
  5162. * Define a policy class for a given class type.
  5163. *
  5164. * @param string $class
  5165. * @param string $policy
  5166. * @return \Illuminate\Auth\Access\Gate
  5167. * @static
  5168. */
  5169. public static function policy($class, $policy)
  5170. {
  5171. /** @var \Illuminate\Auth\Access\Gate $instance */
  5172. return $instance->policy($class, $policy);
  5173. }
  5174. /**
  5175. * Register a callback to run before all Gate checks.
  5176. *
  5177. * @param callable $callback
  5178. * @return \Illuminate\Auth\Access\Gate
  5179. * @static
  5180. */
  5181. public static function before($callback)
  5182. {
  5183. /** @var \Illuminate\Auth\Access\Gate $instance */
  5184. return $instance->before($callback);
  5185. }
  5186. /**
  5187. * Register a callback to run after all Gate checks.
  5188. *
  5189. * @param callable $callback
  5190. * @return \Illuminate\Auth\Access\Gate
  5191. * @static
  5192. */
  5193. public static function after($callback)
  5194. {
  5195. /** @var \Illuminate\Auth\Access\Gate $instance */
  5196. return $instance->after($callback);
  5197. }
  5198. /**
  5199. * Determine if the given ability should be granted for the current user.
  5200. *
  5201. * @param string $ability
  5202. * @param array|mixed $arguments
  5203. * @return bool
  5204. * @static
  5205. */
  5206. public static function allows($ability, $arguments = [])
  5207. {
  5208. /** @var \Illuminate\Auth\Access\Gate $instance */
  5209. return $instance->allows($ability, $arguments);
  5210. }
  5211. /**
  5212. * Determine if the given ability should be denied for the current user.
  5213. *
  5214. * @param string $ability
  5215. * @param array|mixed $arguments
  5216. * @return bool
  5217. * @static
  5218. */
  5219. public static function denies($ability, $arguments = [])
  5220. {
  5221. /** @var \Illuminate\Auth\Access\Gate $instance */
  5222. return $instance->denies($ability, $arguments);
  5223. }
  5224. /**
  5225. * Determine if all of the given abilities should be granted for the current user.
  5226. *
  5227. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5228. * @param array|mixed $arguments
  5229. * @return bool
  5230. * @static
  5231. */
  5232. public static function check($abilities, $arguments = [])
  5233. {
  5234. /** @var \Illuminate\Auth\Access\Gate $instance */
  5235. return $instance->check($abilities, $arguments);
  5236. }
  5237. /**
  5238. * Determine if any one of the given abilities should be granted for the current user.
  5239. *
  5240. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5241. * @param array|mixed $arguments
  5242. * @return bool
  5243. * @static
  5244. */
  5245. public static function any($abilities, $arguments = [])
  5246. {
  5247. /** @var \Illuminate\Auth\Access\Gate $instance */
  5248. return $instance->any($abilities, $arguments);
  5249. }
  5250. /**
  5251. * Determine if all of the given abilities should be denied for the current user.
  5252. *
  5253. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5254. * @param array|mixed $arguments
  5255. * @return bool
  5256. * @static
  5257. */
  5258. public static function none($abilities, $arguments = [])
  5259. {
  5260. /** @var \Illuminate\Auth\Access\Gate $instance */
  5261. return $instance->none($abilities, $arguments);
  5262. }
  5263. /**
  5264. * Determine if the given ability should be granted for the current user.
  5265. *
  5266. * @param string $ability
  5267. * @param array|mixed $arguments
  5268. * @return \Illuminate\Auth\Access\Response
  5269. * @throws \Illuminate\Auth\Access\AuthorizationException
  5270. * @static
  5271. */
  5272. public static function authorize($ability, $arguments = [])
  5273. {
  5274. /** @var \Illuminate\Auth\Access\Gate $instance */
  5275. return $instance->authorize($ability, $arguments);
  5276. }
  5277. /**
  5278. * Get the raw result from the authorization callback.
  5279. *
  5280. * @param string $ability
  5281. * @param array|mixed $arguments
  5282. * @return mixed
  5283. * @static
  5284. */
  5285. public static function raw($ability, $arguments = [])
  5286. {
  5287. /** @var \Illuminate\Auth\Access\Gate $instance */
  5288. return $instance->raw($ability, $arguments);
  5289. }
  5290. /**
  5291. * Get a policy instance for a given class.
  5292. *
  5293. * @param object|string $class
  5294. * @return mixed
  5295. * @static
  5296. */
  5297. public static function getPolicyFor($class)
  5298. {
  5299. /** @var \Illuminate\Auth\Access\Gate $instance */
  5300. return $instance->getPolicyFor($class);
  5301. }
  5302. /**
  5303. * Specify a callback to be used to guess policy names.
  5304. *
  5305. * @param callable $callback
  5306. * @return \Illuminate\Auth\Access\Gate
  5307. * @static
  5308. */
  5309. public static function guessPolicyNamesUsing($callback)
  5310. {
  5311. /** @var \Illuminate\Auth\Access\Gate $instance */
  5312. return $instance->guessPolicyNamesUsing($callback);
  5313. }
  5314. /**
  5315. * Build a policy class instance of the given type.
  5316. *
  5317. * @param object|string $class
  5318. * @return mixed
  5319. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  5320. * @static
  5321. */
  5322. public static function resolvePolicy($class)
  5323. {
  5324. /** @var \Illuminate\Auth\Access\Gate $instance */
  5325. return $instance->resolvePolicy($class);
  5326. }
  5327. /**
  5328. * Get a gate instance for the given user.
  5329. *
  5330. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5331. * @return static
  5332. * @static
  5333. */
  5334. public static function forUser($user)
  5335. {
  5336. /** @var \Illuminate\Auth\Access\Gate $instance */
  5337. return $instance->forUser($user);
  5338. }
  5339. /**
  5340. * Get all of the defined abilities.
  5341. *
  5342. * @return array
  5343. * @static
  5344. */
  5345. public static function abilities()
  5346. {
  5347. /** @var \Illuminate\Auth\Access\Gate $instance */
  5348. return $instance->abilities();
  5349. }
  5350. /**
  5351. * Get all of the defined policies.
  5352. *
  5353. * @return array
  5354. * @static
  5355. */
  5356. public static function policies()
  5357. {
  5358. /** @var \Illuminate\Auth\Access\Gate $instance */
  5359. return $instance->policies();
  5360. }
  5361. }
  5362. /**
  5363. *
  5364. *
  5365. * @see \Illuminate\Hashing\HashManager
  5366. */
  5367. class Hash {
  5368. /**
  5369. * Create an instance of the Bcrypt hash Driver.
  5370. *
  5371. * @return \Illuminate\Hashing\BcryptHasher
  5372. * @static
  5373. */
  5374. public static function createBcryptDriver()
  5375. {
  5376. /** @var \Illuminate\Hashing\HashManager $instance */
  5377. return $instance->createBcryptDriver();
  5378. }
  5379. /**
  5380. * Create an instance of the Argon2i hash Driver.
  5381. *
  5382. * @return \Illuminate\Hashing\ArgonHasher
  5383. * @static
  5384. */
  5385. public static function createArgonDriver()
  5386. {
  5387. /** @var \Illuminate\Hashing\HashManager $instance */
  5388. return $instance->createArgonDriver();
  5389. }
  5390. /**
  5391. * Create an instance of the Argon2id hash Driver.
  5392. *
  5393. * @return \Illuminate\Hashing\Argon2IdHasher
  5394. * @static
  5395. */
  5396. public static function createArgon2idDriver()
  5397. {
  5398. /** @var \Illuminate\Hashing\HashManager $instance */
  5399. return $instance->createArgon2idDriver();
  5400. }
  5401. /**
  5402. * Get information about the given hashed value.
  5403. *
  5404. * @param string $hashedValue
  5405. * @return array
  5406. * @static
  5407. */
  5408. public static function info($hashedValue)
  5409. {
  5410. /** @var \Illuminate\Hashing\HashManager $instance */
  5411. return $instance->info($hashedValue);
  5412. }
  5413. /**
  5414. * Hash the given value.
  5415. *
  5416. * @param string $value
  5417. * @param array $options
  5418. * @return string
  5419. * @static
  5420. */
  5421. public static function make($value, $options = [])
  5422. {
  5423. /** @var \Illuminate\Hashing\HashManager $instance */
  5424. return $instance->make($value, $options);
  5425. }
  5426. /**
  5427. * Check the given plain value against a hash.
  5428. *
  5429. * @param string $value
  5430. * @param string $hashedValue
  5431. * @param array $options
  5432. * @return bool
  5433. * @static
  5434. */
  5435. public static function check($value, $hashedValue, $options = [])
  5436. {
  5437. /** @var \Illuminate\Hashing\HashManager $instance */
  5438. return $instance->check($value, $hashedValue, $options);
  5439. }
  5440. /**
  5441. * Check if the given hash has been hashed using the given options.
  5442. *
  5443. * @param string $hashedValue
  5444. * @param array $options
  5445. * @return bool
  5446. * @static
  5447. */
  5448. public static function needsRehash($hashedValue, $options = [])
  5449. {
  5450. /** @var \Illuminate\Hashing\HashManager $instance */
  5451. return $instance->needsRehash($hashedValue, $options);
  5452. }
  5453. /**
  5454. * Get the default driver name.
  5455. *
  5456. * @return string
  5457. * @static
  5458. */
  5459. public static function getDefaultDriver()
  5460. {
  5461. /** @var \Illuminate\Hashing\HashManager $instance */
  5462. return $instance->getDefaultDriver();
  5463. }
  5464. /**
  5465. * Get a driver instance.
  5466. *
  5467. * @param string $driver
  5468. * @return mixed
  5469. * @throws \InvalidArgumentException
  5470. * @static
  5471. */
  5472. public static function driver($driver = null)
  5473. { //Method inherited from \Illuminate\Support\Manager
  5474. /** @var \Illuminate\Hashing\HashManager $instance */
  5475. return $instance->driver($driver);
  5476. }
  5477. /**
  5478. * Register a custom driver creator Closure.
  5479. *
  5480. * @param string $driver
  5481. * @param \Closure $callback
  5482. * @return \Illuminate\Hashing\HashManager
  5483. * @static
  5484. */
  5485. public static function extend($driver, $callback)
  5486. { //Method inherited from \Illuminate\Support\Manager
  5487. /** @var \Illuminate\Hashing\HashManager $instance */
  5488. return $instance->extend($driver, $callback);
  5489. }
  5490. /**
  5491. * Get all of the created "drivers".
  5492. *
  5493. * @return array
  5494. * @static
  5495. */
  5496. public static function getDrivers()
  5497. { //Method inherited from \Illuminate\Support\Manager
  5498. /** @var \Illuminate\Hashing\HashManager $instance */
  5499. return $instance->getDrivers();
  5500. }
  5501. }
  5502. /**
  5503. *
  5504. *
  5505. * @see \Illuminate\Translation\Translator
  5506. */
  5507. class Lang {
  5508. /**
  5509. * Determine if a translation exists for a given locale.
  5510. *
  5511. * @param string $key
  5512. * @param string|null $locale
  5513. * @return bool
  5514. * @static
  5515. */
  5516. public static function hasForLocale($key, $locale = null)
  5517. {
  5518. /** @var \Illuminate\Translation\Translator $instance */
  5519. return $instance->hasForLocale($key, $locale);
  5520. }
  5521. /**
  5522. * Determine if a translation exists.
  5523. *
  5524. * @param string $key
  5525. * @param string|null $locale
  5526. * @param bool $fallback
  5527. * @return bool
  5528. * @static
  5529. */
  5530. public static function has($key, $locale = null, $fallback = true)
  5531. {
  5532. /** @var \Illuminate\Translation\Translator $instance */
  5533. return $instance->has($key, $locale, $fallback);
  5534. }
  5535. /**
  5536. * Get the translation for a given key.
  5537. *
  5538. * @param string $key
  5539. * @param array $replace
  5540. * @param string|null $locale
  5541. * @return string|array
  5542. * @static
  5543. */
  5544. public static function trans($key, $replace = [], $locale = null)
  5545. {
  5546. /** @var \Illuminate\Translation\Translator $instance */
  5547. return $instance->trans($key, $replace, $locale);
  5548. }
  5549. /**
  5550. * Get the translation for the given key.
  5551. *
  5552. * @param string $key
  5553. * @param array $replace
  5554. * @param string|null $locale
  5555. * @param bool $fallback
  5556. * @return string|array
  5557. * @static
  5558. */
  5559. public static function get($key, $replace = [], $locale = null, $fallback = true)
  5560. {
  5561. /** @var \Illuminate\Translation\Translator $instance */
  5562. return $instance->get($key, $replace, $locale, $fallback);
  5563. }
  5564. /**
  5565. * Get the translation for a given key from the JSON translation files.
  5566. *
  5567. * @param string $key
  5568. * @param array $replace
  5569. * @param string|null $locale
  5570. * @return string|array
  5571. * @static
  5572. */
  5573. public static function getFromJson($key, $replace = [], $locale = null)
  5574. {
  5575. /** @var \Illuminate\Translation\Translator $instance */
  5576. return $instance->getFromJson($key, $replace, $locale);
  5577. }
  5578. /**
  5579. * Get a translation according to an integer value.
  5580. *
  5581. * @param string $key
  5582. * @param int|array|\Countable $number
  5583. * @param array $replace
  5584. * @param string|null $locale
  5585. * @return string
  5586. * @static
  5587. */
  5588. public static function transChoice($key, $number, $replace = [], $locale = null)
  5589. {
  5590. /** @var \Illuminate\Translation\Translator $instance */
  5591. return $instance->transChoice($key, $number, $replace, $locale);
  5592. }
  5593. /**
  5594. * Get a translation according to an integer value.
  5595. *
  5596. * @param string $key
  5597. * @param int|array|\Countable $number
  5598. * @param array $replace
  5599. * @param string|null $locale
  5600. * @return string
  5601. * @static
  5602. */
  5603. public static function choice($key, $number, $replace = [], $locale = null)
  5604. {
  5605. /** @var \Illuminate\Translation\Translator $instance */
  5606. return $instance->choice($key, $number, $replace, $locale);
  5607. }
  5608. /**
  5609. * Add translation lines to the given locale.
  5610. *
  5611. * @param array $lines
  5612. * @param string $locale
  5613. * @param string $namespace
  5614. * @return void
  5615. * @static
  5616. */
  5617. public static function addLines($lines, $locale, $namespace = '*')
  5618. {
  5619. /** @var \Illuminate\Translation\Translator $instance */
  5620. $instance->addLines($lines, $locale, $namespace);
  5621. }
  5622. /**
  5623. * Load the specified language group.
  5624. *
  5625. * @param string $namespace
  5626. * @param string $group
  5627. * @param string $locale
  5628. * @return void
  5629. * @static
  5630. */
  5631. public static function load($namespace, $group, $locale)
  5632. {
  5633. /** @var \Illuminate\Translation\Translator $instance */
  5634. $instance->load($namespace, $group, $locale);
  5635. }
  5636. /**
  5637. * Add a new namespace to the loader.
  5638. *
  5639. * @param string $namespace
  5640. * @param string $hint
  5641. * @return void
  5642. * @static
  5643. */
  5644. public static function addNamespace($namespace, $hint)
  5645. {
  5646. /** @var \Illuminate\Translation\Translator $instance */
  5647. $instance->addNamespace($namespace, $hint);
  5648. }
  5649. /**
  5650. * Add a new JSON path to the loader.
  5651. *
  5652. * @param string $path
  5653. * @return void
  5654. * @static
  5655. */
  5656. public static function addJsonPath($path)
  5657. {
  5658. /** @var \Illuminate\Translation\Translator $instance */
  5659. $instance->addJsonPath($path);
  5660. }
  5661. /**
  5662. * Parse a key into namespace, group, and item.
  5663. *
  5664. * @param string $key
  5665. * @return array
  5666. * @static
  5667. */
  5668. public static function parseKey($key)
  5669. {
  5670. /** @var \Illuminate\Translation\Translator $instance */
  5671. return $instance->parseKey($key);
  5672. }
  5673. /**
  5674. * Get the message selector instance.
  5675. *
  5676. * @return \Illuminate\Translation\MessageSelector
  5677. * @static
  5678. */
  5679. public static function getSelector()
  5680. {
  5681. /** @var \Illuminate\Translation\Translator $instance */
  5682. return $instance->getSelector();
  5683. }
  5684. /**
  5685. * Set the message selector instance.
  5686. *
  5687. * @param \Illuminate\Translation\MessageSelector $selector
  5688. * @return void
  5689. * @static
  5690. */
  5691. public static function setSelector($selector)
  5692. {
  5693. /** @var \Illuminate\Translation\Translator $instance */
  5694. $instance->setSelector($selector);
  5695. }
  5696. /**
  5697. * Get the language line loader implementation.
  5698. *
  5699. * @return \Illuminate\Contracts\Translation\Loader
  5700. * @static
  5701. */
  5702. public static function getLoader()
  5703. {
  5704. /** @var \Illuminate\Translation\Translator $instance */
  5705. return $instance->getLoader();
  5706. }
  5707. /**
  5708. * Get the default locale being used.
  5709. *
  5710. * @return string
  5711. * @static
  5712. */
  5713. public static function locale()
  5714. {
  5715. /** @var \Illuminate\Translation\Translator $instance */
  5716. return $instance->locale();
  5717. }
  5718. /**
  5719. * Get the default locale being used.
  5720. *
  5721. * @return string
  5722. * @static
  5723. */
  5724. public static function getLocale()
  5725. {
  5726. /** @var \Illuminate\Translation\Translator $instance */
  5727. return $instance->getLocale();
  5728. }
  5729. /**
  5730. * Set the default locale.
  5731. *
  5732. * @param string $locale
  5733. * @return void
  5734. * @static
  5735. */
  5736. public static function setLocale($locale)
  5737. {
  5738. /** @var \Illuminate\Translation\Translator $instance */
  5739. $instance->setLocale($locale);
  5740. }
  5741. /**
  5742. * Get the fallback locale being used.
  5743. *
  5744. * @return string
  5745. * @static
  5746. */
  5747. public static function getFallback()
  5748. {
  5749. /** @var \Illuminate\Translation\Translator $instance */
  5750. return $instance->getFallback();
  5751. }
  5752. /**
  5753. * Set the fallback locale being used.
  5754. *
  5755. * @param string $fallback
  5756. * @return void
  5757. * @static
  5758. */
  5759. public static function setFallback($fallback)
  5760. {
  5761. /** @var \Illuminate\Translation\Translator $instance */
  5762. $instance->setFallback($fallback);
  5763. }
  5764. /**
  5765. * Set the loaded translation groups.
  5766. *
  5767. * @param array $loaded
  5768. * @return void
  5769. * @static
  5770. */
  5771. public static function setLoaded($loaded)
  5772. {
  5773. /** @var \Illuminate\Translation\Translator $instance */
  5774. $instance->setLoaded($loaded);
  5775. }
  5776. /**
  5777. * Set the parsed value of a key.
  5778. *
  5779. * @param string $key
  5780. * @param array $parsed
  5781. * @return void
  5782. * @static
  5783. */
  5784. public static function setParsedKey($key, $parsed)
  5785. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5786. /** @var \Illuminate\Translation\Translator $instance */
  5787. $instance->setParsedKey($key, $parsed);
  5788. }
  5789. /**
  5790. * Register a custom macro.
  5791. *
  5792. * @param string $name
  5793. * @param object|callable $macro
  5794. * @return void
  5795. * @static
  5796. */
  5797. public static function macro($name, $macro)
  5798. {
  5799. \Illuminate\Translation\Translator::macro($name, $macro);
  5800. }
  5801. /**
  5802. * Mix another object into the class.
  5803. *
  5804. * @param object $mixin
  5805. * @param bool $replace
  5806. * @return void
  5807. * @throws \ReflectionException
  5808. * @static
  5809. */
  5810. public static function mixin($mixin, $replace = true)
  5811. {
  5812. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  5813. }
  5814. /**
  5815. * Checks if macro is registered.
  5816. *
  5817. * @param string $name
  5818. * @return bool
  5819. * @static
  5820. */
  5821. public static function hasMacro($name)
  5822. {
  5823. return \Illuminate\Translation\Translator::hasMacro($name);
  5824. }
  5825. }
  5826. /**
  5827. *
  5828. *
  5829. * @see \Illuminate\Log\Logger
  5830. */
  5831. class Log {
  5832. /**
  5833. * Create a new, on-demand aggregate logger instance.
  5834. *
  5835. * @param array $channels
  5836. * @param string|null $channel
  5837. * @return \Psr\Log\LoggerInterface
  5838. * @static
  5839. */
  5840. public static function stack($channels, $channel = null)
  5841. {
  5842. /** @var \Illuminate\Log\LogManager $instance */
  5843. return $instance->stack($channels, $channel);
  5844. }
  5845. /**
  5846. * Get a log channel instance.
  5847. *
  5848. * @param string|null $channel
  5849. * @return mixed
  5850. * @static
  5851. */
  5852. public static function channel($channel = null)
  5853. {
  5854. /** @var \Illuminate\Log\LogManager $instance */
  5855. return $instance->channel($channel);
  5856. }
  5857. /**
  5858. * Get a log driver instance.
  5859. *
  5860. * @param string|null $driver
  5861. * @return mixed
  5862. * @static
  5863. */
  5864. public static function driver($driver = null)
  5865. {
  5866. /** @var \Illuminate\Log\LogManager $instance */
  5867. return $instance->driver($driver);
  5868. }
  5869. /**
  5870. * Get the default log driver name.
  5871. *
  5872. * @return string
  5873. * @static
  5874. */
  5875. public static function getDefaultDriver()
  5876. {
  5877. /** @var \Illuminate\Log\LogManager $instance */
  5878. return $instance->getDefaultDriver();
  5879. }
  5880. /**
  5881. * Set the default log driver name.
  5882. *
  5883. * @param string $name
  5884. * @return void
  5885. * @static
  5886. */
  5887. public static function setDefaultDriver($name)
  5888. {
  5889. /** @var \Illuminate\Log\LogManager $instance */
  5890. $instance->setDefaultDriver($name);
  5891. }
  5892. /**
  5893. * Register a custom driver creator Closure.
  5894. *
  5895. * @param string $driver
  5896. * @param \Closure $callback
  5897. * @return \Illuminate\Log\LogManager
  5898. * @static
  5899. */
  5900. public static function extend($driver, $callback)
  5901. {
  5902. /** @var \Illuminate\Log\LogManager $instance */
  5903. return $instance->extend($driver, $callback);
  5904. }
  5905. /**
  5906. * System is unusable.
  5907. *
  5908. * @param string $message
  5909. * @param array $context
  5910. * @return void
  5911. * @static
  5912. */
  5913. public static function emergency($message, $context = [])
  5914. {
  5915. /** @var \Illuminate\Log\LogManager $instance */
  5916. $instance->emergency($message, $context);
  5917. }
  5918. /**
  5919. * Action must be taken immediately.
  5920. *
  5921. * Example: Entire website down, database unavailable, etc. This should
  5922. * trigger the SMS alerts and wake you up.
  5923. *
  5924. * @param string $message
  5925. * @param array $context
  5926. * @return void
  5927. * @static
  5928. */
  5929. public static function alert($message, $context = [])
  5930. {
  5931. /** @var \Illuminate\Log\LogManager $instance */
  5932. $instance->alert($message, $context);
  5933. }
  5934. /**
  5935. * Critical conditions.
  5936. *
  5937. * Example: Application component unavailable, unexpected exception.
  5938. *
  5939. * @param string $message
  5940. * @param array $context
  5941. * @return void
  5942. * @static
  5943. */
  5944. public static function critical($message, $context = [])
  5945. {
  5946. /** @var \Illuminate\Log\LogManager $instance */
  5947. $instance->critical($message, $context);
  5948. }
  5949. /**
  5950. * Runtime errors that do not require immediate action but should typically
  5951. * be logged and monitored.
  5952. *
  5953. * @param string $message
  5954. * @param array $context
  5955. * @return void
  5956. * @static
  5957. */
  5958. public static function error($message, $context = [])
  5959. {
  5960. /** @var \Illuminate\Log\LogManager $instance */
  5961. $instance->error($message, $context);
  5962. }
  5963. /**
  5964. * Exceptional occurrences that are not errors.
  5965. *
  5966. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  5967. * that are not necessarily wrong.
  5968. *
  5969. * @param string $message
  5970. * @param array $context
  5971. * @return void
  5972. * @static
  5973. */
  5974. public static function warning($message, $context = [])
  5975. {
  5976. /** @var \Illuminate\Log\LogManager $instance */
  5977. $instance->warning($message, $context);
  5978. }
  5979. /**
  5980. * Normal but significant events.
  5981. *
  5982. * @param string $message
  5983. * @param array $context
  5984. * @return void
  5985. * @static
  5986. */
  5987. public static function notice($message, $context = [])
  5988. {
  5989. /** @var \Illuminate\Log\LogManager $instance */
  5990. $instance->notice($message, $context);
  5991. }
  5992. /**
  5993. * Interesting events.
  5994. *
  5995. * Example: User logs in, SQL logs.
  5996. *
  5997. * @param string $message
  5998. * @param array $context
  5999. * @return void
  6000. * @static
  6001. */
  6002. public static function info($message, $context = [])
  6003. {
  6004. /** @var \Illuminate\Log\LogManager $instance */
  6005. $instance->info($message, $context);
  6006. }
  6007. /**
  6008. * Detailed debug information.
  6009. *
  6010. * @param string $message
  6011. * @param array $context
  6012. * @return void
  6013. * @static
  6014. */
  6015. public static function debug($message, $context = [])
  6016. {
  6017. /** @var \Illuminate\Log\LogManager $instance */
  6018. $instance->debug($message, $context);
  6019. }
  6020. /**
  6021. * Logs with an arbitrary level.
  6022. *
  6023. * @param mixed $level
  6024. * @param string $message
  6025. * @param array $context
  6026. * @return void
  6027. * @static
  6028. */
  6029. public static function log($level, $message, $context = [])
  6030. {
  6031. /** @var \Illuminate\Log\LogManager $instance */
  6032. $instance->log($level, $message, $context);
  6033. }
  6034. }
  6035. /**
  6036. *
  6037. *
  6038. * @see \Illuminate\Mail\Mailer
  6039. * @see \Illuminate\Support\Testing\Fakes\MailFake
  6040. */
  6041. class Mail {
  6042. /**
  6043. * Set the global from address and name.
  6044. *
  6045. * @param string $address
  6046. * @param string|null $name
  6047. * @return void
  6048. * @static
  6049. */
  6050. public static function alwaysFrom($address, $name = null)
  6051. {
  6052. /** @var \Illuminate\Mail\Mailer $instance */
  6053. $instance->alwaysFrom($address, $name);
  6054. }
  6055. /**
  6056. * Set the global reply-to address and name.
  6057. *
  6058. * @param string $address
  6059. * @param string|null $name
  6060. * @return void
  6061. * @static
  6062. */
  6063. public static function alwaysReplyTo($address, $name = null)
  6064. {
  6065. /** @var \Illuminate\Mail\Mailer $instance */
  6066. $instance->alwaysReplyTo($address, $name);
  6067. }
  6068. /**
  6069. * Set the global to address and name.
  6070. *
  6071. * @param string $address
  6072. * @param string|null $name
  6073. * @return void
  6074. * @static
  6075. */
  6076. public static function alwaysTo($address, $name = null)
  6077. {
  6078. /** @var \Illuminate\Mail\Mailer $instance */
  6079. $instance->alwaysTo($address, $name);
  6080. }
  6081. /**
  6082. * Begin the process of mailing a mailable class instance.
  6083. *
  6084. * @param mixed $users
  6085. * @return \Illuminate\Mail\PendingMail
  6086. * @static
  6087. */
  6088. public static function to($users)
  6089. {
  6090. /** @var \Illuminate\Mail\Mailer $instance */
  6091. return $instance->to($users);
  6092. }
  6093. /**
  6094. * Begin the process of mailing a mailable class instance.
  6095. *
  6096. * @param mixed $users
  6097. * @return \Illuminate\Mail\PendingMail
  6098. * @static
  6099. */
  6100. public static function cc($users)
  6101. {
  6102. /** @var \Illuminate\Mail\Mailer $instance */
  6103. return $instance->cc($users);
  6104. }
  6105. /**
  6106. * Begin the process of mailing a mailable class instance.
  6107. *
  6108. * @param mixed $users
  6109. * @return \Illuminate\Mail\PendingMail
  6110. * @static
  6111. */
  6112. public static function bcc($users)
  6113. {
  6114. /** @var \Illuminate\Mail\Mailer $instance */
  6115. return $instance->bcc($users);
  6116. }
  6117. /**
  6118. * Send a new message with only an HTML part.
  6119. *
  6120. * @param string $html
  6121. * @param mixed $callback
  6122. * @return void
  6123. * @static
  6124. */
  6125. public static function html($html, $callback)
  6126. {
  6127. /** @var \Illuminate\Mail\Mailer $instance */
  6128. $instance->html($html, $callback);
  6129. }
  6130. /**
  6131. * Send a new message with only a raw text part.
  6132. *
  6133. * @param string $text
  6134. * @param mixed $callback
  6135. * @return void
  6136. * @static
  6137. */
  6138. public static function raw($text, $callback)
  6139. {
  6140. /** @var \Illuminate\Mail\Mailer $instance */
  6141. $instance->raw($text, $callback);
  6142. }
  6143. /**
  6144. * Send a new message with only a plain part.
  6145. *
  6146. * @param string $view
  6147. * @param array $data
  6148. * @param mixed $callback
  6149. * @return void
  6150. * @static
  6151. */
  6152. public static function plain($view, $data, $callback)
  6153. {
  6154. /** @var \Illuminate\Mail\Mailer $instance */
  6155. $instance->plain($view, $data, $callback);
  6156. }
  6157. /**
  6158. * Render the given message as a view.
  6159. *
  6160. * @param string|array $view
  6161. * @param array $data
  6162. * @return string
  6163. * @static
  6164. */
  6165. public static function render($view, $data = [])
  6166. {
  6167. /** @var \Illuminate\Mail\Mailer $instance */
  6168. return $instance->render($view, $data);
  6169. }
  6170. /**
  6171. * Send a new message using a view.
  6172. *
  6173. * @param string|array|\Illuminate\Contracts\Mail\Mailable $view
  6174. * @param array $data
  6175. * @param \Closure|string|null $callback
  6176. * @return void
  6177. * @static
  6178. */
  6179. public static function send($view, $data = [], $callback = null)
  6180. {
  6181. /** @var \Illuminate\Mail\Mailer $instance */
  6182. $instance->send($view, $data, $callback);
  6183. }
  6184. /**
  6185. * Queue a new e-mail message for sending.
  6186. *
  6187. * @param \Illuminate\Contracts\Mail\Mailable $view
  6188. * @param string|null $queue
  6189. * @return mixed
  6190. * @throws \InvalidArgumentException
  6191. * @static
  6192. */
  6193. public static function queue($view, $queue = null)
  6194. {
  6195. /** @var \Illuminate\Mail\Mailer $instance */
  6196. return $instance->queue($view, $queue);
  6197. }
  6198. /**
  6199. * Queue a new e-mail message for sending on the given queue.
  6200. *
  6201. * @param string $queue
  6202. * @param \Illuminate\Contracts\Mail\Mailable $view
  6203. * @return mixed
  6204. * @static
  6205. */
  6206. public static function onQueue($queue, $view)
  6207. {
  6208. /** @var \Illuminate\Mail\Mailer $instance */
  6209. return $instance->onQueue($queue, $view);
  6210. }
  6211. /**
  6212. * Queue a new e-mail message for sending on the given queue.
  6213. *
  6214. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6215. *
  6216. * @param string $queue
  6217. * @param \Illuminate\Contracts\Mail\Mailable $view
  6218. * @return mixed
  6219. * @static
  6220. */
  6221. public static function queueOn($queue, $view)
  6222. {
  6223. /** @var \Illuminate\Mail\Mailer $instance */
  6224. return $instance->queueOn($queue, $view);
  6225. }
  6226. /**
  6227. * Queue a new e-mail message for sending after (n) seconds.
  6228. *
  6229. * @param \DateTimeInterface|\DateInterval|int $delay
  6230. * @param \Illuminate\Contracts\Mail\Mailable $view
  6231. * @param string|null $queue
  6232. * @return mixed
  6233. * @throws \InvalidArgumentException
  6234. * @static
  6235. */
  6236. public static function later($delay, $view, $queue = null)
  6237. {
  6238. /** @var \Illuminate\Mail\Mailer $instance */
  6239. return $instance->later($delay, $view, $queue);
  6240. }
  6241. /**
  6242. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6243. *
  6244. * @param string $queue
  6245. * @param \DateTimeInterface|\DateInterval|int $delay
  6246. * @param \Illuminate\Contracts\Mail\Mailable $view
  6247. * @return mixed
  6248. * @static
  6249. */
  6250. public static function laterOn($queue, $delay, $view)
  6251. {
  6252. /** @var \Illuminate\Mail\Mailer $instance */
  6253. return $instance->laterOn($queue, $delay, $view);
  6254. }
  6255. /**
  6256. * Get the array of failed recipients.
  6257. *
  6258. * @return array
  6259. * @static
  6260. */
  6261. public static function failures()
  6262. {
  6263. /** @var \Illuminate\Mail\Mailer $instance */
  6264. return $instance->failures();
  6265. }
  6266. /**
  6267. * Get the Swift Mailer instance.
  6268. *
  6269. * @return \Swift_Mailer
  6270. * @static
  6271. */
  6272. public static function getSwiftMailer()
  6273. {
  6274. /** @var \Illuminate\Mail\Mailer $instance */
  6275. return $instance->getSwiftMailer();
  6276. }
  6277. /**
  6278. * Get the view factory instance.
  6279. *
  6280. * @return \Illuminate\Contracts\View\Factory
  6281. * @static
  6282. */
  6283. public static function getViewFactory()
  6284. {
  6285. /** @var \Illuminate\Mail\Mailer $instance */
  6286. return $instance->getViewFactory();
  6287. }
  6288. /**
  6289. * Set the Swift Mailer instance.
  6290. *
  6291. * @param \Swift_Mailer $swift
  6292. * @return void
  6293. * @static
  6294. */
  6295. public static function setSwiftMailer($swift)
  6296. {
  6297. /** @var \Illuminate\Mail\Mailer $instance */
  6298. $instance->setSwiftMailer($swift);
  6299. }
  6300. /**
  6301. * Set the queue manager instance.
  6302. *
  6303. * @param \Illuminate\Contracts\Queue\Factory $queue
  6304. * @return \Illuminate\Mail\Mailer
  6305. * @static
  6306. */
  6307. public static function setQueue($queue)
  6308. {
  6309. /** @var \Illuminate\Mail\Mailer $instance */
  6310. return $instance->setQueue($queue);
  6311. }
  6312. /**
  6313. * Register a custom macro.
  6314. *
  6315. * @param string $name
  6316. * @param object|callable $macro
  6317. * @return void
  6318. * @static
  6319. */
  6320. public static function macro($name, $macro)
  6321. {
  6322. \Illuminate\Mail\Mailer::macro($name, $macro);
  6323. }
  6324. /**
  6325. * Mix another object into the class.
  6326. *
  6327. * @param object $mixin
  6328. * @param bool $replace
  6329. * @return void
  6330. * @throws \ReflectionException
  6331. * @static
  6332. */
  6333. public static function mixin($mixin, $replace = true)
  6334. {
  6335. \Illuminate\Mail\Mailer::mixin($mixin, $replace);
  6336. }
  6337. /**
  6338. * Checks if macro is registered.
  6339. *
  6340. * @param string $name
  6341. * @return bool
  6342. * @static
  6343. */
  6344. public static function hasMacro($name)
  6345. {
  6346. return \Illuminate\Mail\Mailer::hasMacro($name);
  6347. }
  6348. /**
  6349. * Assert if a mailable was sent based on a truth-test callback.
  6350. *
  6351. * @param string $mailable
  6352. * @param callable|int|null $callback
  6353. * @return void
  6354. * @static
  6355. */
  6356. public static function assertSent($mailable, $callback = null)
  6357. {
  6358. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6359. $instance->assertSent($mailable, $callback);
  6360. }
  6361. /**
  6362. * Determine if a mailable was not sent based on a truth-test callback.
  6363. *
  6364. * @param string $mailable
  6365. * @param callable|null $callback
  6366. * @return void
  6367. * @static
  6368. */
  6369. public static function assertNotSent($mailable, $callback = null)
  6370. {
  6371. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6372. $instance->assertNotSent($mailable, $callback);
  6373. }
  6374. /**
  6375. * Assert that no mailables were sent.
  6376. *
  6377. * @return void
  6378. * @static
  6379. */
  6380. public static function assertNothingSent()
  6381. {
  6382. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6383. $instance->assertNothingSent();
  6384. }
  6385. /**
  6386. * Assert if a mailable was queued based on a truth-test callback.
  6387. *
  6388. * @param string $mailable
  6389. * @param callable|int|null $callback
  6390. * @return void
  6391. * @static
  6392. */
  6393. public static function assertQueued($mailable, $callback = null)
  6394. {
  6395. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6396. $instance->assertQueued($mailable, $callback);
  6397. }
  6398. /**
  6399. * Determine if a mailable was not queued based on a truth-test callback.
  6400. *
  6401. * @param string $mailable
  6402. * @param callable|null $callback
  6403. * @return void
  6404. * @static
  6405. */
  6406. public static function assertNotQueued($mailable, $callback = null)
  6407. {
  6408. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6409. $instance->assertNotQueued($mailable, $callback);
  6410. }
  6411. /**
  6412. * Assert that no mailables were queued.
  6413. *
  6414. * @return void
  6415. * @static
  6416. */
  6417. public static function assertNothingQueued()
  6418. {
  6419. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6420. $instance->assertNothingQueued();
  6421. }
  6422. /**
  6423. * Get all of the mailables matching a truth-test callback.
  6424. *
  6425. * @param string $mailable
  6426. * @param callable|null $callback
  6427. * @return \Illuminate\Support\Collection
  6428. * @static
  6429. */
  6430. public static function sent($mailable, $callback = null)
  6431. {
  6432. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6433. return $instance->sent($mailable, $callback);
  6434. }
  6435. /**
  6436. * Determine if the given mailable has been sent.
  6437. *
  6438. * @param string $mailable
  6439. * @return bool
  6440. * @static
  6441. */
  6442. public static function hasSent($mailable)
  6443. {
  6444. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6445. return $instance->hasSent($mailable);
  6446. }
  6447. /**
  6448. * Get all of the queued mailables matching a truth-test callback.
  6449. *
  6450. * @param string $mailable
  6451. * @param callable|null $callback
  6452. * @return \Illuminate\Support\Collection
  6453. * @static
  6454. */
  6455. public static function queued($mailable, $callback = null)
  6456. {
  6457. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6458. return $instance->queued($mailable, $callback);
  6459. }
  6460. /**
  6461. * Determine if the given mailable has been queued.
  6462. *
  6463. * @param string $mailable
  6464. * @return bool
  6465. * @static
  6466. */
  6467. public static function hasQueued($mailable)
  6468. {
  6469. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6470. return $instance->hasQueued($mailable);
  6471. }
  6472. }
  6473. /**
  6474. *
  6475. *
  6476. * @see \Illuminate\Notifications\ChannelManager
  6477. */
  6478. class Notification {
  6479. /**
  6480. * Send the given notification to the given notifiable entities.
  6481. *
  6482. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6483. * @param mixed $notification
  6484. * @return void
  6485. * @static
  6486. */
  6487. public static function send($notifiables, $notification)
  6488. {
  6489. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6490. $instance->send($notifiables, $notification);
  6491. }
  6492. /**
  6493. * Send the given notification immediately.
  6494. *
  6495. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6496. * @param mixed $notification
  6497. * @param array|null $channels
  6498. * @return void
  6499. * @static
  6500. */
  6501. public static function sendNow($notifiables, $notification, $channels = null)
  6502. {
  6503. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6504. $instance->sendNow($notifiables, $notification, $channels);
  6505. }
  6506. /**
  6507. * Get a channel instance.
  6508. *
  6509. * @param string|null $name
  6510. * @return mixed
  6511. * @static
  6512. */
  6513. public static function channel($name = null)
  6514. {
  6515. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6516. return $instance->channel($name);
  6517. }
  6518. /**
  6519. * Get the default channel driver name.
  6520. *
  6521. * @return string
  6522. * @static
  6523. */
  6524. public static function getDefaultDriver()
  6525. {
  6526. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6527. return $instance->getDefaultDriver();
  6528. }
  6529. /**
  6530. * Get the default channel driver name.
  6531. *
  6532. * @return string
  6533. * @static
  6534. */
  6535. public static function deliversVia()
  6536. {
  6537. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6538. return $instance->deliversVia();
  6539. }
  6540. /**
  6541. * Set the default channel driver name.
  6542. *
  6543. * @param string $channel
  6544. * @return void
  6545. * @static
  6546. */
  6547. public static function deliverVia($channel)
  6548. {
  6549. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6550. $instance->deliverVia($channel);
  6551. }
  6552. /**
  6553. * Set the locale of notifications.
  6554. *
  6555. * @param string $locale
  6556. * @return \Illuminate\Notifications\ChannelManager
  6557. * @static
  6558. */
  6559. public static function locale($locale)
  6560. {
  6561. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6562. return $instance->locale($locale);
  6563. }
  6564. /**
  6565. * Get a driver instance.
  6566. *
  6567. * @param string $driver
  6568. * @return mixed
  6569. * @throws \InvalidArgumentException
  6570. * @static
  6571. */
  6572. public static function driver($driver = null)
  6573. { //Method inherited from \Illuminate\Support\Manager
  6574. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6575. return $instance->driver($driver);
  6576. }
  6577. /**
  6578. * Register a custom driver creator Closure.
  6579. *
  6580. * @param string $driver
  6581. * @param \Closure $callback
  6582. * @return \Illuminate\Notifications\ChannelManager
  6583. * @static
  6584. */
  6585. public static function extend($driver, $callback)
  6586. { //Method inherited from \Illuminate\Support\Manager
  6587. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6588. return $instance->extend($driver, $callback);
  6589. }
  6590. /**
  6591. * Get all of the created "drivers".
  6592. *
  6593. * @return array
  6594. * @static
  6595. */
  6596. public static function getDrivers()
  6597. { //Method inherited from \Illuminate\Support\Manager
  6598. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6599. return $instance->getDrivers();
  6600. }
  6601. /**
  6602. * Assert if a notification was sent based on a truth-test callback.
  6603. *
  6604. * @param mixed $notifiable
  6605. * @param string $notification
  6606. * @param callable|null $callback
  6607. * @return void
  6608. * @static
  6609. */
  6610. public static function assertSentTo($notifiable, $notification, $callback = null)
  6611. {
  6612. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6613. $instance->assertSentTo($notifiable, $notification, $callback);
  6614. }
  6615. /**
  6616. * Assert if a notification was sent a number of times.
  6617. *
  6618. * @param mixed $notifiable
  6619. * @param string $notification
  6620. * @param int $times
  6621. * @return void
  6622. * @static
  6623. */
  6624. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6625. {
  6626. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6627. $instance->assertSentToTimes($notifiable, $notification, $times);
  6628. }
  6629. /**
  6630. * Determine if a notification was sent based on a truth-test callback.
  6631. *
  6632. * @param mixed $notifiable
  6633. * @param string $notification
  6634. * @param callable|null $callback
  6635. * @return void
  6636. * @static
  6637. */
  6638. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6639. {
  6640. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6641. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6642. }
  6643. /**
  6644. * Assert that no notifications were sent.
  6645. *
  6646. * @return void
  6647. * @static
  6648. */
  6649. public static function assertNothingSent()
  6650. {
  6651. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6652. $instance->assertNothingSent();
  6653. }
  6654. /**
  6655. * Assert the total amount of times a notification was sent.
  6656. *
  6657. * @param int $expectedCount
  6658. * @param string $notification
  6659. * @return void
  6660. * @static
  6661. */
  6662. public static function assertTimesSent($expectedCount, $notification)
  6663. {
  6664. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6665. $instance->assertTimesSent($expectedCount, $notification);
  6666. }
  6667. /**
  6668. * Get all of the notifications matching a truth-test callback.
  6669. *
  6670. * @param mixed $notifiable
  6671. * @param string $notification
  6672. * @param callable|null $callback
  6673. * @return \Illuminate\Support\Collection
  6674. * @static
  6675. */
  6676. public static function sent($notifiable, $notification, $callback = null)
  6677. {
  6678. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6679. return $instance->sent($notifiable, $notification, $callback);
  6680. }
  6681. /**
  6682. * Determine if there are more notifications left to inspect.
  6683. *
  6684. * @param mixed $notifiable
  6685. * @param string $notification
  6686. * @return bool
  6687. * @static
  6688. */
  6689. public static function hasSent($notifiable, $notification)
  6690. {
  6691. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6692. return $instance->hasSent($notifiable, $notification);
  6693. }
  6694. /**
  6695. * Register a custom macro.
  6696. *
  6697. * @param string $name
  6698. * @param object|callable $macro
  6699. * @return void
  6700. * @static
  6701. */
  6702. public static function macro($name, $macro)
  6703. {
  6704. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  6705. }
  6706. /**
  6707. * Mix another object into the class.
  6708. *
  6709. * @param object $mixin
  6710. * @param bool $replace
  6711. * @return void
  6712. * @throws \ReflectionException
  6713. * @static
  6714. */
  6715. public static function mixin($mixin, $replace = true)
  6716. {
  6717. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  6718. }
  6719. /**
  6720. * Checks if macro is registered.
  6721. *
  6722. * @param string $name
  6723. * @return bool
  6724. * @static
  6725. */
  6726. public static function hasMacro($name)
  6727. {
  6728. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  6729. }
  6730. }
  6731. /**
  6732. *
  6733. *
  6734. * @method static string sendResetLink(array $credentials)
  6735. * @method static mixed reset(array $credentials, \Closure $callback)
  6736. * @method static void validator(\Closure $callback)
  6737. * @method static bool validateNewPassword(array $credentials)
  6738. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6739. */
  6740. class Password {
  6741. /**
  6742. * Attempt to get the broker from the local cache.
  6743. *
  6744. * @param string|null $name
  6745. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6746. * @static
  6747. */
  6748. public static function broker($name = null)
  6749. {
  6750. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6751. return $instance->broker($name);
  6752. }
  6753. /**
  6754. * Get the default password broker name.
  6755. *
  6756. * @return string
  6757. * @static
  6758. */
  6759. public static function getDefaultDriver()
  6760. {
  6761. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6762. return $instance->getDefaultDriver();
  6763. }
  6764. /**
  6765. * Set the default password broker name.
  6766. *
  6767. * @param string $name
  6768. * @return void
  6769. * @static
  6770. */
  6771. public static function setDefaultDriver($name)
  6772. {
  6773. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6774. $instance->setDefaultDriver($name);
  6775. }
  6776. }
  6777. /**
  6778. *
  6779. *
  6780. * @see \Illuminate\Queue\QueueManager
  6781. * @see \Illuminate\Queue\Queue
  6782. */
  6783. class Queue {
  6784. /**
  6785. * Register an event listener for the before job event.
  6786. *
  6787. * @param mixed $callback
  6788. * @return void
  6789. * @static
  6790. */
  6791. public static function before($callback)
  6792. {
  6793. /** @var \Illuminate\Queue\QueueManager $instance */
  6794. $instance->before($callback);
  6795. }
  6796. /**
  6797. * Register an event listener for the after job event.
  6798. *
  6799. * @param mixed $callback
  6800. * @return void
  6801. * @static
  6802. */
  6803. public static function after($callback)
  6804. {
  6805. /** @var \Illuminate\Queue\QueueManager $instance */
  6806. $instance->after($callback);
  6807. }
  6808. /**
  6809. * Register an event listener for the exception occurred job event.
  6810. *
  6811. * @param mixed $callback
  6812. * @return void
  6813. * @static
  6814. */
  6815. public static function exceptionOccurred($callback)
  6816. {
  6817. /** @var \Illuminate\Queue\QueueManager $instance */
  6818. $instance->exceptionOccurred($callback);
  6819. }
  6820. /**
  6821. * Register an event listener for the daemon queue loop.
  6822. *
  6823. * @param mixed $callback
  6824. * @return void
  6825. * @static
  6826. */
  6827. public static function looping($callback)
  6828. {
  6829. /** @var \Illuminate\Queue\QueueManager $instance */
  6830. $instance->looping($callback);
  6831. }
  6832. /**
  6833. * Register an event listener for the failed job event.
  6834. *
  6835. * @param mixed $callback
  6836. * @return void
  6837. * @static
  6838. */
  6839. public static function failing($callback)
  6840. {
  6841. /** @var \Illuminate\Queue\QueueManager $instance */
  6842. $instance->failing($callback);
  6843. }
  6844. /**
  6845. * Register an event listener for the daemon queue stopping.
  6846. *
  6847. * @param mixed $callback
  6848. * @return void
  6849. * @static
  6850. */
  6851. public static function stopping($callback)
  6852. {
  6853. /** @var \Illuminate\Queue\QueueManager $instance */
  6854. $instance->stopping($callback);
  6855. }
  6856. /**
  6857. * Determine if the driver is connected.
  6858. *
  6859. * @param string|null $name
  6860. * @return bool
  6861. * @static
  6862. */
  6863. public static function connected($name = null)
  6864. {
  6865. /** @var \Illuminate\Queue\QueueManager $instance */
  6866. return $instance->connected($name);
  6867. }
  6868. /**
  6869. * Resolve a queue connection instance.
  6870. *
  6871. * @param string|null $name
  6872. * @return \Illuminate\Contracts\Queue\Queue
  6873. * @static
  6874. */
  6875. public static function connection($name = null)
  6876. {
  6877. /** @var \Illuminate\Queue\QueueManager $instance */
  6878. return $instance->connection($name);
  6879. }
  6880. /**
  6881. * Add a queue connection resolver.
  6882. *
  6883. * @param string $driver
  6884. * @param \Closure $resolver
  6885. * @return void
  6886. * @static
  6887. */
  6888. public static function extend($driver, $resolver)
  6889. {
  6890. /** @var \Illuminate\Queue\QueueManager $instance */
  6891. $instance->extend($driver, $resolver);
  6892. }
  6893. /**
  6894. * Add a queue connection resolver.
  6895. *
  6896. * @param string $driver
  6897. * @param \Closure $resolver
  6898. * @return void
  6899. * @static
  6900. */
  6901. public static function addConnector($driver, $resolver)
  6902. {
  6903. /** @var \Illuminate\Queue\QueueManager $instance */
  6904. $instance->addConnector($driver, $resolver);
  6905. }
  6906. /**
  6907. * Get the name of the default queue connection.
  6908. *
  6909. * @return string
  6910. * @static
  6911. */
  6912. public static function getDefaultDriver()
  6913. {
  6914. /** @var \Illuminate\Queue\QueueManager $instance */
  6915. return $instance->getDefaultDriver();
  6916. }
  6917. /**
  6918. * Set the name of the default queue connection.
  6919. *
  6920. * @param string $name
  6921. * @return void
  6922. * @static
  6923. */
  6924. public static function setDefaultDriver($name)
  6925. {
  6926. /** @var \Illuminate\Queue\QueueManager $instance */
  6927. $instance->setDefaultDriver($name);
  6928. }
  6929. /**
  6930. * Get the full name for the given connection.
  6931. *
  6932. * @param string|null $connection
  6933. * @return string
  6934. * @static
  6935. */
  6936. public static function getName($connection = null)
  6937. {
  6938. /** @var \Illuminate\Queue\QueueManager $instance */
  6939. return $instance->getName($connection);
  6940. }
  6941. /**
  6942. * Determine if the application is in maintenance mode.
  6943. *
  6944. * @return bool
  6945. * @static
  6946. */
  6947. public static function isDownForMaintenance()
  6948. {
  6949. /** @var \Illuminate\Queue\QueueManager $instance */
  6950. return $instance->isDownForMaintenance();
  6951. }
  6952. /**
  6953. * Assert if a job was pushed based on a truth-test callback.
  6954. *
  6955. * @param string $job
  6956. * @param callable|int|null $callback
  6957. * @return void
  6958. * @static
  6959. */
  6960. public static function assertPushed($job, $callback = null)
  6961. {
  6962. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6963. $instance->assertPushed($job, $callback);
  6964. }
  6965. /**
  6966. * Assert if a job was pushed based on a truth-test callback.
  6967. *
  6968. * @param string $queue
  6969. * @param string $job
  6970. * @param callable|null $callback
  6971. * @return void
  6972. * @static
  6973. */
  6974. public static function assertPushedOn($queue, $job, $callback = null)
  6975. {
  6976. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6977. $instance->assertPushedOn($queue, $job, $callback);
  6978. }
  6979. /**
  6980. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  6981. *
  6982. * @param string $job
  6983. * @param array $expectedChain
  6984. * @param callable|null $callback
  6985. * @return void
  6986. * @static
  6987. */
  6988. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  6989. {
  6990. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6991. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  6992. }
  6993. /**
  6994. * Determine if a job was pushed based on a truth-test callback.
  6995. *
  6996. * @param string $job
  6997. * @param callable|null $callback
  6998. * @return void
  6999. * @static
  7000. */
  7001. public static function assertNotPushed($job, $callback = null)
  7002. {
  7003. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7004. $instance->assertNotPushed($job, $callback);
  7005. }
  7006. /**
  7007. * Assert that no jobs were pushed.
  7008. *
  7009. * @return void
  7010. * @static
  7011. */
  7012. public static function assertNothingPushed()
  7013. {
  7014. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7015. $instance->assertNothingPushed();
  7016. }
  7017. /**
  7018. * Get all of the jobs matching a truth-test callback.
  7019. *
  7020. * @param string $job
  7021. * @param callable|null $callback
  7022. * @return \Illuminate\Support\Collection
  7023. * @static
  7024. */
  7025. public static function pushed($job, $callback = null)
  7026. {
  7027. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7028. return $instance->pushed($job, $callback);
  7029. }
  7030. /**
  7031. * Determine if there are any stored jobs for a given class.
  7032. *
  7033. * @param string $job
  7034. * @return bool
  7035. * @static
  7036. */
  7037. public static function hasPushed($job)
  7038. {
  7039. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7040. return $instance->hasPushed($job);
  7041. }
  7042. /**
  7043. * Get the size of the queue.
  7044. *
  7045. * @param string|null $queue
  7046. * @return int
  7047. * @static
  7048. */
  7049. public static function size($queue = null)
  7050. {
  7051. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7052. return $instance->size($queue);
  7053. }
  7054. /**
  7055. * Push a new job onto the queue.
  7056. *
  7057. * @param string $job
  7058. * @param mixed $data
  7059. * @param string|null $queue
  7060. * @return mixed
  7061. * @static
  7062. */
  7063. public static function push($job, $data = '', $queue = null)
  7064. {
  7065. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7066. return $instance->push($job, $data, $queue);
  7067. }
  7068. /**
  7069. * Push a raw payload onto the queue.
  7070. *
  7071. * @param string $payload
  7072. * @param string|null $queue
  7073. * @param array $options
  7074. * @return mixed
  7075. * @static
  7076. */
  7077. public static function pushRaw($payload, $queue = null, $options = [])
  7078. {
  7079. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7080. return $instance->pushRaw($payload, $queue, $options);
  7081. }
  7082. /**
  7083. * Push a new job onto the queue after a delay.
  7084. *
  7085. * @param \DateTimeInterface|\DateInterval|int $delay
  7086. * @param string $job
  7087. * @param mixed $data
  7088. * @param string|null $queue
  7089. * @return mixed
  7090. * @static
  7091. */
  7092. public static function later($delay, $job, $data = '', $queue = null)
  7093. {
  7094. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7095. return $instance->later($delay, $job, $data, $queue);
  7096. }
  7097. /**
  7098. * Push a new job onto the queue.
  7099. *
  7100. * @param string $queue
  7101. * @param string $job
  7102. * @param mixed $data
  7103. * @return mixed
  7104. * @static
  7105. */
  7106. public static function pushOn($queue, $job, $data = '')
  7107. {
  7108. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7109. return $instance->pushOn($queue, $job, $data);
  7110. }
  7111. /**
  7112. * Push a new job onto the queue after a delay.
  7113. *
  7114. * @param string $queue
  7115. * @param \DateTimeInterface|\DateInterval|int $delay
  7116. * @param string $job
  7117. * @param mixed $data
  7118. * @return mixed
  7119. * @static
  7120. */
  7121. public static function laterOn($queue, $delay, $job, $data = '')
  7122. {
  7123. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7124. return $instance->laterOn($queue, $delay, $job, $data);
  7125. }
  7126. /**
  7127. * Pop the next job off of the queue.
  7128. *
  7129. * @param string|null $queue
  7130. * @return \Illuminate\Contracts\Queue\Job|null
  7131. * @static
  7132. */
  7133. public static function pop($queue = null)
  7134. {
  7135. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7136. return $instance->pop($queue);
  7137. }
  7138. /**
  7139. * Push an array of jobs onto the queue.
  7140. *
  7141. * @param array $jobs
  7142. * @param mixed $data
  7143. * @param string|null $queue
  7144. * @return mixed
  7145. * @static
  7146. */
  7147. public static function bulk($jobs, $data = '', $queue = null)
  7148. {
  7149. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7150. return $instance->bulk($jobs, $data, $queue);
  7151. }
  7152. /**
  7153. * Get the jobs that have been pushed.
  7154. *
  7155. * @return array
  7156. * @static
  7157. */
  7158. public static function pushedJobs()
  7159. {
  7160. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7161. return $instance->pushedJobs();
  7162. }
  7163. /**
  7164. * Get the connection name for the queue.
  7165. *
  7166. * @return string
  7167. * @static
  7168. */
  7169. public static function getConnectionName()
  7170. {
  7171. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7172. return $instance->getConnectionName();
  7173. }
  7174. /**
  7175. * Set the connection name for the queue.
  7176. *
  7177. * @param string $name
  7178. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  7179. * @static
  7180. */
  7181. public static function setConnectionName($name)
  7182. {
  7183. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7184. return $instance->setConnectionName($name);
  7185. }
  7186. /**
  7187. * Get the retry delay for an object-based queue handler.
  7188. *
  7189. * @param mixed $job
  7190. * @return mixed
  7191. * @static
  7192. */
  7193. public static function getJobRetryDelay($job)
  7194. { //Method inherited from \Illuminate\Queue\Queue
  7195. /** @var \Illuminate\Queue\SyncQueue $instance */
  7196. return $instance->getJobRetryDelay($job);
  7197. }
  7198. /**
  7199. * Get the expiration timestamp for an object-based queue handler.
  7200. *
  7201. * @param mixed $job
  7202. * @return mixed
  7203. * @static
  7204. */
  7205. public static function getJobExpiration($job)
  7206. { //Method inherited from \Illuminate\Queue\Queue
  7207. /** @var \Illuminate\Queue\SyncQueue $instance */
  7208. return $instance->getJobExpiration($job);
  7209. }
  7210. /**
  7211. * Register a callback to be executed when creating job payloads.
  7212. *
  7213. * @param callable $callback
  7214. * @return void
  7215. * @static
  7216. */
  7217. public static function createPayloadUsing($callback)
  7218. { //Method inherited from \Illuminate\Queue\Queue
  7219. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  7220. }
  7221. /**
  7222. * Set the IoC container instance.
  7223. *
  7224. * @param \Illuminate\Container\Container $container
  7225. * @return void
  7226. * @static
  7227. */
  7228. public static function setContainer($container)
  7229. { //Method inherited from \Illuminate\Queue\Queue
  7230. /** @var \Illuminate\Queue\SyncQueue $instance */
  7231. $instance->setContainer($container);
  7232. }
  7233. }
  7234. /**
  7235. *
  7236. *
  7237. * @see \Illuminate\Routing\Redirector
  7238. */
  7239. class Redirect {
  7240. /**
  7241. * Create a new redirect response to the "home" route.
  7242. *
  7243. * @param int $status
  7244. * @return \Illuminate\Http\RedirectResponse
  7245. * @static
  7246. */
  7247. public static function home($status = 302)
  7248. {
  7249. /** @var \Illuminate\Routing\Redirector $instance */
  7250. return $instance->home($status);
  7251. }
  7252. /**
  7253. * Create a new redirect response to the previous location.
  7254. *
  7255. * @param int $status
  7256. * @param array $headers
  7257. * @param mixed $fallback
  7258. * @return \Illuminate\Http\RedirectResponse
  7259. * @static
  7260. */
  7261. public static function back($status = 302, $headers = [], $fallback = false)
  7262. {
  7263. /** @var \Illuminate\Routing\Redirector $instance */
  7264. return $instance->back($status, $headers, $fallback);
  7265. }
  7266. /**
  7267. * Create a new redirect response to the current URI.
  7268. *
  7269. * @param int $status
  7270. * @param array $headers
  7271. * @return \Illuminate\Http\RedirectResponse
  7272. * @static
  7273. */
  7274. public static function refresh($status = 302, $headers = [])
  7275. {
  7276. /** @var \Illuminate\Routing\Redirector $instance */
  7277. return $instance->refresh($status, $headers);
  7278. }
  7279. /**
  7280. * Create a new redirect response, while putting the current URL in the session.
  7281. *
  7282. * @param string $path
  7283. * @param int $status
  7284. * @param array $headers
  7285. * @param bool|null $secure
  7286. * @return \Illuminate\Http\RedirectResponse
  7287. * @static
  7288. */
  7289. public static function guest($path, $status = 302, $headers = [], $secure = null)
  7290. {
  7291. /** @var \Illuminate\Routing\Redirector $instance */
  7292. return $instance->guest($path, $status, $headers, $secure);
  7293. }
  7294. /**
  7295. * Create a new redirect response to the previously intended location.
  7296. *
  7297. * @param string $default
  7298. * @param int $status
  7299. * @param array $headers
  7300. * @param bool|null $secure
  7301. * @return \Illuminate\Http\RedirectResponse
  7302. * @static
  7303. */
  7304. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  7305. {
  7306. /** @var \Illuminate\Routing\Redirector $instance */
  7307. return $instance->intended($default, $status, $headers, $secure);
  7308. }
  7309. /**
  7310. * Set the intended url.
  7311. *
  7312. * @param string $url
  7313. * @return void
  7314. * @static
  7315. */
  7316. public static function setIntendedUrl($url)
  7317. {
  7318. /** @var \Illuminate\Routing\Redirector $instance */
  7319. $instance->setIntendedUrl($url);
  7320. }
  7321. /**
  7322. * Create a new redirect response to the given path.
  7323. *
  7324. * @param string $path
  7325. * @param int $status
  7326. * @param array $headers
  7327. * @param bool|null $secure
  7328. * @return \Illuminate\Http\RedirectResponse
  7329. * @static
  7330. */
  7331. public static function to($path, $status = 302, $headers = [], $secure = null)
  7332. {
  7333. /** @var \Illuminate\Routing\Redirector $instance */
  7334. return $instance->to($path, $status, $headers, $secure);
  7335. }
  7336. /**
  7337. * Create a new redirect response to an external URL (no validation).
  7338. *
  7339. * @param string $path
  7340. * @param int $status
  7341. * @param array $headers
  7342. * @return \Illuminate\Http\RedirectResponse
  7343. * @static
  7344. */
  7345. public static function away($path, $status = 302, $headers = [])
  7346. {
  7347. /** @var \Illuminate\Routing\Redirector $instance */
  7348. return $instance->away($path, $status, $headers);
  7349. }
  7350. /**
  7351. * Create a new redirect response to the given HTTPS path.
  7352. *
  7353. * @param string $path
  7354. * @param int $status
  7355. * @param array $headers
  7356. * @return \Illuminate\Http\RedirectResponse
  7357. * @static
  7358. */
  7359. public static function secure($path, $status = 302, $headers = [])
  7360. {
  7361. /** @var \Illuminate\Routing\Redirector $instance */
  7362. return $instance->secure($path, $status, $headers);
  7363. }
  7364. /**
  7365. * Create a new redirect response to a named route.
  7366. *
  7367. * @param string $route
  7368. * @param mixed $parameters
  7369. * @param int $status
  7370. * @param array $headers
  7371. * @return \Illuminate\Http\RedirectResponse
  7372. * @static
  7373. */
  7374. public static function route($route, $parameters = [], $status = 302, $headers = [])
  7375. {
  7376. /** @var \Illuminate\Routing\Redirector $instance */
  7377. return $instance->route($route, $parameters, $status, $headers);
  7378. }
  7379. /**
  7380. * Create a new redirect response to a controller action.
  7381. *
  7382. * @param string|array $action
  7383. * @param mixed $parameters
  7384. * @param int $status
  7385. * @param array $headers
  7386. * @return \Illuminate\Http\RedirectResponse
  7387. * @static
  7388. */
  7389. public static function action($action, $parameters = [], $status = 302, $headers = [])
  7390. {
  7391. /** @var \Illuminate\Routing\Redirector $instance */
  7392. return $instance->action($action, $parameters, $status, $headers);
  7393. }
  7394. /**
  7395. * Get the URL generator instance.
  7396. *
  7397. * @return \Illuminate\Routing\UrlGenerator
  7398. * @static
  7399. */
  7400. public static function getUrlGenerator()
  7401. {
  7402. /** @var \Illuminate\Routing\Redirector $instance */
  7403. return $instance->getUrlGenerator();
  7404. }
  7405. /**
  7406. * Set the active session store.
  7407. *
  7408. * @param \Illuminate\Session\Store $session
  7409. * @return void
  7410. * @static
  7411. */
  7412. public static function setSession($session)
  7413. {
  7414. /** @var \Illuminate\Routing\Redirector $instance */
  7415. $instance->setSession($session);
  7416. }
  7417. /**
  7418. * Register a custom macro.
  7419. *
  7420. * @param string $name
  7421. * @param object|callable $macro
  7422. * @return void
  7423. * @static
  7424. */
  7425. public static function macro($name, $macro)
  7426. {
  7427. \Illuminate\Routing\Redirector::macro($name, $macro);
  7428. }
  7429. /**
  7430. * Mix another object into the class.
  7431. *
  7432. * @param object $mixin
  7433. * @param bool $replace
  7434. * @return void
  7435. * @throws \ReflectionException
  7436. * @static
  7437. */
  7438. public static function mixin($mixin, $replace = true)
  7439. {
  7440. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  7441. }
  7442. /**
  7443. * Checks if macro is registered.
  7444. *
  7445. * @param string $name
  7446. * @return bool
  7447. * @static
  7448. */
  7449. public static function hasMacro($name)
  7450. {
  7451. return \Illuminate\Routing\Redirector::hasMacro($name);
  7452. }
  7453. }
  7454. /**
  7455. *
  7456. *
  7457. * @see \Illuminate\Redis\RedisManager
  7458. * @see \Illuminate\Contracts\Redis\Factory
  7459. */
  7460. class Redis {
  7461. /**
  7462. * Get a Redis connection by name.
  7463. *
  7464. * @param string|null $name
  7465. * @return \Illuminate\Redis\Connections\Connection
  7466. * @static
  7467. */
  7468. public static function connection($name = null)
  7469. {
  7470. /** @var \Illuminate\Redis\RedisManager $instance */
  7471. return $instance->connection($name);
  7472. }
  7473. /**
  7474. * Resolve the given connection by name.
  7475. *
  7476. * @param string|null $name
  7477. * @return \Illuminate\Redis\Connections\Connection
  7478. * @throws \InvalidArgumentException
  7479. * @static
  7480. */
  7481. public static function resolve($name = null)
  7482. {
  7483. /** @var \Illuminate\Redis\RedisManager $instance */
  7484. return $instance->resolve($name);
  7485. }
  7486. /**
  7487. * Return all of the created connections.
  7488. *
  7489. * @return array
  7490. * @static
  7491. */
  7492. public static function connections()
  7493. {
  7494. /** @var \Illuminate\Redis\RedisManager $instance */
  7495. return $instance->connections();
  7496. }
  7497. /**
  7498. * Enable the firing of Redis command events.
  7499. *
  7500. * @return void
  7501. * @static
  7502. */
  7503. public static function enableEvents()
  7504. {
  7505. /** @var \Illuminate\Redis\RedisManager $instance */
  7506. $instance->enableEvents();
  7507. }
  7508. /**
  7509. * Disable the firing of Redis command events.
  7510. *
  7511. * @return void
  7512. * @static
  7513. */
  7514. public static function disableEvents()
  7515. {
  7516. /** @var \Illuminate\Redis\RedisManager $instance */
  7517. $instance->disableEvents();
  7518. }
  7519. /**
  7520. * Set the default driver.
  7521. *
  7522. * @param string $driver
  7523. * @return void
  7524. * @static
  7525. */
  7526. public static function setDriver($driver)
  7527. {
  7528. /** @var \Illuminate\Redis\RedisManager $instance */
  7529. $instance->setDriver($driver);
  7530. }
  7531. /**
  7532. * Register a custom driver creator Closure.
  7533. *
  7534. * @param string $driver
  7535. * @param \Closure $callback
  7536. * @return \Illuminate\Redis\RedisManager
  7537. * @static
  7538. */
  7539. public static function extend($driver, $callback)
  7540. {
  7541. /** @var \Illuminate\Redis\RedisManager $instance */
  7542. return $instance->extend($driver, $callback);
  7543. }
  7544. }
  7545. /**
  7546. *
  7547. *
  7548. * @see \Illuminate\Http\Request
  7549. */
  7550. class Request {
  7551. /**
  7552. * Create a new Illuminate HTTP request from server variables.
  7553. *
  7554. * @return static
  7555. * @static
  7556. */
  7557. public static function capture()
  7558. {
  7559. return \Illuminate\Http\Request::capture();
  7560. }
  7561. /**
  7562. * Return the Request instance.
  7563. *
  7564. * @return \Illuminate\Http\Request
  7565. * @static
  7566. */
  7567. public static function instance()
  7568. {
  7569. /** @var \Illuminate\Http\Request $instance */
  7570. return $instance->instance();
  7571. }
  7572. /**
  7573. * Get the request method.
  7574. *
  7575. * @return string
  7576. * @static
  7577. */
  7578. public static function method()
  7579. {
  7580. /** @var \Illuminate\Http\Request $instance */
  7581. return $instance->method();
  7582. }
  7583. /**
  7584. * Get the root URL for the application.
  7585. *
  7586. * @return string
  7587. * @static
  7588. */
  7589. public static function root()
  7590. {
  7591. /** @var \Illuminate\Http\Request $instance */
  7592. return $instance->root();
  7593. }
  7594. /**
  7595. * Get the URL (no query string) for the request.
  7596. *
  7597. * @return string
  7598. * @static
  7599. */
  7600. public static function url()
  7601. {
  7602. /** @var \Illuminate\Http\Request $instance */
  7603. return $instance->url();
  7604. }
  7605. /**
  7606. * Get the full URL for the request.
  7607. *
  7608. * @return string
  7609. * @static
  7610. */
  7611. public static function fullUrl()
  7612. {
  7613. /** @var \Illuminate\Http\Request $instance */
  7614. return $instance->fullUrl();
  7615. }
  7616. /**
  7617. * Get the full URL for the request with the added query string parameters.
  7618. *
  7619. * @param array $query
  7620. * @return string
  7621. * @static
  7622. */
  7623. public static function fullUrlWithQuery($query)
  7624. {
  7625. /** @var \Illuminate\Http\Request $instance */
  7626. return $instance->fullUrlWithQuery($query);
  7627. }
  7628. /**
  7629. * Get the current path info for the request.
  7630. *
  7631. * @return string
  7632. * @static
  7633. */
  7634. public static function path()
  7635. {
  7636. /** @var \Illuminate\Http\Request $instance */
  7637. return $instance->path();
  7638. }
  7639. /**
  7640. * Get the current decoded path info for the request.
  7641. *
  7642. * @return string
  7643. * @static
  7644. */
  7645. public static function decodedPath()
  7646. {
  7647. /** @var \Illuminate\Http\Request $instance */
  7648. return $instance->decodedPath();
  7649. }
  7650. /**
  7651. * Get a segment from the URI (1 based index).
  7652. *
  7653. * @param int $index
  7654. * @param string|null $default
  7655. * @return string|null
  7656. * @static
  7657. */
  7658. public static function segment($index, $default = null)
  7659. {
  7660. /** @var \Illuminate\Http\Request $instance */
  7661. return $instance->segment($index, $default);
  7662. }
  7663. /**
  7664. * Get all of the segments for the request path.
  7665. *
  7666. * @return array
  7667. * @static
  7668. */
  7669. public static function segments()
  7670. {
  7671. /** @var \Illuminate\Http\Request $instance */
  7672. return $instance->segments();
  7673. }
  7674. /**
  7675. * Determine if the current request URI matches a pattern.
  7676. *
  7677. * @param mixed $patterns
  7678. * @return bool
  7679. * @static
  7680. */
  7681. public static function is(...$patterns)
  7682. {
  7683. /** @var \Illuminate\Http\Request $instance */
  7684. return $instance->is(...$patterns);
  7685. }
  7686. /**
  7687. * Determine if the route name matches a given pattern.
  7688. *
  7689. * @param mixed $patterns
  7690. * @return bool
  7691. * @static
  7692. */
  7693. public static function routeIs(...$patterns)
  7694. {
  7695. /** @var \Illuminate\Http\Request $instance */
  7696. return $instance->routeIs(...$patterns);
  7697. }
  7698. /**
  7699. * Determine if the current request URL and query string matches a pattern.
  7700. *
  7701. * @param mixed $patterns
  7702. * @return bool
  7703. * @static
  7704. */
  7705. public static function fullUrlIs(...$patterns)
  7706. {
  7707. /** @var \Illuminate\Http\Request $instance */
  7708. return $instance->fullUrlIs(...$patterns);
  7709. }
  7710. /**
  7711. * Determine if the request is the result of an AJAX call.
  7712. *
  7713. * @return bool
  7714. * @static
  7715. */
  7716. public static function ajax()
  7717. {
  7718. /** @var \Illuminate\Http\Request $instance */
  7719. return $instance->ajax();
  7720. }
  7721. /**
  7722. * Determine if the request is the result of an PJAX call.
  7723. *
  7724. * @return bool
  7725. * @static
  7726. */
  7727. public static function pjax()
  7728. {
  7729. /** @var \Illuminate\Http\Request $instance */
  7730. return $instance->pjax();
  7731. }
  7732. /**
  7733. * Determine if the request is the result of an prefetch call.
  7734. *
  7735. * @return bool
  7736. * @static
  7737. */
  7738. public static function prefetch()
  7739. {
  7740. /** @var \Illuminate\Http\Request $instance */
  7741. return $instance->prefetch();
  7742. }
  7743. /**
  7744. * Determine if the request is over HTTPS.
  7745. *
  7746. * @return bool
  7747. * @static
  7748. */
  7749. public static function secure()
  7750. {
  7751. /** @var \Illuminate\Http\Request $instance */
  7752. return $instance->secure();
  7753. }
  7754. /**
  7755. * Get the client IP address.
  7756. *
  7757. * @return string|null
  7758. * @static
  7759. */
  7760. public static function ip()
  7761. {
  7762. /** @var \Illuminate\Http\Request $instance */
  7763. return $instance->ip();
  7764. }
  7765. /**
  7766. * Get the client IP addresses.
  7767. *
  7768. * @return array
  7769. * @static
  7770. */
  7771. public static function ips()
  7772. {
  7773. /** @var \Illuminate\Http\Request $instance */
  7774. return $instance->ips();
  7775. }
  7776. /**
  7777. * Get the client user agent.
  7778. *
  7779. * @return string
  7780. * @static
  7781. */
  7782. public static function userAgent()
  7783. {
  7784. /** @var \Illuminate\Http\Request $instance */
  7785. return $instance->userAgent();
  7786. }
  7787. /**
  7788. * Merge new input into the current request's input array.
  7789. *
  7790. * @param array $input
  7791. * @return \Illuminate\Http\Request
  7792. * @static
  7793. */
  7794. public static function merge($input)
  7795. {
  7796. /** @var \Illuminate\Http\Request $instance */
  7797. return $instance->merge($input);
  7798. }
  7799. /**
  7800. * Replace the input for the current request.
  7801. *
  7802. * @param array $input
  7803. * @return \Illuminate\Http\Request
  7804. * @static
  7805. */
  7806. public static function replace($input)
  7807. {
  7808. /** @var \Illuminate\Http\Request $instance */
  7809. return $instance->replace($input);
  7810. }
  7811. /**
  7812. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  7813. *
  7814. * Instead, you may use the "input" method.
  7815. *
  7816. * @param string $key
  7817. * @param mixed $default
  7818. * @return mixed
  7819. * @static
  7820. */
  7821. public static function get($key, $default = null)
  7822. {
  7823. /** @var \Illuminate\Http\Request $instance */
  7824. return $instance->get($key, $default);
  7825. }
  7826. /**
  7827. * Get the JSON payload for the request.
  7828. *
  7829. * @param string|null $key
  7830. * @param mixed $default
  7831. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7832. * @static
  7833. */
  7834. public static function json($key = null, $default = null)
  7835. {
  7836. /** @var \Illuminate\Http\Request $instance */
  7837. return $instance->json($key, $default);
  7838. }
  7839. /**
  7840. * Create a new request instance from the given Laravel request.
  7841. *
  7842. * @param \Illuminate\Http\Request $from
  7843. * @param \Illuminate\Http\Request|null $to
  7844. * @return static
  7845. * @static
  7846. */
  7847. public static function createFrom($from, $to = null)
  7848. {
  7849. return \Illuminate\Http\Request::createFrom($from, $to);
  7850. }
  7851. /**
  7852. * Create an Illuminate request from a Symfony instance.
  7853. *
  7854. * @param \Symfony\Component\HttpFoundation\Request $request
  7855. * @return static
  7856. * @static
  7857. */
  7858. public static function createFromBase($request)
  7859. {
  7860. return \Illuminate\Http\Request::createFromBase($request);
  7861. }
  7862. /**
  7863. * Clones a request and overrides some of its parameters.
  7864. *
  7865. * @param array $query The GET parameters
  7866. * @param array $request The POST parameters
  7867. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7868. * @param array $cookies The COOKIE parameters
  7869. * @param array $files The FILES parameters
  7870. * @param array $server The SERVER parameters
  7871. * @return static
  7872. * @static
  7873. */
  7874. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7875. {
  7876. /** @var \Illuminate\Http\Request $instance */
  7877. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7878. }
  7879. /**
  7880. * Get the session associated with the request.
  7881. *
  7882. * @return \Illuminate\Session\Store
  7883. * @throws \RuntimeException
  7884. * @static
  7885. */
  7886. public static function session()
  7887. {
  7888. /** @var \Illuminate\Http\Request $instance */
  7889. return $instance->session();
  7890. }
  7891. /**
  7892. * Get the session associated with the request.
  7893. *
  7894. * @return \Illuminate\Session\Store|null
  7895. * @static
  7896. */
  7897. public static function getSession()
  7898. {
  7899. /** @var \Illuminate\Http\Request $instance */
  7900. return $instance->getSession();
  7901. }
  7902. /**
  7903. * Set the session instance on the request.
  7904. *
  7905. * @param \Illuminate\Contracts\Session\Session $session
  7906. * @return void
  7907. * @static
  7908. */
  7909. public static function setLaravelSession($session)
  7910. {
  7911. /** @var \Illuminate\Http\Request $instance */
  7912. $instance->setLaravelSession($session);
  7913. }
  7914. /**
  7915. * Get the user making the request.
  7916. *
  7917. * @param string|null $guard
  7918. * @return mixed
  7919. * @static
  7920. */
  7921. public static function user($guard = null)
  7922. {
  7923. /** @var \Illuminate\Http\Request $instance */
  7924. return $instance->user($guard);
  7925. }
  7926. /**
  7927. * Get the route handling the request.
  7928. *
  7929. * @param string|null $param
  7930. * @param mixed $default
  7931. * @return \Illuminate\Routing\Route|object|string
  7932. * @static
  7933. */
  7934. public static function route($param = null, $default = null)
  7935. {
  7936. /** @var \Illuminate\Http\Request $instance */
  7937. return $instance->route($param, $default);
  7938. }
  7939. /**
  7940. * Get a unique fingerprint for the request / route / IP address.
  7941. *
  7942. * @return string
  7943. * @throws \RuntimeException
  7944. * @static
  7945. */
  7946. public static function fingerprint()
  7947. {
  7948. /** @var \Illuminate\Http\Request $instance */
  7949. return $instance->fingerprint();
  7950. }
  7951. /**
  7952. * Set the JSON payload for the request.
  7953. *
  7954. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7955. * @return \Illuminate\Http\Request
  7956. * @static
  7957. */
  7958. public static function setJson($json)
  7959. {
  7960. /** @var \Illuminate\Http\Request $instance */
  7961. return $instance->setJson($json);
  7962. }
  7963. /**
  7964. * Get the user resolver callback.
  7965. *
  7966. * @return \Closure
  7967. * @static
  7968. */
  7969. public static function getUserResolver()
  7970. {
  7971. /** @var \Illuminate\Http\Request $instance */
  7972. return $instance->getUserResolver();
  7973. }
  7974. /**
  7975. * Set the user resolver callback.
  7976. *
  7977. * @param \Closure $callback
  7978. * @return \Illuminate\Http\Request
  7979. * @static
  7980. */
  7981. public static function setUserResolver($callback)
  7982. {
  7983. /** @var \Illuminate\Http\Request $instance */
  7984. return $instance->setUserResolver($callback);
  7985. }
  7986. /**
  7987. * Get the route resolver callback.
  7988. *
  7989. * @return \Closure
  7990. * @static
  7991. */
  7992. public static function getRouteResolver()
  7993. {
  7994. /** @var \Illuminate\Http\Request $instance */
  7995. return $instance->getRouteResolver();
  7996. }
  7997. /**
  7998. * Set the route resolver callback.
  7999. *
  8000. * @param \Closure $callback
  8001. * @return \Illuminate\Http\Request
  8002. * @static
  8003. */
  8004. public static function setRouteResolver($callback)
  8005. {
  8006. /** @var \Illuminate\Http\Request $instance */
  8007. return $instance->setRouteResolver($callback);
  8008. }
  8009. /**
  8010. * Get all of the input and files for the request.
  8011. *
  8012. * @return array
  8013. * @static
  8014. */
  8015. public static function toArray()
  8016. {
  8017. /** @var \Illuminate\Http\Request $instance */
  8018. return $instance->toArray();
  8019. }
  8020. /**
  8021. * Determine if the given offset exists.
  8022. *
  8023. * @param string $offset
  8024. * @return bool
  8025. * @static
  8026. */
  8027. public static function offsetExists($offset)
  8028. {
  8029. /** @var \Illuminate\Http\Request $instance */
  8030. return $instance->offsetExists($offset);
  8031. }
  8032. /**
  8033. * Get the value at the given offset.
  8034. *
  8035. * @param string $offset
  8036. * @return mixed
  8037. * @static
  8038. */
  8039. public static function offsetGet($offset)
  8040. {
  8041. /** @var \Illuminate\Http\Request $instance */
  8042. return $instance->offsetGet($offset);
  8043. }
  8044. /**
  8045. * Set the value at the given offset.
  8046. *
  8047. * @param string $offset
  8048. * @param mixed $value
  8049. * @return void
  8050. * @static
  8051. */
  8052. public static function offsetSet($offset, $value)
  8053. {
  8054. /** @var \Illuminate\Http\Request $instance */
  8055. $instance->offsetSet($offset, $value);
  8056. }
  8057. /**
  8058. * Remove the value at the given offset.
  8059. *
  8060. * @param string $offset
  8061. * @return void
  8062. * @static
  8063. */
  8064. public static function offsetUnset($offset)
  8065. {
  8066. /** @var \Illuminate\Http\Request $instance */
  8067. $instance->offsetUnset($offset);
  8068. }
  8069. /**
  8070. * Sets the parameters for this request.
  8071. *
  8072. * This method also re-initializes all properties.
  8073. *
  8074. * @param array $query The GET parameters
  8075. * @param array $request The POST parameters
  8076. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8077. * @param array $cookies The COOKIE parameters
  8078. * @param array $files The FILES parameters
  8079. * @param array $server The SERVER parameters
  8080. * @param string|resource|null $content The raw body data
  8081. * @static
  8082. */
  8083. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  8084. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8085. /** @var \Illuminate\Http\Request $instance */
  8086. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  8087. }
  8088. /**
  8089. * Creates a new request with values from PHP's super globals.
  8090. *
  8091. * @return static
  8092. * @static
  8093. */
  8094. public static function createFromGlobals()
  8095. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8096. return \Illuminate\Http\Request::createFromGlobals();
  8097. }
  8098. /**
  8099. * Creates a Request based on a given URI and configuration.
  8100. *
  8101. * The information contained in the URI always take precedence
  8102. * over the other information (server and parameters).
  8103. *
  8104. * @param string $uri The URI
  8105. * @param string $method The HTTP method
  8106. * @param array $parameters The query (GET) or request (POST) parameters
  8107. * @param array $cookies The request cookies ($_COOKIE)
  8108. * @param array $files The request files ($_FILES)
  8109. * @param array $server The server parameters ($_SERVER)
  8110. * @param string|resource|null $content The raw body data
  8111. * @return static
  8112. * @static
  8113. */
  8114. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  8115. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8116. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  8117. }
  8118. /**
  8119. * Sets a callable able to create a Request instance.
  8120. *
  8121. * This is mainly useful when you need to override the Request class
  8122. * to keep BC with an existing system. It should not be used for any
  8123. * other purpose.
  8124. *
  8125. * @param callable|null $callable A PHP callable
  8126. * @static
  8127. */
  8128. public static function setFactory($callable)
  8129. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8130. return \Illuminate\Http\Request::setFactory($callable);
  8131. }
  8132. /**
  8133. * Overrides the PHP global variables according to this request instance.
  8134. *
  8135. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  8136. * $_FILES is never overridden, see rfc1867
  8137. *
  8138. * @static
  8139. */
  8140. public static function overrideGlobals()
  8141. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8142. /** @var \Illuminate\Http\Request $instance */
  8143. return $instance->overrideGlobals();
  8144. }
  8145. /**
  8146. * Sets a list of trusted proxies.
  8147. *
  8148. * You should only list the reverse proxies that you manage directly.
  8149. *
  8150. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  8151. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  8152. * @static
  8153. */
  8154. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8155. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8156. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8157. }
  8158. /**
  8159. * Gets the list of trusted proxies.
  8160. *
  8161. * @return array An array of trusted proxies
  8162. * @static
  8163. */
  8164. public static function getTrustedProxies()
  8165. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8166. return \Illuminate\Http\Request::getTrustedProxies();
  8167. }
  8168. /**
  8169. * Gets the set of trusted headers from trusted proxies.
  8170. *
  8171. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8172. * @static
  8173. */
  8174. public static function getTrustedHeaderSet()
  8175. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8176. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8177. }
  8178. /**
  8179. * Sets a list of trusted host patterns.
  8180. *
  8181. * You should only list the hosts you manage using regexs.
  8182. *
  8183. * @param array $hostPatterns A list of trusted host patterns
  8184. * @static
  8185. */
  8186. public static function setTrustedHosts($hostPatterns)
  8187. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8188. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8189. }
  8190. /**
  8191. * Gets the list of trusted host patterns.
  8192. *
  8193. * @return array An array of trusted host patterns
  8194. * @static
  8195. */
  8196. public static function getTrustedHosts()
  8197. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8198. return \Illuminate\Http\Request::getTrustedHosts();
  8199. }
  8200. /**
  8201. * Normalizes a query string.
  8202. *
  8203. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8204. * have consistent escaping and unneeded delimiters are removed.
  8205. *
  8206. * @param string $qs Query string
  8207. * @return string A normalized query string for the Request
  8208. * @static
  8209. */
  8210. public static function normalizeQueryString($qs)
  8211. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8212. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8213. }
  8214. /**
  8215. * Enables support for the _method request parameter to determine the intended HTTP method.
  8216. *
  8217. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8218. * Check that you are using CSRF tokens when required.
  8219. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8220. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8221. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8222. *
  8223. * The HTTP method can only be overridden when the real HTTP method is POST.
  8224. *
  8225. * @static
  8226. */
  8227. public static function enableHttpMethodParameterOverride()
  8228. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8229. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8230. }
  8231. /**
  8232. * Checks whether support for the _method request parameter is enabled.
  8233. *
  8234. * @return bool True when the _method request parameter is enabled, false otherwise
  8235. * @static
  8236. */
  8237. public static function getHttpMethodParameterOverride()
  8238. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8239. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8240. }
  8241. /**
  8242. * Whether the request contains a Session which was started in one of the
  8243. * previous requests.
  8244. *
  8245. * @return bool
  8246. * @static
  8247. */
  8248. public static function hasPreviousSession()
  8249. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8250. /** @var \Illuminate\Http\Request $instance */
  8251. return $instance->hasPreviousSession();
  8252. }
  8253. /**
  8254. * Whether the request contains a Session object.
  8255. *
  8256. * This method does not give any information about the state of the session object,
  8257. * like whether the session is started or not. It is just a way to check if this Request
  8258. * is associated with a Session instance.
  8259. *
  8260. * @return bool true when the Request contains a Session object, false otherwise
  8261. * @static
  8262. */
  8263. public static function hasSession()
  8264. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8265. /** @var \Illuminate\Http\Request $instance */
  8266. return $instance->hasSession();
  8267. }
  8268. /**
  8269. *
  8270. *
  8271. * @static
  8272. */
  8273. public static function setSession($session)
  8274. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8275. /** @var \Illuminate\Http\Request $instance */
  8276. return $instance->setSession($session);
  8277. }
  8278. /**
  8279. *
  8280. *
  8281. * @internal
  8282. * @static
  8283. */
  8284. public static function setSessionFactory($factory)
  8285. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8286. /** @var \Illuminate\Http\Request $instance */
  8287. return $instance->setSessionFactory($factory);
  8288. }
  8289. /**
  8290. * Returns the client IP addresses.
  8291. *
  8292. * In the returned array the most trusted IP address is first, and the
  8293. * least trusted one last. The "real" client IP address is the last one,
  8294. * but this is also the least trusted one. Trusted proxies are stripped.
  8295. *
  8296. * Use this method carefully; you should use getClientIp() instead.
  8297. *
  8298. * @return array The client IP addresses
  8299. * @see getClientIp()
  8300. * @static
  8301. */
  8302. public static function getClientIps()
  8303. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8304. /** @var \Illuminate\Http\Request $instance */
  8305. return $instance->getClientIps();
  8306. }
  8307. /**
  8308. * Returns the client IP address.
  8309. *
  8310. * This method can read the client IP address from the "X-Forwarded-For" header
  8311. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8312. * header value is a comma+space separated list of IP addresses, the left-most
  8313. * being the original client, and each successive proxy that passed the request
  8314. * adding the IP address where it received the request from.
  8315. *
  8316. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  8317. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  8318. * argument of the Request::setTrustedProxies() method instead.
  8319. *
  8320. * @return string|null The client IP address
  8321. * @see getClientIps()
  8322. * @see https://wikipedia.org/wiki/X-Forwarded-For
  8323. * @static
  8324. */
  8325. public static function getClientIp()
  8326. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8327. /** @var \Illuminate\Http\Request $instance */
  8328. return $instance->getClientIp();
  8329. }
  8330. /**
  8331. * Returns current script name.
  8332. *
  8333. * @return string
  8334. * @static
  8335. */
  8336. public static function getScriptName()
  8337. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8338. /** @var \Illuminate\Http\Request $instance */
  8339. return $instance->getScriptName();
  8340. }
  8341. /**
  8342. * Returns the path being requested relative to the executed script.
  8343. *
  8344. * The path info always starts with a /.
  8345. *
  8346. * Suppose this request is instantiated from /mysite on localhost:
  8347. *
  8348. * * http://localhost/mysite returns an empty string
  8349. * * http://localhost/mysite/about returns '/about'
  8350. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8351. * * http://localhost/mysite/about?var=1 returns '/about'
  8352. *
  8353. * @return string The raw path (i.e. not urldecoded)
  8354. * @static
  8355. */
  8356. public static function getPathInfo()
  8357. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8358. /** @var \Illuminate\Http\Request $instance */
  8359. return $instance->getPathInfo();
  8360. }
  8361. /**
  8362. * Returns the root path from which this request is executed.
  8363. *
  8364. * Suppose that an index.php file instantiates this request object:
  8365. *
  8366. * * http://localhost/index.php returns an empty string
  8367. * * http://localhost/index.php/page returns an empty string
  8368. * * http://localhost/web/index.php returns '/web'
  8369. * * http://localhost/we%20b/index.php returns '/we%20b'
  8370. *
  8371. * @return string The raw path (i.e. not urldecoded)
  8372. * @static
  8373. */
  8374. public static function getBasePath()
  8375. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8376. /** @var \Illuminate\Http\Request $instance */
  8377. return $instance->getBasePath();
  8378. }
  8379. /**
  8380. * Returns the root URL from which this request is executed.
  8381. *
  8382. * The base URL never ends with a /.
  8383. *
  8384. * This is similar to getBasePath(), except that it also includes the
  8385. * script filename (e.g. index.php) if one exists.
  8386. *
  8387. * @return string The raw URL (i.e. not urldecoded)
  8388. * @static
  8389. */
  8390. public static function getBaseUrl()
  8391. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8392. /** @var \Illuminate\Http\Request $instance */
  8393. return $instance->getBaseUrl();
  8394. }
  8395. /**
  8396. * Gets the request's scheme.
  8397. *
  8398. * @return string
  8399. * @static
  8400. */
  8401. public static function getScheme()
  8402. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8403. /** @var \Illuminate\Http\Request $instance */
  8404. return $instance->getScheme();
  8405. }
  8406. /**
  8407. * Returns the port on which the request is made.
  8408. *
  8409. * This method can read the client port from the "X-Forwarded-Port" header
  8410. * when trusted proxies were set via "setTrustedProxies()".
  8411. *
  8412. * The "X-Forwarded-Port" header must contain the client port.
  8413. *
  8414. * @return int|string can be a string if fetched from the server bag
  8415. * @static
  8416. */
  8417. public static function getPort()
  8418. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8419. /** @var \Illuminate\Http\Request $instance */
  8420. return $instance->getPort();
  8421. }
  8422. /**
  8423. * Returns the user.
  8424. *
  8425. * @return string|null
  8426. * @static
  8427. */
  8428. public static function getUser()
  8429. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8430. /** @var \Illuminate\Http\Request $instance */
  8431. return $instance->getUser();
  8432. }
  8433. /**
  8434. * Returns the password.
  8435. *
  8436. * @return string|null
  8437. * @static
  8438. */
  8439. public static function getPassword()
  8440. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8441. /** @var \Illuminate\Http\Request $instance */
  8442. return $instance->getPassword();
  8443. }
  8444. /**
  8445. * Gets the user info.
  8446. *
  8447. * @return string|null A user name if any and, optionally, scheme-specific information about how to gain authorization to access the server
  8448. * @static
  8449. */
  8450. public static function getUserInfo()
  8451. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8452. /** @var \Illuminate\Http\Request $instance */
  8453. return $instance->getUserInfo();
  8454. }
  8455. /**
  8456. * Returns the HTTP host being requested.
  8457. *
  8458. * The port name will be appended to the host if it's non-standard.
  8459. *
  8460. * @return string
  8461. * @static
  8462. */
  8463. public static function getHttpHost()
  8464. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8465. /** @var \Illuminate\Http\Request $instance */
  8466. return $instance->getHttpHost();
  8467. }
  8468. /**
  8469. * Returns the requested URI (path and query string).
  8470. *
  8471. * @return string The raw URI (i.e. not URI decoded)
  8472. * @static
  8473. */
  8474. public static function getRequestUri()
  8475. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8476. /** @var \Illuminate\Http\Request $instance */
  8477. return $instance->getRequestUri();
  8478. }
  8479. /**
  8480. * Gets the scheme and HTTP host.
  8481. *
  8482. * If the URL was called with basic authentication, the user
  8483. * and the password are not added to the generated string.
  8484. *
  8485. * @return string The scheme and HTTP host
  8486. * @static
  8487. */
  8488. public static function getSchemeAndHttpHost()
  8489. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8490. /** @var \Illuminate\Http\Request $instance */
  8491. return $instance->getSchemeAndHttpHost();
  8492. }
  8493. /**
  8494. * Generates a normalized URI (URL) for the Request.
  8495. *
  8496. * @return string A normalized URI (URL) for the Request
  8497. * @see getQueryString()
  8498. * @static
  8499. */
  8500. public static function getUri()
  8501. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8502. /** @var \Illuminate\Http\Request $instance */
  8503. return $instance->getUri();
  8504. }
  8505. /**
  8506. * Generates a normalized URI for the given path.
  8507. *
  8508. * @param string $path A path to use instead of the current one
  8509. * @return string The normalized URI for the path
  8510. * @static
  8511. */
  8512. public static function getUriForPath($path)
  8513. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8514. /** @var \Illuminate\Http\Request $instance */
  8515. return $instance->getUriForPath($path);
  8516. }
  8517. /**
  8518. * Returns the path as relative reference from the current Request path.
  8519. *
  8520. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8521. * Both paths must be absolute and not contain relative parts.
  8522. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8523. * Furthermore, they can be used to reduce the link size in documents.
  8524. *
  8525. * Example target paths, given a base path of "/a/b/c/d":
  8526. * - "/a/b/c/d" -> ""
  8527. * - "/a/b/c/" -> "./"
  8528. * - "/a/b/" -> "../"
  8529. * - "/a/b/c/other" -> "other"
  8530. * - "/a/x/y" -> "../../x/y"
  8531. *
  8532. * @param string $path The target path
  8533. * @return string The relative target path
  8534. * @static
  8535. */
  8536. public static function getRelativeUriForPath($path)
  8537. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8538. /** @var \Illuminate\Http\Request $instance */
  8539. return $instance->getRelativeUriForPath($path);
  8540. }
  8541. /**
  8542. * Generates the normalized query string for the Request.
  8543. *
  8544. * It builds a normalized query string, where keys/value pairs are alphabetized
  8545. * and have consistent escaping.
  8546. *
  8547. * @return string|null A normalized query string for the Request
  8548. * @static
  8549. */
  8550. public static function getQueryString()
  8551. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8552. /** @var \Illuminate\Http\Request $instance */
  8553. return $instance->getQueryString();
  8554. }
  8555. /**
  8556. * Checks whether the request is secure or not.
  8557. *
  8558. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8559. * when trusted proxies were set via "setTrustedProxies()".
  8560. *
  8561. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8562. *
  8563. * @return bool
  8564. * @static
  8565. */
  8566. public static function isSecure()
  8567. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8568. /** @var \Illuminate\Http\Request $instance */
  8569. return $instance->isSecure();
  8570. }
  8571. /**
  8572. * Returns the host name.
  8573. *
  8574. * This method can read the client host name from the "X-Forwarded-Host" header
  8575. * when trusted proxies were set via "setTrustedProxies()".
  8576. *
  8577. * The "X-Forwarded-Host" header must contain the client host name.
  8578. *
  8579. * @return string
  8580. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8581. * @static
  8582. */
  8583. public static function getHost()
  8584. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8585. /** @var \Illuminate\Http\Request $instance */
  8586. return $instance->getHost();
  8587. }
  8588. /**
  8589. * Sets the request method.
  8590. *
  8591. * @param string $method
  8592. * @static
  8593. */
  8594. public static function setMethod($method)
  8595. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8596. /** @var \Illuminate\Http\Request $instance */
  8597. return $instance->setMethod($method);
  8598. }
  8599. /**
  8600. * Gets the request "intended" method.
  8601. *
  8602. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8603. * then it is used to determine the "real" intended HTTP method.
  8604. *
  8605. * The _method request parameter can also be used to determine the HTTP method,
  8606. * but only if enableHttpMethodParameterOverride() has been called.
  8607. *
  8608. * The method is always an uppercased string.
  8609. *
  8610. * @return string The request method
  8611. * @see getRealMethod()
  8612. * @static
  8613. */
  8614. public static function getMethod()
  8615. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8616. /** @var \Illuminate\Http\Request $instance */
  8617. return $instance->getMethod();
  8618. }
  8619. /**
  8620. * Gets the "real" request method.
  8621. *
  8622. * @return string The request method
  8623. * @see getMethod()
  8624. * @static
  8625. */
  8626. public static function getRealMethod()
  8627. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8628. /** @var \Illuminate\Http\Request $instance */
  8629. return $instance->getRealMethod();
  8630. }
  8631. /**
  8632. * Gets the mime type associated with the format.
  8633. *
  8634. * @param string $format The format
  8635. * @return string|null The associated mime type (null if not found)
  8636. * @static
  8637. */
  8638. public static function getMimeType($format)
  8639. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8640. /** @var \Illuminate\Http\Request $instance */
  8641. return $instance->getMimeType($format);
  8642. }
  8643. /**
  8644. * Gets the mime types associated with the format.
  8645. *
  8646. * @param string $format The format
  8647. * @return array The associated mime types
  8648. * @static
  8649. */
  8650. public static function getMimeTypes($format)
  8651. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8652. return \Illuminate\Http\Request::getMimeTypes($format);
  8653. }
  8654. /**
  8655. * Gets the format associated with the mime type.
  8656. *
  8657. * @param string $mimeType The associated mime type
  8658. * @return string|null The format (null if not found)
  8659. * @static
  8660. */
  8661. public static function getFormat($mimeType)
  8662. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8663. /** @var \Illuminate\Http\Request $instance */
  8664. return $instance->getFormat($mimeType);
  8665. }
  8666. /**
  8667. * Associates a format with mime types.
  8668. *
  8669. * @param string $format The format
  8670. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8671. * @static
  8672. */
  8673. public static function setFormat($format, $mimeTypes)
  8674. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8675. /** @var \Illuminate\Http\Request $instance */
  8676. return $instance->setFormat($format, $mimeTypes);
  8677. }
  8678. /**
  8679. * Gets the request format.
  8680. *
  8681. * Here is the process to determine the format:
  8682. *
  8683. * * format defined by the user (with setRequestFormat())
  8684. * * _format request attribute
  8685. * * $default
  8686. *
  8687. * @see getPreferredFormat
  8688. * @param string|null $default The default format
  8689. * @return string|null The request format
  8690. * @static
  8691. */
  8692. public static function getRequestFormat($default = 'html')
  8693. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8694. /** @var \Illuminate\Http\Request $instance */
  8695. return $instance->getRequestFormat($default);
  8696. }
  8697. /**
  8698. * Sets the request format.
  8699. *
  8700. * @param string $format The request format
  8701. * @static
  8702. */
  8703. public static function setRequestFormat($format)
  8704. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8705. /** @var \Illuminate\Http\Request $instance */
  8706. return $instance->setRequestFormat($format);
  8707. }
  8708. /**
  8709. * Gets the format associated with the request.
  8710. *
  8711. * @return string|null The format (null if no content type is present)
  8712. * @static
  8713. */
  8714. public static function getContentType()
  8715. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8716. /** @var \Illuminate\Http\Request $instance */
  8717. return $instance->getContentType();
  8718. }
  8719. /**
  8720. * Sets the default locale.
  8721. *
  8722. * @param string $locale
  8723. * @static
  8724. */
  8725. public static function setDefaultLocale($locale)
  8726. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8727. /** @var \Illuminate\Http\Request $instance */
  8728. return $instance->setDefaultLocale($locale);
  8729. }
  8730. /**
  8731. * Get the default locale.
  8732. *
  8733. * @return string
  8734. * @static
  8735. */
  8736. public static function getDefaultLocale()
  8737. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8738. /** @var \Illuminate\Http\Request $instance */
  8739. return $instance->getDefaultLocale();
  8740. }
  8741. /**
  8742. * Sets the locale.
  8743. *
  8744. * @param string $locale
  8745. * @static
  8746. */
  8747. public static function setLocale($locale)
  8748. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8749. /** @var \Illuminate\Http\Request $instance */
  8750. return $instance->setLocale($locale);
  8751. }
  8752. /**
  8753. * Get the locale.
  8754. *
  8755. * @return string
  8756. * @static
  8757. */
  8758. public static function getLocale()
  8759. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8760. /** @var \Illuminate\Http\Request $instance */
  8761. return $instance->getLocale();
  8762. }
  8763. /**
  8764. * Checks if the request method is of specified type.
  8765. *
  8766. * @param string $method Uppercase request method (GET, POST etc)
  8767. * @return bool
  8768. * @static
  8769. */
  8770. public static function isMethod($method)
  8771. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8772. /** @var \Illuminate\Http\Request $instance */
  8773. return $instance->isMethod($method);
  8774. }
  8775. /**
  8776. * Checks whether or not the method is safe.
  8777. *
  8778. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8779. * @return bool
  8780. * @static
  8781. */
  8782. public static function isMethodSafe()
  8783. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8784. /** @var \Illuminate\Http\Request $instance */
  8785. return $instance->isMethodSafe();
  8786. }
  8787. /**
  8788. * Checks whether or not the method is idempotent.
  8789. *
  8790. * @return bool
  8791. * @static
  8792. */
  8793. public static function isMethodIdempotent()
  8794. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8795. /** @var \Illuminate\Http\Request $instance */
  8796. return $instance->isMethodIdempotent();
  8797. }
  8798. /**
  8799. * Checks whether the method is cacheable or not.
  8800. *
  8801. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8802. * @return bool True for GET and HEAD, false otherwise
  8803. * @static
  8804. */
  8805. public static function isMethodCacheable()
  8806. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8807. /** @var \Illuminate\Http\Request $instance */
  8808. return $instance->isMethodCacheable();
  8809. }
  8810. /**
  8811. * Returns the protocol version.
  8812. *
  8813. * If the application is behind a proxy, the protocol version used in the
  8814. * requests between the client and the proxy and between the proxy and the
  8815. * server might be different. This returns the former (from the "Via" header)
  8816. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8817. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8818. *
  8819. * @return string|null
  8820. * @static
  8821. */
  8822. public static function getProtocolVersion()
  8823. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8824. /** @var \Illuminate\Http\Request $instance */
  8825. return $instance->getProtocolVersion();
  8826. }
  8827. /**
  8828. * Returns the request body content.
  8829. *
  8830. * @param bool $asResource If true, a resource will be returned
  8831. * @return string|resource The request body content or a resource to read the body stream
  8832. * @static
  8833. */
  8834. public static function getContent($asResource = false)
  8835. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8836. /** @var \Illuminate\Http\Request $instance */
  8837. return $instance->getContent($asResource);
  8838. }
  8839. /**
  8840. * Gets the Etags.
  8841. *
  8842. * @return array The entity tags
  8843. * @static
  8844. */
  8845. public static function getETags()
  8846. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8847. /** @var \Illuminate\Http\Request $instance */
  8848. return $instance->getETags();
  8849. }
  8850. /**
  8851. *
  8852. *
  8853. * @return bool
  8854. * @static
  8855. */
  8856. public static function isNoCache()
  8857. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8858. /** @var \Illuminate\Http\Request $instance */
  8859. return $instance->isNoCache();
  8860. }
  8861. /**
  8862. * Gets the preferred format for the response by inspecting, in the following order:
  8863. * * the request format set using setRequestFormat
  8864. * * the values of the Accept HTTP header.
  8865. *
  8866. * Note that if you use this method, you should send the "Vary: Accept" header
  8867. * in the response to prevent any issues with intermediary HTTP caches.
  8868. *
  8869. * @static
  8870. */
  8871. public static function getPreferredFormat($default = 'html')
  8872. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8873. /** @var \Illuminate\Http\Request $instance */
  8874. return $instance->getPreferredFormat($default);
  8875. }
  8876. /**
  8877. * Returns the preferred language.
  8878. *
  8879. * @param string[] $locales An array of ordered available locales
  8880. * @return string|null The preferred locale
  8881. * @static
  8882. */
  8883. public static function getPreferredLanguage($locales = null)
  8884. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8885. /** @var \Illuminate\Http\Request $instance */
  8886. return $instance->getPreferredLanguage($locales);
  8887. }
  8888. /**
  8889. * Gets a list of languages acceptable by the client browser.
  8890. *
  8891. * @return array Languages ordered in the user browser preferences
  8892. * @static
  8893. */
  8894. public static function getLanguages()
  8895. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8896. /** @var \Illuminate\Http\Request $instance */
  8897. return $instance->getLanguages();
  8898. }
  8899. /**
  8900. * Gets a list of charsets acceptable by the client browser.
  8901. *
  8902. * @return array List of charsets in preferable order
  8903. * @static
  8904. */
  8905. public static function getCharsets()
  8906. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8907. /** @var \Illuminate\Http\Request $instance */
  8908. return $instance->getCharsets();
  8909. }
  8910. /**
  8911. * Gets a list of encodings acceptable by the client browser.
  8912. *
  8913. * @return array List of encodings in preferable order
  8914. * @static
  8915. */
  8916. public static function getEncodings()
  8917. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8918. /** @var \Illuminate\Http\Request $instance */
  8919. return $instance->getEncodings();
  8920. }
  8921. /**
  8922. * Gets a list of content types acceptable by the client browser.
  8923. *
  8924. * @return array List of content types in preferable order
  8925. * @static
  8926. */
  8927. public static function getAcceptableContentTypes()
  8928. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8929. /** @var \Illuminate\Http\Request $instance */
  8930. return $instance->getAcceptableContentTypes();
  8931. }
  8932. /**
  8933. * Returns true if the request is an XMLHttpRequest.
  8934. *
  8935. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8936. * It is known to work with common JavaScript frameworks:
  8937. *
  8938. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8939. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8940. * @static
  8941. */
  8942. public static function isXmlHttpRequest()
  8943. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8944. /** @var \Illuminate\Http\Request $instance */
  8945. return $instance->isXmlHttpRequest();
  8946. }
  8947. /**
  8948. * Indicates whether this request originated from a trusted proxy.
  8949. *
  8950. * This can be useful to determine whether or not to trust the
  8951. * contents of a proxy-specific header.
  8952. *
  8953. * @return bool true if the request came from a trusted proxy, false otherwise
  8954. * @static
  8955. */
  8956. public static function isFromTrustedProxy()
  8957. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8958. /** @var \Illuminate\Http\Request $instance */
  8959. return $instance->isFromTrustedProxy();
  8960. }
  8961. /**
  8962. * Determine if the given content types match.
  8963. *
  8964. * @param string $actual
  8965. * @param string $type
  8966. * @return bool
  8967. * @static
  8968. */
  8969. public static function matchesType($actual, $type)
  8970. {
  8971. return \Illuminate\Http\Request::matchesType($actual, $type);
  8972. }
  8973. /**
  8974. * Determine if the request is sending JSON.
  8975. *
  8976. * @return bool
  8977. * @static
  8978. */
  8979. public static function isJson()
  8980. {
  8981. /** @var \Illuminate\Http\Request $instance */
  8982. return $instance->isJson();
  8983. }
  8984. /**
  8985. * Determine if the current request probably expects a JSON response.
  8986. *
  8987. * @return bool
  8988. * @static
  8989. */
  8990. public static function expectsJson()
  8991. {
  8992. /** @var \Illuminate\Http\Request $instance */
  8993. return $instance->expectsJson();
  8994. }
  8995. /**
  8996. * Determine if the current request is asking for JSON.
  8997. *
  8998. * @return bool
  8999. * @static
  9000. */
  9001. public static function wantsJson()
  9002. {
  9003. /** @var \Illuminate\Http\Request $instance */
  9004. return $instance->wantsJson();
  9005. }
  9006. /**
  9007. * Determines whether the current requests accepts a given content type.
  9008. *
  9009. * @param string|array $contentTypes
  9010. * @return bool
  9011. * @static
  9012. */
  9013. public static function accepts($contentTypes)
  9014. {
  9015. /** @var \Illuminate\Http\Request $instance */
  9016. return $instance->accepts($contentTypes);
  9017. }
  9018. /**
  9019. * Return the most suitable content type from the given array based on content negotiation.
  9020. *
  9021. * @param string|array $contentTypes
  9022. * @return string|null
  9023. * @static
  9024. */
  9025. public static function prefers($contentTypes)
  9026. {
  9027. /** @var \Illuminate\Http\Request $instance */
  9028. return $instance->prefers($contentTypes);
  9029. }
  9030. /**
  9031. * Determine if the current request accepts any content type.
  9032. *
  9033. * @return bool
  9034. * @static
  9035. */
  9036. public static function acceptsAnyContentType()
  9037. {
  9038. /** @var \Illuminate\Http\Request $instance */
  9039. return $instance->acceptsAnyContentType();
  9040. }
  9041. /**
  9042. * Determines whether a request accepts JSON.
  9043. *
  9044. * @return bool
  9045. * @static
  9046. */
  9047. public static function acceptsJson()
  9048. {
  9049. /** @var \Illuminate\Http\Request $instance */
  9050. return $instance->acceptsJson();
  9051. }
  9052. /**
  9053. * Determines whether a request accepts HTML.
  9054. *
  9055. * @return bool
  9056. * @static
  9057. */
  9058. public static function acceptsHtml()
  9059. {
  9060. /** @var \Illuminate\Http\Request $instance */
  9061. return $instance->acceptsHtml();
  9062. }
  9063. /**
  9064. * Get the data format expected in the response.
  9065. *
  9066. * @param string $default
  9067. * @return string
  9068. * @static
  9069. */
  9070. public static function format($default = 'html')
  9071. {
  9072. /** @var \Illuminate\Http\Request $instance */
  9073. return $instance->format($default);
  9074. }
  9075. /**
  9076. * Retrieve an old input item.
  9077. *
  9078. * @param string|null $key
  9079. * @param string|array|null $default
  9080. * @return string|array
  9081. * @static
  9082. */
  9083. public static function old($key = null, $default = null)
  9084. {
  9085. /** @var \Illuminate\Http\Request $instance */
  9086. return $instance->old($key, $default);
  9087. }
  9088. /**
  9089. * Flash the input for the current request to the session.
  9090. *
  9091. * @return void
  9092. * @static
  9093. */
  9094. public static function flash()
  9095. {
  9096. /** @var \Illuminate\Http\Request $instance */
  9097. $instance->flash();
  9098. }
  9099. /**
  9100. * Flash only some of the input to the session.
  9101. *
  9102. * @param array|mixed $keys
  9103. * @return void
  9104. * @static
  9105. */
  9106. public static function flashOnly($keys)
  9107. {
  9108. /** @var \Illuminate\Http\Request $instance */
  9109. $instance->flashOnly($keys);
  9110. }
  9111. /**
  9112. * Flash only some of the input to the session.
  9113. *
  9114. * @param array|mixed $keys
  9115. * @return void
  9116. * @static
  9117. */
  9118. public static function flashExcept($keys)
  9119. {
  9120. /** @var \Illuminate\Http\Request $instance */
  9121. $instance->flashExcept($keys);
  9122. }
  9123. /**
  9124. * Flush all of the old input from the session.
  9125. *
  9126. * @return void
  9127. * @static
  9128. */
  9129. public static function flush()
  9130. {
  9131. /** @var \Illuminate\Http\Request $instance */
  9132. $instance->flush();
  9133. }
  9134. /**
  9135. * Retrieve a server variable from the request.
  9136. *
  9137. * @param string|null $key
  9138. * @param string|array|null $default
  9139. * @return string|array|null
  9140. * @static
  9141. */
  9142. public static function server($key = null, $default = null)
  9143. {
  9144. /** @var \Illuminate\Http\Request $instance */
  9145. return $instance->server($key, $default);
  9146. }
  9147. /**
  9148. * Determine if a header is set on the request.
  9149. *
  9150. * @param string $key
  9151. * @return bool
  9152. * @static
  9153. */
  9154. public static function hasHeader($key)
  9155. {
  9156. /** @var \Illuminate\Http\Request $instance */
  9157. return $instance->hasHeader($key);
  9158. }
  9159. /**
  9160. * Retrieve a header from the request.
  9161. *
  9162. * @param string|null $key
  9163. * @param string|array|null $default
  9164. * @return string|array|null
  9165. * @static
  9166. */
  9167. public static function header($key = null, $default = null)
  9168. {
  9169. /** @var \Illuminate\Http\Request $instance */
  9170. return $instance->header($key, $default);
  9171. }
  9172. /**
  9173. * Get the bearer token from the request headers.
  9174. *
  9175. * @return string|null
  9176. * @static
  9177. */
  9178. public static function bearerToken()
  9179. {
  9180. /** @var \Illuminate\Http\Request $instance */
  9181. return $instance->bearerToken();
  9182. }
  9183. /**
  9184. * Determine if the request contains a given input item key.
  9185. *
  9186. * @param string|array $key
  9187. * @return bool
  9188. * @static
  9189. */
  9190. public static function exists($key)
  9191. {
  9192. /** @var \Illuminate\Http\Request $instance */
  9193. return $instance->exists($key);
  9194. }
  9195. /**
  9196. * Determine if the request contains a given input item key.
  9197. *
  9198. * @param string|array $key
  9199. * @return bool
  9200. * @static
  9201. */
  9202. public static function has($key)
  9203. {
  9204. /** @var \Illuminate\Http\Request $instance */
  9205. return $instance->has($key);
  9206. }
  9207. /**
  9208. * Determine if the request contains any of the given inputs.
  9209. *
  9210. * @param string|array $keys
  9211. * @return bool
  9212. * @static
  9213. */
  9214. public static function hasAny($keys)
  9215. {
  9216. /** @var \Illuminate\Http\Request $instance */
  9217. return $instance->hasAny($keys);
  9218. }
  9219. /**
  9220. * Determine if the request contains a non-empty value for an input item.
  9221. *
  9222. * @param string|array $key
  9223. * @return bool
  9224. * @static
  9225. */
  9226. public static function filled($key)
  9227. {
  9228. /** @var \Illuminate\Http\Request $instance */
  9229. return $instance->filled($key);
  9230. }
  9231. /**
  9232. * Determine if the request contains a non-empty value for any of the given inputs.
  9233. *
  9234. * @param string|array $keys
  9235. * @return bool
  9236. * @static
  9237. */
  9238. public static function anyFilled($keys)
  9239. {
  9240. /** @var \Illuminate\Http\Request $instance */
  9241. return $instance->anyFilled($keys);
  9242. }
  9243. /**
  9244. * Get the keys for all of the input and files.
  9245. *
  9246. * @return array
  9247. * @static
  9248. */
  9249. public static function keys()
  9250. {
  9251. /** @var \Illuminate\Http\Request $instance */
  9252. return $instance->keys();
  9253. }
  9254. /**
  9255. * Get all of the input and files for the request.
  9256. *
  9257. * @param array|mixed|null $keys
  9258. * @return array
  9259. * @static
  9260. */
  9261. public static function all($keys = null)
  9262. {
  9263. /** @var \Illuminate\Http\Request $instance */
  9264. return $instance->all($keys);
  9265. }
  9266. /**
  9267. * Retrieve an input item from the request.
  9268. *
  9269. * @param string|null $key
  9270. * @param string|array|null $default
  9271. * @return string|array|null
  9272. * @static
  9273. */
  9274. public static function input($key = null, $default = null)
  9275. {
  9276. /** @var \Illuminate\Http\Request $instance */
  9277. return $instance->input($key, $default);
  9278. }
  9279. /**
  9280. * Get a subset containing the provided keys with values from the input data.
  9281. *
  9282. * @param array|mixed $keys
  9283. * @return array
  9284. * @static
  9285. */
  9286. public static function only($keys)
  9287. {
  9288. /** @var \Illuminate\Http\Request $instance */
  9289. return $instance->only($keys);
  9290. }
  9291. /**
  9292. * Get all of the input except for a specified array of items.
  9293. *
  9294. * @param array|mixed $keys
  9295. * @return array
  9296. * @static
  9297. */
  9298. public static function except($keys)
  9299. {
  9300. /** @var \Illuminate\Http\Request $instance */
  9301. return $instance->except($keys);
  9302. }
  9303. /**
  9304. * Retrieve a query string item from the request.
  9305. *
  9306. * @param string|null $key
  9307. * @param string|array|null $default
  9308. * @return string|array|null
  9309. * @static
  9310. */
  9311. public static function query($key = null, $default = null)
  9312. {
  9313. /** @var \Illuminate\Http\Request $instance */
  9314. return $instance->query($key, $default);
  9315. }
  9316. /**
  9317. * Retrieve a request payload item from the request.
  9318. *
  9319. * @param string|null $key
  9320. * @param string|array|null $default
  9321. * @return string|array|null
  9322. * @static
  9323. */
  9324. public static function post($key = null, $default = null)
  9325. {
  9326. /** @var \Illuminate\Http\Request $instance */
  9327. return $instance->post($key, $default);
  9328. }
  9329. /**
  9330. * Determine if a cookie is set on the request.
  9331. *
  9332. * @param string $key
  9333. * @return bool
  9334. * @static
  9335. */
  9336. public static function hasCookie($key)
  9337. {
  9338. /** @var \Illuminate\Http\Request $instance */
  9339. return $instance->hasCookie($key);
  9340. }
  9341. /**
  9342. * Retrieve a cookie from the request.
  9343. *
  9344. * @param string|null $key
  9345. * @param string|array|null $default
  9346. * @return string|array|null
  9347. * @static
  9348. */
  9349. public static function cookie($key = null, $default = null)
  9350. {
  9351. /** @var \Illuminate\Http\Request $instance */
  9352. return $instance->cookie($key, $default);
  9353. }
  9354. /**
  9355. * Get an array of all of the files on the request.
  9356. *
  9357. * @return array
  9358. * @static
  9359. */
  9360. public static function allFiles()
  9361. {
  9362. /** @var \Illuminate\Http\Request $instance */
  9363. return $instance->allFiles();
  9364. }
  9365. /**
  9366. * Determine if the uploaded data contains a file.
  9367. *
  9368. * @param string $key
  9369. * @return bool
  9370. * @static
  9371. */
  9372. public static function hasFile($key)
  9373. {
  9374. /** @var \Illuminate\Http\Request $instance */
  9375. return $instance->hasFile($key);
  9376. }
  9377. /**
  9378. * Retrieve a file from the request.
  9379. *
  9380. * @param string|null $key
  9381. * @param mixed $default
  9382. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  9383. * @static
  9384. */
  9385. public static function file($key = null, $default = null)
  9386. {
  9387. /** @var \Illuminate\Http\Request $instance */
  9388. return $instance->file($key, $default);
  9389. }
  9390. /**
  9391. * Register a custom macro.
  9392. *
  9393. * @param string $name
  9394. * @param object|callable $macro
  9395. * @return void
  9396. * @static
  9397. */
  9398. public static function macro($name, $macro)
  9399. {
  9400. \Illuminate\Http\Request::macro($name, $macro);
  9401. }
  9402. /**
  9403. * Mix another object into the class.
  9404. *
  9405. * @param object $mixin
  9406. * @param bool $replace
  9407. * @return void
  9408. * @throws \ReflectionException
  9409. * @static
  9410. */
  9411. public static function mixin($mixin, $replace = true)
  9412. {
  9413. \Illuminate\Http\Request::mixin($mixin, $replace);
  9414. }
  9415. /**
  9416. * Checks if macro is registered.
  9417. *
  9418. * @param string $name
  9419. * @return bool
  9420. * @static
  9421. */
  9422. public static function hasMacro($name)
  9423. {
  9424. return \Illuminate\Http\Request::hasMacro($name);
  9425. }
  9426. /**
  9427. *
  9428. *
  9429. * @static
  9430. */
  9431. public static function validate($rules, ...$params)
  9432. {
  9433. return \Illuminate\Http\Request::validate($rules, ...$params);
  9434. }
  9435. /**
  9436. *
  9437. *
  9438. * @static
  9439. */
  9440. public static function hasValidSignature($absolute = true)
  9441. {
  9442. return \Illuminate\Http\Request::hasValidSignature($absolute);
  9443. }
  9444. }
  9445. /**
  9446. *
  9447. *
  9448. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9449. */
  9450. class Response {
  9451. /**
  9452. * Create a new response instance.
  9453. *
  9454. * @param string $content
  9455. * @param int $status
  9456. * @param array $headers
  9457. * @return \Illuminate\Http\Response
  9458. * @static
  9459. */
  9460. public static function make($content = '', $status = 200, $headers = [])
  9461. {
  9462. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9463. return $instance->make($content, $status, $headers);
  9464. }
  9465. /**
  9466. * Create a new "no content" response.
  9467. *
  9468. * @param int $status
  9469. * @param array $headers
  9470. * @return \Illuminate\Http\Response
  9471. * @static
  9472. */
  9473. public static function noContent($status = 204, $headers = [])
  9474. {
  9475. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9476. return $instance->noContent($status, $headers);
  9477. }
  9478. /**
  9479. * Create a new response for a given view.
  9480. *
  9481. * @param string $view
  9482. * @param array $data
  9483. * @param int $status
  9484. * @param array $headers
  9485. * @return \Illuminate\Http\Response
  9486. * @static
  9487. */
  9488. public static function view($view, $data = [], $status = 200, $headers = [])
  9489. {
  9490. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9491. return $instance->view($view, $data, $status, $headers);
  9492. }
  9493. /**
  9494. * Create a new JSON response instance.
  9495. *
  9496. * @param mixed $data
  9497. * @param int $status
  9498. * @param array $headers
  9499. * @param int $options
  9500. * @return \Illuminate\Http\JsonResponse
  9501. * @static
  9502. */
  9503. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  9504. {
  9505. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9506. return $instance->json($data, $status, $headers, $options);
  9507. }
  9508. /**
  9509. * Create a new JSONP response instance.
  9510. *
  9511. * @param string $callback
  9512. * @param mixed $data
  9513. * @param int $status
  9514. * @param array $headers
  9515. * @param int $options
  9516. * @return \Illuminate\Http\JsonResponse
  9517. * @static
  9518. */
  9519. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  9520. {
  9521. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9522. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9523. }
  9524. /**
  9525. * Create a new streamed response instance.
  9526. *
  9527. * @param \Closure $callback
  9528. * @param int $status
  9529. * @param array $headers
  9530. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9531. * @static
  9532. */
  9533. public static function stream($callback, $status = 200, $headers = [])
  9534. {
  9535. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9536. return $instance->stream($callback, $status, $headers);
  9537. }
  9538. /**
  9539. * Create a new streamed response instance as a file download.
  9540. *
  9541. * @param \Closure $callback
  9542. * @param string|null $name
  9543. * @param array $headers
  9544. * @param string|null $disposition
  9545. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9546. * @static
  9547. */
  9548. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  9549. {
  9550. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9551. return $instance->streamDownload($callback, $name, $headers, $disposition);
  9552. }
  9553. /**
  9554. * Create a new file download response.
  9555. *
  9556. * @param \SplFileInfo|string $file
  9557. * @param string|null $name
  9558. * @param array $headers
  9559. * @param string|null $disposition
  9560. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9561. * @static
  9562. */
  9563. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  9564. {
  9565. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9566. return $instance->download($file, $name, $headers, $disposition);
  9567. }
  9568. /**
  9569. * Return the raw contents of a binary file.
  9570. *
  9571. * @param \SplFileInfo|string $file
  9572. * @param array $headers
  9573. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9574. * @static
  9575. */
  9576. public static function file($file, $headers = [])
  9577. {
  9578. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9579. return $instance->file($file, $headers);
  9580. }
  9581. /**
  9582. * Create a new redirect response to the given path.
  9583. *
  9584. * @param string $path
  9585. * @param int $status
  9586. * @param array $headers
  9587. * @param bool|null $secure
  9588. * @return \Illuminate\Http\RedirectResponse
  9589. * @static
  9590. */
  9591. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  9592. {
  9593. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9594. return $instance->redirectTo($path, $status, $headers, $secure);
  9595. }
  9596. /**
  9597. * Create a new redirect response to a named route.
  9598. *
  9599. * @param string $route
  9600. * @param array $parameters
  9601. * @param int $status
  9602. * @param array $headers
  9603. * @return \Illuminate\Http\RedirectResponse
  9604. * @static
  9605. */
  9606. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  9607. {
  9608. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9609. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9610. }
  9611. /**
  9612. * Create a new redirect response to a controller action.
  9613. *
  9614. * @param string $action
  9615. * @param array $parameters
  9616. * @param int $status
  9617. * @param array $headers
  9618. * @return \Illuminate\Http\RedirectResponse
  9619. * @static
  9620. */
  9621. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  9622. {
  9623. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9624. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9625. }
  9626. /**
  9627. * Create a new redirect response, while putting the current URL in the session.
  9628. *
  9629. * @param string $path
  9630. * @param int $status
  9631. * @param array $headers
  9632. * @param bool|null $secure
  9633. * @return \Illuminate\Http\RedirectResponse
  9634. * @static
  9635. */
  9636. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  9637. {
  9638. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9639. return $instance->redirectGuest($path, $status, $headers, $secure);
  9640. }
  9641. /**
  9642. * Create a new redirect response to the previously intended location.
  9643. *
  9644. * @param string $default
  9645. * @param int $status
  9646. * @param array $headers
  9647. * @param bool|null $secure
  9648. * @return \Illuminate\Http\RedirectResponse
  9649. * @static
  9650. */
  9651. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  9652. {
  9653. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9654. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9655. }
  9656. /**
  9657. * Register a custom macro.
  9658. *
  9659. * @param string $name
  9660. * @param object|callable $macro
  9661. * @return void
  9662. * @static
  9663. */
  9664. public static function macro($name, $macro)
  9665. {
  9666. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9667. }
  9668. /**
  9669. * Mix another object into the class.
  9670. *
  9671. * @param object $mixin
  9672. * @param bool $replace
  9673. * @return void
  9674. * @throws \ReflectionException
  9675. * @static
  9676. */
  9677. public static function mixin($mixin, $replace = true)
  9678. {
  9679. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  9680. }
  9681. /**
  9682. * Checks if macro is registered.
  9683. *
  9684. * @param string $name
  9685. * @return bool
  9686. * @static
  9687. */
  9688. public static function hasMacro($name)
  9689. {
  9690. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9691. }
  9692. }
  9693. /**
  9694. *
  9695. *
  9696. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  9697. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  9698. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9699. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  9700. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  9701. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  9702. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  9703. * @see \Illuminate\Routing\Router
  9704. */
  9705. class Route {
  9706. /**
  9707. * Register a new GET route with the router.
  9708. *
  9709. * @param string $uri
  9710. * @param \Closure|array|string|callable|null $action
  9711. * @return \Illuminate\Routing\Route
  9712. * @static
  9713. */
  9714. public static function get($uri, $action = null)
  9715. {
  9716. /** @var \Illuminate\Routing\Router $instance */
  9717. return $instance->get($uri, $action);
  9718. }
  9719. /**
  9720. * Register a new POST route with the router.
  9721. *
  9722. * @param string $uri
  9723. * @param \Closure|array|string|callable|null $action
  9724. * @return \Illuminate\Routing\Route
  9725. * @static
  9726. */
  9727. public static function post($uri, $action = null)
  9728. {
  9729. /** @var \Illuminate\Routing\Router $instance */
  9730. return $instance->post($uri, $action);
  9731. }
  9732. /**
  9733. * Register a new PUT route with the router.
  9734. *
  9735. * @param string $uri
  9736. * @param \Closure|array|string|callable|null $action
  9737. * @return \Illuminate\Routing\Route
  9738. * @static
  9739. */
  9740. public static function put($uri, $action = null)
  9741. {
  9742. /** @var \Illuminate\Routing\Router $instance */
  9743. return $instance->put($uri, $action);
  9744. }
  9745. /**
  9746. * Register a new PATCH route with the router.
  9747. *
  9748. * @param string $uri
  9749. * @param \Closure|array|string|callable|null $action
  9750. * @return \Illuminate\Routing\Route
  9751. * @static
  9752. */
  9753. public static function patch($uri, $action = null)
  9754. {
  9755. /** @var \Illuminate\Routing\Router $instance */
  9756. return $instance->patch($uri, $action);
  9757. }
  9758. /**
  9759. * Register a new DELETE route with the router.
  9760. *
  9761. * @param string $uri
  9762. * @param \Closure|array|string|callable|null $action
  9763. * @return \Illuminate\Routing\Route
  9764. * @static
  9765. */
  9766. public static function delete($uri, $action = null)
  9767. {
  9768. /** @var \Illuminate\Routing\Router $instance */
  9769. return $instance->delete($uri, $action);
  9770. }
  9771. /**
  9772. * Register a new OPTIONS route with the router.
  9773. *
  9774. * @param string $uri
  9775. * @param \Closure|array|string|callable|null $action
  9776. * @return \Illuminate\Routing\Route
  9777. * @static
  9778. */
  9779. public static function options($uri, $action = null)
  9780. {
  9781. /** @var \Illuminate\Routing\Router $instance */
  9782. return $instance->options($uri, $action);
  9783. }
  9784. /**
  9785. * Register a new route responding to all verbs.
  9786. *
  9787. * @param string $uri
  9788. * @param \Closure|array|string|callable|null $action
  9789. * @return \Illuminate\Routing\Route
  9790. * @static
  9791. */
  9792. public static function any($uri, $action = null)
  9793. {
  9794. /** @var \Illuminate\Routing\Router $instance */
  9795. return $instance->any($uri, $action);
  9796. }
  9797. /**
  9798. * Register a new Fallback route with the router.
  9799. *
  9800. * @param \Closure|array|string|callable|null $action
  9801. * @return \Illuminate\Routing\Route
  9802. * @static
  9803. */
  9804. public static function fallback($action)
  9805. {
  9806. /** @var \Illuminate\Routing\Router $instance */
  9807. return $instance->fallback($action);
  9808. }
  9809. /**
  9810. * Create a redirect from one URI to another.
  9811. *
  9812. * @param string $uri
  9813. * @param string $destination
  9814. * @param int $status
  9815. * @return \Illuminate\Routing\Route
  9816. * @static
  9817. */
  9818. public static function redirect($uri, $destination, $status = 302)
  9819. {
  9820. /** @var \Illuminate\Routing\Router $instance */
  9821. return $instance->redirect($uri, $destination, $status);
  9822. }
  9823. /**
  9824. * Create a permanent redirect from one URI to another.
  9825. *
  9826. * @param string $uri
  9827. * @param string $destination
  9828. * @return \Illuminate\Routing\Route
  9829. * @static
  9830. */
  9831. public static function permanentRedirect($uri, $destination)
  9832. {
  9833. /** @var \Illuminate\Routing\Router $instance */
  9834. return $instance->permanentRedirect($uri, $destination);
  9835. }
  9836. /**
  9837. * Register a new route that returns a view.
  9838. *
  9839. * @param string $uri
  9840. * @param string $view
  9841. * @param array $data
  9842. * @return \Illuminate\Routing\Route
  9843. * @static
  9844. */
  9845. public static function view($uri, $view, $data = [])
  9846. {
  9847. /** @var \Illuminate\Routing\Router $instance */
  9848. return $instance->view($uri, $view, $data);
  9849. }
  9850. /**
  9851. * Register a new route with the given verbs.
  9852. *
  9853. * @param array|string $methods
  9854. * @param string $uri
  9855. * @param \Closure|array|string|callable|null $action
  9856. * @return \Illuminate\Routing\Route
  9857. * @static
  9858. */
  9859. public static function match($methods, $uri, $action = null)
  9860. {
  9861. /** @var \Illuminate\Routing\Router $instance */
  9862. return $instance->match($methods, $uri, $action);
  9863. }
  9864. /**
  9865. * Register an array of resource controllers.
  9866. *
  9867. * @param array $resources
  9868. * @param array $options
  9869. * @return void
  9870. * @static
  9871. */
  9872. public static function resources($resources, $options = [])
  9873. {
  9874. /** @var \Illuminate\Routing\Router $instance */
  9875. $instance->resources($resources, $options);
  9876. }
  9877. /**
  9878. * Route a resource to a controller.
  9879. *
  9880. * @param string $name
  9881. * @param string $controller
  9882. * @param array $options
  9883. * @return \Illuminate\Routing\PendingResourceRegistration
  9884. * @static
  9885. */
  9886. public static function resource($name, $controller, $options = [])
  9887. {
  9888. /** @var \Illuminate\Routing\Router $instance */
  9889. return $instance->resource($name, $controller, $options);
  9890. }
  9891. /**
  9892. * Register an array of API resource controllers.
  9893. *
  9894. * @param array $resources
  9895. * @param array $options
  9896. * @return void
  9897. * @static
  9898. */
  9899. public static function apiResources($resources, $options = [])
  9900. {
  9901. /** @var \Illuminate\Routing\Router $instance */
  9902. $instance->apiResources($resources, $options);
  9903. }
  9904. /**
  9905. * Route an API resource to a controller.
  9906. *
  9907. * @param string $name
  9908. * @param string $controller
  9909. * @param array $options
  9910. * @return \Illuminate\Routing\PendingResourceRegistration
  9911. * @static
  9912. */
  9913. public static function apiResource($name, $controller, $options = [])
  9914. {
  9915. /** @var \Illuminate\Routing\Router $instance */
  9916. return $instance->apiResource($name, $controller, $options);
  9917. }
  9918. /**
  9919. * Create a route group with shared attributes.
  9920. *
  9921. * @param array $attributes
  9922. * @param \Closure|string $routes
  9923. * @return void
  9924. * @static
  9925. */
  9926. public static function group($attributes, $routes)
  9927. {
  9928. /** @var \Illuminate\Routing\Router $instance */
  9929. $instance->group($attributes, $routes);
  9930. }
  9931. /**
  9932. * Merge the given array with the last group stack.
  9933. *
  9934. * @param array $new
  9935. * @return array
  9936. * @static
  9937. */
  9938. public static function mergeWithLastGroup($new)
  9939. {
  9940. /** @var \Illuminate\Routing\Router $instance */
  9941. return $instance->mergeWithLastGroup($new);
  9942. }
  9943. /**
  9944. * Get the prefix from the last group on the stack.
  9945. *
  9946. * @return string
  9947. * @static
  9948. */
  9949. public static function getLastGroupPrefix()
  9950. {
  9951. /** @var \Illuminate\Routing\Router $instance */
  9952. return $instance->getLastGroupPrefix();
  9953. }
  9954. /**
  9955. * Add a route to the underlying route collection.
  9956. *
  9957. * @param array|string $methods
  9958. * @param string $uri
  9959. * @param \Closure|array|string|callable|null $action
  9960. * @return \Illuminate\Routing\Route
  9961. * @static
  9962. */
  9963. public static function addRoute($methods, $uri, $action)
  9964. {
  9965. /** @var \Illuminate\Routing\Router $instance */
  9966. return $instance->addRoute($methods, $uri, $action);
  9967. }
  9968. /**
  9969. * Return the response returned by the given route.
  9970. *
  9971. * @param string $name
  9972. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9973. * @static
  9974. */
  9975. public static function respondWithRoute($name)
  9976. {
  9977. /** @var \Illuminate\Routing\Router $instance */
  9978. return $instance->respondWithRoute($name);
  9979. }
  9980. /**
  9981. * Dispatch the request to the application.
  9982. *
  9983. * @param \Illuminate\Http\Request $request
  9984. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9985. * @static
  9986. */
  9987. public static function dispatch($request)
  9988. {
  9989. /** @var \Illuminate\Routing\Router $instance */
  9990. return $instance->dispatch($request);
  9991. }
  9992. /**
  9993. * Dispatch the request to a route and return the response.
  9994. *
  9995. * @param \Illuminate\Http\Request $request
  9996. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9997. * @static
  9998. */
  9999. public static function dispatchToRoute($request)
  10000. {
  10001. /** @var \Illuminate\Routing\Router $instance */
  10002. return $instance->dispatchToRoute($request);
  10003. }
  10004. /**
  10005. * Gather the middleware for the given route with resolved class names.
  10006. *
  10007. * @param \Illuminate\Routing\Route $route
  10008. * @return array
  10009. * @static
  10010. */
  10011. public static function gatherRouteMiddleware($route)
  10012. {
  10013. /** @var \Illuminate\Routing\Router $instance */
  10014. return $instance->gatherRouteMiddleware($route);
  10015. }
  10016. /**
  10017. * Create a response instance from the given value.
  10018. *
  10019. * @param \Symfony\Component\HttpFoundation\Request $request
  10020. * @param mixed $response
  10021. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10022. * @static
  10023. */
  10024. public static function prepareResponse($request, $response)
  10025. {
  10026. /** @var \Illuminate\Routing\Router $instance */
  10027. return $instance->prepareResponse($request, $response);
  10028. }
  10029. /**
  10030. * Static version of prepareResponse.
  10031. *
  10032. * @param \Symfony\Component\HttpFoundation\Request $request
  10033. * @param mixed $response
  10034. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10035. * @static
  10036. */
  10037. public static function toResponse($request, $response)
  10038. {
  10039. return \Illuminate\Routing\Router::toResponse($request, $response);
  10040. }
  10041. /**
  10042. * Substitute the route bindings onto the route.
  10043. *
  10044. * @param \Illuminate\Routing\Route $route
  10045. * @return \Illuminate\Routing\Route
  10046. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10047. * @static
  10048. */
  10049. public static function substituteBindings($route)
  10050. {
  10051. /** @var \Illuminate\Routing\Router $instance */
  10052. return $instance->substituteBindings($route);
  10053. }
  10054. /**
  10055. * Substitute the implicit Eloquent model bindings for the route.
  10056. *
  10057. * @param \Illuminate\Routing\Route $route
  10058. * @return void
  10059. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10060. * @static
  10061. */
  10062. public static function substituteImplicitBindings($route)
  10063. {
  10064. /** @var \Illuminate\Routing\Router $instance */
  10065. $instance->substituteImplicitBindings($route);
  10066. }
  10067. /**
  10068. * Register a route matched event listener.
  10069. *
  10070. * @param string|callable $callback
  10071. * @return void
  10072. * @static
  10073. */
  10074. public static function matched($callback)
  10075. {
  10076. /** @var \Illuminate\Routing\Router $instance */
  10077. $instance->matched($callback);
  10078. }
  10079. /**
  10080. * Get all of the defined middleware short-hand names.
  10081. *
  10082. * @return array
  10083. * @static
  10084. */
  10085. public static function getMiddleware()
  10086. {
  10087. /** @var \Illuminate\Routing\Router $instance */
  10088. return $instance->getMiddleware();
  10089. }
  10090. /**
  10091. * Register a short-hand name for a middleware.
  10092. *
  10093. * @param string $name
  10094. * @param string $class
  10095. * @return \Illuminate\Routing\Router
  10096. * @static
  10097. */
  10098. public static function aliasMiddleware($name, $class)
  10099. {
  10100. /** @var \Illuminate\Routing\Router $instance */
  10101. return $instance->aliasMiddleware($name, $class);
  10102. }
  10103. /**
  10104. * Check if a middlewareGroup with the given name exists.
  10105. *
  10106. * @param string $name
  10107. * @return bool
  10108. * @static
  10109. */
  10110. public static function hasMiddlewareGroup($name)
  10111. {
  10112. /** @var \Illuminate\Routing\Router $instance */
  10113. return $instance->hasMiddlewareGroup($name);
  10114. }
  10115. /**
  10116. * Get all of the defined middleware groups.
  10117. *
  10118. * @return array
  10119. * @static
  10120. */
  10121. public static function getMiddlewareGroups()
  10122. {
  10123. /** @var \Illuminate\Routing\Router $instance */
  10124. return $instance->getMiddlewareGroups();
  10125. }
  10126. /**
  10127. * Register a group of middleware.
  10128. *
  10129. * @param string $name
  10130. * @param array $middleware
  10131. * @return \Illuminate\Routing\Router
  10132. * @static
  10133. */
  10134. public static function middlewareGroup($name, $middleware)
  10135. {
  10136. /** @var \Illuminate\Routing\Router $instance */
  10137. return $instance->middlewareGroup($name, $middleware);
  10138. }
  10139. /**
  10140. * Add a middleware to the beginning of a middleware group.
  10141. *
  10142. * If the middleware is already in the group, it will not be added again.
  10143. *
  10144. * @param string $group
  10145. * @param string $middleware
  10146. * @return \Illuminate\Routing\Router
  10147. * @static
  10148. */
  10149. public static function prependMiddlewareToGroup($group, $middleware)
  10150. {
  10151. /** @var \Illuminate\Routing\Router $instance */
  10152. return $instance->prependMiddlewareToGroup($group, $middleware);
  10153. }
  10154. /**
  10155. * Add a middleware to the end of a middleware group.
  10156. *
  10157. * If the middleware is already in the group, it will not be added again.
  10158. *
  10159. * @param string $group
  10160. * @param string $middleware
  10161. * @return \Illuminate\Routing\Router
  10162. * @static
  10163. */
  10164. public static function pushMiddlewareToGroup($group, $middleware)
  10165. {
  10166. /** @var \Illuminate\Routing\Router $instance */
  10167. return $instance->pushMiddlewareToGroup($group, $middleware);
  10168. }
  10169. /**
  10170. * Add a new route parameter binder.
  10171. *
  10172. * @param string $key
  10173. * @param string|callable $binder
  10174. * @return void
  10175. * @static
  10176. */
  10177. public static function bind($key, $binder)
  10178. {
  10179. /** @var \Illuminate\Routing\Router $instance */
  10180. $instance->bind($key, $binder);
  10181. }
  10182. /**
  10183. * Register a model binder for a wildcard.
  10184. *
  10185. * @param string $key
  10186. * @param string $class
  10187. * @param \Closure|null $callback
  10188. * @return void
  10189. * @static
  10190. */
  10191. public static function model($key, $class, $callback = null)
  10192. {
  10193. /** @var \Illuminate\Routing\Router $instance */
  10194. $instance->model($key, $class, $callback);
  10195. }
  10196. /**
  10197. * Get the binding callback for a given binding.
  10198. *
  10199. * @param string $key
  10200. * @return \Closure|null
  10201. * @static
  10202. */
  10203. public static function getBindingCallback($key)
  10204. {
  10205. /** @var \Illuminate\Routing\Router $instance */
  10206. return $instance->getBindingCallback($key);
  10207. }
  10208. /**
  10209. * Get the global "where" patterns.
  10210. *
  10211. * @return array
  10212. * @static
  10213. */
  10214. public static function getPatterns()
  10215. {
  10216. /** @var \Illuminate\Routing\Router $instance */
  10217. return $instance->getPatterns();
  10218. }
  10219. /**
  10220. * Set a global where pattern on all routes.
  10221. *
  10222. * @param string $key
  10223. * @param string $pattern
  10224. * @return void
  10225. * @static
  10226. */
  10227. public static function pattern($key, $pattern)
  10228. {
  10229. /** @var \Illuminate\Routing\Router $instance */
  10230. $instance->pattern($key, $pattern);
  10231. }
  10232. /**
  10233. * Set a group of global where patterns on all routes.
  10234. *
  10235. * @param array $patterns
  10236. * @return void
  10237. * @static
  10238. */
  10239. public static function patterns($patterns)
  10240. {
  10241. /** @var \Illuminate\Routing\Router $instance */
  10242. $instance->patterns($patterns);
  10243. }
  10244. /**
  10245. * Determine if the router currently has a group stack.
  10246. *
  10247. * @return bool
  10248. * @static
  10249. */
  10250. public static function hasGroupStack()
  10251. {
  10252. /** @var \Illuminate\Routing\Router $instance */
  10253. return $instance->hasGroupStack();
  10254. }
  10255. /**
  10256. * Get the current group stack for the router.
  10257. *
  10258. * @return array
  10259. * @static
  10260. */
  10261. public static function getGroupStack()
  10262. {
  10263. /** @var \Illuminate\Routing\Router $instance */
  10264. return $instance->getGroupStack();
  10265. }
  10266. /**
  10267. * Get a route parameter for the current route.
  10268. *
  10269. * @param string $key
  10270. * @param string|null $default
  10271. * @return mixed
  10272. * @static
  10273. */
  10274. public static function input($key, $default = null)
  10275. {
  10276. /** @var \Illuminate\Routing\Router $instance */
  10277. return $instance->input($key, $default);
  10278. }
  10279. /**
  10280. * Get the request currently being dispatched.
  10281. *
  10282. * @return \Illuminate\Http\Request
  10283. * @static
  10284. */
  10285. public static function getCurrentRequest()
  10286. {
  10287. /** @var \Illuminate\Routing\Router $instance */
  10288. return $instance->getCurrentRequest();
  10289. }
  10290. /**
  10291. * Get the currently dispatched route instance.
  10292. *
  10293. * @return \Illuminate\Routing\Route
  10294. * @static
  10295. */
  10296. public static function getCurrentRoute()
  10297. {
  10298. /** @var \Illuminate\Routing\Router $instance */
  10299. return $instance->getCurrentRoute();
  10300. }
  10301. /**
  10302. * Get the currently dispatched route instance.
  10303. *
  10304. * @return \Illuminate\Routing\Route|null
  10305. * @static
  10306. */
  10307. public static function current()
  10308. {
  10309. /** @var \Illuminate\Routing\Router $instance */
  10310. return $instance->current();
  10311. }
  10312. /**
  10313. * Check if a route with the given name exists.
  10314. *
  10315. * @param string $name
  10316. * @return bool
  10317. * @static
  10318. */
  10319. public static function has($name)
  10320. {
  10321. /** @var \Illuminate\Routing\Router $instance */
  10322. return $instance->has($name);
  10323. }
  10324. /**
  10325. * Get the current route name.
  10326. *
  10327. * @return string|null
  10328. * @static
  10329. */
  10330. public static function currentRouteName()
  10331. {
  10332. /** @var \Illuminate\Routing\Router $instance */
  10333. return $instance->currentRouteName();
  10334. }
  10335. /**
  10336. * Alias for the "currentRouteNamed" method.
  10337. *
  10338. * @param mixed $patterns
  10339. * @return bool
  10340. * @static
  10341. */
  10342. public static function is(...$patterns)
  10343. {
  10344. /** @var \Illuminate\Routing\Router $instance */
  10345. return $instance->is(...$patterns);
  10346. }
  10347. /**
  10348. * Determine if the current route matches a pattern.
  10349. *
  10350. * @param mixed $patterns
  10351. * @return bool
  10352. * @static
  10353. */
  10354. public static function currentRouteNamed(...$patterns)
  10355. {
  10356. /** @var \Illuminate\Routing\Router $instance */
  10357. return $instance->currentRouteNamed(...$patterns);
  10358. }
  10359. /**
  10360. * Get the current route action.
  10361. *
  10362. * @return string|null
  10363. * @static
  10364. */
  10365. public static function currentRouteAction()
  10366. {
  10367. /** @var \Illuminate\Routing\Router $instance */
  10368. return $instance->currentRouteAction();
  10369. }
  10370. /**
  10371. * Alias for the "currentRouteUses" method.
  10372. *
  10373. * @param array $patterns
  10374. * @return bool
  10375. * @static
  10376. */
  10377. public static function uses(...$patterns)
  10378. {
  10379. /** @var \Illuminate\Routing\Router $instance */
  10380. return $instance->uses(...$patterns);
  10381. }
  10382. /**
  10383. * Determine if the current route action matches a given action.
  10384. *
  10385. * @param string $action
  10386. * @return bool
  10387. * @static
  10388. */
  10389. public static function currentRouteUses($action)
  10390. {
  10391. /** @var \Illuminate\Routing\Router $instance */
  10392. return $instance->currentRouteUses($action);
  10393. }
  10394. /**
  10395. * Register the typical authentication routes for an application.
  10396. *
  10397. * @param array $options
  10398. * @return void
  10399. * @static
  10400. */
  10401. public static function auth($options = [])
  10402. {
  10403. /** @var \Illuminate\Routing\Router $instance */
  10404. $instance->auth($options);
  10405. }
  10406. /**
  10407. * Register the typical reset password routes for an application.
  10408. *
  10409. * @return void
  10410. * @static
  10411. */
  10412. public static function resetPassword()
  10413. {
  10414. /** @var \Illuminate\Routing\Router $instance */
  10415. $instance->resetPassword();
  10416. }
  10417. /**
  10418. * Register the typical email verification routes for an application.
  10419. *
  10420. * @return void
  10421. * @static
  10422. */
  10423. public static function emailVerification()
  10424. {
  10425. /** @var \Illuminate\Routing\Router $instance */
  10426. $instance->emailVerification();
  10427. }
  10428. /**
  10429. * Set the unmapped global resource parameters to singular.
  10430. *
  10431. * @param bool $singular
  10432. * @return void
  10433. * @static
  10434. */
  10435. public static function singularResourceParameters($singular = true)
  10436. {
  10437. /** @var \Illuminate\Routing\Router $instance */
  10438. $instance->singularResourceParameters($singular);
  10439. }
  10440. /**
  10441. * Set the global resource parameter mapping.
  10442. *
  10443. * @param array $parameters
  10444. * @return void
  10445. * @static
  10446. */
  10447. public static function resourceParameters($parameters = [])
  10448. {
  10449. /** @var \Illuminate\Routing\Router $instance */
  10450. $instance->resourceParameters($parameters);
  10451. }
  10452. /**
  10453. * Get or set the verbs used in the resource URIs.
  10454. *
  10455. * @param array $verbs
  10456. * @return array|null
  10457. * @static
  10458. */
  10459. public static function resourceVerbs($verbs = [])
  10460. {
  10461. /** @var \Illuminate\Routing\Router $instance */
  10462. return $instance->resourceVerbs($verbs);
  10463. }
  10464. /**
  10465. * Get the underlying route collection.
  10466. *
  10467. * @return \Illuminate\Routing\RouteCollection
  10468. * @static
  10469. */
  10470. public static function getRoutes()
  10471. {
  10472. /** @var \Illuminate\Routing\Router $instance */
  10473. return $instance->getRoutes();
  10474. }
  10475. /**
  10476. * Set the route collection instance.
  10477. *
  10478. * @param \Illuminate\Routing\RouteCollection $routes
  10479. * @return void
  10480. * @static
  10481. */
  10482. public static function setRoutes($routes)
  10483. {
  10484. /** @var \Illuminate\Routing\Router $instance */
  10485. $instance->setRoutes($routes);
  10486. }
  10487. /**
  10488. * Register a custom macro.
  10489. *
  10490. * @param string $name
  10491. * @param object|callable $macro
  10492. * @return void
  10493. * @static
  10494. */
  10495. public static function macro($name, $macro)
  10496. {
  10497. \Illuminate\Routing\Router::macro($name, $macro);
  10498. }
  10499. /**
  10500. * Mix another object into the class.
  10501. *
  10502. * @param object $mixin
  10503. * @param bool $replace
  10504. * @return void
  10505. * @throws \ReflectionException
  10506. * @static
  10507. */
  10508. public static function mixin($mixin, $replace = true)
  10509. {
  10510. \Illuminate\Routing\Router::mixin($mixin, $replace);
  10511. }
  10512. /**
  10513. * Checks if macro is registered.
  10514. *
  10515. * @param string $name
  10516. * @return bool
  10517. * @static
  10518. */
  10519. public static function hasMacro($name)
  10520. {
  10521. return \Illuminate\Routing\Router::hasMacro($name);
  10522. }
  10523. /**
  10524. * Dynamically handle calls to the class.
  10525. *
  10526. * @param string $method
  10527. * @param array $parameters
  10528. * @return mixed
  10529. * @throws \BadMethodCallException
  10530. * @static
  10531. */
  10532. public static function macroCall($method, $parameters)
  10533. {
  10534. /** @var \Illuminate\Routing\Router $instance */
  10535. return $instance->macroCall($method, $parameters);
  10536. }
  10537. }
  10538. /**
  10539. *
  10540. *
  10541. * @see \Illuminate\Database\Schema\Builder
  10542. */
  10543. class Schema {
  10544. /**
  10545. * Determine if the given table exists.
  10546. *
  10547. * @param string $table
  10548. * @return bool
  10549. * @static
  10550. */
  10551. public static function hasTable($table)
  10552. {
  10553. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10554. return $instance->hasTable($table);
  10555. }
  10556. /**
  10557. * Get the column listing for a given table.
  10558. *
  10559. * @param string $table
  10560. * @return array
  10561. * @static
  10562. */
  10563. public static function getColumnListing($table)
  10564. {
  10565. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10566. return $instance->getColumnListing($table);
  10567. }
  10568. /**
  10569. * Drop all tables from the database.
  10570. *
  10571. * @return void
  10572. * @static
  10573. */
  10574. public static function dropAllTables()
  10575. {
  10576. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10577. $instance->dropAllTables();
  10578. }
  10579. /**
  10580. * Drop all views from the database.
  10581. *
  10582. * @return void
  10583. * @static
  10584. */
  10585. public static function dropAllViews()
  10586. {
  10587. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10588. $instance->dropAllViews();
  10589. }
  10590. /**
  10591. * Set the default string length for migrations.
  10592. *
  10593. * @param int $length
  10594. * @return void
  10595. * @static
  10596. */
  10597. public static function defaultStringLength($length)
  10598. { //Method inherited from \Illuminate\Database\Schema\Builder
  10599. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10600. }
  10601. /**
  10602. * Determine if the given table has a given column.
  10603. *
  10604. * @param string $table
  10605. * @param string $column
  10606. * @return bool
  10607. * @static
  10608. */
  10609. public static function hasColumn($table, $column)
  10610. { //Method inherited from \Illuminate\Database\Schema\Builder
  10611. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10612. return $instance->hasColumn($table, $column);
  10613. }
  10614. /**
  10615. * Determine if the given table has given columns.
  10616. *
  10617. * @param string $table
  10618. * @param array $columns
  10619. * @return bool
  10620. * @static
  10621. */
  10622. public static function hasColumns($table, $columns)
  10623. { //Method inherited from \Illuminate\Database\Schema\Builder
  10624. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10625. return $instance->hasColumns($table, $columns);
  10626. }
  10627. /**
  10628. * Get the data type for the given column name.
  10629. *
  10630. * @param string $table
  10631. * @param string $column
  10632. * @return string
  10633. * @static
  10634. */
  10635. public static function getColumnType($table, $column)
  10636. { //Method inherited from \Illuminate\Database\Schema\Builder
  10637. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10638. return $instance->getColumnType($table, $column);
  10639. }
  10640. /**
  10641. * Modify a table on the schema.
  10642. *
  10643. * @param string $table
  10644. * @param \Closure $callback
  10645. * @return void
  10646. * @static
  10647. */
  10648. public static function table($table, $callback)
  10649. { //Method inherited from \Illuminate\Database\Schema\Builder
  10650. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10651. $instance->table($table, $callback);
  10652. }
  10653. /**
  10654. * Create a new table on the schema.
  10655. *
  10656. * @param string $table
  10657. * @param \Closure $callback
  10658. * @return void
  10659. * @static
  10660. */
  10661. public static function create($table, $callback)
  10662. { //Method inherited from \Illuminate\Database\Schema\Builder
  10663. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10664. $instance->create($table, $callback);
  10665. }
  10666. /**
  10667. * Drop a table from the schema.
  10668. *
  10669. * @param string $table
  10670. * @return void
  10671. * @static
  10672. */
  10673. public static function drop($table)
  10674. { //Method inherited from \Illuminate\Database\Schema\Builder
  10675. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10676. $instance->drop($table);
  10677. }
  10678. /**
  10679. * Drop a table from the schema if it exists.
  10680. *
  10681. * @param string $table
  10682. * @return void
  10683. * @static
  10684. */
  10685. public static function dropIfExists($table)
  10686. { //Method inherited from \Illuminate\Database\Schema\Builder
  10687. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10688. $instance->dropIfExists($table);
  10689. }
  10690. /**
  10691. * Drop all types from the database.
  10692. *
  10693. * @return void
  10694. * @throws \LogicException
  10695. * @static
  10696. */
  10697. public static function dropAllTypes()
  10698. { //Method inherited from \Illuminate\Database\Schema\Builder
  10699. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10700. $instance->dropAllTypes();
  10701. }
  10702. /**
  10703. * Rename a table on the schema.
  10704. *
  10705. * @param string $from
  10706. * @param string $to
  10707. * @return void
  10708. * @static
  10709. */
  10710. public static function rename($from, $to)
  10711. { //Method inherited from \Illuminate\Database\Schema\Builder
  10712. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10713. $instance->rename($from, $to);
  10714. }
  10715. /**
  10716. * Enable foreign key constraints.
  10717. *
  10718. * @return bool
  10719. * @static
  10720. */
  10721. public static function enableForeignKeyConstraints()
  10722. { //Method inherited from \Illuminate\Database\Schema\Builder
  10723. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10724. return $instance->enableForeignKeyConstraints();
  10725. }
  10726. /**
  10727. * Disable foreign key constraints.
  10728. *
  10729. * @return bool
  10730. * @static
  10731. */
  10732. public static function disableForeignKeyConstraints()
  10733. { //Method inherited from \Illuminate\Database\Schema\Builder
  10734. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10735. return $instance->disableForeignKeyConstraints();
  10736. }
  10737. /**
  10738. * Register a custom Doctrine mapping type.
  10739. *
  10740. * @param string $class
  10741. * @param string $name
  10742. * @param string $type
  10743. * @return void
  10744. * @throws \Doctrine\DBAL\DBALException
  10745. * @static
  10746. */
  10747. public static function registerCustomDoctrineType($class, $name, $type)
  10748. { //Method inherited from \Illuminate\Database\Schema\Builder
  10749. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10750. $instance->registerCustomDoctrineType($class, $name, $type);
  10751. }
  10752. /**
  10753. * Get the database connection instance.
  10754. *
  10755. * @return \Illuminate\Database\Connection
  10756. * @static
  10757. */
  10758. public static function getConnection()
  10759. { //Method inherited from \Illuminate\Database\Schema\Builder
  10760. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10761. return $instance->getConnection();
  10762. }
  10763. /**
  10764. * Set the database connection instance.
  10765. *
  10766. * @param \Illuminate\Database\Connection $connection
  10767. * @return \Illuminate\Database\Schema\MySqlBuilder
  10768. * @static
  10769. */
  10770. public static function setConnection($connection)
  10771. { //Method inherited from \Illuminate\Database\Schema\Builder
  10772. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10773. return $instance->setConnection($connection);
  10774. }
  10775. /**
  10776. * Set the Schema Blueprint resolver callback.
  10777. *
  10778. * @param \Closure $resolver
  10779. * @return void
  10780. * @static
  10781. */
  10782. public static function blueprintResolver($resolver)
  10783. { //Method inherited from \Illuminate\Database\Schema\Builder
  10784. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10785. $instance->blueprintResolver($resolver);
  10786. }
  10787. }
  10788. /**
  10789. *
  10790. *
  10791. * @see \Illuminate\Session\SessionManager
  10792. * @see \Illuminate\Session\Store
  10793. */
  10794. class Session {
  10795. /**
  10796. * Get the session configuration.
  10797. *
  10798. * @return array
  10799. * @static
  10800. */
  10801. public static function getSessionConfig()
  10802. {
  10803. /** @var \Illuminate\Session\SessionManager $instance */
  10804. return $instance->getSessionConfig();
  10805. }
  10806. /**
  10807. * Get the default session driver name.
  10808. *
  10809. * @return string
  10810. * @static
  10811. */
  10812. public static function getDefaultDriver()
  10813. {
  10814. /** @var \Illuminate\Session\SessionManager $instance */
  10815. return $instance->getDefaultDriver();
  10816. }
  10817. /**
  10818. * Set the default session driver name.
  10819. *
  10820. * @param string $name
  10821. * @return void
  10822. * @static
  10823. */
  10824. public static function setDefaultDriver($name)
  10825. {
  10826. /** @var \Illuminate\Session\SessionManager $instance */
  10827. $instance->setDefaultDriver($name);
  10828. }
  10829. /**
  10830. * Get a driver instance.
  10831. *
  10832. * @param string $driver
  10833. * @return mixed
  10834. * @throws \InvalidArgumentException
  10835. * @static
  10836. */
  10837. public static function driver($driver = null)
  10838. { //Method inherited from \Illuminate\Support\Manager
  10839. /** @var \Illuminate\Session\SessionManager $instance */
  10840. return $instance->driver($driver);
  10841. }
  10842. /**
  10843. * Register a custom driver creator Closure.
  10844. *
  10845. * @param string $driver
  10846. * @param \Closure $callback
  10847. * @return \Illuminate\Session\SessionManager
  10848. * @static
  10849. */
  10850. public static function extend($driver, $callback)
  10851. { //Method inherited from \Illuminate\Support\Manager
  10852. /** @var \Illuminate\Session\SessionManager $instance */
  10853. return $instance->extend($driver, $callback);
  10854. }
  10855. /**
  10856. * Get all of the created "drivers".
  10857. *
  10858. * @return array
  10859. * @static
  10860. */
  10861. public static function getDrivers()
  10862. { //Method inherited from \Illuminate\Support\Manager
  10863. /** @var \Illuminate\Session\SessionManager $instance */
  10864. return $instance->getDrivers();
  10865. }
  10866. /**
  10867. * Start the session, reading the data from a handler.
  10868. *
  10869. * @return bool
  10870. * @static
  10871. */
  10872. public static function start()
  10873. {
  10874. /** @var \Illuminate\Session\Store $instance */
  10875. return $instance->start();
  10876. }
  10877. /**
  10878. * Save the session data to storage.
  10879. *
  10880. * @return void
  10881. * @static
  10882. */
  10883. public static function save()
  10884. {
  10885. /** @var \Illuminate\Session\Store $instance */
  10886. $instance->save();
  10887. }
  10888. /**
  10889. * Age the flash data for the session.
  10890. *
  10891. * @return void
  10892. * @static
  10893. */
  10894. public static function ageFlashData()
  10895. {
  10896. /** @var \Illuminate\Session\Store $instance */
  10897. $instance->ageFlashData();
  10898. }
  10899. /**
  10900. * Get all of the session data.
  10901. *
  10902. * @return array
  10903. * @static
  10904. */
  10905. public static function all()
  10906. {
  10907. /** @var \Illuminate\Session\Store $instance */
  10908. return $instance->all();
  10909. }
  10910. /**
  10911. * Get a subset of the session data.
  10912. *
  10913. * @param array $keys
  10914. * @return array
  10915. * @static
  10916. */
  10917. public static function only($keys)
  10918. {
  10919. /** @var \Illuminate\Session\Store $instance */
  10920. return $instance->only($keys);
  10921. }
  10922. /**
  10923. * Checks if a key exists.
  10924. *
  10925. * @param string|array $key
  10926. * @return bool
  10927. * @static
  10928. */
  10929. public static function exists($key)
  10930. {
  10931. /** @var \Illuminate\Session\Store $instance */
  10932. return $instance->exists($key);
  10933. }
  10934. /**
  10935. * Checks if a key is present and not null.
  10936. *
  10937. * @param string|array $key
  10938. * @return bool
  10939. * @static
  10940. */
  10941. public static function has($key)
  10942. {
  10943. /** @var \Illuminate\Session\Store $instance */
  10944. return $instance->has($key);
  10945. }
  10946. /**
  10947. * Get an item from the session.
  10948. *
  10949. * @param string $key
  10950. * @param mixed $default
  10951. * @return mixed
  10952. * @static
  10953. */
  10954. public static function get($key, $default = null)
  10955. {
  10956. /** @var \Illuminate\Session\Store $instance */
  10957. return $instance->get($key, $default);
  10958. }
  10959. /**
  10960. * Get the value of a given key and then forget it.
  10961. *
  10962. * @param string $key
  10963. * @param string|null $default
  10964. * @return mixed
  10965. * @static
  10966. */
  10967. public static function pull($key, $default = null)
  10968. {
  10969. /** @var \Illuminate\Session\Store $instance */
  10970. return $instance->pull($key, $default);
  10971. }
  10972. /**
  10973. * Determine if the session contains old input.
  10974. *
  10975. * @param string|null $key
  10976. * @return bool
  10977. * @static
  10978. */
  10979. public static function hasOldInput($key = null)
  10980. {
  10981. /** @var \Illuminate\Session\Store $instance */
  10982. return $instance->hasOldInput($key);
  10983. }
  10984. /**
  10985. * Get the requested item from the flashed input array.
  10986. *
  10987. * @param string|null $key
  10988. * @param mixed $default
  10989. * @return mixed
  10990. * @static
  10991. */
  10992. public static function getOldInput($key = null, $default = null)
  10993. {
  10994. /** @var \Illuminate\Session\Store $instance */
  10995. return $instance->getOldInput($key, $default);
  10996. }
  10997. /**
  10998. * Replace the given session attributes entirely.
  10999. *
  11000. * @param array $attributes
  11001. * @return void
  11002. * @static
  11003. */
  11004. public static function replace($attributes)
  11005. {
  11006. /** @var \Illuminate\Session\Store $instance */
  11007. $instance->replace($attributes);
  11008. }
  11009. /**
  11010. * Put a key / value pair or array of key / value pairs in the session.
  11011. *
  11012. * @param string|array $key
  11013. * @param mixed $value
  11014. * @return void
  11015. * @static
  11016. */
  11017. public static function put($key, $value = null)
  11018. {
  11019. /** @var \Illuminate\Session\Store $instance */
  11020. $instance->put($key, $value);
  11021. }
  11022. /**
  11023. * Get an item from the session, or store the default value.
  11024. *
  11025. * @param string $key
  11026. * @param \Closure $callback
  11027. * @return mixed
  11028. * @static
  11029. */
  11030. public static function remember($key, $callback)
  11031. {
  11032. /** @var \Illuminate\Session\Store $instance */
  11033. return $instance->remember($key, $callback);
  11034. }
  11035. /**
  11036. * Push a value onto a session array.
  11037. *
  11038. * @param string $key
  11039. * @param mixed $value
  11040. * @return void
  11041. * @static
  11042. */
  11043. public static function push($key, $value)
  11044. {
  11045. /** @var \Illuminate\Session\Store $instance */
  11046. $instance->push($key, $value);
  11047. }
  11048. /**
  11049. * Increment the value of an item in the session.
  11050. *
  11051. * @param string $key
  11052. * @param int $amount
  11053. * @return mixed
  11054. * @static
  11055. */
  11056. public static function increment($key, $amount = 1)
  11057. {
  11058. /** @var \Illuminate\Session\Store $instance */
  11059. return $instance->increment($key, $amount);
  11060. }
  11061. /**
  11062. * Decrement the value of an item in the session.
  11063. *
  11064. * @param string $key
  11065. * @param int $amount
  11066. * @return int
  11067. * @static
  11068. */
  11069. public static function decrement($key, $amount = 1)
  11070. {
  11071. /** @var \Illuminate\Session\Store $instance */
  11072. return $instance->decrement($key, $amount);
  11073. }
  11074. /**
  11075. * Flash a key / value pair to the session.
  11076. *
  11077. * @param string $key
  11078. * @param mixed $value
  11079. * @return void
  11080. * @static
  11081. */
  11082. public static function flash($key, $value = true)
  11083. {
  11084. /** @var \Illuminate\Session\Store $instance */
  11085. $instance->flash($key, $value);
  11086. }
  11087. /**
  11088. * Flash a key / value pair to the session for immediate use.
  11089. *
  11090. * @param string $key
  11091. * @param mixed $value
  11092. * @return void
  11093. * @static
  11094. */
  11095. public static function now($key, $value)
  11096. {
  11097. /** @var \Illuminate\Session\Store $instance */
  11098. $instance->now($key, $value);
  11099. }
  11100. /**
  11101. * Reflash all of the session flash data.
  11102. *
  11103. * @return void
  11104. * @static
  11105. */
  11106. public static function reflash()
  11107. {
  11108. /** @var \Illuminate\Session\Store $instance */
  11109. $instance->reflash();
  11110. }
  11111. /**
  11112. * Reflash a subset of the current flash data.
  11113. *
  11114. * @param array|mixed $keys
  11115. * @return void
  11116. * @static
  11117. */
  11118. public static function keep($keys = null)
  11119. {
  11120. /** @var \Illuminate\Session\Store $instance */
  11121. $instance->keep($keys);
  11122. }
  11123. /**
  11124. * Flash an input array to the session.
  11125. *
  11126. * @param array $value
  11127. * @return void
  11128. * @static
  11129. */
  11130. public static function flashInput($value)
  11131. {
  11132. /** @var \Illuminate\Session\Store $instance */
  11133. $instance->flashInput($value);
  11134. }
  11135. /**
  11136. * Remove an item from the session, returning its value.
  11137. *
  11138. * @param string $key
  11139. * @return mixed
  11140. * @static
  11141. */
  11142. public static function remove($key)
  11143. {
  11144. /** @var \Illuminate\Session\Store $instance */
  11145. return $instance->remove($key);
  11146. }
  11147. /**
  11148. * Remove one or many items from the session.
  11149. *
  11150. * @param string|array $keys
  11151. * @return void
  11152. * @static
  11153. */
  11154. public static function forget($keys)
  11155. {
  11156. /** @var \Illuminate\Session\Store $instance */
  11157. $instance->forget($keys);
  11158. }
  11159. /**
  11160. * Remove all of the items from the session.
  11161. *
  11162. * @return void
  11163. * @static
  11164. */
  11165. public static function flush()
  11166. {
  11167. /** @var \Illuminate\Session\Store $instance */
  11168. $instance->flush();
  11169. }
  11170. /**
  11171. * Flush the session data and regenerate the ID.
  11172. *
  11173. * @return bool
  11174. * @static
  11175. */
  11176. public static function invalidate()
  11177. {
  11178. /** @var \Illuminate\Session\Store $instance */
  11179. return $instance->invalidate();
  11180. }
  11181. /**
  11182. * Generate a new session identifier.
  11183. *
  11184. * @param bool $destroy
  11185. * @return bool
  11186. * @static
  11187. */
  11188. public static function regenerate($destroy = false)
  11189. {
  11190. /** @var \Illuminate\Session\Store $instance */
  11191. return $instance->regenerate($destroy);
  11192. }
  11193. /**
  11194. * Generate a new session ID for the session.
  11195. *
  11196. * @param bool $destroy
  11197. * @return bool
  11198. * @static
  11199. */
  11200. public static function migrate($destroy = false)
  11201. {
  11202. /** @var \Illuminate\Session\Store $instance */
  11203. return $instance->migrate($destroy);
  11204. }
  11205. /**
  11206. * Determine if the session has been started.
  11207. *
  11208. * @return bool
  11209. * @static
  11210. */
  11211. public static function isStarted()
  11212. {
  11213. /** @var \Illuminate\Session\Store $instance */
  11214. return $instance->isStarted();
  11215. }
  11216. /**
  11217. * Get the name of the session.
  11218. *
  11219. * @return string
  11220. * @static
  11221. */
  11222. public static function getName()
  11223. {
  11224. /** @var \Illuminate\Session\Store $instance */
  11225. return $instance->getName();
  11226. }
  11227. /**
  11228. * Set the name of the session.
  11229. *
  11230. * @param string $name
  11231. * @return void
  11232. * @static
  11233. */
  11234. public static function setName($name)
  11235. {
  11236. /** @var \Illuminate\Session\Store $instance */
  11237. $instance->setName($name);
  11238. }
  11239. /**
  11240. * Get the current session ID.
  11241. *
  11242. * @return string
  11243. * @static
  11244. */
  11245. public static function getId()
  11246. {
  11247. /** @var \Illuminate\Session\Store $instance */
  11248. return $instance->getId();
  11249. }
  11250. /**
  11251. * Set the session ID.
  11252. *
  11253. * @param string $id
  11254. * @return void
  11255. * @static
  11256. */
  11257. public static function setId($id)
  11258. {
  11259. /** @var \Illuminate\Session\Store $instance */
  11260. $instance->setId($id);
  11261. }
  11262. /**
  11263. * Determine if this is a valid session ID.
  11264. *
  11265. * @param string $id
  11266. * @return bool
  11267. * @static
  11268. */
  11269. public static function isValidId($id)
  11270. {
  11271. /** @var \Illuminate\Session\Store $instance */
  11272. return $instance->isValidId($id);
  11273. }
  11274. /**
  11275. * Set the existence of the session on the handler if applicable.
  11276. *
  11277. * @param bool $value
  11278. * @return void
  11279. * @static
  11280. */
  11281. public static function setExists($value)
  11282. {
  11283. /** @var \Illuminate\Session\Store $instance */
  11284. $instance->setExists($value);
  11285. }
  11286. /**
  11287. * Get the CSRF token value.
  11288. *
  11289. * @return string
  11290. * @static
  11291. */
  11292. public static function token()
  11293. {
  11294. /** @var \Illuminate\Session\Store $instance */
  11295. return $instance->token();
  11296. }
  11297. /**
  11298. * Regenerate the CSRF token value.
  11299. *
  11300. * @return void
  11301. * @static
  11302. */
  11303. public static function regenerateToken()
  11304. {
  11305. /** @var \Illuminate\Session\Store $instance */
  11306. $instance->regenerateToken();
  11307. }
  11308. /**
  11309. * Get the previous URL from the session.
  11310. *
  11311. * @return string|null
  11312. * @static
  11313. */
  11314. public static function previousUrl()
  11315. {
  11316. /** @var \Illuminate\Session\Store $instance */
  11317. return $instance->previousUrl();
  11318. }
  11319. /**
  11320. * Set the "previous" URL in the session.
  11321. *
  11322. * @param string $url
  11323. * @return void
  11324. * @static
  11325. */
  11326. public static function setPreviousUrl($url)
  11327. {
  11328. /** @var \Illuminate\Session\Store $instance */
  11329. $instance->setPreviousUrl($url);
  11330. }
  11331. /**
  11332. * Get the underlying session handler implementation.
  11333. *
  11334. * @return \SessionHandlerInterface
  11335. * @static
  11336. */
  11337. public static function getHandler()
  11338. {
  11339. /** @var \Illuminate\Session\Store $instance */
  11340. return $instance->getHandler();
  11341. }
  11342. /**
  11343. * Determine if the session handler needs a request.
  11344. *
  11345. * @return bool
  11346. * @static
  11347. */
  11348. public static function handlerNeedsRequest()
  11349. {
  11350. /** @var \Illuminate\Session\Store $instance */
  11351. return $instance->handlerNeedsRequest();
  11352. }
  11353. /**
  11354. * Set the request on the handler instance.
  11355. *
  11356. * @param \Illuminate\Http\Request $request
  11357. * @return void
  11358. * @static
  11359. */
  11360. public static function setRequestOnHandler($request)
  11361. {
  11362. /** @var \Illuminate\Session\Store $instance */
  11363. $instance->setRequestOnHandler($request);
  11364. }
  11365. }
  11366. /**
  11367. *
  11368. *
  11369. * @see \Illuminate\Filesystem\FilesystemManager
  11370. */
  11371. class Storage {
  11372. /**
  11373. * Get a filesystem instance.
  11374. *
  11375. * @param string|null $name
  11376. * @return \Illuminate\Filesystem\FilesystemAdapter
  11377. * @static
  11378. */
  11379. public static function drive($name = null)
  11380. {
  11381. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11382. return $instance->drive($name);
  11383. }
  11384. /**
  11385. * Get a filesystem instance.
  11386. *
  11387. * @param string|null $name
  11388. * @return \Illuminate\Filesystem\FilesystemAdapter
  11389. * @static
  11390. */
  11391. public static function disk($name = null)
  11392. {
  11393. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11394. return $instance->disk($name);
  11395. }
  11396. /**
  11397. * Get a default cloud filesystem instance.
  11398. *
  11399. * @return \Illuminate\Filesystem\FilesystemAdapter
  11400. * @static
  11401. */
  11402. public static function cloud()
  11403. {
  11404. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11405. return $instance->cloud();
  11406. }
  11407. /**
  11408. * Create an instance of the local driver.
  11409. *
  11410. * @param array $config
  11411. * @return \Illuminate\Filesystem\FilesystemAdapter
  11412. * @static
  11413. */
  11414. public static function createLocalDriver($config)
  11415. {
  11416. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11417. return $instance->createLocalDriver($config);
  11418. }
  11419. /**
  11420. * Create an instance of the ftp driver.
  11421. *
  11422. * @param array $config
  11423. * @return \Illuminate\Filesystem\FilesystemAdapter
  11424. * @static
  11425. */
  11426. public static function createFtpDriver($config)
  11427. {
  11428. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11429. return $instance->createFtpDriver($config);
  11430. }
  11431. /**
  11432. * Create an instance of the sftp driver.
  11433. *
  11434. * @param array $config
  11435. * @return \Illuminate\Filesystem\FilesystemAdapter
  11436. * @static
  11437. */
  11438. public static function createSftpDriver($config)
  11439. {
  11440. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11441. return $instance->createSftpDriver($config);
  11442. }
  11443. /**
  11444. * Create an instance of the Amazon S3 driver.
  11445. *
  11446. * @param array $config
  11447. * @return \Illuminate\Contracts\Filesystem\Cloud
  11448. * @static
  11449. */
  11450. public static function createS3Driver($config)
  11451. {
  11452. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11453. return $instance->createS3Driver($config);
  11454. }
  11455. /**
  11456. * Create an instance of the Rackspace driver.
  11457. *
  11458. * @param array $config
  11459. * @return \Illuminate\Contracts\Filesystem\Cloud
  11460. * @static
  11461. */
  11462. public static function createRackspaceDriver($config)
  11463. {
  11464. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11465. return $instance->createRackspaceDriver($config);
  11466. }
  11467. /**
  11468. * Set the given disk instance.
  11469. *
  11470. * @param string $name
  11471. * @param mixed $disk
  11472. * @return \Illuminate\Filesystem\FilesystemManager
  11473. * @static
  11474. */
  11475. public static function set($name, $disk)
  11476. {
  11477. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11478. return $instance->set($name, $disk);
  11479. }
  11480. /**
  11481. * Get the default driver name.
  11482. *
  11483. * @return string
  11484. * @static
  11485. */
  11486. public static function getDefaultDriver()
  11487. {
  11488. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11489. return $instance->getDefaultDriver();
  11490. }
  11491. /**
  11492. * Get the default cloud driver name.
  11493. *
  11494. * @return string
  11495. * @static
  11496. */
  11497. public static function getDefaultCloudDriver()
  11498. {
  11499. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11500. return $instance->getDefaultCloudDriver();
  11501. }
  11502. /**
  11503. * Unset the given disk instances.
  11504. *
  11505. * @param array|string $disk
  11506. * @return \Illuminate\Filesystem\FilesystemManager
  11507. * @static
  11508. */
  11509. public static function forgetDisk($disk)
  11510. {
  11511. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11512. return $instance->forgetDisk($disk);
  11513. }
  11514. /**
  11515. * Register a custom driver creator Closure.
  11516. *
  11517. * @param string $driver
  11518. * @param \Closure $callback
  11519. * @return \Illuminate\Filesystem\FilesystemManager
  11520. * @static
  11521. */
  11522. public static function extend($driver, $callback)
  11523. {
  11524. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11525. return $instance->extend($driver, $callback);
  11526. }
  11527. /**
  11528. * Assert that the given file exists.
  11529. *
  11530. * @param string|array $path
  11531. * @return \Illuminate\Filesystem\FilesystemAdapter
  11532. * @static
  11533. */
  11534. public static function assertExists($path)
  11535. {
  11536. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11537. return $instance->assertExists($path);
  11538. }
  11539. /**
  11540. * Assert that the given file does not exist.
  11541. *
  11542. * @param string|array $path
  11543. * @return \Illuminate\Filesystem\FilesystemAdapter
  11544. * @static
  11545. */
  11546. public static function assertMissing($path)
  11547. {
  11548. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11549. return $instance->assertMissing($path);
  11550. }
  11551. /**
  11552. * Determine if a file exists.
  11553. *
  11554. * @param string $path
  11555. * @return bool
  11556. * @static
  11557. */
  11558. public static function exists($path)
  11559. {
  11560. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11561. return $instance->exists($path);
  11562. }
  11563. /**
  11564. * Get the full path for the file at the given "short" path.
  11565. *
  11566. * @param string $path
  11567. * @return string
  11568. * @static
  11569. */
  11570. public static function path($path)
  11571. {
  11572. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11573. return $instance->path($path);
  11574. }
  11575. /**
  11576. * Get the contents of a file.
  11577. *
  11578. * @param string $path
  11579. * @return string
  11580. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11581. * @static
  11582. */
  11583. public static function get($path)
  11584. {
  11585. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11586. return $instance->get($path);
  11587. }
  11588. /**
  11589. * Create a streamed response for a given file.
  11590. *
  11591. * @param string $path
  11592. * @param string|null $name
  11593. * @param array|null $headers
  11594. * @param string|null $disposition
  11595. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11596. * @static
  11597. */
  11598. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  11599. {
  11600. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11601. return $instance->response($path, $name, $headers, $disposition);
  11602. }
  11603. /**
  11604. * Create a streamed download response for a given file.
  11605. *
  11606. * @param string $path
  11607. * @param string|null $name
  11608. * @param array|null $headers
  11609. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11610. * @static
  11611. */
  11612. public static function download($path, $name = null, $headers = [])
  11613. {
  11614. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11615. return $instance->download($path, $name, $headers);
  11616. }
  11617. /**
  11618. * Write the contents of a file.
  11619. *
  11620. * @param string $path
  11621. * @param string|resource $contents
  11622. * @param mixed $options
  11623. * @return bool
  11624. * @static
  11625. */
  11626. public static function put($path, $contents, $options = [])
  11627. {
  11628. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11629. return $instance->put($path, $contents, $options);
  11630. }
  11631. /**
  11632. * Store the uploaded file on the disk.
  11633. *
  11634. * @param string $path
  11635. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11636. * @param array $options
  11637. * @return string|false
  11638. * @static
  11639. */
  11640. public static function putFile($path, $file, $options = [])
  11641. {
  11642. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11643. return $instance->putFile($path, $file, $options);
  11644. }
  11645. /**
  11646. * Store the uploaded file on the disk with a given name.
  11647. *
  11648. * @param string $path
  11649. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11650. * @param string $name
  11651. * @param array $options
  11652. * @return string|false
  11653. * @static
  11654. */
  11655. public static function putFileAs($path, $file, $name, $options = [])
  11656. {
  11657. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11658. return $instance->putFileAs($path, $file, $name, $options);
  11659. }
  11660. /**
  11661. * Get the visibility for the given path.
  11662. *
  11663. * @param string $path
  11664. * @return string
  11665. * @static
  11666. */
  11667. public static function getVisibility($path)
  11668. {
  11669. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11670. return $instance->getVisibility($path);
  11671. }
  11672. /**
  11673. * Set the visibility for the given path.
  11674. *
  11675. * @param string $path
  11676. * @param string $visibility
  11677. * @return bool
  11678. * @static
  11679. */
  11680. public static function setVisibility($path, $visibility)
  11681. {
  11682. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11683. return $instance->setVisibility($path, $visibility);
  11684. }
  11685. /**
  11686. * Prepend to a file.
  11687. *
  11688. * @param string $path
  11689. * @param string $data
  11690. * @param string $separator
  11691. * @return bool
  11692. * @static
  11693. */
  11694. public static function prepend($path, $data, $separator = '
  11695. ')
  11696. {
  11697. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11698. return $instance->prepend($path, $data, $separator);
  11699. }
  11700. /**
  11701. * Append to a file.
  11702. *
  11703. * @param string $path
  11704. * @param string $data
  11705. * @param string $separator
  11706. * @return bool
  11707. * @static
  11708. */
  11709. public static function append($path, $data, $separator = '
  11710. ')
  11711. {
  11712. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11713. return $instance->append($path, $data, $separator);
  11714. }
  11715. /**
  11716. * Delete the file at a given path.
  11717. *
  11718. * @param string|array $paths
  11719. * @return bool
  11720. * @static
  11721. */
  11722. public static function delete($paths)
  11723. {
  11724. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11725. return $instance->delete($paths);
  11726. }
  11727. /**
  11728. * Copy a file to a new location.
  11729. *
  11730. * @param string $from
  11731. * @param string $to
  11732. * @return bool
  11733. * @static
  11734. */
  11735. public static function copy($from, $to)
  11736. {
  11737. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11738. return $instance->copy($from, $to);
  11739. }
  11740. /**
  11741. * Move a file to a new location.
  11742. *
  11743. * @param string $from
  11744. * @param string $to
  11745. * @return bool
  11746. * @static
  11747. */
  11748. public static function move($from, $to)
  11749. {
  11750. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11751. return $instance->move($from, $to);
  11752. }
  11753. /**
  11754. * Get the file size of a given file.
  11755. *
  11756. * @param string $path
  11757. * @return int
  11758. * @static
  11759. */
  11760. public static function size($path)
  11761. {
  11762. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11763. return $instance->size($path);
  11764. }
  11765. /**
  11766. * Get the mime-type of a given file.
  11767. *
  11768. * @param string $path
  11769. * @return string|false
  11770. * @static
  11771. */
  11772. public static function mimeType($path)
  11773. {
  11774. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11775. return $instance->mimeType($path);
  11776. }
  11777. /**
  11778. * Get the file's last modification time.
  11779. *
  11780. * @param string $path
  11781. * @return int
  11782. * @static
  11783. */
  11784. public static function lastModified($path)
  11785. {
  11786. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11787. return $instance->lastModified($path);
  11788. }
  11789. /**
  11790. * Get the URL for the file at the given path.
  11791. *
  11792. * @param string $path
  11793. * @return string
  11794. * @throws \RuntimeException
  11795. * @static
  11796. */
  11797. public static function url($path)
  11798. {
  11799. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11800. return $instance->url($path);
  11801. }
  11802. /**
  11803. * Get a resource to read the file.
  11804. *
  11805. * @param string $path
  11806. * @return resource|null The path resource or null on failure.
  11807. * @throws FileNotFoundException
  11808. * @static
  11809. */
  11810. public static function readStream($path)
  11811. {
  11812. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11813. return $instance->readStream($path);
  11814. }
  11815. /**
  11816. * Write a new file using a stream.
  11817. *
  11818. * @param string $path
  11819. * @param resource $resource
  11820. * @param array $options
  11821. * @return bool
  11822. * @throws \InvalidArgumentException If $resource is not a file handle.
  11823. * @throws FileExistsException
  11824. * @static
  11825. */
  11826. public static function writeStream($path, $resource, $options = [])
  11827. {
  11828. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11829. return $instance->writeStream($path, $resource, $options);
  11830. }
  11831. /**
  11832. * Get a temporary URL for the file at the given path.
  11833. *
  11834. * @param string $path
  11835. * @param \DateTimeInterface $expiration
  11836. * @param array $options
  11837. * @return string
  11838. * @throws \RuntimeException
  11839. * @static
  11840. */
  11841. public static function temporaryUrl($path, $expiration, $options = [])
  11842. {
  11843. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11844. return $instance->temporaryUrl($path, $expiration, $options);
  11845. }
  11846. /**
  11847. * Get a temporary URL for the file at the given path.
  11848. *
  11849. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11850. * @param string $path
  11851. * @param \DateTimeInterface $expiration
  11852. * @param array $options
  11853. * @return string
  11854. * @static
  11855. */
  11856. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11857. {
  11858. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11859. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11860. }
  11861. /**
  11862. * Get a temporary URL for the file at the given path.
  11863. *
  11864. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11865. * @param string $path
  11866. * @param \DateTimeInterface $expiration
  11867. * @param array $options
  11868. * @return string
  11869. * @static
  11870. */
  11871. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11872. {
  11873. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11874. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11875. }
  11876. /**
  11877. * Get an array of all files in a directory.
  11878. *
  11879. * @param string|null $directory
  11880. * @param bool $recursive
  11881. * @return array
  11882. * @static
  11883. */
  11884. public static function files($directory = null, $recursive = false)
  11885. {
  11886. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11887. return $instance->files($directory, $recursive);
  11888. }
  11889. /**
  11890. * Get all of the files from the given directory (recursive).
  11891. *
  11892. * @param string|null $directory
  11893. * @return array
  11894. * @static
  11895. */
  11896. public static function allFiles($directory = null)
  11897. {
  11898. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11899. return $instance->allFiles($directory);
  11900. }
  11901. /**
  11902. * Get all of the directories within a given directory.
  11903. *
  11904. * @param string|null $directory
  11905. * @param bool $recursive
  11906. * @return array
  11907. * @static
  11908. */
  11909. public static function directories($directory = null, $recursive = false)
  11910. {
  11911. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11912. return $instance->directories($directory, $recursive);
  11913. }
  11914. /**
  11915. * Get all (recursive) of the directories within a given directory.
  11916. *
  11917. * @param string|null $directory
  11918. * @return array
  11919. * @static
  11920. */
  11921. public static function allDirectories($directory = null)
  11922. {
  11923. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11924. return $instance->allDirectories($directory);
  11925. }
  11926. /**
  11927. * Create a directory.
  11928. *
  11929. * @param string $path
  11930. * @return bool
  11931. * @static
  11932. */
  11933. public static function makeDirectory($path)
  11934. {
  11935. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11936. return $instance->makeDirectory($path);
  11937. }
  11938. /**
  11939. * Recursively delete a directory.
  11940. *
  11941. * @param string $directory
  11942. * @return bool
  11943. * @static
  11944. */
  11945. public static function deleteDirectory($directory)
  11946. {
  11947. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11948. return $instance->deleteDirectory($directory);
  11949. }
  11950. /**
  11951. * Flush the Flysystem cache.
  11952. *
  11953. * @return void
  11954. * @static
  11955. */
  11956. public static function flushCache()
  11957. {
  11958. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11959. $instance->flushCache();
  11960. }
  11961. /**
  11962. * Get the Flysystem driver.
  11963. *
  11964. * @return \League\Flysystem\FilesystemInterface
  11965. * @static
  11966. */
  11967. public static function getDriver()
  11968. {
  11969. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11970. return $instance->getDriver();
  11971. }
  11972. }
  11973. /**
  11974. *
  11975. *
  11976. * @see \Illuminate\Routing\UrlGenerator
  11977. */
  11978. class URL {
  11979. /**
  11980. * Get the full URL for the current request.
  11981. *
  11982. * @return string
  11983. * @static
  11984. */
  11985. public static function full()
  11986. {
  11987. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11988. return $instance->full();
  11989. }
  11990. /**
  11991. * Get the current URL for the request.
  11992. *
  11993. * @return string
  11994. * @static
  11995. */
  11996. public static function current()
  11997. {
  11998. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11999. return $instance->current();
  12000. }
  12001. /**
  12002. * Get the URL for the previous request.
  12003. *
  12004. * @param mixed $fallback
  12005. * @return string
  12006. * @static
  12007. */
  12008. public static function previous($fallback = false)
  12009. {
  12010. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12011. return $instance->previous($fallback);
  12012. }
  12013. /**
  12014. * Generate an absolute URL to the given path.
  12015. *
  12016. * @param string $path
  12017. * @param mixed $extra
  12018. * @param bool|null $secure
  12019. * @return string
  12020. * @static
  12021. */
  12022. public static function to($path, $extra = [], $secure = null)
  12023. {
  12024. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12025. return $instance->to($path, $extra, $secure);
  12026. }
  12027. /**
  12028. * Generate a secure, absolute URL to the given path.
  12029. *
  12030. * @param string $path
  12031. * @param array $parameters
  12032. * @return string
  12033. * @static
  12034. */
  12035. public static function secure($path, $parameters = [])
  12036. {
  12037. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12038. return $instance->secure($path, $parameters);
  12039. }
  12040. /**
  12041. * Generate the URL to an application asset.
  12042. *
  12043. * @param string $path
  12044. * @param bool|null $secure
  12045. * @return string
  12046. * @static
  12047. */
  12048. public static function asset($path, $secure = null)
  12049. {
  12050. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12051. return $instance->asset($path, $secure);
  12052. }
  12053. /**
  12054. * Generate the URL to a secure asset.
  12055. *
  12056. * @param string $path
  12057. * @return string
  12058. * @static
  12059. */
  12060. public static function secureAsset($path)
  12061. {
  12062. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12063. return $instance->secureAsset($path);
  12064. }
  12065. /**
  12066. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  12067. *
  12068. * @param string $root
  12069. * @param string $path
  12070. * @param bool|null $secure
  12071. * @return string
  12072. * @static
  12073. */
  12074. public static function assetFrom($root, $path, $secure = null)
  12075. {
  12076. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12077. return $instance->assetFrom($root, $path, $secure);
  12078. }
  12079. /**
  12080. * Get the default scheme for a raw URL.
  12081. *
  12082. * @param bool|null $secure
  12083. * @return string
  12084. * @static
  12085. */
  12086. public static function formatScheme($secure = null)
  12087. {
  12088. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12089. return $instance->formatScheme($secure);
  12090. }
  12091. /**
  12092. * Create a signed route URL for a named route.
  12093. *
  12094. * @param string $name
  12095. * @param array $parameters
  12096. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  12097. * @param bool $absolute
  12098. * @return string
  12099. * @static
  12100. */
  12101. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  12102. {
  12103. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12104. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  12105. }
  12106. /**
  12107. * Create a temporary signed route URL for a named route.
  12108. *
  12109. * @param string $name
  12110. * @param \DateTimeInterface|\DateInterval|int $expiration
  12111. * @param array $parameters
  12112. * @param bool $absolute
  12113. * @return string
  12114. * @static
  12115. */
  12116. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  12117. {
  12118. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12119. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  12120. }
  12121. /**
  12122. * Determine if the given request has a valid signature.
  12123. *
  12124. * @param \Illuminate\Http\Request $request
  12125. * @param bool $absolute
  12126. * @return bool
  12127. * @static
  12128. */
  12129. public static function hasValidSignature($request, $absolute = true)
  12130. {
  12131. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12132. return $instance->hasValidSignature($request, $absolute);
  12133. }
  12134. /**
  12135. * Get the URL to a named route.
  12136. *
  12137. * @param string $name
  12138. * @param mixed $parameters
  12139. * @param bool $absolute
  12140. * @return string
  12141. * @throws \InvalidArgumentException
  12142. * @static
  12143. */
  12144. public static function route($name, $parameters = [], $absolute = true)
  12145. {
  12146. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12147. return $instance->route($name, $parameters, $absolute);
  12148. }
  12149. /**
  12150. * Get the URL to a controller action.
  12151. *
  12152. * @param string|array $action
  12153. * @param mixed $parameters
  12154. * @param bool $absolute
  12155. * @return string
  12156. * @throws \InvalidArgumentException
  12157. * @static
  12158. */
  12159. public static function action($action, $parameters = [], $absolute = true)
  12160. {
  12161. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12162. return $instance->action($action, $parameters, $absolute);
  12163. }
  12164. /**
  12165. * Format the array of URL parameters.
  12166. *
  12167. * @param mixed|array $parameters
  12168. * @return array
  12169. * @static
  12170. */
  12171. public static function formatParameters($parameters)
  12172. {
  12173. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12174. return $instance->formatParameters($parameters);
  12175. }
  12176. /**
  12177. * Get the base URL for the request.
  12178. *
  12179. * @param string $scheme
  12180. * @param string|null $root
  12181. * @return string
  12182. * @static
  12183. */
  12184. public static function formatRoot($scheme, $root = null)
  12185. {
  12186. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12187. return $instance->formatRoot($scheme, $root);
  12188. }
  12189. /**
  12190. * Format the given URL segments into a single URL.
  12191. *
  12192. * @param string $root
  12193. * @param string $path
  12194. * @param \Illuminate\Routing\Route|null $route
  12195. * @return string
  12196. * @static
  12197. */
  12198. public static function format($root, $path, $route = null)
  12199. {
  12200. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12201. return $instance->format($root, $path, $route);
  12202. }
  12203. /**
  12204. * Determine if the given path is a valid URL.
  12205. *
  12206. * @param string $path
  12207. * @return bool
  12208. * @static
  12209. */
  12210. public static function isValidUrl($path)
  12211. {
  12212. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12213. return $instance->isValidUrl($path);
  12214. }
  12215. /**
  12216. * Set the default named parameters used by the URL generator.
  12217. *
  12218. * @param array $defaults
  12219. * @return void
  12220. * @static
  12221. */
  12222. public static function defaults($defaults)
  12223. {
  12224. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12225. $instance->defaults($defaults);
  12226. }
  12227. /**
  12228. * Get the default named parameters used by the URL generator.
  12229. *
  12230. * @return array
  12231. * @static
  12232. */
  12233. public static function getDefaultParameters()
  12234. {
  12235. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12236. return $instance->getDefaultParameters();
  12237. }
  12238. /**
  12239. * Force the scheme for URLs.
  12240. *
  12241. * @param string $scheme
  12242. * @return void
  12243. * @static
  12244. */
  12245. public static function forceScheme($scheme)
  12246. {
  12247. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12248. $instance->forceScheme($scheme);
  12249. }
  12250. /**
  12251. * Set the forced root URL.
  12252. *
  12253. * @param string $root
  12254. * @return void
  12255. * @static
  12256. */
  12257. public static function forceRootUrl($root)
  12258. {
  12259. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12260. $instance->forceRootUrl($root);
  12261. }
  12262. /**
  12263. * Set a callback to be used to format the host of generated URLs.
  12264. *
  12265. * @param \Closure $callback
  12266. * @return \Illuminate\Routing\UrlGenerator
  12267. * @static
  12268. */
  12269. public static function formatHostUsing($callback)
  12270. {
  12271. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12272. return $instance->formatHostUsing($callback);
  12273. }
  12274. /**
  12275. * Set a callback to be used to format the path of generated URLs.
  12276. *
  12277. * @param \Closure $callback
  12278. * @return \Illuminate\Routing\UrlGenerator
  12279. * @static
  12280. */
  12281. public static function formatPathUsing($callback)
  12282. {
  12283. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12284. return $instance->formatPathUsing($callback);
  12285. }
  12286. /**
  12287. * Get the path formatter being used by the URL generator.
  12288. *
  12289. * @return \Closure
  12290. * @static
  12291. */
  12292. public static function pathFormatter()
  12293. {
  12294. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12295. return $instance->pathFormatter();
  12296. }
  12297. /**
  12298. * Get the request instance.
  12299. *
  12300. * @return \Illuminate\Http\Request
  12301. * @static
  12302. */
  12303. public static function getRequest()
  12304. {
  12305. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12306. return $instance->getRequest();
  12307. }
  12308. /**
  12309. * Set the current request instance.
  12310. *
  12311. * @param \Illuminate\Http\Request $request
  12312. * @return void
  12313. * @static
  12314. */
  12315. public static function setRequest($request)
  12316. {
  12317. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12318. $instance->setRequest($request);
  12319. }
  12320. /**
  12321. * Set the route collection.
  12322. *
  12323. * @param \Illuminate\Routing\RouteCollection $routes
  12324. * @return \Illuminate\Routing\UrlGenerator
  12325. * @static
  12326. */
  12327. public static function setRoutes($routes)
  12328. {
  12329. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12330. return $instance->setRoutes($routes);
  12331. }
  12332. /**
  12333. * Set the session resolver for the generator.
  12334. *
  12335. * @param callable $sessionResolver
  12336. * @return \Illuminate\Routing\UrlGenerator
  12337. * @static
  12338. */
  12339. public static function setSessionResolver($sessionResolver)
  12340. {
  12341. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12342. return $instance->setSessionResolver($sessionResolver);
  12343. }
  12344. /**
  12345. * Set the encryption key resolver.
  12346. *
  12347. * @param callable $keyResolver
  12348. * @return \Illuminate\Routing\UrlGenerator
  12349. * @static
  12350. */
  12351. public static function setKeyResolver($keyResolver)
  12352. {
  12353. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12354. return $instance->setKeyResolver($keyResolver);
  12355. }
  12356. /**
  12357. * Set the root controller namespace.
  12358. *
  12359. * @param string $rootNamespace
  12360. * @return \Illuminate\Routing\UrlGenerator
  12361. * @static
  12362. */
  12363. public static function setRootControllerNamespace($rootNamespace)
  12364. {
  12365. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12366. return $instance->setRootControllerNamespace($rootNamespace);
  12367. }
  12368. /**
  12369. * Register a custom macro.
  12370. *
  12371. * @param string $name
  12372. * @param object|callable $macro
  12373. * @return void
  12374. * @static
  12375. */
  12376. public static function macro($name, $macro)
  12377. {
  12378. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  12379. }
  12380. /**
  12381. * Mix another object into the class.
  12382. *
  12383. * @param object $mixin
  12384. * @param bool $replace
  12385. * @return void
  12386. * @throws \ReflectionException
  12387. * @static
  12388. */
  12389. public static function mixin($mixin, $replace = true)
  12390. {
  12391. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  12392. }
  12393. /**
  12394. * Checks if macro is registered.
  12395. *
  12396. * @param string $name
  12397. * @return bool
  12398. * @static
  12399. */
  12400. public static function hasMacro($name)
  12401. {
  12402. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  12403. }
  12404. }
  12405. /**
  12406. *
  12407. *
  12408. * @see \Illuminate\Validation\Factory
  12409. */
  12410. class Validator {
  12411. /**
  12412. * Create a new Validator instance.
  12413. *
  12414. * @param array $data
  12415. * @param array $rules
  12416. * @param array $messages
  12417. * @param array $customAttributes
  12418. * @return \Illuminate\Validation\Validator
  12419. * @static
  12420. */
  12421. public static function make($data, $rules, $messages = [], $customAttributes = [])
  12422. {
  12423. /** @var \Illuminate\Validation\Factory $instance */
  12424. return $instance->make($data, $rules, $messages, $customAttributes);
  12425. }
  12426. /**
  12427. * Validate the given data against the provided rules.
  12428. *
  12429. * @param array $data
  12430. * @param array $rules
  12431. * @param array $messages
  12432. * @param array $customAttributes
  12433. * @return array
  12434. * @throws \Illuminate\Validation\ValidationException
  12435. * @static
  12436. */
  12437. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  12438. {
  12439. /** @var \Illuminate\Validation\Factory $instance */
  12440. return $instance->validate($data, $rules, $messages, $customAttributes);
  12441. }
  12442. /**
  12443. * Register a custom validator extension.
  12444. *
  12445. * @param string $rule
  12446. * @param \Closure|string $extension
  12447. * @param string|null $message
  12448. * @return void
  12449. * @static
  12450. */
  12451. public static function extend($rule, $extension, $message = null)
  12452. {
  12453. /** @var \Illuminate\Validation\Factory $instance */
  12454. $instance->extend($rule, $extension, $message);
  12455. }
  12456. /**
  12457. * Register a custom implicit validator extension.
  12458. *
  12459. * @param string $rule
  12460. * @param \Closure|string $extension
  12461. * @param string|null $message
  12462. * @return void
  12463. * @static
  12464. */
  12465. public static function extendImplicit($rule, $extension, $message = null)
  12466. {
  12467. /** @var \Illuminate\Validation\Factory $instance */
  12468. $instance->extendImplicit($rule, $extension, $message);
  12469. }
  12470. /**
  12471. * Register a custom dependent validator extension.
  12472. *
  12473. * @param string $rule
  12474. * @param \Closure|string $extension
  12475. * @param string|null $message
  12476. * @return void
  12477. * @static
  12478. */
  12479. public static function extendDependent($rule, $extension, $message = null)
  12480. {
  12481. /** @var \Illuminate\Validation\Factory $instance */
  12482. $instance->extendDependent($rule, $extension, $message);
  12483. }
  12484. /**
  12485. * Register a custom validator message replacer.
  12486. *
  12487. * @param string $rule
  12488. * @param \Closure|string $replacer
  12489. * @return void
  12490. * @static
  12491. */
  12492. public static function replacer($rule, $replacer)
  12493. {
  12494. /** @var \Illuminate\Validation\Factory $instance */
  12495. $instance->replacer($rule, $replacer);
  12496. }
  12497. /**
  12498. * Set the Validator instance resolver.
  12499. *
  12500. * @param \Closure $resolver
  12501. * @return void
  12502. * @static
  12503. */
  12504. public static function resolver($resolver)
  12505. {
  12506. /** @var \Illuminate\Validation\Factory $instance */
  12507. $instance->resolver($resolver);
  12508. }
  12509. /**
  12510. * Get the Translator implementation.
  12511. *
  12512. * @return \Illuminate\Contracts\Translation\Translator
  12513. * @static
  12514. */
  12515. public static function getTranslator()
  12516. {
  12517. /** @var \Illuminate\Validation\Factory $instance */
  12518. return $instance->getTranslator();
  12519. }
  12520. /**
  12521. * Get the Presence Verifier implementation.
  12522. *
  12523. * @return \Illuminate\Validation\PresenceVerifierInterface
  12524. * @static
  12525. */
  12526. public static function getPresenceVerifier()
  12527. {
  12528. /** @var \Illuminate\Validation\Factory $instance */
  12529. return $instance->getPresenceVerifier();
  12530. }
  12531. /**
  12532. * Set the Presence Verifier implementation.
  12533. *
  12534. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  12535. * @return void
  12536. * @static
  12537. */
  12538. public static function setPresenceVerifier($presenceVerifier)
  12539. {
  12540. /** @var \Illuminate\Validation\Factory $instance */
  12541. $instance->setPresenceVerifier($presenceVerifier);
  12542. }
  12543. }
  12544. /**
  12545. *
  12546. *
  12547. * @see \Illuminate\View\Factory
  12548. */
  12549. class View {
  12550. /**
  12551. * Get the evaluated view contents for the given view.
  12552. *
  12553. * @param string $path
  12554. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12555. * @param array $mergeData
  12556. * @return \Illuminate\Contracts\View\View
  12557. * @static
  12558. */
  12559. public static function file($path, $data = [], $mergeData = [])
  12560. {
  12561. /** @var \Illuminate\View\Factory $instance */
  12562. return $instance->file($path, $data, $mergeData);
  12563. }
  12564. /**
  12565. * Get the evaluated view contents for the given view.
  12566. *
  12567. * @param string $view
  12568. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12569. * @param array $mergeData
  12570. * @return \Illuminate\Contracts\View\View
  12571. * @static
  12572. */
  12573. public static function make($view, $data = [], $mergeData = [])
  12574. {
  12575. /** @var \Illuminate\View\Factory $instance */
  12576. return $instance->make($view, $data, $mergeData);
  12577. }
  12578. /**
  12579. * Get the first view that actually exists from the given list.
  12580. *
  12581. * @param array $views
  12582. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12583. * @param array $mergeData
  12584. * @return \Illuminate\Contracts\View\View
  12585. * @throws \InvalidArgumentException
  12586. * @static
  12587. */
  12588. public static function first($views, $data = [], $mergeData = [])
  12589. {
  12590. /** @var \Illuminate\View\Factory $instance */
  12591. return $instance->first($views, $data, $mergeData);
  12592. }
  12593. /**
  12594. * Get the rendered content of the view based on a given condition.
  12595. *
  12596. * @param bool $condition
  12597. * @param string $view
  12598. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12599. * @param array $mergeData
  12600. * @return string
  12601. * @static
  12602. */
  12603. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  12604. {
  12605. /** @var \Illuminate\View\Factory $instance */
  12606. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12607. }
  12608. /**
  12609. * Get the rendered contents of a partial from a loop.
  12610. *
  12611. * @param string $view
  12612. * @param array $data
  12613. * @param string $iterator
  12614. * @param string $empty
  12615. * @return string
  12616. * @static
  12617. */
  12618. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12619. {
  12620. /** @var \Illuminate\View\Factory $instance */
  12621. return $instance->renderEach($view, $data, $iterator, $empty);
  12622. }
  12623. /**
  12624. * Determine if a given view exists.
  12625. *
  12626. * @param string $view
  12627. * @return bool
  12628. * @static
  12629. */
  12630. public static function exists($view)
  12631. {
  12632. /** @var \Illuminate\View\Factory $instance */
  12633. return $instance->exists($view);
  12634. }
  12635. /**
  12636. * Get the appropriate view engine for the given path.
  12637. *
  12638. * @param string $path
  12639. * @return \Illuminate\Contracts\View\Engine
  12640. * @throws \InvalidArgumentException
  12641. * @static
  12642. */
  12643. public static function getEngineFromPath($path)
  12644. {
  12645. /** @var \Illuminate\View\Factory $instance */
  12646. return $instance->getEngineFromPath($path);
  12647. }
  12648. /**
  12649. * Add a piece of shared data to the environment.
  12650. *
  12651. * @param array|string $key
  12652. * @param mixed|null $value
  12653. * @return mixed
  12654. * @static
  12655. */
  12656. public static function share($key, $value = null)
  12657. {
  12658. /** @var \Illuminate\View\Factory $instance */
  12659. return $instance->share($key, $value);
  12660. }
  12661. /**
  12662. * Increment the rendering counter.
  12663. *
  12664. * @return void
  12665. * @static
  12666. */
  12667. public static function incrementRender()
  12668. {
  12669. /** @var \Illuminate\View\Factory $instance */
  12670. $instance->incrementRender();
  12671. }
  12672. /**
  12673. * Decrement the rendering counter.
  12674. *
  12675. * @return void
  12676. * @static
  12677. */
  12678. public static function decrementRender()
  12679. {
  12680. /** @var \Illuminate\View\Factory $instance */
  12681. $instance->decrementRender();
  12682. }
  12683. /**
  12684. * Check if there are no active render operations.
  12685. *
  12686. * @return bool
  12687. * @static
  12688. */
  12689. public static function doneRendering()
  12690. {
  12691. /** @var \Illuminate\View\Factory $instance */
  12692. return $instance->doneRendering();
  12693. }
  12694. /**
  12695. * Add a location to the array of view locations.
  12696. *
  12697. * @param string $location
  12698. * @return void
  12699. * @static
  12700. */
  12701. public static function addLocation($location)
  12702. {
  12703. /** @var \Illuminate\View\Factory $instance */
  12704. $instance->addLocation($location);
  12705. }
  12706. /**
  12707. * Add a new namespace to the loader.
  12708. *
  12709. * @param string $namespace
  12710. * @param string|array $hints
  12711. * @return \Illuminate\View\Factory
  12712. * @static
  12713. */
  12714. public static function addNamespace($namespace, $hints)
  12715. {
  12716. /** @var \Illuminate\View\Factory $instance */
  12717. return $instance->addNamespace($namespace, $hints);
  12718. }
  12719. /**
  12720. * Prepend a new namespace to the loader.
  12721. *
  12722. * @param string $namespace
  12723. * @param string|array $hints
  12724. * @return \Illuminate\View\Factory
  12725. * @static
  12726. */
  12727. public static function prependNamespace($namespace, $hints)
  12728. {
  12729. /** @var \Illuminate\View\Factory $instance */
  12730. return $instance->prependNamespace($namespace, $hints);
  12731. }
  12732. /**
  12733. * Replace the namespace hints for the given namespace.
  12734. *
  12735. * @param string $namespace
  12736. * @param string|array $hints
  12737. * @return \Illuminate\View\Factory
  12738. * @static
  12739. */
  12740. public static function replaceNamespace($namespace, $hints)
  12741. {
  12742. /** @var \Illuminate\View\Factory $instance */
  12743. return $instance->replaceNamespace($namespace, $hints);
  12744. }
  12745. /**
  12746. * Register a valid view extension and its engine.
  12747. *
  12748. * @param string $extension
  12749. * @param string $engine
  12750. * @param \Closure|null $resolver
  12751. * @return void
  12752. * @static
  12753. */
  12754. public static function addExtension($extension, $engine, $resolver = null)
  12755. {
  12756. /** @var \Illuminate\View\Factory $instance */
  12757. $instance->addExtension($extension, $engine, $resolver);
  12758. }
  12759. /**
  12760. * Flush all of the factory state like sections and stacks.
  12761. *
  12762. * @return void
  12763. * @static
  12764. */
  12765. public static function flushState()
  12766. {
  12767. /** @var \Illuminate\View\Factory $instance */
  12768. $instance->flushState();
  12769. }
  12770. /**
  12771. * Flush all of the section contents if done rendering.
  12772. *
  12773. * @return void
  12774. * @static
  12775. */
  12776. public static function flushStateIfDoneRendering()
  12777. {
  12778. /** @var \Illuminate\View\Factory $instance */
  12779. $instance->flushStateIfDoneRendering();
  12780. }
  12781. /**
  12782. * Get the extension to engine bindings.
  12783. *
  12784. * @return array
  12785. * @static
  12786. */
  12787. public static function getExtensions()
  12788. {
  12789. /** @var \Illuminate\View\Factory $instance */
  12790. return $instance->getExtensions();
  12791. }
  12792. /**
  12793. * Get the engine resolver instance.
  12794. *
  12795. * @return \Illuminate\View\Engines\EngineResolver
  12796. * @static
  12797. */
  12798. public static function getEngineResolver()
  12799. {
  12800. /** @var \Illuminate\View\Factory $instance */
  12801. return $instance->getEngineResolver();
  12802. }
  12803. /**
  12804. * Get the view finder instance.
  12805. *
  12806. * @return \Illuminate\View\ViewFinderInterface
  12807. * @static
  12808. */
  12809. public static function getFinder()
  12810. {
  12811. /** @var \Illuminate\View\Factory $instance */
  12812. return $instance->getFinder();
  12813. }
  12814. /**
  12815. * Set the view finder instance.
  12816. *
  12817. * @param \Illuminate\View\ViewFinderInterface $finder
  12818. * @return void
  12819. * @static
  12820. */
  12821. public static function setFinder($finder)
  12822. {
  12823. /** @var \Illuminate\View\Factory $instance */
  12824. $instance->setFinder($finder);
  12825. }
  12826. /**
  12827. * Flush the cache of views located by the finder.
  12828. *
  12829. * @return void
  12830. * @static
  12831. */
  12832. public static function flushFinderCache()
  12833. {
  12834. /** @var \Illuminate\View\Factory $instance */
  12835. $instance->flushFinderCache();
  12836. }
  12837. /**
  12838. * Get the event dispatcher instance.
  12839. *
  12840. * @return \Illuminate\Contracts\Events\Dispatcher
  12841. * @static
  12842. */
  12843. public static function getDispatcher()
  12844. {
  12845. /** @var \Illuminate\View\Factory $instance */
  12846. return $instance->getDispatcher();
  12847. }
  12848. /**
  12849. * Set the event dispatcher instance.
  12850. *
  12851. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12852. * @return void
  12853. * @static
  12854. */
  12855. public static function setDispatcher($events)
  12856. {
  12857. /** @var \Illuminate\View\Factory $instance */
  12858. $instance->setDispatcher($events);
  12859. }
  12860. /**
  12861. * Get the IoC container instance.
  12862. *
  12863. * @return \Illuminate\Contracts\Container\Container
  12864. * @static
  12865. */
  12866. public static function getContainer()
  12867. {
  12868. /** @var \Illuminate\View\Factory $instance */
  12869. return $instance->getContainer();
  12870. }
  12871. /**
  12872. * Set the IoC container instance.
  12873. *
  12874. * @param \Illuminate\Contracts\Container\Container $container
  12875. * @return void
  12876. * @static
  12877. */
  12878. public static function setContainer($container)
  12879. {
  12880. /** @var \Illuminate\View\Factory $instance */
  12881. $instance->setContainer($container);
  12882. }
  12883. /**
  12884. * Get an item from the shared data.
  12885. *
  12886. * @param string $key
  12887. * @param mixed $default
  12888. * @return mixed
  12889. * @static
  12890. */
  12891. public static function shared($key, $default = null)
  12892. {
  12893. /** @var \Illuminate\View\Factory $instance */
  12894. return $instance->shared($key, $default);
  12895. }
  12896. /**
  12897. * Get all of the shared data for the environment.
  12898. *
  12899. * @return array
  12900. * @static
  12901. */
  12902. public static function getShared()
  12903. {
  12904. /** @var \Illuminate\View\Factory $instance */
  12905. return $instance->getShared();
  12906. }
  12907. /**
  12908. * Register a custom macro.
  12909. *
  12910. * @param string $name
  12911. * @param object|callable $macro
  12912. * @return void
  12913. * @static
  12914. */
  12915. public static function macro($name, $macro)
  12916. {
  12917. \Illuminate\View\Factory::macro($name, $macro);
  12918. }
  12919. /**
  12920. * Mix another object into the class.
  12921. *
  12922. * @param object $mixin
  12923. * @param bool $replace
  12924. * @return void
  12925. * @throws \ReflectionException
  12926. * @static
  12927. */
  12928. public static function mixin($mixin, $replace = true)
  12929. {
  12930. \Illuminate\View\Factory::mixin($mixin, $replace);
  12931. }
  12932. /**
  12933. * Checks if macro is registered.
  12934. *
  12935. * @param string $name
  12936. * @return bool
  12937. * @static
  12938. */
  12939. public static function hasMacro($name)
  12940. {
  12941. return \Illuminate\View\Factory::hasMacro($name);
  12942. }
  12943. /**
  12944. * Start a component rendering process.
  12945. *
  12946. * @param string $name
  12947. * @param array $data
  12948. * @return void
  12949. * @static
  12950. */
  12951. public static function startComponent($name, $data = [])
  12952. {
  12953. /** @var \Illuminate\View\Factory $instance */
  12954. $instance->startComponent($name, $data);
  12955. }
  12956. /**
  12957. * Get the first view that actually exists from the given list, and start a component.
  12958. *
  12959. * @param array $names
  12960. * @param array $data
  12961. * @return void
  12962. * @static
  12963. */
  12964. public static function startComponentFirst($names, $data = [])
  12965. {
  12966. /** @var \Illuminate\View\Factory $instance */
  12967. $instance->startComponentFirst($names, $data);
  12968. }
  12969. /**
  12970. * Render the current component.
  12971. *
  12972. * @return string
  12973. * @static
  12974. */
  12975. public static function renderComponent()
  12976. {
  12977. /** @var \Illuminate\View\Factory $instance */
  12978. return $instance->renderComponent();
  12979. }
  12980. /**
  12981. * Start the slot rendering process.
  12982. *
  12983. * @param string $name
  12984. * @param string|null $content
  12985. * @return void
  12986. * @static
  12987. */
  12988. public static function slot($name, $content = null)
  12989. {
  12990. /** @var \Illuminate\View\Factory $instance */
  12991. $instance->slot($name, $content);
  12992. }
  12993. /**
  12994. * Save the slot content for rendering.
  12995. *
  12996. * @return void
  12997. * @static
  12998. */
  12999. public static function endSlot()
  13000. {
  13001. /** @var \Illuminate\View\Factory $instance */
  13002. $instance->endSlot();
  13003. }
  13004. /**
  13005. * Register a view creator event.
  13006. *
  13007. * @param array|string $views
  13008. * @param \Closure|string $callback
  13009. * @return array
  13010. * @static
  13011. */
  13012. public static function creator($views, $callback)
  13013. {
  13014. /** @var \Illuminate\View\Factory $instance */
  13015. return $instance->creator($views, $callback);
  13016. }
  13017. /**
  13018. * Register multiple view composers via an array.
  13019. *
  13020. * @param array $composers
  13021. * @return array
  13022. * @static
  13023. */
  13024. public static function composers($composers)
  13025. {
  13026. /** @var \Illuminate\View\Factory $instance */
  13027. return $instance->composers($composers);
  13028. }
  13029. /**
  13030. * Register a view composer event.
  13031. *
  13032. * @param array|string $views
  13033. * @param \Closure|string $callback
  13034. * @return array
  13035. * @static
  13036. */
  13037. public static function composer($views, $callback)
  13038. {
  13039. /** @var \Illuminate\View\Factory $instance */
  13040. return $instance->composer($views, $callback);
  13041. }
  13042. /**
  13043. * Call the composer for a given view.
  13044. *
  13045. * @param \Illuminate\Contracts\View\View $view
  13046. * @return void
  13047. * @static
  13048. */
  13049. public static function callComposer($view)
  13050. {
  13051. /** @var \Illuminate\View\Factory $instance */
  13052. $instance->callComposer($view);
  13053. }
  13054. /**
  13055. * Call the creator for a given view.
  13056. *
  13057. * @param \Illuminate\Contracts\View\View $view
  13058. * @return void
  13059. * @static
  13060. */
  13061. public static function callCreator($view)
  13062. {
  13063. /** @var \Illuminate\View\Factory $instance */
  13064. $instance->callCreator($view);
  13065. }
  13066. /**
  13067. * Start injecting content into a section.
  13068. *
  13069. * @param string $section
  13070. * @param string|null $content
  13071. * @return void
  13072. * @static
  13073. */
  13074. public static function startSection($section, $content = null)
  13075. {
  13076. /** @var \Illuminate\View\Factory $instance */
  13077. $instance->startSection($section, $content);
  13078. }
  13079. /**
  13080. * Inject inline content into a section.
  13081. *
  13082. * @param string $section
  13083. * @param string $content
  13084. * @return void
  13085. * @static
  13086. */
  13087. public static function inject($section, $content)
  13088. {
  13089. /** @var \Illuminate\View\Factory $instance */
  13090. $instance->inject($section, $content);
  13091. }
  13092. /**
  13093. * Stop injecting content into a section and return its contents.
  13094. *
  13095. * @return string
  13096. * @static
  13097. */
  13098. public static function yieldSection()
  13099. {
  13100. /** @var \Illuminate\View\Factory $instance */
  13101. return $instance->yieldSection();
  13102. }
  13103. /**
  13104. * Stop injecting content into a section.
  13105. *
  13106. * @param bool $overwrite
  13107. * @return string
  13108. * @throws \InvalidArgumentException
  13109. * @static
  13110. */
  13111. public static function stopSection($overwrite = false)
  13112. {
  13113. /** @var \Illuminate\View\Factory $instance */
  13114. return $instance->stopSection($overwrite);
  13115. }
  13116. /**
  13117. * Stop injecting content into a section and append it.
  13118. *
  13119. * @return string
  13120. * @throws \InvalidArgumentException
  13121. * @static
  13122. */
  13123. public static function appendSection()
  13124. {
  13125. /** @var \Illuminate\View\Factory $instance */
  13126. return $instance->appendSection();
  13127. }
  13128. /**
  13129. * Get the string contents of a section.
  13130. *
  13131. * @param string $section
  13132. * @param string $default
  13133. * @return string
  13134. * @static
  13135. */
  13136. public static function yieldContent($section, $default = '')
  13137. {
  13138. /** @var \Illuminate\View\Factory $instance */
  13139. return $instance->yieldContent($section, $default);
  13140. }
  13141. /**
  13142. * Get the parent placeholder for the current request.
  13143. *
  13144. * @param string $section
  13145. * @return string
  13146. * @static
  13147. */
  13148. public static function parentPlaceholder($section = '')
  13149. {
  13150. return \Illuminate\View\Factory::parentPlaceholder($section);
  13151. }
  13152. /**
  13153. * Check if section exists.
  13154. *
  13155. * @param string $name
  13156. * @return bool
  13157. * @static
  13158. */
  13159. public static function hasSection($name)
  13160. {
  13161. /** @var \Illuminate\View\Factory $instance */
  13162. return $instance->hasSection($name);
  13163. }
  13164. /**
  13165. * Get the contents of a section.
  13166. *
  13167. * @param string $name
  13168. * @param string|null $default
  13169. * @return mixed
  13170. * @static
  13171. */
  13172. public static function getSection($name, $default = null)
  13173. {
  13174. /** @var \Illuminate\View\Factory $instance */
  13175. return $instance->getSection($name, $default);
  13176. }
  13177. /**
  13178. * Get the entire array of sections.
  13179. *
  13180. * @return array
  13181. * @static
  13182. */
  13183. public static function getSections()
  13184. {
  13185. /** @var \Illuminate\View\Factory $instance */
  13186. return $instance->getSections();
  13187. }
  13188. /**
  13189. * Flush all of the sections.
  13190. *
  13191. * @return void
  13192. * @static
  13193. */
  13194. public static function flushSections()
  13195. {
  13196. /** @var \Illuminate\View\Factory $instance */
  13197. $instance->flushSections();
  13198. }
  13199. /**
  13200. * Add new loop to the stack.
  13201. *
  13202. * @param \Countable|array $data
  13203. * @return void
  13204. * @static
  13205. */
  13206. public static function addLoop($data)
  13207. {
  13208. /** @var \Illuminate\View\Factory $instance */
  13209. $instance->addLoop($data);
  13210. }
  13211. /**
  13212. * Increment the top loop's indices.
  13213. *
  13214. * @return void
  13215. * @static
  13216. */
  13217. public static function incrementLoopIndices()
  13218. {
  13219. /** @var \Illuminate\View\Factory $instance */
  13220. $instance->incrementLoopIndices();
  13221. }
  13222. /**
  13223. * Pop a loop from the top of the loop stack.
  13224. *
  13225. * @return void
  13226. * @static
  13227. */
  13228. public static function popLoop()
  13229. {
  13230. /** @var \Illuminate\View\Factory $instance */
  13231. $instance->popLoop();
  13232. }
  13233. /**
  13234. * Get an instance of the last loop in the stack.
  13235. *
  13236. * @return \stdClass|null
  13237. * @static
  13238. */
  13239. public static function getLastLoop()
  13240. {
  13241. /** @var \Illuminate\View\Factory $instance */
  13242. return $instance->getLastLoop();
  13243. }
  13244. /**
  13245. * Get the entire loop stack.
  13246. *
  13247. * @return array
  13248. * @static
  13249. */
  13250. public static function getLoopStack()
  13251. {
  13252. /** @var \Illuminate\View\Factory $instance */
  13253. return $instance->getLoopStack();
  13254. }
  13255. /**
  13256. * Start injecting content into a push section.
  13257. *
  13258. * @param string $section
  13259. * @param string $content
  13260. * @return void
  13261. * @static
  13262. */
  13263. public static function startPush($section, $content = '')
  13264. {
  13265. /** @var \Illuminate\View\Factory $instance */
  13266. $instance->startPush($section, $content);
  13267. }
  13268. /**
  13269. * Stop injecting content into a push section.
  13270. *
  13271. * @return string
  13272. * @throws \InvalidArgumentException
  13273. * @static
  13274. */
  13275. public static function stopPush()
  13276. {
  13277. /** @var \Illuminate\View\Factory $instance */
  13278. return $instance->stopPush();
  13279. }
  13280. /**
  13281. * Start prepending content into a push section.
  13282. *
  13283. * @param string $section
  13284. * @param string $content
  13285. * @return void
  13286. * @static
  13287. */
  13288. public static function startPrepend($section, $content = '')
  13289. {
  13290. /** @var \Illuminate\View\Factory $instance */
  13291. $instance->startPrepend($section, $content);
  13292. }
  13293. /**
  13294. * Stop prepending content into a push section.
  13295. *
  13296. * @return string
  13297. * @throws \InvalidArgumentException
  13298. * @static
  13299. */
  13300. public static function stopPrepend()
  13301. {
  13302. /** @var \Illuminate\View\Factory $instance */
  13303. return $instance->stopPrepend();
  13304. }
  13305. /**
  13306. * Get the string contents of a push section.
  13307. *
  13308. * @param string $section
  13309. * @param string $default
  13310. * @return string
  13311. * @static
  13312. */
  13313. public static function yieldPushContent($section, $default = '')
  13314. {
  13315. /** @var \Illuminate\View\Factory $instance */
  13316. return $instance->yieldPushContent($section, $default);
  13317. }
  13318. /**
  13319. * Flush all of the stacks.
  13320. *
  13321. * @return void
  13322. * @static
  13323. */
  13324. public static function flushStacks()
  13325. {
  13326. /** @var \Illuminate\View\Factory $instance */
  13327. $instance->flushStacks();
  13328. }
  13329. /**
  13330. * Start a translation block.
  13331. *
  13332. * @param array $replacements
  13333. * @return void
  13334. * @static
  13335. */
  13336. public static function startTranslation($replacements = [])
  13337. {
  13338. /** @var \Illuminate\View\Factory $instance */
  13339. $instance->startTranslation($replacements);
  13340. }
  13341. /**
  13342. * Render the current translation.
  13343. *
  13344. * @return string
  13345. * @static
  13346. */
  13347. public static function renderTranslation()
  13348. {
  13349. /** @var \Illuminate\View\Factory $instance */
  13350. return $instance->renderTranslation();
  13351. }
  13352. }
  13353. }
  13354. namespace Illuminate\Support {
  13355. /**
  13356. *
  13357. *
  13358. */
  13359. class Arr {
  13360. }
  13361. /**
  13362. *
  13363. *
  13364. */
  13365. class Str {
  13366. }
  13367. }
  13368. namespace Barryvdh\Debugbar {
  13369. /**
  13370. *
  13371. *
  13372. * @method static void alert(string $message)
  13373. * @method static void critical(string $message)
  13374. * @method static void debug(string $message)
  13375. * @method static void emergency(string $message)
  13376. * @method static void error(string $message)
  13377. * @method static void info(string $message)
  13378. * @method static void log(string $message)
  13379. * @method static void notice(string $message)
  13380. * @method static void warning(string $message)
  13381. * @see \Barryvdh\Debugbar\LaravelDebugbar
  13382. */
  13383. class Facade {
  13384. /**
  13385. * Enable the Debugbar and boot, if not already booted.
  13386. *
  13387. * @static
  13388. */
  13389. public static function enable()
  13390. {
  13391. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13392. return $instance->enable();
  13393. }
  13394. /**
  13395. * Boot the debugbar (add collectors, renderer and listener)
  13396. *
  13397. * @static
  13398. */
  13399. public static function boot()
  13400. {
  13401. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13402. return $instance->boot();
  13403. }
  13404. /**
  13405. *
  13406. *
  13407. * @static
  13408. */
  13409. public static function shouldCollect($name, $default = false)
  13410. {
  13411. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13412. return $instance->shouldCollect($name, $default);
  13413. }
  13414. /**
  13415. * Adds a data collector
  13416. *
  13417. * @param \Barryvdh\Debugbar\DataCollectorInterface $collector
  13418. * @throws DebugBarException
  13419. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13420. * @static
  13421. */
  13422. public static function addCollector($collector)
  13423. {
  13424. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13425. return $instance->addCollector($collector);
  13426. }
  13427. /**
  13428. * Handle silenced errors
  13429. *
  13430. * @param $level
  13431. * @param $message
  13432. * @param string $file
  13433. * @param int $line
  13434. * @param array $context
  13435. * @throws \ErrorException
  13436. * @static
  13437. */
  13438. public static function handleError($level, $message, $file = '', $line = 0, $context = [])
  13439. {
  13440. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13441. return $instance->handleError($level, $message, $file, $line, $context);
  13442. }
  13443. /**
  13444. * Starts a measure
  13445. *
  13446. * @param string $name Internal name, used to stop the measure
  13447. * @param string $label Public name
  13448. * @static
  13449. */
  13450. public static function startMeasure($name, $label = null)
  13451. {
  13452. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13453. return $instance->startMeasure($name, $label);
  13454. }
  13455. /**
  13456. * Stops a measure
  13457. *
  13458. * @param string $name
  13459. * @static
  13460. */
  13461. public static function stopMeasure($name)
  13462. {
  13463. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13464. return $instance->stopMeasure($name);
  13465. }
  13466. /**
  13467. * Adds an exception to be profiled in the debug bar
  13468. *
  13469. * @param \Exception $e
  13470. * @deprecated in favor of addThrowable
  13471. * @static
  13472. */
  13473. public static function addException($e)
  13474. {
  13475. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13476. return $instance->addException($e);
  13477. }
  13478. /**
  13479. * Adds an exception to be profiled in the debug bar
  13480. *
  13481. * @param \Exception $e
  13482. * @static
  13483. */
  13484. public static function addThrowable($e)
  13485. {
  13486. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13487. return $instance->addThrowable($e);
  13488. }
  13489. /**
  13490. * Returns a JavascriptRenderer for this instance
  13491. *
  13492. * @param string $baseUrl
  13493. * @param string $basePathng
  13494. * @return \Barryvdh\Debugbar\JavascriptRenderer
  13495. * @static
  13496. */
  13497. public static function getJavascriptRenderer($baseUrl = null, $basePath = null)
  13498. {
  13499. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13500. return $instance->getJavascriptRenderer($baseUrl, $basePath);
  13501. }
  13502. /**
  13503. * Modify the response and inject the debugbar (or data in headers)
  13504. *
  13505. * @param \Symfony\Component\HttpFoundation\Request $request
  13506. * @param \Symfony\Component\HttpFoundation\Response $response
  13507. * @return \Symfony\Component\HttpFoundation\Response
  13508. * @static
  13509. */
  13510. public static function modifyResponse($request, $response)
  13511. {
  13512. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13513. return $instance->modifyResponse($request, $response);
  13514. }
  13515. /**
  13516. * Check if the Debugbar is enabled
  13517. *
  13518. * @return boolean
  13519. * @static
  13520. */
  13521. public static function isEnabled()
  13522. {
  13523. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13524. return $instance->isEnabled();
  13525. }
  13526. /**
  13527. * Collects the data from the collectors
  13528. *
  13529. * @return array
  13530. * @static
  13531. */
  13532. public static function collect()
  13533. {
  13534. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13535. return $instance->collect();
  13536. }
  13537. /**
  13538. * Injects the web debug toolbar into the given Response.
  13539. *
  13540. * @param \Symfony\Component\HttpFoundation\Response $response A Response instance
  13541. * Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php
  13542. * @static
  13543. */
  13544. public static function injectDebugbar($response)
  13545. {
  13546. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13547. return $instance->injectDebugbar($response);
  13548. }
  13549. /**
  13550. * Disable the Debugbar
  13551. *
  13552. * @static
  13553. */
  13554. public static function disable()
  13555. {
  13556. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13557. return $instance->disable();
  13558. }
  13559. /**
  13560. * Adds a measure
  13561. *
  13562. * @param string $label
  13563. * @param float $start
  13564. * @param float $end
  13565. * @static
  13566. */
  13567. public static function addMeasure($label, $start, $end)
  13568. {
  13569. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13570. return $instance->addMeasure($label, $start, $end);
  13571. }
  13572. /**
  13573. * Utility function to measure the execution of a Closure
  13574. *
  13575. * @param string $label
  13576. * @param \Closure $closure
  13577. * @static
  13578. */
  13579. public static function measure($label, $closure)
  13580. {
  13581. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13582. return $instance->measure($label, $closure);
  13583. }
  13584. /**
  13585. * Collect data in a CLI request
  13586. *
  13587. * @return array
  13588. * @static
  13589. */
  13590. public static function collectConsole()
  13591. {
  13592. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13593. return $instance->collectConsole();
  13594. }
  13595. /**
  13596. * Adds a message to the MessagesCollector
  13597. *
  13598. * A message can be anything from an object to a string
  13599. *
  13600. * @param mixed $message
  13601. * @param string $label
  13602. * @static
  13603. */
  13604. public static function addMessage($message, $label = 'info')
  13605. {
  13606. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13607. return $instance->addMessage($message, $label);
  13608. }
  13609. /**
  13610. * Checks if a data collector has been added
  13611. *
  13612. * @param string $name
  13613. * @return boolean
  13614. * @static
  13615. */
  13616. public static function hasCollector($name)
  13617. { //Method inherited from \DebugBar\DebugBar
  13618. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13619. return $instance->hasCollector($name);
  13620. }
  13621. /**
  13622. * Returns a data collector
  13623. *
  13624. * @param string $name
  13625. * @return \DebugBar\DataCollectorInterface
  13626. * @throws DebugBarException
  13627. * @static
  13628. */
  13629. public static function getCollector($name)
  13630. { //Method inherited from \DebugBar\DebugBar
  13631. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13632. return $instance->getCollector($name);
  13633. }
  13634. /**
  13635. * Returns an array of all data collectors
  13636. *
  13637. * @return \DebugBar\array[DataCollectorInterface]
  13638. * @static
  13639. */
  13640. public static function getCollectors()
  13641. { //Method inherited from \DebugBar\DebugBar
  13642. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13643. return $instance->getCollectors();
  13644. }
  13645. /**
  13646. * Sets the request id generator
  13647. *
  13648. * @param \DebugBar\RequestIdGeneratorInterface $generator
  13649. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13650. * @static
  13651. */
  13652. public static function setRequestIdGenerator($generator)
  13653. { //Method inherited from \DebugBar\DebugBar
  13654. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13655. return $instance->setRequestIdGenerator($generator);
  13656. }
  13657. /**
  13658. *
  13659. *
  13660. * @return \DebugBar\RequestIdGeneratorInterface
  13661. * @static
  13662. */
  13663. public static function getRequestIdGenerator()
  13664. { //Method inherited from \DebugBar\DebugBar
  13665. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13666. return $instance->getRequestIdGenerator();
  13667. }
  13668. /**
  13669. * Returns the id of the current request
  13670. *
  13671. * @return string
  13672. * @static
  13673. */
  13674. public static function getCurrentRequestId()
  13675. { //Method inherited from \DebugBar\DebugBar
  13676. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13677. return $instance->getCurrentRequestId();
  13678. }
  13679. /**
  13680. * Sets the storage backend to use to store the collected data
  13681. *
  13682. * @param \DebugBar\StorageInterface $storage
  13683. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13684. * @static
  13685. */
  13686. public static function setStorage($storage = null)
  13687. { //Method inherited from \DebugBar\DebugBar
  13688. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13689. return $instance->setStorage($storage);
  13690. }
  13691. /**
  13692. *
  13693. *
  13694. * @return \DebugBar\StorageInterface
  13695. * @static
  13696. */
  13697. public static function getStorage()
  13698. { //Method inherited from \DebugBar\DebugBar
  13699. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13700. return $instance->getStorage();
  13701. }
  13702. /**
  13703. * Checks if the data will be persisted
  13704. *
  13705. * @return boolean
  13706. * @static
  13707. */
  13708. public static function isDataPersisted()
  13709. { //Method inherited from \DebugBar\DebugBar
  13710. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13711. return $instance->isDataPersisted();
  13712. }
  13713. /**
  13714. * Sets the HTTP driver
  13715. *
  13716. * @param \DebugBar\HttpDriverInterface $driver
  13717. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13718. * @static
  13719. */
  13720. public static function setHttpDriver($driver)
  13721. { //Method inherited from \DebugBar\DebugBar
  13722. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13723. return $instance->setHttpDriver($driver);
  13724. }
  13725. /**
  13726. * Returns the HTTP driver
  13727. *
  13728. * If no http driver where defined, a PhpHttpDriver is automatically created
  13729. *
  13730. * @return \DebugBar\HttpDriverInterface
  13731. * @static
  13732. */
  13733. public static function getHttpDriver()
  13734. { //Method inherited from \DebugBar\DebugBar
  13735. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13736. return $instance->getHttpDriver();
  13737. }
  13738. /**
  13739. * Returns collected data
  13740. *
  13741. * Will collect the data if none have been collected yet
  13742. *
  13743. * @return array
  13744. * @static
  13745. */
  13746. public static function getData()
  13747. { //Method inherited from \DebugBar\DebugBar
  13748. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13749. return $instance->getData();
  13750. }
  13751. /**
  13752. * Returns an array of HTTP headers containing the data
  13753. *
  13754. * @param string $headerName
  13755. * @param integer $maxHeaderLength
  13756. * @return array
  13757. * @static
  13758. */
  13759. public static function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
  13760. { //Method inherited from \DebugBar\DebugBar
  13761. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13762. return $instance->getDataAsHeaders($headerName, $maxHeaderLength, $maxTotalHeaderLength);
  13763. }
  13764. /**
  13765. * Sends the data through the HTTP headers
  13766. *
  13767. * @param bool $useOpenHandler
  13768. * @param string $headerName
  13769. * @param integer $maxHeaderLength
  13770. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13771. * @static
  13772. */
  13773. public static function sendDataInHeaders($useOpenHandler = null, $headerName = 'phpdebugbar', $maxHeaderLength = 4096)
  13774. { //Method inherited from \DebugBar\DebugBar
  13775. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13776. return $instance->sendDataInHeaders($useOpenHandler, $headerName, $maxHeaderLength);
  13777. }
  13778. /**
  13779. * Stacks the data in the session for later rendering
  13780. *
  13781. * @static
  13782. */
  13783. public static function stackData()
  13784. { //Method inherited from \DebugBar\DebugBar
  13785. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13786. return $instance->stackData();
  13787. }
  13788. /**
  13789. * Checks if there is stacked data in the session
  13790. *
  13791. * @return boolean
  13792. * @static
  13793. */
  13794. public static function hasStackedData()
  13795. { //Method inherited from \DebugBar\DebugBar
  13796. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13797. return $instance->hasStackedData();
  13798. }
  13799. /**
  13800. * Returns the data stacked in the session
  13801. *
  13802. * @param boolean $delete Whether to delete the data in the session
  13803. * @return array
  13804. * @static
  13805. */
  13806. public static function getStackedData($delete = true)
  13807. { //Method inherited from \DebugBar\DebugBar
  13808. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13809. return $instance->getStackedData($delete);
  13810. }
  13811. /**
  13812. * Sets the key to use in the $_SESSION array
  13813. *
  13814. * @param string $ns
  13815. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13816. * @static
  13817. */
  13818. public static function setStackDataSessionNamespace($ns)
  13819. { //Method inherited from \DebugBar\DebugBar
  13820. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13821. return $instance->setStackDataSessionNamespace($ns);
  13822. }
  13823. /**
  13824. * Returns the key used in the $_SESSION array
  13825. *
  13826. * @return string
  13827. * @static
  13828. */
  13829. public static function getStackDataSessionNamespace()
  13830. { //Method inherited from \DebugBar\DebugBar
  13831. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13832. return $instance->getStackDataSessionNamespace();
  13833. }
  13834. /**
  13835. * Sets whether to only use the session to store stacked data even
  13836. * if a storage is enabled
  13837. *
  13838. * @param boolean $enabled
  13839. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13840. * @static
  13841. */
  13842. public static function setStackAlwaysUseSessionStorage($enabled = true)
  13843. { //Method inherited from \DebugBar\DebugBar
  13844. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13845. return $instance->setStackAlwaysUseSessionStorage($enabled);
  13846. }
  13847. /**
  13848. * Checks if the session is always used to store stacked data
  13849. * even if a storage is enabled
  13850. *
  13851. * @return boolean
  13852. * @static
  13853. */
  13854. public static function isStackAlwaysUseSessionStorage()
  13855. { //Method inherited from \DebugBar\DebugBar
  13856. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13857. return $instance->isStackAlwaysUseSessionStorage();
  13858. }
  13859. /**
  13860. *
  13861. *
  13862. * @static
  13863. */
  13864. public static function offsetSet($key, $value)
  13865. { //Method inherited from \DebugBar\DebugBar
  13866. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13867. return $instance->offsetSet($key, $value);
  13868. }
  13869. /**
  13870. *
  13871. *
  13872. * @static
  13873. */
  13874. public static function offsetGet($key)
  13875. { //Method inherited from \DebugBar\DebugBar
  13876. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13877. return $instance->offsetGet($key);
  13878. }
  13879. /**
  13880. *
  13881. *
  13882. * @static
  13883. */
  13884. public static function offsetExists($key)
  13885. { //Method inherited from \DebugBar\DebugBar
  13886. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13887. return $instance->offsetExists($key);
  13888. }
  13889. /**
  13890. *
  13891. *
  13892. * @static
  13893. */
  13894. public static function offsetUnset($key)
  13895. { //Method inherited from \DebugBar\DebugBar
  13896. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13897. return $instance->offsetUnset($key);
  13898. }
  13899. }
  13900. }
  13901. namespace Mews\Captcha\Facades {
  13902. /**
  13903. *
  13904. *
  13905. * @see \Mews\Captcha\Captcha
  13906. */
  13907. class Captcha {
  13908. /**
  13909. * Create captcha image
  13910. *
  13911. * @param string $config
  13912. * @param bool $api
  13913. * @return array|mixed
  13914. * @throws Exception
  13915. * @static
  13916. */
  13917. public static function create($config = 'default', $api = false)
  13918. {
  13919. /** @var \Mews\Captcha\Captcha $instance */
  13920. return $instance->create($config, $api);
  13921. }
  13922. /**
  13923. * Captcha check
  13924. *
  13925. * @param string $value
  13926. * @return bool
  13927. * @static
  13928. */
  13929. public static function check($value)
  13930. {
  13931. /** @var \Mews\Captcha\Captcha $instance */
  13932. return $instance->check($value);
  13933. }
  13934. /**
  13935. * Captcha check
  13936. *
  13937. * @param string $value
  13938. * @param string $key
  13939. * @param string $config
  13940. * @return bool
  13941. * @static
  13942. */
  13943. public static function check_api($value, $key, $config = 'default')
  13944. {
  13945. /** @var \Mews\Captcha\Captcha $instance */
  13946. return $instance->check_api($value, $key, $config);
  13947. }
  13948. /**
  13949. * Generate captcha image source
  13950. *
  13951. * @param string $config
  13952. * @return string
  13953. * @static
  13954. */
  13955. public static function src($config = 'default')
  13956. {
  13957. /** @var \Mews\Captcha\Captcha $instance */
  13958. return $instance->src($config);
  13959. }
  13960. /**
  13961. * Generate captcha image html tag
  13962. *
  13963. * @param string $config
  13964. * @param array $attrs $attrs -> HTML attributes supplied to the image tag where key is the attribute and the value is the attribute value
  13965. * @return string
  13966. * @static
  13967. */
  13968. public static function img($config = 'default', $attrs = [])
  13969. {
  13970. /** @var \Mews\Captcha\Captcha $instance */
  13971. return $instance->img($config, $attrs);
  13972. }
  13973. }
  13974. }
  13975. namespace Webpatser\Uuid {
  13976. /**
  13977. * Class Uuid
  13978. *
  13979. * @package Webpatser\Uuid
  13980. * @property string $bytes
  13981. * @property string $hex
  13982. * @property string $node
  13983. * @property string $string
  13984. * @property string $time
  13985. * @property string $urn
  13986. * @property string $variant
  13987. * @property string $version
  13988. */
  13989. class Uuid {
  13990. }
  13991. }
  13992. namespace Maatwebsite\Excel\Facades {
  13993. /**
  13994. *
  13995. *
  13996. */
  13997. class Excel {
  13998. /**
  13999. *
  14000. *
  14001. * @param object $export
  14002. * @param string|null $fileName
  14003. * @param string $writerType
  14004. * @param array $headers
  14005. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  14006. * @throws \PhpOffice\PhpSpreadsheet\Exception
  14007. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  14008. * @static
  14009. */
  14010. public static function download($export, $fileName, $writerType = null, $headers = [])
  14011. {
  14012. /** @var \Maatwebsite\Excel\Excel $instance */
  14013. return $instance->download($export, $fileName, $writerType, $headers);
  14014. }
  14015. /**
  14016. *
  14017. *
  14018. * @param object $export
  14019. * @param string $filePath
  14020. * @param string|null $disk
  14021. * @param string $writerType
  14022. * @param mixed $diskOptions
  14023. * @return bool
  14024. * @throws \PhpOffice\PhpSpreadsheet\Exception
  14025. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  14026. * @static
  14027. */
  14028. public static function store($export, $filePath, $diskName = null, $writerType = null, $diskOptions = [])
  14029. {
  14030. /** @var \Maatwebsite\Excel\Excel $instance */
  14031. return $instance->store($export, $filePath, $diskName, $writerType, $diskOptions);
  14032. }
  14033. /**
  14034. *
  14035. *
  14036. * @param object $export
  14037. * @param string $filePath
  14038. * @param string|null $disk
  14039. * @param string $writerType
  14040. * @param mixed $diskOptions
  14041. * @return \Illuminate\Foundation\Bus\PendingDispatch
  14042. * @static
  14043. */
  14044. public static function queue($export, $filePath, $disk = null, $writerType = null, $diskOptions = [])
  14045. {
  14046. /** @var \Maatwebsite\Excel\Excel $instance */
  14047. return $instance->queue($export, $filePath, $disk, $writerType, $diskOptions);
  14048. }
  14049. /**
  14050. *
  14051. *
  14052. * @param object $export
  14053. * @param string $writerType
  14054. * @return string
  14055. * @static
  14056. */
  14057. public static function raw($export, $writerType)
  14058. {
  14059. /** @var \Maatwebsite\Excel\Excel $instance */
  14060. return $instance->raw($export, $writerType);
  14061. }
  14062. /**
  14063. *
  14064. *
  14065. * @param object $import
  14066. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  14067. * @param string|null $disk
  14068. * @param string|null $readerType
  14069. * @return \Maatwebsite\Excel\Reader|\Illuminate\Foundation\Bus\PendingDispatch
  14070. * @static
  14071. */
  14072. public static function import($import, $filePath, $disk = null, $readerType = null)
  14073. {
  14074. /** @var \Maatwebsite\Excel\Excel $instance */
  14075. return $instance->import($import, $filePath, $disk, $readerType);
  14076. }
  14077. /**
  14078. *
  14079. *
  14080. * @param object $import
  14081. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  14082. * @param string|null $disk
  14083. * @param string|null $readerType
  14084. * @return array
  14085. * @static
  14086. */
  14087. public static function toArray($import, $filePath, $disk = null, $readerType = null)
  14088. {
  14089. /** @var \Maatwebsite\Excel\Excel $instance */
  14090. return $instance->toArray($import, $filePath, $disk, $readerType);
  14091. }
  14092. /**
  14093. *
  14094. *
  14095. * @param object $import
  14096. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  14097. * @param string|null $disk
  14098. * @param string|null $readerType
  14099. * @return \Maatwebsite\Excel\Collection
  14100. * @static
  14101. */
  14102. public static function toCollection($import, $filePath, $disk = null, $readerType = null)
  14103. {
  14104. /** @var \Maatwebsite\Excel\Excel $instance */
  14105. return $instance->toCollection($import, $filePath, $disk, $readerType);
  14106. }
  14107. /**
  14108. *
  14109. *
  14110. * @param \Maatwebsite\Excel\ShouldQueue $import
  14111. * @param string|\Symfony\Component\HttpFoundation\File\UploadedFile $filePath
  14112. * @param string|null $disk
  14113. * @param string $readerType
  14114. * @return \Illuminate\Foundation\Bus\PendingDispatch
  14115. * @static
  14116. */
  14117. public static function queueImport($import, $filePath, $disk = null, $readerType = null)
  14118. {
  14119. /** @var \Maatwebsite\Excel\Excel $instance */
  14120. return $instance->queueImport($import, $filePath, $disk, $readerType);
  14121. }
  14122. /**
  14123. *
  14124. *
  14125. * @param string $concern
  14126. * @param callable $handler
  14127. * @param string $event
  14128. * @static
  14129. */
  14130. public static function extend($concern, $handler, $event = 'Maatwebsite\\Excel\\Events\\BeforeWriting')
  14131. {
  14132. return \Maatwebsite\Excel\Excel::extend($concern, $handler, $event);
  14133. }
  14134. /**
  14135. * When asserting downloaded, stored, queued or imported, use regular expression
  14136. * to look for a matching file path.
  14137. *
  14138. * @return void
  14139. * @static
  14140. */
  14141. public static function matchByRegex()
  14142. {
  14143. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14144. $instance->matchByRegex();
  14145. }
  14146. /**
  14147. * When asserting downloaded, stored, queued or imported, use regular string
  14148. * comparison for matching file path.
  14149. *
  14150. * @return void
  14151. * @static
  14152. */
  14153. public static function doNotMatchByRegex()
  14154. {
  14155. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14156. $instance->doNotMatchByRegex();
  14157. }
  14158. /**
  14159. *
  14160. *
  14161. * @param string $fileName
  14162. * @param callable|null $callback
  14163. * @static
  14164. */
  14165. public static function assertDownloaded($fileName, $callback = null)
  14166. {
  14167. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14168. return $instance->assertDownloaded($fileName, $callback);
  14169. }
  14170. /**
  14171. *
  14172. *
  14173. * @param string $filePath
  14174. * @param string|callable|null $disk
  14175. * @param callable|null $callback
  14176. * @static
  14177. */
  14178. public static function assertStored($filePath, $disk = null, $callback = null)
  14179. {
  14180. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14181. return $instance->assertStored($filePath, $disk, $callback);
  14182. }
  14183. /**
  14184. *
  14185. *
  14186. * @param string $filePath
  14187. * @param string|callable|null $disk
  14188. * @param callable|null $callback
  14189. * @static
  14190. */
  14191. public static function assertQueued($filePath, $disk = null, $callback = null)
  14192. {
  14193. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14194. return $instance->assertQueued($filePath, $disk, $callback);
  14195. }
  14196. /**
  14197. *
  14198. *
  14199. * @static
  14200. */
  14201. public static function assertQueuedWithChain($chain)
  14202. {
  14203. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14204. return $instance->assertQueuedWithChain($chain);
  14205. }
  14206. /**
  14207. *
  14208. *
  14209. * @param string $classname
  14210. * @param callable|null $callback
  14211. * @static
  14212. */
  14213. public static function assertExportedInRaw($classname, $callback = null)
  14214. {
  14215. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14216. return $instance->assertExportedInRaw($classname, $callback);
  14217. }
  14218. /**
  14219. *
  14220. *
  14221. * @param string $filePath
  14222. * @param string|callable|null $disk
  14223. * @param callable|null $callback
  14224. * @static
  14225. */
  14226. public static function assertImported($filePath, $disk = null, $callback = null)
  14227. {
  14228. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14229. return $instance->assertImported($filePath, $disk, $callback);
  14230. }
  14231. }
  14232. }
  14233. namespace Tymon\JWTAuth\Facades {
  14234. /**
  14235. *
  14236. *
  14237. */
  14238. class JWTAuth {
  14239. /**
  14240. * Attempt to authenticate the user and return the token.
  14241. *
  14242. * @param array $credentials
  14243. * @return false|string
  14244. * @static
  14245. */
  14246. public static function attempt($credentials)
  14247. {
  14248. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14249. return $instance->attempt($credentials);
  14250. }
  14251. /**
  14252. * Authenticate a user via a token.
  14253. *
  14254. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  14255. * @static
  14256. */
  14257. public static function authenticate()
  14258. {
  14259. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14260. return $instance->authenticate();
  14261. }
  14262. /**
  14263. * Alias for authenticate().
  14264. *
  14265. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  14266. * @static
  14267. */
  14268. public static function toUser()
  14269. {
  14270. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14271. return $instance->toUser();
  14272. }
  14273. /**
  14274. * Get the authenticated user.
  14275. *
  14276. * @return \Tymon\JWTAuth\Contracts\JWTSubject
  14277. * @static
  14278. */
  14279. public static function user()
  14280. {
  14281. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14282. return $instance->user();
  14283. }
  14284. /**
  14285. * Generate a token for a given subject.
  14286. *
  14287. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  14288. * @return string
  14289. * @static
  14290. */
  14291. public static function fromSubject($subject)
  14292. { //Method inherited from \Tymon\JWTAuth\JWT
  14293. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14294. return $instance->fromSubject($subject);
  14295. }
  14296. /**
  14297. * Alias to generate a token for a given user.
  14298. *
  14299. * @param \Tymon\JWTAuth\Contracts\JWTSubject $user
  14300. * @return string
  14301. * @static
  14302. */
  14303. public static function fromUser($user)
  14304. { //Method inherited from \Tymon\JWTAuth\JWT
  14305. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14306. return $instance->fromUser($user);
  14307. }
  14308. /**
  14309. * Refresh an expired token.
  14310. *
  14311. * @param bool $forceForever
  14312. * @param bool $resetClaims
  14313. * @return string
  14314. * @static
  14315. */
  14316. public static function refresh($forceForever = false, $resetClaims = false)
  14317. { //Method inherited from \Tymon\JWTAuth\JWT
  14318. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14319. return $instance->refresh($forceForever, $resetClaims);
  14320. }
  14321. /**
  14322. * Invalidate a token (add it to the blacklist).
  14323. *
  14324. * @param bool $forceForever
  14325. * @return \Tymon\JWTAuth\JWTAuth
  14326. * @static
  14327. */
  14328. public static function invalidate($forceForever = false)
  14329. { //Method inherited from \Tymon\JWTAuth\JWT
  14330. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14331. return $instance->invalidate($forceForever);
  14332. }
  14333. /**
  14334. * Alias to get the payload, and as a result checks that
  14335. * the token is valid i.e. not expired or blacklisted.
  14336. *
  14337. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  14338. * @return \Tymon\JWTAuth\Payload
  14339. * @static
  14340. */
  14341. public static function checkOrFail()
  14342. { //Method inherited from \Tymon\JWTAuth\JWT
  14343. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14344. return $instance->checkOrFail();
  14345. }
  14346. /**
  14347. * Check that the token is valid.
  14348. *
  14349. * @param bool $getPayload
  14350. * @return \Tymon\JWTAuth\Payload|bool
  14351. * @static
  14352. */
  14353. public static function check($getPayload = false)
  14354. { //Method inherited from \Tymon\JWTAuth\JWT
  14355. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14356. return $instance->check($getPayload);
  14357. }
  14358. /**
  14359. * Get the token.
  14360. *
  14361. * @return \Tymon\JWTAuth\Token|null
  14362. * @static
  14363. */
  14364. public static function getToken()
  14365. { //Method inherited from \Tymon\JWTAuth\JWT
  14366. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14367. return $instance->getToken();
  14368. }
  14369. /**
  14370. * Parse the token from the request.
  14371. *
  14372. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  14373. * @return \Tymon\JWTAuth\JWTAuth
  14374. * @static
  14375. */
  14376. public static function parseToken()
  14377. { //Method inherited from \Tymon\JWTAuth\JWT
  14378. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14379. return $instance->parseToken();
  14380. }
  14381. /**
  14382. * Get the raw Payload instance.
  14383. *
  14384. * @return \Tymon\JWTAuth\Payload
  14385. * @static
  14386. */
  14387. public static function getPayload()
  14388. { //Method inherited from \Tymon\JWTAuth\JWT
  14389. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14390. return $instance->getPayload();
  14391. }
  14392. /**
  14393. * Alias for getPayload().
  14394. *
  14395. * @return \Tymon\JWTAuth\Payload
  14396. * @static
  14397. */
  14398. public static function payload()
  14399. { //Method inherited from \Tymon\JWTAuth\JWT
  14400. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14401. return $instance->payload();
  14402. }
  14403. /**
  14404. * Convenience method to get a claim value.
  14405. *
  14406. * @param string $claim
  14407. * @return mixed
  14408. * @static
  14409. */
  14410. public static function getClaim($claim)
  14411. { //Method inherited from \Tymon\JWTAuth\JWT
  14412. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14413. return $instance->getClaim($claim);
  14414. }
  14415. /**
  14416. * Create a Payload instance.
  14417. *
  14418. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  14419. * @return \Tymon\JWTAuth\Payload
  14420. * @static
  14421. */
  14422. public static function makePayload($subject)
  14423. { //Method inherited from \Tymon\JWTAuth\JWT
  14424. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14425. return $instance->makePayload($subject);
  14426. }
  14427. /**
  14428. * Check if the subject model matches the one saved in the token.
  14429. *
  14430. * @param string|object $model
  14431. * @return bool
  14432. * @static
  14433. */
  14434. public static function checkSubjectModel($model)
  14435. { //Method inherited from \Tymon\JWTAuth\JWT
  14436. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14437. return $instance->checkSubjectModel($model);
  14438. }
  14439. /**
  14440. * Set the token.
  14441. *
  14442. * @param \Tymon\JWTAuth\Token|string $token
  14443. * @return \Tymon\JWTAuth\JWTAuth
  14444. * @static
  14445. */
  14446. public static function setToken($token)
  14447. { //Method inherited from \Tymon\JWTAuth\JWT
  14448. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14449. return $instance->setToken($token);
  14450. }
  14451. /**
  14452. * Unset the current token.
  14453. *
  14454. * @return \Tymon\JWTAuth\JWTAuth
  14455. * @static
  14456. */
  14457. public static function unsetToken()
  14458. { //Method inherited from \Tymon\JWTAuth\JWT
  14459. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14460. return $instance->unsetToken();
  14461. }
  14462. /**
  14463. * Set the request instance.
  14464. *
  14465. * @param \Illuminate\Http\Request $request
  14466. * @return \Tymon\JWTAuth\JWTAuth
  14467. * @static
  14468. */
  14469. public static function setRequest($request)
  14470. { //Method inherited from \Tymon\JWTAuth\JWT
  14471. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14472. return $instance->setRequest($request);
  14473. }
  14474. /**
  14475. * Set whether the subject should be "locked".
  14476. *
  14477. * @param bool $lock
  14478. * @return \Tymon\JWTAuth\JWTAuth
  14479. * @static
  14480. */
  14481. public static function lockSubject($lock)
  14482. { //Method inherited from \Tymon\JWTAuth\JWT
  14483. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14484. return $instance->lockSubject($lock);
  14485. }
  14486. /**
  14487. * Get the Manager instance.
  14488. *
  14489. * @return \Tymon\JWTAuth\Manager
  14490. * @static
  14491. */
  14492. public static function manager()
  14493. { //Method inherited from \Tymon\JWTAuth\JWT
  14494. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14495. return $instance->manager();
  14496. }
  14497. /**
  14498. * Get the Parser instance.
  14499. *
  14500. * @return \Tymon\JWTAuth\Http\Parser\Parser
  14501. * @static
  14502. */
  14503. public static function parser()
  14504. { //Method inherited from \Tymon\JWTAuth\JWT
  14505. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14506. return $instance->parser();
  14507. }
  14508. /**
  14509. * Get the Payload Factory.
  14510. *
  14511. * @return \Tymon\JWTAuth\Factory
  14512. * @static
  14513. */
  14514. public static function factory()
  14515. { //Method inherited from \Tymon\JWTAuth\JWT
  14516. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14517. return $instance->factory();
  14518. }
  14519. /**
  14520. * Get the Blacklist.
  14521. *
  14522. * @return \Tymon\JWTAuth\Blacklist
  14523. * @static
  14524. */
  14525. public static function blacklist()
  14526. { //Method inherited from \Tymon\JWTAuth\JWT
  14527. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14528. return $instance->blacklist();
  14529. }
  14530. /**
  14531. * Set the custom claims.
  14532. *
  14533. * @param array $customClaims
  14534. * @return \Tymon\JWTAuth\JWTAuth
  14535. * @static
  14536. */
  14537. public static function customClaims($customClaims)
  14538. { //Method inherited from \Tymon\JWTAuth\JWT
  14539. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14540. return $instance->customClaims($customClaims);
  14541. }
  14542. /**
  14543. * Alias to set the custom claims.
  14544. *
  14545. * @param array $customClaims
  14546. * @return \Tymon\JWTAuth\JWTAuth
  14547. * @static
  14548. */
  14549. public static function claims($customClaims)
  14550. { //Method inherited from \Tymon\JWTAuth\JWT
  14551. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14552. return $instance->claims($customClaims);
  14553. }
  14554. /**
  14555. * Get the custom claims.
  14556. *
  14557. * @return array
  14558. * @static
  14559. */
  14560. public static function getCustomClaims()
  14561. { //Method inherited from \Tymon\JWTAuth\JWT
  14562. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  14563. return $instance->getCustomClaims();
  14564. }
  14565. }
  14566. /**
  14567. *
  14568. *
  14569. */
  14570. class JWTFactory {
  14571. /**
  14572. * Create the Payload instance.
  14573. *
  14574. * @param bool $resetClaims
  14575. * @return \Tymon\JWTAuth\Payload
  14576. * @static
  14577. */
  14578. public static function make($resetClaims = false)
  14579. {
  14580. /** @var \Tymon\JWTAuth\Factory $instance */
  14581. return $instance->make($resetClaims);
  14582. }
  14583. /**
  14584. * Empty the claims collection.
  14585. *
  14586. * @return \Tymon\JWTAuth\Factory
  14587. * @static
  14588. */
  14589. public static function emptyClaims()
  14590. {
  14591. /** @var \Tymon\JWTAuth\Factory $instance */
  14592. return $instance->emptyClaims();
  14593. }
  14594. /**
  14595. * Build and get the Claims Collection.
  14596. *
  14597. * @return \Tymon\JWTAuth\Claims\Collection
  14598. * @static
  14599. */
  14600. public static function buildClaimsCollection()
  14601. {
  14602. /** @var \Tymon\JWTAuth\Factory $instance */
  14603. return $instance->buildClaimsCollection();
  14604. }
  14605. /**
  14606. * Get a Payload instance with a claims collection.
  14607. *
  14608. * @param \Tymon\JWTAuth\Claims\Collection $claims
  14609. * @return \Tymon\JWTAuth\Payload
  14610. * @static
  14611. */
  14612. public static function withClaims($claims)
  14613. {
  14614. /** @var \Tymon\JWTAuth\Factory $instance */
  14615. return $instance->withClaims($claims);
  14616. }
  14617. /**
  14618. * Set the default claims to be added to the Payload.
  14619. *
  14620. * @param array $claims
  14621. * @return \Tymon\JWTAuth\Factory
  14622. * @static
  14623. */
  14624. public static function setDefaultClaims($claims)
  14625. {
  14626. /** @var \Tymon\JWTAuth\Factory $instance */
  14627. return $instance->setDefaultClaims($claims);
  14628. }
  14629. /**
  14630. * Helper to set the ttl.
  14631. *
  14632. * @param int $ttl
  14633. * @return \Tymon\JWTAuth\Factory
  14634. * @static
  14635. */
  14636. public static function setTTL($ttl)
  14637. {
  14638. /** @var \Tymon\JWTAuth\Factory $instance */
  14639. return $instance->setTTL($ttl);
  14640. }
  14641. /**
  14642. * Helper to get the ttl.
  14643. *
  14644. * @return int
  14645. * @static
  14646. */
  14647. public static function getTTL()
  14648. {
  14649. /** @var \Tymon\JWTAuth\Factory $instance */
  14650. return $instance->getTTL();
  14651. }
  14652. /**
  14653. * Get the default claims.
  14654. *
  14655. * @return array
  14656. * @static
  14657. */
  14658. public static function getDefaultClaims()
  14659. {
  14660. /** @var \Tymon\JWTAuth\Factory $instance */
  14661. return $instance->getDefaultClaims();
  14662. }
  14663. /**
  14664. * Get the PayloadValidator instance.
  14665. *
  14666. * @return \Tymon\JWTAuth\Validators\PayloadValidator
  14667. * @static
  14668. */
  14669. public static function validator()
  14670. {
  14671. /** @var \Tymon\JWTAuth\Factory $instance */
  14672. return $instance->validator();
  14673. }
  14674. /**
  14675. * Set the custom claims.
  14676. *
  14677. * @param array $customClaims
  14678. * @return \Tymon\JWTAuth\Factory
  14679. * @static
  14680. */
  14681. public static function customClaims($customClaims)
  14682. {
  14683. /** @var \Tymon\JWTAuth\Factory $instance */
  14684. return $instance->customClaims($customClaims);
  14685. }
  14686. /**
  14687. * Alias to set the custom claims.
  14688. *
  14689. * @param array $customClaims
  14690. * @return \Tymon\JWTAuth\Factory
  14691. * @static
  14692. */
  14693. public static function claims($customClaims)
  14694. {
  14695. /** @var \Tymon\JWTAuth\Factory $instance */
  14696. return $instance->claims($customClaims);
  14697. }
  14698. /**
  14699. * Get the custom claims.
  14700. *
  14701. * @return array
  14702. * @static
  14703. */
  14704. public static function getCustomClaims()
  14705. {
  14706. /** @var \Tymon\JWTAuth\Factory $instance */
  14707. return $instance->getCustomClaims();
  14708. }
  14709. /**
  14710. * Set the refresh flow flag.
  14711. *
  14712. * @param bool $refreshFlow
  14713. * @return \Tymon\JWTAuth\Factory
  14714. * @static
  14715. */
  14716. public static function setRefreshFlow($refreshFlow = true)
  14717. {
  14718. /** @var \Tymon\JWTAuth\Factory $instance */
  14719. return $instance->setRefreshFlow($refreshFlow);
  14720. }
  14721. }
  14722. }
  14723. namespace SimpleSoftwareIO\QrCode\Facades {
  14724. /**
  14725. *
  14726. *
  14727. */
  14728. class QrCode {
  14729. /**
  14730. * Generates the QrCode.
  14731. *
  14732. * @param string $text
  14733. * @param string|null $filename
  14734. * @return void|\Illuminate\Support\HtmlString|string
  14735. * @throws WriterException
  14736. * @throws InvalidArgumentException
  14737. * @static
  14738. */
  14739. public static function generate($text, $filename = null)
  14740. {
  14741. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14742. return $instance->generate($text, $filename);
  14743. }
  14744. /**
  14745. * Merges an image over the QrCode.
  14746. *
  14747. * @param string $filepath
  14748. * @param float $percentage
  14749. * @param \SimpleSoftwareIO\QrCode\SimpleSoftwareIO\QrCode\boolean|bool $absolute
  14750. * @return \Generator
  14751. * @static
  14752. */
  14753. public static function merge($filepath, $percentage = 0.2, $absolute = false)
  14754. {
  14755. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14756. return $instance->merge($filepath, $percentage, $absolute);
  14757. }
  14758. /**
  14759. * Merges an image string with the center of the QrCode.
  14760. *
  14761. * @param string $content
  14762. * @param float $percentage
  14763. * @return \Generator
  14764. * @static
  14765. */
  14766. public static function mergeString($content, $percentage = 0.2)
  14767. {
  14768. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14769. return $instance->mergeString($content, $percentage);
  14770. }
  14771. /**
  14772. * Sets the size of the QrCode.
  14773. *
  14774. * @param int $pixels
  14775. * @return \Generator
  14776. * @static
  14777. */
  14778. public static function size($pixels)
  14779. {
  14780. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14781. return $instance->size($pixels);
  14782. }
  14783. /**
  14784. * Sets the format of the QrCode.
  14785. *
  14786. * @param string $format
  14787. * @return \Generator
  14788. * @throws InvalidArgumentException
  14789. * @static
  14790. */
  14791. public static function format($format)
  14792. {
  14793. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14794. return $instance->format($format);
  14795. }
  14796. /**
  14797. * Sets the foreground color of the QrCode.
  14798. *
  14799. * @param int $red
  14800. * @param int $green
  14801. * @param int $blue
  14802. * @param null|int $alpha
  14803. * @return \Generator
  14804. * @static
  14805. */
  14806. public static function color($red, $green, $blue, $alpha = null)
  14807. {
  14808. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14809. return $instance->color($red, $green, $blue, $alpha);
  14810. }
  14811. /**
  14812. * Sets the background color of the QrCode.
  14813. *
  14814. * @param int $red
  14815. * @param int $green
  14816. * @param int $blue
  14817. * @param null|int $alpha
  14818. * @return \Generator
  14819. * @static
  14820. */
  14821. public static function backgroundColor($red, $green, $blue, $alpha = null)
  14822. {
  14823. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14824. return $instance->backgroundColor($red, $green, $blue, $alpha);
  14825. }
  14826. /**
  14827. * Sets the eye color for the provided eye index.
  14828. *
  14829. * @param int $eyeNumber
  14830. * @param int $innerRed
  14831. * @param int $innerGreen
  14832. * @param int $innerBlue
  14833. * @param int $outterRed
  14834. * @param int $outterGreen
  14835. * @param int $outterBlue
  14836. * @return \Generator
  14837. * @throws InvalidArgumentException
  14838. * @static
  14839. */
  14840. public static function eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed = 0, $outterGreen = 0, $outterBlue = 0)
  14841. {
  14842. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14843. return $instance->eyeColor($eyeNumber, $innerRed, $innerGreen, $innerBlue, $outterRed, $outterGreen, $outterBlue);
  14844. }
  14845. /**
  14846. *
  14847. *
  14848. * @static
  14849. */
  14850. public static function gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type)
  14851. {
  14852. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14853. return $instance->gradient($startRed, $startGreen, $startBlue, $endRed, $endGreen, $endBlue, $type);
  14854. }
  14855. /**
  14856. * Sets the eye style.
  14857. *
  14858. * @param string $style
  14859. * @return \Generator
  14860. * @throws InvalidArgumentException
  14861. * @static
  14862. */
  14863. public static function eye($style)
  14864. {
  14865. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14866. return $instance->eye($style);
  14867. }
  14868. /**
  14869. * Sets the style of the blocks for the QrCode.
  14870. *
  14871. * @param string $style
  14872. * @param float $size
  14873. * @return \Generator
  14874. * @throws InvalidArgumentException
  14875. * @static
  14876. */
  14877. public static function style($style, $size = 0.5)
  14878. {
  14879. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14880. return $instance->style($style, $size);
  14881. }
  14882. /**
  14883. * Sets the encoding for the QrCode.
  14884. *
  14885. * Possible values are
  14886. * ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5, ISO-8859-6,
  14887. * ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10, ISO-8859-11,
  14888. * ISO-8859-12, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16,
  14889. * SHIFT-JIS, WINDOWS-1250, WINDOWS-1251, WINDOWS-1252, WINDOWS-1256,
  14890. * UTF-16BE, UTF-8, ASCII, GBK, EUC-KR.
  14891. *
  14892. * @param string $encoding
  14893. * @return \Generator
  14894. * @static
  14895. */
  14896. public static function encoding($encoding)
  14897. {
  14898. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14899. return $instance->encoding($encoding);
  14900. }
  14901. /**
  14902. * Sets the error correction for the QrCode.
  14903. *
  14904. * L: 7% loss.
  14905. * M: 15% loss.
  14906. * Q: 25% loss.
  14907. * H: 30% loss.
  14908. *
  14909. * @param string $errorCorrection
  14910. * @return \Generator
  14911. * @static
  14912. */
  14913. public static function errorCorrection($errorCorrection)
  14914. {
  14915. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14916. return $instance->errorCorrection($errorCorrection);
  14917. }
  14918. /**
  14919. * Sets the margin of the QrCode.
  14920. *
  14921. * @param int $margin
  14922. * @return \Generator
  14923. * @static
  14924. */
  14925. public static function margin($margin)
  14926. {
  14927. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14928. return $instance->margin($margin);
  14929. }
  14930. /**
  14931. * Fetches the Writer.
  14932. *
  14933. * @param \SimpleSoftwareIO\QrCode\ImageRenderer $renderer
  14934. * @return \SimpleSoftwareIO\QrCode\Writer
  14935. * @static
  14936. */
  14937. public static function getWriter($renderer)
  14938. {
  14939. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14940. return $instance->getWriter($renderer);
  14941. }
  14942. /**
  14943. * Fetches the Image Renderer.
  14944. *
  14945. * @return \SimpleSoftwareIO\QrCode\ImageRenderer
  14946. * @static
  14947. */
  14948. public static function getRenderer()
  14949. {
  14950. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14951. return $instance->getRenderer();
  14952. }
  14953. /**
  14954. * Returns the Renderer Style.
  14955. *
  14956. * @return \SimpleSoftwareIO\QrCode\RendererStyle
  14957. * @static
  14958. */
  14959. public static function getRendererStyle()
  14960. {
  14961. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14962. return $instance->getRendererStyle();
  14963. }
  14964. /**
  14965. * Fetches the formatter.
  14966. *
  14967. * @return \SimpleSoftwareIO\QrCode\ImageBackEndInterface
  14968. * @static
  14969. */
  14970. public static function getFormatter()
  14971. {
  14972. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14973. return $instance->getFormatter();
  14974. }
  14975. /**
  14976. * Fetches the module.
  14977. *
  14978. * @return \SimpleSoftwareIO\QrCode\ModuleInterface
  14979. * @static
  14980. */
  14981. public static function getModule()
  14982. {
  14983. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14984. return $instance->getModule();
  14985. }
  14986. /**
  14987. * Fetches the eye style.
  14988. *
  14989. * @return \SimpleSoftwareIO\QrCode\EyeInterface
  14990. * @static
  14991. */
  14992. public static function getEye()
  14993. {
  14994. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  14995. return $instance->getEye();
  14996. }
  14997. /**
  14998. * Fetches the color fill.
  14999. *
  15000. * @return \SimpleSoftwareIO\QrCode\Fill
  15001. * @static
  15002. */
  15003. public static function getFill()
  15004. {
  15005. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  15006. return $instance->getFill();
  15007. }
  15008. /**
  15009. * Creates a RGB or Alpha channel color.
  15010. *
  15011. * @param int $red
  15012. * @param int $green
  15013. * @param int $blue
  15014. * @param null|int $alpha
  15015. * @return \SimpleSoftwareIO\QrCode\ColorInterface
  15016. * @static
  15017. */
  15018. public static function createColor($red, $green, $blue, $alpha = null)
  15019. {
  15020. /** @var \SimpleSoftwareIO\QrCode\Generator $instance */
  15021. return $instance->createColor($red, $green, $blue, $alpha);
  15022. }
  15023. }
  15024. }
  15025. namespace Intervention\Image\Facades {
  15026. /**
  15027. *
  15028. *
  15029. */
  15030. class Image {
  15031. /**
  15032. * Overrides configuration settings
  15033. *
  15034. * @param array $config
  15035. * @return self
  15036. * @static
  15037. */
  15038. public static function configure($config = [])
  15039. {
  15040. /** @var \Intervention\Image\ImageManager $instance */
  15041. return $instance->configure($config);
  15042. }
  15043. /**
  15044. * Initiates an Image instance from different input types
  15045. *
  15046. * @param mixed $data
  15047. * @return \Intervention\Image\Image
  15048. * @static
  15049. */
  15050. public static function make($data)
  15051. {
  15052. /** @var \Intervention\Image\ImageManager $instance */
  15053. return $instance->make($data);
  15054. }
  15055. /**
  15056. * Creates an empty image canvas
  15057. *
  15058. * @param int $width
  15059. * @param int $height
  15060. * @param mixed $background
  15061. * @return \Intervention\Image\Image
  15062. * @static
  15063. */
  15064. public static function canvas($width, $height, $background = null)
  15065. {
  15066. /** @var \Intervention\Image\ImageManager $instance */
  15067. return $instance->canvas($width, $height, $background);
  15068. }
  15069. /**
  15070. * Create new cached image and run callback
  15071. * (requires additional package intervention/imagecache)
  15072. *
  15073. * @param \Closure $callback
  15074. * @param int $lifetime
  15075. * @param boolean $returnObj
  15076. * @return \Image
  15077. * @static
  15078. */
  15079. public static function cache($callback, $lifetime = null, $returnObj = false)
  15080. {
  15081. /** @var \Intervention\Image\ImageManager $instance */
  15082. return $instance->cache($callback, $lifetime, $returnObj);
  15083. }
  15084. }
  15085. }
  15086. namespace Songshenzong\Support {
  15087. /**
  15088. * Class StringsFacade
  15089. *
  15090. * @package Songshenzong\Support
  15091. */
  15092. class StringsFacade {
  15093. /**
  15094. *
  15095. *
  15096. * @param string $string
  15097. * @return array
  15098. * @static
  15099. */
  15100. public static function toArray($string = '')
  15101. {
  15102. return \Songshenzong\Support\Strings::toArray($string);
  15103. }
  15104. /**
  15105. *
  15106. *
  15107. * @param string $string
  15108. * @return bool
  15109. * @static
  15110. */
  15111. public static function isJson($string = '')
  15112. {
  15113. return \Songshenzong\Support\Strings::isJson($string);
  15114. }
  15115. /**
  15116. *
  15117. *
  15118. * @param string $string
  15119. * @return bool
  15120. * @static
  15121. */
  15122. public static function isXml($string = '')
  15123. {
  15124. return \Songshenzong\Support\Strings::isXml($string);
  15125. }
  15126. /**
  15127. *
  15128. *
  15129. * @param string $string
  15130. * @return array
  15131. * @static
  15132. */
  15133. public static function xmlToArray($string)
  15134. {
  15135. return \Songshenzong\Support\Strings::xmlToArray($string);
  15136. }
  15137. /**
  15138. *
  15139. *
  15140. * @param string $serialized
  15141. * @return mixed
  15142. * @static
  15143. */
  15144. public static function unserialize($serialized)
  15145. {
  15146. return \Songshenzong\Support\Strings::unserialize($serialized);
  15147. }
  15148. /**
  15149. *
  15150. *
  15151. * @param string $string
  15152. * @return \stdClass|\SimpleXMLElement
  15153. * @static
  15154. */
  15155. public static function toObject($string = '')
  15156. {
  15157. return \Songshenzong\Support\Strings::toObject($string);
  15158. }
  15159. /**
  15160. *
  15161. *
  15162. * @param string $string
  15163. * @return \SimpleXMLElement
  15164. * @static
  15165. */
  15166. public static function xmlToObject($string)
  15167. {
  15168. return \Songshenzong\Support\Strings::xmlToObject($string);
  15169. }
  15170. /**
  15171. *
  15172. *
  15173. * @param string $string
  15174. * @return bool
  15175. * @static
  15176. */
  15177. public static function isSerialized($string)
  15178. {
  15179. return \Songshenzong\Support\Strings::isSerialized($string);
  15180. }
  15181. /**
  15182. *
  15183. *
  15184. * @param string $string
  15185. * @return string
  15186. * @static
  15187. */
  15188. public static function filter($string)
  15189. {
  15190. return \Songshenzong\Support\Strings::filter($string);
  15191. }
  15192. /**
  15193. *
  15194. *
  15195. * @param string $string
  15196. * @return string
  15197. * @static
  15198. */
  15199. public static function trim($string)
  15200. {
  15201. return \Songshenzong\Support\Strings::trim($string);
  15202. }
  15203. /**
  15204. * Is Set and Not Empty.
  15205. *
  15206. * @param $value
  15207. * @return bool
  15208. * @static
  15209. */
  15210. public static function isSetAndNotEmpty($value)
  15211. {
  15212. return \Songshenzong\Support\Strings::isSetAndNotEmpty($value);
  15213. }
  15214. /**
  15215. * Is Set and Not Empty and Not Null.
  15216. *
  15217. * @param $value
  15218. * @return bool
  15219. * @static
  15220. */
  15221. public static function isSetAndNotEmptyAndNotNull($value)
  15222. {
  15223. return \Songshenzong\Support\Strings::isSetAndNotEmptyAndNotNull($value);
  15224. }
  15225. /**
  15226. *
  15227. *
  15228. * @param string $uri
  15229. * @param array $parameters
  15230. * @param bool $appendsCurrentUri
  15231. * @return string
  15232. * @static
  15233. */
  15234. public static function uri($uri, $parameters = [], $appendsCurrentUri = false)
  15235. {
  15236. return \Songshenzong\Support\Strings::uri($uri, $parameters, $appendsCurrentUri);
  15237. }
  15238. /**
  15239. *
  15240. *
  15241. * @param $host
  15242. * @return bool
  15243. * @static
  15244. */
  15245. public static function host($host)
  15246. {
  15247. return \Songshenzong\Support\Strings::host($host);
  15248. }
  15249. }
  15250. }
  15251. namespace {
  15252. class App extends \Illuminate\Support\Facades\App {}
  15253. class Arr extends \Illuminate\Support\Arr {}
  15254. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  15255. class Auth extends \Illuminate\Support\Facades\Auth {}
  15256. class Blade extends \Illuminate\Support\Facades\Blade {}
  15257. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  15258. class Bus extends \Illuminate\Support\Facades\Bus {}
  15259. class Cache extends \Illuminate\Support\Facades\Cache {}
  15260. class Config extends \Illuminate\Support\Facades\Config {}
  15261. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  15262. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  15263. class DB extends \Illuminate\Support\Facades\DB {}
  15264. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  15265. /**
  15266. * Create and return an un-saved model instance.
  15267. *
  15268. * @param array $attributes
  15269. * @return \Illuminate\Database\Eloquent\Model
  15270. * @static
  15271. */
  15272. public static function make($attributes = [])
  15273. {
  15274. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15275. return $instance->make($attributes);
  15276. }
  15277. /**
  15278. * Register a new global scope.
  15279. *
  15280. * @param string $identifier
  15281. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  15282. * @return \Illuminate\Database\Eloquent\Builder|static
  15283. * @static
  15284. */
  15285. public static function withGlobalScope($identifier, $scope)
  15286. {
  15287. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15288. return $instance->withGlobalScope($identifier, $scope);
  15289. }
  15290. /**
  15291. * Remove a registered global scope.
  15292. *
  15293. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  15294. * @return \Illuminate\Database\Eloquent\Builder|static
  15295. * @static
  15296. */
  15297. public static function withoutGlobalScope($scope)
  15298. {
  15299. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15300. return $instance->withoutGlobalScope($scope);
  15301. }
  15302. /**
  15303. * Remove all or passed registered global scopes.
  15304. *
  15305. * @param array|null $scopes
  15306. * @return \Illuminate\Database\Eloquent\Builder|static
  15307. * @static
  15308. */
  15309. public static function withoutGlobalScopes($scopes = null)
  15310. {
  15311. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15312. return $instance->withoutGlobalScopes($scopes);
  15313. }
  15314. /**
  15315. * Get an array of global scopes that were removed from the query.
  15316. *
  15317. * @return array
  15318. * @static
  15319. */
  15320. public static function removedScopes()
  15321. {
  15322. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15323. return $instance->removedScopes();
  15324. }
  15325. /**
  15326. * Add a where clause on the primary key to the query.
  15327. *
  15328. * @param mixed $id
  15329. * @return \Illuminate\Database\Eloquent\Builder|static
  15330. * @static
  15331. */
  15332. public static function whereKey($id)
  15333. {
  15334. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15335. return $instance->whereKey($id);
  15336. }
  15337. /**
  15338. * Add a where clause on the primary key to the query.
  15339. *
  15340. * @param mixed $id
  15341. * @return \Illuminate\Database\Eloquent\Builder|static
  15342. * @static
  15343. */
  15344. public static function whereKeyNot($id)
  15345. {
  15346. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15347. return $instance->whereKeyNot($id);
  15348. }
  15349. /**
  15350. * Add a basic where clause to the query.
  15351. *
  15352. * @param string|array|\Closure $column
  15353. * @param mixed $operator
  15354. * @param mixed $value
  15355. * @param string $boolean
  15356. * @return \Illuminate\Database\Eloquent\Builder|static
  15357. * @static
  15358. */
  15359. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  15360. {
  15361. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15362. return $instance->where($column, $operator, $value, $boolean);
  15363. }
  15364. /**
  15365. * Add an "or where" clause to the query.
  15366. *
  15367. * @param \Closure|array|string $column
  15368. * @param mixed $operator
  15369. * @param mixed $value
  15370. * @return \Illuminate\Database\Eloquent\Builder|static
  15371. * @static
  15372. */
  15373. public static function orWhere($column, $operator = null, $value = null)
  15374. {
  15375. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15376. return $instance->orWhere($column, $operator, $value);
  15377. }
  15378. /**
  15379. * Add an "order by" clause for a timestamp to the query.
  15380. *
  15381. * @param string $column
  15382. * @return \Illuminate\Database\Eloquent\Builder|static
  15383. * @static
  15384. */
  15385. public static function latest($column = null)
  15386. {
  15387. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15388. return $instance->latest($column);
  15389. }
  15390. /**
  15391. * Add an "order by" clause for a timestamp to the query.
  15392. *
  15393. * @param string $column
  15394. * @return \Illuminate\Database\Eloquent\Builder|static
  15395. * @static
  15396. */
  15397. public static function oldest($column = null)
  15398. {
  15399. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15400. return $instance->oldest($column);
  15401. }
  15402. /**
  15403. * Create a collection of models from plain arrays.
  15404. *
  15405. * @param array $items
  15406. * @return \Illuminate\Database\Eloquent\Collection
  15407. * @static
  15408. */
  15409. public static function hydrate($items)
  15410. {
  15411. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15412. return $instance->hydrate($items);
  15413. }
  15414. /**
  15415. * Create a collection of models from a raw query.
  15416. *
  15417. * @param string $query
  15418. * @param array $bindings
  15419. * @return \Illuminate\Database\Eloquent\Collection
  15420. * @static
  15421. */
  15422. public static function fromQuery($query, $bindings = [])
  15423. {
  15424. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15425. return $instance->fromQuery($query, $bindings);
  15426. }
  15427. /**
  15428. * Find a model by its primary key.
  15429. *
  15430. * @param mixed $id
  15431. * @param array $columns
  15432. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  15433. * @static
  15434. */
  15435. public static function find($id, $columns = [])
  15436. {
  15437. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15438. return $instance->find($id, $columns);
  15439. }
  15440. /**
  15441. * Find multiple models by their primary keys.
  15442. *
  15443. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  15444. * @param array $columns
  15445. * @return \Illuminate\Database\Eloquent\Collection
  15446. * @static
  15447. */
  15448. public static function findMany($ids, $columns = [])
  15449. {
  15450. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15451. return $instance->findMany($ids, $columns);
  15452. }
  15453. /**
  15454. * Find a model by its primary key or throw an exception.
  15455. *
  15456. * @param mixed $id
  15457. * @param array $columns
  15458. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  15459. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  15460. * @static
  15461. */
  15462. public static function findOrFail($id, $columns = [])
  15463. {
  15464. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15465. return $instance->findOrFail($id, $columns);
  15466. }
  15467. /**
  15468. * Find a model by its primary key or return fresh model instance.
  15469. *
  15470. * @param mixed $id
  15471. * @param array $columns
  15472. * @return \Illuminate\Database\Eloquent\Model|static
  15473. * @static
  15474. */
  15475. public static function findOrNew($id, $columns = [])
  15476. {
  15477. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15478. return $instance->findOrNew($id, $columns);
  15479. }
  15480. /**
  15481. * Get the first record matching the attributes or instantiate it.
  15482. *
  15483. * @param array $attributes
  15484. * @param array $values
  15485. * @return \Illuminate\Database\Eloquent\Model|static
  15486. * @static
  15487. */
  15488. public static function firstOrNew($attributes, $values = [])
  15489. {
  15490. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15491. return $instance->firstOrNew($attributes, $values);
  15492. }
  15493. /**
  15494. * Get the first record matching the attributes or create it.
  15495. *
  15496. * @param array $attributes
  15497. * @param array $values
  15498. * @return \Illuminate\Database\Eloquent\Model|static
  15499. * @static
  15500. */
  15501. public static function firstOrCreate($attributes, $values = [])
  15502. {
  15503. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15504. return $instance->firstOrCreate($attributes, $values);
  15505. }
  15506. /**
  15507. * Create or update a record matching the attributes, and fill it with values.
  15508. *
  15509. * @param array $attributes
  15510. * @param array $values
  15511. * @return \Illuminate\Database\Eloquent\Model|static
  15512. * @static
  15513. */
  15514. public static function updateOrCreate($attributes, $values = [])
  15515. {
  15516. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15517. return $instance->updateOrCreate($attributes, $values);
  15518. }
  15519. /**
  15520. * Execute the query and get the first result or throw an exception.
  15521. *
  15522. * @param array $columns
  15523. * @return \Illuminate\Database\Eloquent\Model|static
  15524. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  15525. * @static
  15526. */
  15527. public static function firstOrFail($columns = [])
  15528. {
  15529. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15530. return $instance->firstOrFail($columns);
  15531. }
  15532. /**
  15533. * Execute the query and get the first result or call a callback.
  15534. *
  15535. * @param \Closure|array $columns
  15536. * @param \Closure|null $callback
  15537. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  15538. * @static
  15539. */
  15540. public static function firstOr($columns = [], $callback = null)
  15541. {
  15542. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15543. return $instance->firstOr($columns, $callback);
  15544. }
  15545. /**
  15546. * Get a single column's value from the first result of a query.
  15547. *
  15548. * @param string $column
  15549. * @return mixed
  15550. * @static
  15551. */
  15552. public static function value($column)
  15553. {
  15554. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15555. return $instance->value($column);
  15556. }
  15557. /**
  15558. * Execute the query as a "select" statement.
  15559. *
  15560. * @param array $columns
  15561. * @return \Illuminate\Database\Eloquent\Collection|static[]
  15562. * @static
  15563. */
  15564. public static function get($columns = [])
  15565. {
  15566. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15567. return $instance->get($columns);
  15568. }
  15569. /**
  15570. * Get the hydrated models without eager loading.
  15571. *
  15572. * @param array $columns
  15573. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  15574. * @static
  15575. */
  15576. public static function getModels($columns = [])
  15577. {
  15578. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15579. return $instance->getModels($columns);
  15580. }
  15581. /**
  15582. * Eager load the relationships for the models.
  15583. *
  15584. * @param array $models
  15585. * @return array
  15586. * @static
  15587. */
  15588. public static function eagerLoadRelations($models)
  15589. {
  15590. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15591. return $instance->eagerLoadRelations($models);
  15592. }
  15593. /**
  15594. * Get a generator for the given query.
  15595. *
  15596. * @return \Generator
  15597. * @static
  15598. */
  15599. public static function cursor()
  15600. {
  15601. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15602. return $instance->cursor();
  15603. }
  15604. /**
  15605. * Chunk the results of a query by comparing numeric IDs.
  15606. *
  15607. * @param int $count
  15608. * @param callable $callback
  15609. * @param string|null $column
  15610. * @param string|null $alias
  15611. * @return bool
  15612. * @static
  15613. */
  15614. public static function chunkById($count, $callback, $column = null, $alias = null)
  15615. {
  15616. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15617. return $instance->chunkById($count, $callback, $column, $alias);
  15618. }
  15619. /**
  15620. * Get an array with the values of a given column.
  15621. *
  15622. * @param string $column
  15623. * @param string|null $key
  15624. * @return \Illuminate\Support\Collection
  15625. * @static
  15626. */
  15627. public static function pluck($column, $key = null)
  15628. {
  15629. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15630. return $instance->pluck($column, $key);
  15631. }
  15632. /**
  15633. * Paginate the given query.
  15634. *
  15635. * @param int $perPage
  15636. * @param array $columns
  15637. * @param string $pageName
  15638. * @param int|null $page
  15639. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  15640. * @throws \InvalidArgumentException
  15641. * @static
  15642. */
  15643. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15644. {
  15645. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15646. return $instance->paginate($perPage, $columns, $pageName, $page);
  15647. }
  15648. /**
  15649. * Paginate the given query into a simple paginator.
  15650. *
  15651. * @param int $perPage
  15652. * @param array $columns
  15653. * @param string $pageName
  15654. * @param int|null $page
  15655. * @return \Illuminate\Contracts\Pagination\Paginator
  15656. * @static
  15657. */
  15658. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15659. {
  15660. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15661. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  15662. }
  15663. /**
  15664. * Save a new model and return the instance.
  15665. *
  15666. * @param array $attributes
  15667. * @return \Illuminate\Database\Eloquent\Model|$this
  15668. * @static
  15669. */
  15670. public static function create($attributes = [])
  15671. {
  15672. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15673. return $instance->create($attributes);
  15674. }
  15675. /**
  15676. * Save a new model and return the instance. Allow mass-assignment.
  15677. *
  15678. * @param array $attributes
  15679. * @return \Illuminate\Database\Eloquent\Model|$this
  15680. * @static
  15681. */
  15682. public static function forceCreate($attributes)
  15683. {
  15684. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15685. return $instance->forceCreate($attributes);
  15686. }
  15687. /**
  15688. * Register a replacement for the default delete function.
  15689. *
  15690. * @param \Closure $callback
  15691. * @return void
  15692. * @static
  15693. */
  15694. public static function onDelete($callback)
  15695. {
  15696. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15697. $instance->onDelete($callback);
  15698. }
  15699. /**
  15700. * Call the given local model scopes.
  15701. *
  15702. * @param array $scopes
  15703. * @return static|mixed
  15704. * @static
  15705. */
  15706. public static function scopes($scopes)
  15707. {
  15708. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15709. return $instance->scopes($scopes);
  15710. }
  15711. /**
  15712. * Apply the scopes to the Eloquent builder instance and return it.
  15713. *
  15714. * @return static
  15715. * @static
  15716. */
  15717. public static function applyScopes()
  15718. {
  15719. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15720. return $instance->applyScopes();
  15721. }
  15722. /**
  15723. * Prevent the specified relations from being eager loaded.
  15724. *
  15725. * @param mixed $relations
  15726. * @return \Illuminate\Database\Eloquent\Builder|static
  15727. * @static
  15728. */
  15729. public static function without($relations)
  15730. {
  15731. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15732. return $instance->without($relations);
  15733. }
  15734. /**
  15735. * Create a new instance of the model being queried.
  15736. *
  15737. * @param array $attributes
  15738. * @return \Illuminate\Database\Eloquent\Model|static
  15739. * @static
  15740. */
  15741. public static function newModelInstance($attributes = [])
  15742. {
  15743. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15744. return $instance->newModelInstance($attributes);
  15745. }
  15746. /**
  15747. * Get the underlying query builder instance.
  15748. *
  15749. * @return \Illuminate\Database\Query\Builder
  15750. * @static
  15751. */
  15752. public static function getQuery()
  15753. {
  15754. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15755. return $instance->getQuery();
  15756. }
  15757. /**
  15758. * Set the underlying query builder instance.
  15759. *
  15760. * @param \Illuminate\Database\Query\Builder $query
  15761. * @return \Illuminate\Database\Eloquent\Builder|static
  15762. * @static
  15763. */
  15764. public static function setQuery($query)
  15765. {
  15766. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15767. return $instance->setQuery($query);
  15768. }
  15769. /**
  15770. * Get a base query builder instance.
  15771. *
  15772. * @return \Illuminate\Database\Query\Builder
  15773. * @static
  15774. */
  15775. public static function toBase()
  15776. {
  15777. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15778. return $instance->toBase();
  15779. }
  15780. /**
  15781. * Get the relationships being eagerly loaded.
  15782. *
  15783. * @return array
  15784. * @static
  15785. */
  15786. public static function getEagerLoads()
  15787. {
  15788. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15789. return $instance->getEagerLoads();
  15790. }
  15791. /**
  15792. * Set the relationships being eagerly loaded.
  15793. *
  15794. * @param array $eagerLoad
  15795. * @return \Illuminate\Database\Eloquent\Builder|static
  15796. * @static
  15797. */
  15798. public static function setEagerLoads($eagerLoad)
  15799. {
  15800. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15801. return $instance->setEagerLoads($eagerLoad);
  15802. }
  15803. /**
  15804. * Get the model instance being queried.
  15805. *
  15806. * @return \Illuminate\Database\Eloquent\Model|static
  15807. * @static
  15808. */
  15809. public static function getModel()
  15810. {
  15811. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15812. return $instance->getModel();
  15813. }
  15814. /**
  15815. * Set a model instance for the model being queried.
  15816. *
  15817. * @param \Illuminate\Database\Eloquent\Model $model
  15818. * @return \Illuminate\Database\Eloquent\Builder|static
  15819. * @static
  15820. */
  15821. public static function setModel($model)
  15822. {
  15823. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15824. return $instance->setModel($model);
  15825. }
  15826. /**
  15827. * Get the given macro by name.
  15828. *
  15829. * @param string $name
  15830. * @return \Closure
  15831. * @static
  15832. */
  15833. public static function getMacro($name)
  15834. {
  15835. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15836. return $instance->getMacro($name);
  15837. }
  15838. /**
  15839. * Chunk the results of the query.
  15840. *
  15841. * @param int $count
  15842. * @param callable $callback
  15843. * @return bool
  15844. * @static
  15845. */
  15846. public static function chunk($count, $callback)
  15847. {
  15848. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15849. return $instance->chunk($count, $callback);
  15850. }
  15851. /**
  15852. * Execute a callback over each item while chunking.
  15853. *
  15854. * @param callable $callback
  15855. * @param int $count
  15856. * @return bool
  15857. * @static
  15858. */
  15859. public static function each($callback, $count = 1000)
  15860. {
  15861. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15862. return $instance->each($callback, $count);
  15863. }
  15864. /**
  15865. * Execute the query and get the first result.
  15866. *
  15867. * @param array $columns
  15868. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15869. * @static
  15870. */
  15871. public static function first($columns = [])
  15872. {
  15873. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15874. return $instance->first($columns);
  15875. }
  15876. /**
  15877. * Apply the callback's query changes if the given "value" is true.
  15878. *
  15879. * @param mixed $value
  15880. * @param callable $callback
  15881. * @param callable|null $default
  15882. * @return mixed|$this
  15883. * @static
  15884. */
  15885. public static function when($value, $callback, $default = null)
  15886. {
  15887. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15888. return $instance->when($value, $callback, $default);
  15889. }
  15890. /**
  15891. * Pass the query to a given callback.
  15892. *
  15893. * @param callable $callback
  15894. * @return \Illuminate\Database\Query\Builder
  15895. * @static
  15896. */
  15897. public static function tap($callback)
  15898. {
  15899. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15900. return $instance->tap($callback);
  15901. }
  15902. /**
  15903. * Apply the callback's query changes if the given "value" is false.
  15904. *
  15905. * @param mixed $value
  15906. * @param callable $callback
  15907. * @param callable|null $default
  15908. * @return mixed|$this
  15909. * @static
  15910. */
  15911. public static function unless($value, $callback, $default = null)
  15912. {
  15913. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15914. return $instance->unless($value, $callback, $default);
  15915. }
  15916. /**
  15917. * Add a relationship count / exists condition to the query.
  15918. *
  15919. * @param string|\Illuminate\Database\Eloquent\Relations\Relation $relation
  15920. * @param string $operator
  15921. * @param int $count
  15922. * @param string $boolean
  15923. * @param \Closure|null $callback
  15924. * @return \Illuminate\Database\Eloquent\Builder|static
  15925. * @static
  15926. */
  15927. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15928. {
  15929. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15930. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15931. }
  15932. /**
  15933. * Add a relationship count / exists condition to the query with an "or".
  15934. *
  15935. * @param string $relation
  15936. * @param string $operator
  15937. * @param int $count
  15938. * @return \Illuminate\Database\Eloquent\Builder|static
  15939. * @static
  15940. */
  15941. public static function orHas($relation, $operator = '>=', $count = 1)
  15942. {
  15943. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15944. return $instance->orHas($relation, $operator, $count);
  15945. }
  15946. /**
  15947. * Add a relationship count / exists condition to the query.
  15948. *
  15949. * @param string $relation
  15950. * @param string $boolean
  15951. * @param \Closure|null $callback
  15952. * @return \Illuminate\Database\Eloquent\Builder|static
  15953. * @static
  15954. */
  15955. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15956. {
  15957. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15958. return $instance->doesntHave($relation, $boolean, $callback);
  15959. }
  15960. /**
  15961. * Add a relationship count / exists condition to the query with an "or".
  15962. *
  15963. * @param string $relation
  15964. * @return \Illuminate\Database\Eloquent\Builder|static
  15965. * @static
  15966. */
  15967. public static function orDoesntHave($relation)
  15968. {
  15969. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15970. return $instance->orDoesntHave($relation);
  15971. }
  15972. /**
  15973. * Add a relationship count / exists condition to the query with where clauses.
  15974. *
  15975. * @param string $relation
  15976. * @param \Closure|null $callback
  15977. * @param string $operator
  15978. * @param int $count
  15979. * @return \Illuminate\Database\Eloquent\Builder|static
  15980. * @static
  15981. */
  15982. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15983. {
  15984. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15985. return $instance->whereHas($relation, $callback, $operator, $count);
  15986. }
  15987. /**
  15988. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15989. *
  15990. * @param string $relation
  15991. * @param \Closure $callback
  15992. * @param string $operator
  15993. * @param int $count
  15994. * @return \Illuminate\Database\Eloquent\Builder|static
  15995. * @static
  15996. */
  15997. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15998. {
  15999. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16000. return $instance->orWhereHas($relation, $callback, $operator, $count);
  16001. }
  16002. /**
  16003. * Add a relationship count / exists condition to the query with where clauses.
  16004. *
  16005. * @param string $relation
  16006. * @param \Closure|null $callback
  16007. * @return \Illuminate\Database\Eloquent\Builder|static
  16008. * @static
  16009. */
  16010. public static function whereDoesntHave($relation, $callback = null)
  16011. {
  16012. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16013. return $instance->whereDoesntHave($relation, $callback);
  16014. }
  16015. /**
  16016. * Add a relationship count / exists condition to the query with where clauses and an "or".
  16017. *
  16018. * @param string $relation
  16019. * @param \Closure $callback
  16020. * @return \Illuminate\Database\Eloquent\Builder|static
  16021. * @static
  16022. */
  16023. public static function orWhereDoesntHave($relation, $callback = null)
  16024. {
  16025. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16026. return $instance->orWhereDoesntHave($relation, $callback);
  16027. }
  16028. /**
  16029. * Add a polymorphic relationship count / exists condition to the query.
  16030. *
  16031. * @param string $relation
  16032. * @param string|array $types
  16033. * @param string $operator
  16034. * @param int $count
  16035. * @param string $boolean
  16036. * @param \Closure|null $callback
  16037. * @return \Illuminate\Database\Eloquent\Builder|static
  16038. * @static
  16039. */
  16040. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  16041. {
  16042. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16043. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  16044. }
  16045. /**
  16046. * Add a polymorphic relationship count / exists condition to the query with an "or".
  16047. *
  16048. * @param string $relation
  16049. * @param string|array $types
  16050. * @param string $operator
  16051. * @param int $count
  16052. * @return \Illuminate\Database\Eloquent\Builder|static
  16053. * @static
  16054. */
  16055. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  16056. {
  16057. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16058. return $instance->orHasMorph($relation, $types, $operator, $count);
  16059. }
  16060. /**
  16061. * Add a polymorphic relationship count / exists condition to the query.
  16062. *
  16063. * @param string $relation
  16064. * @param string|array $types
  16065. * @param string $boolean
  16066. * @param \Closure|null $callback
  16067. * @return \Illuminate\Database\Eloquent\Builder|static
  16068. * @static
  16069. */
  16070. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  16071. {
  16072. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16073. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  16074. }
  16075. /**
  16076. * Add a polymorphic relationship count / exists condition to the query with an "or".
  16077. *
  16078. * @param string $relation
  16079. * @param string|array $types
  16080. * @return \Illuminate\Database\Eloquent\Builder|static
  16081. * @static
  16082. */
  16083. public static function orDoesntHaveMorph($relation, $types)
  16084. {
  16085. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16086. return $instance->orDoesntHaveMorph($relation, $types);
  16087. }
  16088. /**
  16089. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  16090. *
  16091. * @param string $relation
  16092. * @param string|array $types
  16093. * @param \Closure|null $callback
  16094. * @param string $operator
  16095. * @param int $count
  16096. * @return \Illuminate\Database\Eloquent\Builder|static
  16097. * @static
  16098. */
  16099. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  16100. {
  16101. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16102. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  16103. }
  16104. /**
  16105. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  16106. *
  16107. * @param string $relation
  16108. * @param string|array $types
  16109. * @param \Closure $callback
  16110. * @param string $operator
  16111. * @param int $count
  16112. * @return \Illuminate\Database\Eloquent\Builder|static
  16113. * @static
  16114. */
  16115. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  16116. {
  16117. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16118. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  16119. }
  16120. /**
  16121. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  16122. *
  16123. * @param string $relation
  16124. * @param string|array $types
  16125. * @param \Closure|null $callback
  16126. * @return \Illuminate\Database\Eloquent\Builder|static
  16127. * @static
  16128. */
  16129. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  16130. {
  16131. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16132. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  16133. }
  16134. /**
  16135. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  16136. *
  16137. * @param string $relation
  16138. * @param string|array $types
  16139. * @param \Closure $callback
  16140. * @return \Illuminate\Database\Eloquent\Builder|static
  16141. * @static
  16142. */
  16143. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  16144. {
  16145. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16146. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  16147. }
  16148. /**
  16149. * Add subselect queries to count the relations.
  16150. *
  16151. * @param mixed $relations
  16152. * @return \Illuminate\Database\Eloquent\Builder|static
  16153. * @static
  16154. */
  16155. public static function withCount($relations)
  16156. {
  16157. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16158. return $instance->withCount($relations);
  16159. }
  16160. /**
  16161. * Merge the where constraints from another query to the current query.
  16162. *
  16163. * @param \Illuminate\Database\Eloquent\Builder $from
  16164. * @return \Illuminate\Database\Eloquent\Builder|static
  16165. * @static
  16166. */
  16167. public static function mergeConstraintsFrom($from)
  16168. {
  16169. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16170. return $instance->mergeConstraintsFrom($from);
  16171. }
  16172. /**
  16173. * Set the columns to be selected.
  16174. *
  16175. * @param array|mixed $columns
  16176. * @return \Illuminate\Database\Query\Builder
  16177. * @static
  16178. */
  16179. public static function select($columns = [])
  16180. {
  16181. /** @var \Illuminate\Database\Query\Builder $instance */
  16182. return $instance->select($columns);
  16183. }
  16184. /**
  16185. * Add a subselect expression to the query.
  16186. *
  16187. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16188. * @param string $as
  16189. * @return \Illuminate\Database\Query\Builder|static
  16190. * @throws \InvalidArgumentException
  16191. * @static
  16192. */
  16193. public static function selectSub($query, $as)
  16194. {
  16195. /** @var \Illuminate\Database\Query\Builder $instance */
  16196. return $instance->selectSub($query, $as);
  16197. }
  16198. /**
  16199. * Add a new "raw" select expression to the query.
  16200. *
  16201. * @param string $expression
  16202. * @param array $bindings
  16203. * @return \Illuminate\Database\Query\Builder|static
  16204. * @static
  16205. */
  16206. public static function selectRaw($expression, $bindings = [])
  16207. {
  16208. /** @var \Illuminate\Database\Query\Builder $instance */
  16209. return $instance->selectRaw($expression, $bindings);
  16210. }
  16211. /**
  16212. * Makes "from" fetch from a subquery.
  16213. *
  16214. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16215. * @param string $as
  16216. * @return \Illuminate\Database\Query\Builder|static
  16217. * @throws \InvalidArgumentException
  16218. * @static
  16219. */
  16220. public static function fromSub($query, $as)
  16221. {
  16222. /** @var \Illuminate\Database\Query\Builder $instance */
  16223. return $instance->fromSub($query, $as);
  16224. }
  16225. /**
  16226. * Add a raw from clause to the query.
  16227. *
  16228. * @param string $expression
  16229. * @param mixed $bindings
  16230. * @return \Illuminate\Database\Query\Builder|static
  16231. * @static
  16232. */
  16233. public static function fromRaw($expression, $bindings = [])
  16234. {
  16235. /** @var \Illuminate\Database\Query\Builder $instance */
  16236. return $instance->fromRaw($expression, $bindings);
  16237. }
  16238. /**
  16239. * Add a new select column to the query.
  16240. *
  16241. * @param array|mixed $column
  16242. * @return \Illuminate\Database\Query\Builder
  16243. * @static
  16244. */
  16245. public static function addSelect($column)
  16246. {
  16247. /** @var \Illuminate\Database\Query\Builder $instance */
  16248. return $instance->addSelect($column);
  16249. }
  16250. /**
  16251. * Force the query to only return distinct results.
  16252. *
  16253. * @return \Illuminate\Database\Query\Builder
  16254. * @static
  16255. */
  16256. public static function distinct()
  16257. {
  16258. /** @var \Illuminate\Database\Query\Builder $instance */
  16259. return $instance->distinct();
  16260. }
  16261. /**
  16262. * Set the table which the query is targeting.
  16263. *
  16264. * @param string $table
  16265. * @return \Illuminate\Database\Query\Builder
  16266. * @static
  16267. */
  16268. public static function from($table)
  16269. {
  16270. /** @var \Illuminate\Database\Query\Builder $instance */
  16271. return $instance->from($table);
  16272. }
  16273. /**
  16274. * Add a join clause to the query.
  16275. *
  16276. * @param string $table
  16277. * @param \Closure|string $first
  16278. * @param string|null $operator
  16279. * @param string|null $second
  16280. * @param string $type
  16281. * @param bool $where
  16282. * @return \Illuminate\Database\Query\Builder
  16283. * @static
  16284. */
  16285. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  16286. {
  16287. /** @var \Illuminate\Database\Query\Builder $instance */
  16288. return $instance->join($table, $first, $operator, $second, $type, $where);
  16289. }
  16290. /**
  16291. * Add a "join where" clause to the query.
  16292. *
  16293. * @param string $table
  16294. * @param \Closure|string $first
  16295. * @param string $operator
  16296. * @param string $second
  16297. * @param string $type
  16298. * @return \Illuminate\Database\Query\Builder|static
  16299. * @static
  16300. */
  16301. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  16302. {
  16303. /** @var \Illuminate\Database\Query\Builder $instance */
  16304. return $instance->joinWhere($table, $first, $operator, $second, $type);
  16305. }
  16306. /**
  16307. * Add a subquery join clause to the query.
  16308. *
  16309. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16310. * @param string $as
  16311. * @param \Closure|string $first
  16312. * @param string|null $operator
  16313. * @param string|null $second
  16314. * @param string $type
  16315. * @param bool $where
  16316. * @return \Illuminate\Database\Query\Builder|static
  16317. * @throws \InvalidArgumentException
  16318. * @static
  16319. */
  16320. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  16321. {
  16322. /** @var \Illuminate\Database\Query\Builder $instance */
  16323. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  16324. }
  16325. /**
  16326. * Add a left join to the query.
  16327. *
  16328. * @param string $table
  16329. * @param \Closure|string $first
  16330. * @param string|null $operator
  16331. * @param string|null $second
  16332. * @return \Illuminate\Database\Query\Builder|static
  16333. * @static
  16334. */
  16335. public static function leftJoin($table, $first, $operator = null, $second = null)
  16336. {
  16337. /** @var \Illuminate\Database\Query\Builder $instance */
  16338. return $instance->leftJoin($table, $first, $operator, $second);
  16339. }
  16340. /**
  16341. * Add a "join where" clause to the query.
  16342. *
  16343. * @param string $table
  16344. * @param \Closure|string $first
  16345. * @param string $operator
  16346. * @param string $second
  16347. * @return \Illuminate\Database\Query\Builder|static
  16348. * @static
  16349. */
  16350. public static function leftJoinWhere($table, $first, $operator, $second)
  16351. {
  16352. /** @var \Illuminate\Database\Query\Builder $instance */
  16353. return $instance->leftJoinWhere($table, $first, $operator, $second);
  16354. }
  16355. /**
  16356. * Add a subquery left join to the query.
  16357. *
  16358. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16359. * @param string $as
  16360. * @param \Closure|string $first
  16361. * @param string|null $operator
  16362. * @param string|null $second
  16363. * @return \Illuminate\Database\Query\Builder|static
  16364. * @static
  16365. */
  16366. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  16367. {
  16368. /** @var \Illuminate\Database\Query\Builder $instance */
  16369. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  16370. }
  16371. /**
  16372. * Add a right join to the query.
  16373. *
  16374. * @param string $table
  16375. * @param \Closure|string $first
  16376. * @param string|null $operator
  16377. * @param string|null $second
  16378. * @return \Illuminate\Database\Query\Builder|static
  16379. * @static
  16380. */
  16381. public static function rightJoin($table, $first, $operator = null, $second = null)
  16382. {
  16383. /** @var \Illuminate\Database\Query\Builder $instance */
  16384. return $instance->rightJoin($table, $first, $operator, $second);
  16385. }
  16386. /**
  16387. * Add a "right join where" clause to the query.
  16388. *
  16389. * @param string $table
  16390. * @param \Closure|string $first
  16391. * @param string $operator
  16392. * @param string $second
  16393. * @return \Illuminate\Database\Query\Builder|static
  16394. * @static
  16395. */
  16396. public static function rightJoinWhere($table, $first, $operator, $second)
  16397. {
  16398. /** @var \Illuminate\Database\Query\Builder $instance */
  16399. return $instance->rightJoinWhere($table, $first, $operator, $second);
  16400. }
  16401. /**
  16402. * Add a subquery right join to the query.
  16403. *
  16404. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16405. * @param string $as
  16406. * @param \Closure|string $first
  16407. * @param string|null $operator
  16408. * @param string|null $second
  16409. * @return \Illuminate\Database\Query\Builder|static
  16410. * @static
  16411. */
  16412. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  16413. {
  16414. /** @var \Illuminate\Database\Query\Builder $instance */
  16415. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  16416. }
  16417. /**
  16418. * Add a "cross join" clause to the query.
  16419. *
  16420. * @param string $table
  16421. * @param \Closure|string|null $first
  16422. * @param string|null $operator
  16423. * @param string|null $second
  16424. * @return \Illuminate\Database\Query\Builder|static
  16425. * @static
  16426. */
  16427. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  16428. {
  16429. /** @var \Illuminate\Database\Query\Builder $instance */
  16430. return $instance->crossJoin($table, $first, $operator, $second);
  16431. }
  16432. /**
  16433. * Merge an array of where clauses and bindings.
  16434. *
  16435. * @param array $wheres
  16436. * @param array $bindings
  16437. * @return void
  16438. * @static
  16439. */
  16440. public static function mergeWheres($wheres, $bindings)
  16441. {
  16442. /** @var \Illuminate\Database\Query\Builder $instance */
  16443. $instance->mergeWheres($wheres, $bindings);
  16444. }
  16445. /**
  16446. * Prepare the value and operator for a where clause.
  16447. *
  16448. * @param string $value
  16449. * @param string $operator
  16450. * @param bool $useDefault
  16451. * @return array
  16452. * @throws \InvalidArgumentException
  16453. * @static
  16454. */
  16455. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  16456. {
  16457. /** @var \Illuminate\Database\Query\Builder $instance */
  16458. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  16459. }
  16460. /**
  16461. * Add a "where" clause comparing two columns to the query.
  16462. *
  16463. * @param string|array $first
  16464. * @param string|null $operator
  16465. * @param string|null $second
  16466. * @param string|null $boolean
  16467. * @return \Illuminate\Database\Query\Builder|static
  16468. * @static
  16469. */
  16470. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  16471. {
  16472. /** @var \Illuminate\Database\Query\Builder $instance */
  16473. return $instance->whereColumn($first, $operator, $second, $boolean);
  16474. }
  16475. /**
  16476. * Add an "or where" clause comparing two columns to the query.
  16477. *
  16478. * @param string|array $first
  16479. * @param string|null $operator
  16480. * @param string|null $second
  16481. * @return \Illuminate\Database\Query\Builder|static
  16482. * @static
  16483. */
  16484. public static function orWhereColumn($first, $operator = null, $second = null)
  16485. {
  16486. /** @var \Illuminate\Database\Query\Builder $instance */
  16487. return $instance->orWhereColumn($first, $operator, $second);
  16488. }
  16489. /**
  16490. * Add a raw where clause to the query.
  16491. *
  16492. * @param string $sql
  16493. * @param mixed $bindings
  16494. * @param string $boolean
  16495. * @return \Illuminate\Database\Query\Builder
  16496. * @static
  16497. */
  16498. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  16499. {
  16500. /** @var \Illuminate\Database\Query\Builder $instance */
  16501. return $instance->whereRaw($sql, $bindings, $boolean);
  16502. }
  16503. /**
  16504. * Add a raw or where clause to the query.
  16505. *
  16506. * @param string $sql
  16507. * @param mixed $bindings
  16508. * @return \Illuminate\Database\Query\Builder|static
  16509. * @static
  16510. */
  16511. public static function orWhereRaw($sql, $bindings = [])
  16512. {
  16513. /** @var \Illuminate\Database\Query\Builder $instance */
  16514. return $instance->orWhereRaw($sql, $bindings);
  16515. }
  16516. /**
  16517. * Add a "where in" clause to the query.
  16518. *
  16519. * @param string $column
  16520. * @param mixed $values
  16521. * @param string $boolean
  16522. * @param bool $not
  16523. * @return \Illuminate\Database\Query\Builder
  16524. * @static
  16525. */
  16526. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  16527. {
  16528. /** @var \Illuminate\Database\Query\Builder $instance */
  16529. return $instance->whereIn($column, $values, $boolean, $not);
  16530. }
  16531. /**
  16532. * Add an "or where in" clause to the query.
  16533. *
  16534. * @param string $column
  16535. * @param mixed $values
  16536. * @return \Illuminate\Database\Query\Builder|static
  16537. * @static
  16538. */
  16539. public static function orWhereIn($column, $values)
  16540. {
  16541. /** @var \Illuminate\Database\Query\Builder $instance */
  16542. return $instance->orWhereIn($column, $values);
  16543. }
  16544. /**
  16545. * Add a "where not in" clause to the query.
  16546. *
  16547. * @param string $column
  16548. * @param mixed $values
  16549. * @param string $boolean
  16550. * @return \Illuminate\Database\Query\Builder|static
  16551. * @static
  16552. */
  16553. public static function whereNotIn($column, $values, $boolean = 'and')
  16554. {
  16555. /** @var \Illuminate\Database\Query\Builder $instance */
  16556. return $instance->whereNotIn($column, $values, $boolean);
  16557. }
  16558. /**
  16559. * Add an "or where not in" clause to the query.
  16560. *
  16561. * @param string $column
  16562. * @param mixed $values
  16563. * @return \Illuminate\Database\Query\Builder|static
  16564. * @static
  16565. */
  16566. public static function orWhereNotIn($column, $values)
  16567. {
  16568. /** @var \Illuminate\Database\Query\Builder $instance */
  16569. return $instance->orWhereNotIn($column, $values);
  16570. }
  16571. /**
  16572. * Add a "where in raw" clause for integer values to the query.
  16573. *
  16574. * @param string $column
  16575. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16576. * @param string $boolean
  16577. * @param bool $not
  16578. * @return \Illuminate\Database\Query\Builder
  16579. * @static
  16580. */
  16581. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  16582. {
  16583. /** @var \Illuminate\Database\Query\Builder $instance */
  16584. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  16585. }
  16586. /**
  16587. * Add a "where not in raw" clause for integer values to the query.
  16588. *
  16589. * @param string $column
  16590. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16591. * @param string $boolean
  16592. * @return \Illuminate\Database\Query\Builder
  16593. * @static
  16594. */
  16595. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  16596. {
  16597. /** @var \Illuminate\Database\Query\Builder $instance */
  16598. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  16599. }
  16600. /**
  16601. * Add a "where null" clause to the query.
  16602. *
  16603. * @param string|array $columns
  16604. * @param string $boolean
  16605. * @param bool $not
  16606. * @return \Illuminate\Database\Query\Builder
  16607. * @static
  16608. */
  16609. public static function whereNull($columns, $boolean = 'and', $not = false)
  16610. {
  16611. /** @var \Illuminate\Database\Query\Builder $instance */
  16612. return $instance->whereNull($columns, $boolean, $not);
  16613. }
  16614. /**
  16615. * Add an "or where null" clause to the query.
  16616. *
  16617. * @param string $column
  16618. * @return \Illuminate\Database\Query\Builder|static
  16619. * @static
  16620. */
  16621. public static function orWhereNull($column)
  16622. {
  16623. /** @var \Illuminate\Database\Query\Builder $instance */
  16624. return $instance->orWhereNull($column);
  16625. }
  16626. /**
  16627. * Add a "where not null" clause to the query.
  16628. *
  16629. * @param string $column
  16630. * @param string $boolean
  16631. * @return \Illuminate\Database\Query\Builder|static
  16632. * @static
  16633. */
  16634. public static function whereNotNull($column, $boolean = 'and')
  16635. {
  16636. /** @var \Illuminate\Database\Query\Builder $instance */
  16637. return $instance->whereNotNull($column, $boolean);
  16638. }
  16639. /**
  16640. * Add a where between statement to the query.
  16641. *
  16642. * @param string $column
  16643. * @param array $values
  16644. * @param string $boolean
  16645. * @param bool $not
  16646. * @return \Illuminate\Database\Query\Builder
  16647. * @static
  16648. */
  16649. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  16650. {
  16651. /** @var \Illuminate\Database\Query\Builder $instance */
  16652. return $instance->whereBetween($column, $values, $boolean, $not);
  16653. }
  16654. /**
  16655. * Add an or where between statement to the query.
  16656. *
  16657. * @param string $column
  16658. * @param array $values
  16659. * @return \Illuminate\Database\Query\Builder|static
  16660. * @static
  16661. */
  16662. public static function orWhereBetween($column, $values)
  16663. {
  16664. /** @var \Illuminate\Database\Query\Builder $instance */
  16665. return $instance->orWhereBetween($column, $values);
  16666. }
  16667. /**
  16668. * Add a where not between statement to the query.
  16669. *
  16670. * @param string $column
  16671. * @param array $values
  16672. * @param string $boolean
  16673. * @return \Illuminate\Database\Query\Builder|static
  16674. * @static
  16675. */
  16676. public static function whereNotBetween($column, $values, $boolean = 'and')
  16677. {
  16678. /** @var \Illuminate\Database\Query\Builder $instance */
  16679. return $instance->whereNotBetween($column, $values, $boolean);
  16680. }
  16681. /**
  16682. * Add an or where not between statement to the query.
  16683. *
  16684. * @param string $column
  16685. * @param array $values
  16686. * @return \Illuminate\Database\Query\Builder|static
  16687. * @static
  16688. */
  16689. public static function orWhereNotBetween($column, $values)
  16690. {
  16691. /** @var \Illuminate\Database\Query\Builder $instance */
  16692. return $instance->orWhereNotBetween($column, $values);
  16693. }
  16694. /**
  16695. * Add an "or where not null" clause to the query.
  16696. *
  16697. * @param string $column
  16698. * @return \Illuminate\Database\Query\Builder|static
  16699. * @static
  16700. */
  16701. public static function orWhereNotNull($column)
  16702. {
  16703. /** @var \Illuminate\Database\Query\Builder $instance */
  16704. return $instance->orWhereNotNull($column);
  16705. }
  16706. /**
  16707. * Add a "where date" statement to the query.
  16708. *
  16709. * @param string $column
  16710. * @param string $operator
  16711. * @param \DateTimeInterface|string|null $value
  16712. * @param string $boolean
  16713. * @return \Illuminate\Database\Query\Builder|static
  16714. * @static
  16715. */
  16716. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  16717. {
  16718. /** @var \Illuminate\Database\Query\Builder $instance */
  16719. return $instance->whereDate($column, $operator, $value, $boolean);
  16720. }
  16721. /**
  16722. * Add an "or where date" statement to the query.
  16723. *
  16724. * @param string $column
  16725. * @param string $operator
  16726. * @param \DateTimeInterface|string|null $value
  16727. * @return \Illuminate\Database\Query\Builder|static
  16728. * @static
  16729. */
  16730. public static function orWhereDate($column, $operator, $value = null)
  16731. {
  16732. /** @var \Illuminate\Database\Query\Builder $instance */
  16733. return $instance->orWhereDate($column, $operator, $value);
  16734. }
  16735. /**
  16736. * Add a "where time" statement to the query.
  16737. *
  16738. * @param string $column
  16739. * @param string $operator
  16740. * @param \DateTimeInterface|string|null $value
  16741. * @param string $boolean
  16742. * @return \Illuminate\Database\Query\Builder|static
  16743. * @static
  16744. */
  16745. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  16746. {
  16747. /** @var \Illuminate\Database\Query\Builder $instance */
  16748. return $instance->whereTime($column, $operator, $value, $boolean);
  16749. }
  16750. /**
  16751. * Add an "or where time" statement to the query.
  16752. *
  16753. * @param string $column
  16754. * @param string $operator
  16755. * @param \DateTimeInterface|string|null $value
  16756. * @return \Illuminate\Database\Query\Builder|static
  16757. * @static
  16758. */
  16759. public static function orWhereTime($column, $operator, $value = null)
  16760. {
  16761. /** @var \Illuminate\Database\Query\Builder $instance */
  16762. return $instance->orWhereTime($column, $operator, $value);
  16763. }
  16764. /**
  16765. * Add a "where day" statement to the query.
  16766. *
  16767. * @param string $column
  16768. * @param string $operator
  16769. * @param \DateTimeInterface|string|null $value
  16770. * @param string $boolean
  16771. * @return \Illuminate\Database\Query\Builder|static
  16772. * @static
  16773. */
  16774. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  16775. {
  16776. /** @var \Illuminate\Database\Query\Builder $instance */
  16777. return $instance->whereDay($column, $operator, $value, $boolean);
  16778. }
  16779. /**
  16780. * Add an "or where day" statement to the query.
  16781. *
  16782. * @param string $column
  16783. * @param string $operator
  16784. * @param \DateTimeInterface|string|null $value
  16785. * @return \Illuminate\Database\Query\Builder|static
  16786. * @static
  16787. */
  16788. public static function orWhereDay($column, $operator, $value = null)
  16789. {
  16790. /** @var \Illuminate\Database\Query\Builder $instance */
  16791. return $instance->orWhereDay($column, $operator, $value);
  16792. }
  16793. /**
  16794. * Add a "where month" statement to the query.
  16795. *
  16796. * @param string $column
  16797. * @param string $operator
  16798. * @param \DateTimeInterface|string|null $value
  16799. * @param string $boolean
  16800. * @return \Illuminate\Database\Query\Builder|static
  16801. * @static
  16802. */
  16803. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  16804. {
  16805. /** @var \Illuminate\Database\Query\Builder $instance */
  16806. return $instance->whereMonth($column, $operator, $value, $boolean);
  16807. }
  16808. /**
  16809. * Add an "or where month" statement to the query.
  16810. *
  16811. * @param string $column
  16812. * @param string $operator
  16813. * @param \DateTimeInterface|string|null $value
  16814. * @return \Illuminate\Database\Query\Builder|static
  16815. * @static
  16816. */
  16817. public static function orWhereMonth($column, $operator, $value = null)
  16818. {
  16819. /** @var \Illuminate\Database\Query\Builder $instance */
  16820. return $instance->orWhereMonth($column, $operator, $value);
  16821. }
  16822. /**
  16823. * Add a "where year" statement to the query.
  16824. *
  16825. * @param string $column
  16826. * @param string $operator
  16827. * @param \DateTimeInterface|string|int|null $value
  16828. * @param string $boolean
  16829. * @return \Illuminate\Database\Query\Builder|static
  16830. * @static
  16831. */
  16832. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  16833. {
  16834. /** @var \Illuminate\Database\Query\Builder $instance */
  16835. return $instance->whereYear($column, $operator, $value, $boolean);
  16836. }
  16837. /**
  16838. * Add an "or where year" statement to the query.
  16839. *
  16840. * @param string $column
  16841. * @param string $operator
  16842. * @param \DateTimeInterface|string|int|null $value
  16843. * @return \Illuminate\Database\Query\Builder|static
  16844. * @static
  16845. */
  16846. public static function orWhereYear($column, $operator, $value = null)
  16847. {
  16848. /** @var \Illuminate\Database\Query\Builder $instance */
  16849. return $instance->orWhereYear($column, $operator, $value);
  16850. }
  16851. /**
  16852. * Add a nested where statement to the query.
  16853. *
  16854. * @param \Closure $callback
  16855. * @param string $boolean
  16856. * @return \Illuminate\Database\Query\Builder|static
  16857. * @static
  16858. */
  16859. public static function whereNested($callback, $boolean = 'and')
  16860. {
  16861. /** @var \Illuminate\Database\Query\Builder $instance */
  16862. return $instance->whereNested($callback, $boolean);
  16863. }
  16864. /**
  16865. * Create a new query instance for nested where condition.
  16866. *
  16867. * @return \Illuminate\Database\Query\Builder
  16868. * @static
  16869. */
  16870. public static function forNestedWhere()
  16871. {
  16872. /** @var \Illuminate\Database\Query\Builder $instance */
  16873. return $instance->forNestedWhere();
  16874. }
  16875. /**
  16876. * Add another query builder as a nested where to the query builder.
  16877. *
  16878. * @param \Illuminate\Database\Query\Builder|static $query
  16879. * @param string $boolean
  16880. * @return \Illuminate\Database\Query\Builder
  16881. * @static
  16882. */
  16883. public static function addNestedWhereQuery($query, $boolean = 'and')
  16884. {
  16885. /** @var \Illuminate\Database\Query\Builder $instance */
  16886. return $instance->addNestedWhereQuery($query, $boolean);
  16887. }
  16888. /**
  16889. * Add an exists clause to the query.
  16890. *
  16891. * @param \Closure $callback
  16892. * @param string $boolean
  16893. * @param bool $not
  16894. * @return \Illuminate\Database\Query\Builder
  16895. * @static
  16896. */
  16897. public static function whereExists($callback, $boolean = 'and', $not = false)
  16898. {
  16899. /** @var \Illuminate\Database\Query\Builder $instance */
  16900. return $instance->whereExists($callback, $boolean, $not);
  16901. }
  16902. /**
  16903. * Add an or exists clause to the query.
  16904. *
  16905. * @param \Closure $callback
  16906. * @param bool $not
  16907. * @return \Illuminate\Database\Query\Builder|static
  16908. * @static
  16909. */
  16910. public static function orWhereExists($callback, $not = false)
  16911. {
  16912. /** @var \Illuminate\Database\Query\Builder $instance */
  16913. return $instance->orWhereExists($callback, $not);
  16914. }
  16915. /**
  16916. * Add a where not exists clause to the query.
  16917. *
  16918. * @param \Closure $callback
  16919. * @param string $boolean
  16920. * @return \Illuminate\Database\Query\Builder|static
  16921. * @static
  16922. */
  16923. public static function whereNotExists($callback, $boolean = 'and')
  16924. {
  16925. /** @var \Illuminate\Database\Query\Builder $instance */
  16926. return $instance->whereNotExists($callback, $boolean);
  16927. }
  16928. /**
  16929. * Add a where not exists clause to the query.
  16930. *
  16931. * @param \Closure $callback
  16932. * @return \Illuminate\Database\Query\Builder|static
  16933. * @static
  16934. */
  16935. public static function orWhereNotExists($callback)
  16936. {
  16937. /** @var \Illuminate\Database\Query\Builder $instance */
  16938. return $instance->orWhereNotExists($callback);
  16939. }
  16940. /**
  16941. * Add an exists clause to the query.
  16942. *
  16943. * @param \Illuminate\Database\Query\Builder $query
  16944. * @param string $boolean
  16945. * @param bool $not
  16946. * @return \Illuminate\Database\Query\Builder
  16947. * @static
  16948. */
  16949. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16950. {
  16951. /** @var \Illuminate\Database\Query\Builder $instance */
  16952. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16953. }
  16954. /**
  16955. * Adds a where condition using row values.
  16956. *
  16957. * @param array $columns
  16958. * @param string $operator
  16959. * @param array $values
  16960. * @param string $boolean
  16961. * @return \Illuminate\Database\Query\Builder
  16962. * @static
  16963. */
  16964. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16965. {
  16966. /** @var \Illuminate\Database\Query\Builder $instance */
  16967. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16968. }
  16969. /**
  16970. * Adds a or where condition using row values.
  16971. *
  16972. * @param array $columns
  16973. * @param string $operator
  16974. * @param array $values
  16975. * @return \Illuminate\Database\Query\Builder
  16976. * @static
  16977. */
  16978. public static function orWhereRowValues($columns, $operator, $values)
  16979. {
  16980. /** @var \Illuminate\Database\Query\Builder $instance */
  16981. return $instance->orWhereRowValues($columns, $operator, $values);
  16982. }
  16983. /**
  16984. * Add a "where JSON contains" clause to the query.
  16985. *
  16986. * @param string $column
  16987. * @param mixed $value
  16988. * @param string $boolean
  16989. * @param bool $not
  16990. * @return \Illuminate\Database\Query\Builder
  16991. * @static
  16992. */
  16993. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16994. {
  16995. /** @var \Illuminate\Database\Query\Builder $instance */
  16996. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16997. }
  16998. /**
  16999. * Add a "or where JSON contains" clause to the query.
  17000. *
  17001. * @param string $column
  17002. * @param mixed $value
  17003. * @return \Illuminate\Database\Query\Builder
  17004. * @static
  17005. */
  17006. public static function orWhereJsonContains($column, $value)
  17007. {
  17008. /** @var \Illuminate\Database\Query\Builder $instance */
  17009. return $instance->orWhereJsonContains($column, $value);
  17010. }
  17011. /**
  17012. * Add a "where JSON not contains" clause to the query.
  17013. *
  17014. * @param string $column
  17015. * @param mixed $value
  17016. * @param string $boolean
  17017. * @return \Illuminate\Database\Query\Builder
  17018. * @static
  17019. */
  17020. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  17021. {
  17022. /** @var \Illuminate\Database\Query\Builder $instance */
  17023. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  17024. }
  17025. /**
  17026. * Add a "or where JSON not contains" clause to the query.
  17027. *
  17028. * @param string $column
  17029. * @param mixed $value
  17030. * @return \Illuminate\Database\Query\Builder
  17031. * @static
  17032. */
  17033. public static function orWhereJsonDoesntContain($column, $value)
  17034. {
  17035. /** @var \Illuminate\Database\Query\Builder $instance */
  17036. return $instance->orWhereJsonDoesntContain($column, $value);
  17037. }
  17038. /**
  17039. * Add a "where JSON length" clause to the query.
  17040. *
  17041. * @param string $column
  17042. * @param mixed $operator
  17043. * @param mixed $value
  17044. * @param string $boolean
  17045. * @return \Illuminate\Database\Query\Builder
  17046. * @static
  17047. */
  17048. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  17049. {
  17050. /** @var \Illuminate\Database\Query\Builder $instance */
  17051. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  17052. }
  17053. /**
  17054. * Add a "or where JSON length" clause to the query.
  17055. *
  17056. * @param string $column
  17057. * @param mixed $operator
  17058. * @param mixed $value
  17059. * @return \Illuminate\Database\Query\Builder
  17060. * @static
  17061. */
  17062. public static function orWhereJsonLength($column, $operator, $value = null)
  17063. {
  17064. /** @var \Illuminate\Database\Query\Builder $instance */
  17065. return $instance->orWhereJsonLength($column, $operator, $value);
  17066. }
  17067. /**
  17068. * Handles dynamic "where" clauses to the query.
  17069. *
  17070. * @param string $method
  17071. * @param array $parameters
  17072. * @return \Illuminate\Database\Query\Builder
  17073. * @static
  17074. */
  17075. public static function dynamicWhere($method, $parameters)
  17076. {
  17077. /** @var \Illuminate\Database\Query\Builder $instance */
  17078. return $instance->dynamicWhere($method, $parameters);
  17079. }
  17080. /**
  17081. * Add a "group by" clause to the query.
  17082. *
  17083. * @param array $groups
  17084. * @return \Illuminate\Database\Query\Builder
  17085. * @static
  17086. */
  17087. public static function groupBy(...$groups)
  17088. {
  17089. /** @var \Illuminate\Database\Query\Builder $instance */
  17090. return $instance->groupBy(...$groups);
  17091. }
  17092. /**
  17093. * Add a "having" clause to the query.
  17094. *
  17095. * @param string $column
  17096. * @param string|null $operator
  17097. * @param string|null $value
  17098. * @param string $boolean
  17099. * @return \Illuminate\Database\Query\Builder
  17100. * @static
  17101. */
  17102. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  17103. {
  17104. /** @var \Illuminate\Database\Query\Builder $instance */
  17105. return $instance->having($column, $operator, $value, $boolean);
  17106. }
  17107. /**
  17108. * Add a "or having" clause to the query.
  17109. *
  17110. * @param string $column
  17111. * @param string|null $operator
  17112. * @param string|null $value
  17113. * @return \Illuminate\Database\Query\Builder|static
  17114. * @static
  17115. */
  17116. public static function orHaving($column, $operator = null, $value = null)
  17117. {
  17118. /** @var \Illuminate\Database\Query\Builder $instance */
  17119. return $instance->orHaving($column, $operator, $value);
  17120. }
  17121. /**
  17122. * Add a "having between " clause to the query.
  17123. *
  17124. * @param string $column
  17125. * @param array $values
  17126. * @param string $boolean
  17127. * @param bool $not
  17128. * @return \Illuminate\Database\Query\Builder|static
  17129. * @static
  17130. */
  17131. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  17132. {
  17133. /** @var \Illuminate\Database\Query\Builder $instance */
  17134. return $instance->havingBetween($column, $values, $boolean, $not);
  17135. }
  17136. /**
  17137. * Add a raw having clause to the query.
  17138. *
  17139. * @param string $sql
  17140. * @param array $bindings
  17141. * @param string $boolean
  17142. * @return \Illuminate\Database\Query\Builder
  17143. * @static
  17144. */
  17145. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  17146. {
  17147. /** @var \Illuminate\Database\Query\Builder $instance */
  17148. return $instance->havingRaw($sql, $bindings, $boolean);
  17149. }
  17150. /**
  17151. * Add a raw or having clause to the query.
  17152. *
  17153. * @param string $sql
  17154. * @param array $bindings
  17155. * @return \Illuminate\Database\Query\Builder|static
  17156. * @static
  17157. */
  17158. public static function orHavingRaw($sql, $bindings = [])
  17159. {
  17160. /** @var \Illuminate\Database\Query\Builder $instance */
  17161. return $instance->orHavingRaw($sql, $bindings);
  17162. }
  17163. /**
  17164. * Add an "order by" clause to the query.
  17165. *
  17166. * @param string $column
  17167. * @param string $direction
  17168. * @return \Illuminate\Database\Query\Builder
  17169. * @throws \InvalidArgumentException
  17170. * @static
  17171. */
  17172. public static function orderBy($column, $direction = 'asc')
  17173. {
  17174. /** @var \Illuminate\Database\Query\Builder $instance */
  17175. return $instance->orderBy($column, $direction);
  17176. }
  17177. /**
  17178. * Add a descending "order by" clause to the query.
  17179. *
  17180. * @param string $column
  17181. * @return \Illuminate\Database\Query\Builder
  17182. * @static
  17183. */
  17184. public static function orderByDesc($column)
  17185. {
  17186. /** @var \Illuminate\Database\Query\Builder $instance */
  17187. return $instance->orderByDesc($column);
  17188. }
  17189. /**
  17190. * Put the query's results in random order.
  17191. *
  17192. * @param string $seed
  17193. * @return \Illuminate\Database\Query\Builder
  17194. * @static
  17195. */
  17196. public static function inRandomOrder($seed = '')
  17197. {
  17198. /** @var \Illuminate\Database\Query\Builder $instance */
  17199. return $instance->inRandomOrder($seed);
  17200. }
  17201. /**
  17202. * Add a raw "order by" clause to the query.
  17203. *
  17204. * @param string $sql
  17205. * @param array $bindings
  17206. * @return \Illuminate\Database\Query\Builder
  17207. * @static
  17208. */
  17209. public static function orderByRaw($sql, $bindings = [])
  17210. {
  17211. /** @var \Illuminate\Database\Query\Builder $instance */
  17212. return $instance->orderByRaw($sql, $bindings);
  17213. }
  17214. /**
  17215. * Alias to set the "offset" value of the query.
  17216. *
  17217. * @param int $value
  17218. * @return \Illuminate\Database\Query\Builder|static
  17219. * @static
  17220. */
  17221. public static function skip($value)
  17222. {
  17223. /** @var \Illuminate\Database\Query\Builder $instance */
  17224. return $instance->skip($value);
  17225. }
  17226. /**
  17227. * Set the "offset" value of the query.
  17228. *
  17229. * @param int $value
  17230. * @return \Illuminate\Database\Query\Builder
  17231. * @static
  17232. */
  17233. public static function offset($value)
  17234. {
  17235. /** @var \Illuminate\Database\Query\Builder $instance */
  17236. return $instance->offset($value);
  17237. }
  17238. /**
  17239. * Alias to set the "limit" value of the query.
  17240. *
  17241. * @param int $value
  17242. * @return \Illuminate\Database\Query\Builder|static
  17243. * @static
  17244. */
  17245. public static function take($value)
  17246. {
  17247. /** @var \Illuminate\Database\Query\Builder $instance */
  17248. return $instance->take($value);
  17249. }
  17250. /**
  17251. * Set the "limit" value of the query.
  17252. *
  17253. * @param int $value
  17254. * @return \Illuminate\Database\Query\Builder
  17255. * @static
  17256. */
  17257. public static function limit($value)
  17258. {
  17259. /** @var \Illuminate\Database\Query\Builder $instance */
  17260. return $instance->limit($value);
  17261. }
  17262. /**
  17263. * Set the limit and offset for a given page.
  17264. *
  17265. * @param int $page
  17266. * @param int $perPage
  17267. * @return \Illuminate\Database\Query\Builder|static
  17268. * @static
  17269. */
  17270. public static function forPage($page, $perPage = 15)
  17271. {
  17272. /** @var \Illuminate\Database\Query\Builder $instance */
  17273. return $instance->forPage($page, $perPage);
  17274. }
  17275. /**
  17276. * Constrain the query to the previous "page" of results before a given ID.
  17277. *
  17278. * @param int $perPage
  17279. * @param int|null $lastId
  17280. * @param string $column
  17281. * @return \Illuminate\Database\Query\Builder|static
  17282. * @static
  17283. */
  17284. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  17285. {
  17286. /** @var \Illuminate\Database\Query\Builder $instance */
  17287. return $instance->forPageBeforeId($perPage, $lastId, $column);
  17288. }
  17289. /**
  17290. * Constrain the query to the next "page" of results after a given ID.
  17291. *
  17292. * @param int $perPage
  17293. * @param int|null $lastId
  17294. * @param string $column
  17295. * @return \Illuminate\Database\Query\Builder|static
  17296. * @static
  17297. */
  17298. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  17299. {
  17300. /** @var \Illuminate\Database\Query\Builder $instance */
  17301. return $instance->forPageAfterId($perPage, $lastId, $column);
  17302. }
  17303. /**
  17304. * Add a union statement to the query.
  17305. *
  17306. * @param \Illuminate\Database\Query\Builder|\Closure $query
  17307. * @param bool $all
  17308. * @return \Illuminate\Database\Query\Builder|static
  17309. * @static
  17310. */
  17311. public static function union($query, $all = false)
  17312. {
  17313. /** @var \Illuminate\Database\Query\Builder $instance */
  17314. return $instance->union($query, $all);
  17315. }
  17316. /**
  17317. * Add a union all statement to the query.
  17318. *
  17319. * @param \Illuminate\Database\Query\Builder|\Closure $query
  17320. * @return \Illuminate\Database\Query\Builder|static
  17321. * @static
  17322. */
  17323. public static function unionAll($query)
  17324. {
  17325. /** @var \Illuminate\Database\Query\Builder $instance */
  17326. return $instance->unionAll($query);
  17327. }
  17328. /**
  17329. * Lock the selected rows in the table.
  17330. *
  17331. * @param string|bool $value
  17332. * @return \Illuminate\Database\Query\Builder
  17333. * @static
  17334. */
  17335. public static function lock($value = true)
  17336. {
  17337. /** @var \Illuminate\Database\Query\Builder $instance */
  17338. return $instance->lock($value);
  17339. }
  17340. /**
  17341. * Lock the selected rows in the table for updating.
  17342. *
  17343. * @return \Illuminate\Database\Query\Builder
  17344. * @static
  17345. */
  17346. public static function lockForUpdate()
  17347. {
  17348. /** @var \Illuminate\Database\Query\Builder $instance */
  17349. return $instance->lockForUpdate();
  17350. }
  17351. /**
  17352. * Share lock the selected rows in the table.
  17353. *
  17354. * @return \Illuminate\Database\Query\Builder
  17355. * @static
  17356. */
  17357. public static function sharedLock()
  17358. {
  17359. /** @var \Illuminate\Database\Query\Builder $instance */
  17360. return $instance->sharedLock();
  17361. }
  17362. /**
  17363. * Get the SQL representation of the query.
  17364. *
  17365. * @return string
  17366. * @static
  17367. */
  17368. public static function toSql()
  17369. {
  17370. /** @var \Illuminate\Database\Query\Builder $instance */
  17371. return $instance->toSql();
  17372. }
  17373. /**
  17374. * Get the count of the total records for the paginator.
  17375. *
  17376. * @param array $columns
  17377. * @return int
  17378. * @static
  17379. */
  17380. public static function getCountForPagination($columns = [])
  17381. {
  17382. /** @var \Illuminate\Database\Query\Builder $instance */
  17383. return $instance->getCountForPagination($columns);
  17384. }
  17385. /**
  17386. * Concatenate values of a given column as a string.
  17387. *
  17388. * @param string $column
  17389. * @param string $glue
  17390. * @return string
  17391. * @static
  17392. */
  17393. public static function implode($column, $glue = '')
  17394. {
  17395. /** @var \Illuminate\Database\Query\Builder $instance */
  17396. return $instance->implode($column, $glue);
  17397. }
  17398. /**
  17399. * Determine if any rows exist for the current query.
  17400. *
  17401. * @return bool
  17402. * @static
  17403. */
  17404. public static function exists()
  17405. {
  17406. /** @var \Illuminate\Database\Query\Builder $instance */
  17407. return $instance->exists();
  17408. }
  17409. /**
  17410. * Determine if no rows exist for the current query.
  17411. *
  17412. * @return bool
  17413. * @static
  17414. */
  17415. public static function doesntExist()
  17416. {
  17417. /** @var \Illuminate\Database\Query\Builder $instance */
  17418. return $instance->doesntExist();
  17419. }
  17420. /**
  17421. * Retrieve the "count" result of the query.
  17422. *
  17423. * @param string $columns
  17424. * @return int
  17425. * @static
  17426. */
  17427. public static function count($columns = '*')
  17428. {
  17429. /** @var \Illuminate\Database\Query\Builder $instance */
  17430. return $instance->count($columns);
  17431. }
  17432. /**
  17433. * Retrieve the minimum value of a given column.
  17434. *
  17435. * @param string $column
  17436. * @return mixed
  17437. * @static
  17438. */
  17439. public static function min($column)
  17440. {
  17441. /** @var \Illuminate\Database\Query\Builder $instance */
  17442. return $instance->min($column);
  17443. }
  17444. /**
  17445. * Retrieve the maximum value of a given column.
  17446. *
  17447. * @param string $column
  17448. * @return mixed
  17449. * @static
  17450. */
  17451. public static function max($column)
  17452. {
  17453. /** @var \Illuminate\Database\Query\Builder $instance */
  17454. return $instance->max($column);
  17455. }
  17456. /**
  17457. * Retrieve the sum of the values of a given column.
  17458. *
  17459. * @param string $column
  17460. * @return mixed
  17461. * @static
  17462. */
  17463. public static function sum($column)
  17464. {
  17465. /** @var \Illuminate\Database\Query\Builder $instance */
  17466. return $instance->sum($column);
  17467. }
  17468. /**
  17469. * Retrieve the average of the values of a given column.
  17470. *
  17471. * @param string $column
  17472. * @return mixed
  17473. * @static
  17474. */
  17475. public static function avg($column)
  17476. {
  17477. /** @var \Illuminate\Database\Query\Builder $instance */
  17478. return $instance->avg($column);
  17479. }
  17480. /**
  17481. * Alias for the "avg" method.
  17482. *
  17483. * @param string $column
  17484. * @return mixed
  17485. * @static
  17486. */
  17487. public static function average($column)
  17488. {
  17489. /** @var \Illuminate\Database\Query\Builder $instance */
  17490. return $instance->average($column);
  17491. }
  17492. /**
  17493. * Execute an aggregate function on the database.
  17494. *
  17495. * @param string $function
  17496. * @param array $columns
  17497. * @return mixed
  17498. * @static
  17499. */
  17500. public static function aggregate($function, $columns = [])
  17501. {
  17502. /** @var \Illuminate\Database\Query\Builder $instance */
  17503. return $instance->aggregate($function, $columns);
  17504. }
  17505. /**
  17506. * Execute a numeric aggregate function on the database.
  17507. *
  17508. * @param string $function
  17509. * @param array $columns
  17510. * @return float|int
  17511. * @static
  17512. */
  17513. public static function numericAggregate($function, $columns = [])
  17514. {
  17515. /** @var \Illuminate\Database\Query\Builder $instance */
  17516. return $instance->numericAggregate($function, $columns);
  17517. }
  17518. /**
  17519. * Insert a new record into the database.
  17520. *
  17521. * @param array $values
  17522. * @return bool
  17523. * @static
  17524. */
  17525. public static function insert($values)
  17526. {
  17527. /** @var \Illuminate\Database\Query\Builder $instance */
  17528. return $instance->insert($values);
  17529. }
  17530. /**
  17531. * Insert a new record into the database while ignoring errors.
  17532. *
  17533. * @param array $values
  17534. * @return int
  17535. * @static
  17536. */
  17537. public static function insertOrIgnore($values)
  17538. {
  17539. /** @var \Illuminate\Database\Query\Builder $instance */
  17540. return $instance->insertOrIgnore($values);
  17541. }
  17542. /**
  17543. * Insert a new record and get the value of the primary key.
  17544. *
  17545. * @param array $values
  17546. * @param string|null $sequence
  17547. * @return int
  17548. * @static
  17549. */
  17550. public static function insertGetId($values, $sequence = null)
  17551. {
  17552. /** @var \Illuminate\Database\Query\Builder $instance */
  17553. return $instance->insertGetId($values, $sequence);
  17554. }
  17555. /**
  17556. * Insert new records into the table using a subquery.
  17557. *
  17558. * @param array $columns
  17559. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17560. * @return bool
  17561. * @static
  17562. */
  17563. public static function insertUsing($columns, $query)
  17564. {
  17565. /** @var \Illuminate\Database\Query\Builder $instance */
  17566. return $instance->insertUsing($columns, $query);
  17567. }
  17568. /**
  17569. * Insert or update a record matching the attributes, and fill it with values.
  17570. *
  17571. * @param array $attributes
  17572. * @param array $values
  17573. * @return bool
  17574. * @static
  17575. */
  17576. public static function updateOrInsert($attributes, $values = [])
  17577. {
  17578. /** @var \Illuminate\Database\Query\Builder $instance */
  17579. return $instance->updateOrInsert($attributes, $values);
  17580. }
  17581. /**
  17582. * Run a truncate statement on the table.
  17583. *
  17584. * @return void
  17585. * @static
  17586. */
  17587. public static function truncate()
  17588. {
  17589. /** @var \Illuminate\Database\Query\Builder $instance */
  17590. $instance->truncate();
  17591. }
  17592. /**
  17593. * Create a raw database expression.
  17594. *
  17595. * @param mixed $value
  17596. * @return \Illuminate\Database\Query\Expression
  17597. * @static
  17598. */
  17599. public static function raw($value)
  17600. {
  17601. /** @var \Illuminate\Database\Query\Builder $instance */
  17602. return $instance->raw($value);
  17603. }
  17604. /**
  17605. * Get the current query value bindings in a flattened array.
  17606. *
  17607. * @return array
  17608. * @static
  17609. */
  17610. public static function getBindings()
  17611. {
  17612. /** @var \Illuminate\Database\Query\Builder $instance */
  17613. return $instance->getBindings();
  17614. }
  17615. /**
  17616. * Get the raw array of bindings.
  17617. *
  17618. * @return array
  17619. * @static
  17620. */
  17621. public static function getRawBindings()
  17622. {
  17623. /** @var \Illuminate\Database\Query\Builder $instance */
  17624. return $instance->getRawBindings();
  17625. }
  17626. /**
  17627. * Set the bindings on the query builder.
  17628. *
  17629. * @param array $bindings
  17630. * @param string $type
  17631. * @return \Illuminate\Database\Query\Builder
  17632. * @throws \InvalidArgumentException
  17633. * @static
  17634. */
  17635. public static function setBindings($bindings, $type = 'where')
  17636. {
  17637. /** @var \Illuminate\Database\Query\Builder $instance */
  17638. return $instance->setBindings($bindings, $type);
  17639. }
  17640. /**
  17641. * Add a binding to the query.
  17642. *
  17643. * @param mixed $value
  17644. * @param string $type
  17645. * @return \Illuminate\Database\Query\Builder
  17646. * @throws \InvalidArgumentException
  17647. * @static
  17648. */
  17649. public static function addBinding($value, $type = 'where')
  17650. {
  17651. /** @var \Illuminate\Database\Query\Builder $instance */
  17652. return $instance->addBinding($value, $type);
  17653. }
  17654. /**
  17655. * Merge an array of bindings into our bindings.
  17656. *
  17657. * @param \Illuminate\Database\Query\Builder $query
  17658. * @return \Illuminate\Database\Query\Builder
  17659. * @static
  17660. */
  17661. public static function mergeBindings($query)
  17662. {
  17663. /** @var \Illuminate\Database\Query\Builder $instance */
  17664. return $instance->mergeBindings($query);
  17665. }
  17666. /**
  17667. * Get the database query processor instance.
  17668. *
  17669. * @return \Illuminate\Database\Query\Processors\Processor
  17670. * @static
  17671. */
  17672. public static function getProcessor()
  17673. {
  17674. /** @var \Illuminate\Database\Query\Builder $instance */
  17675. return $instance->getProcessor();
  17676. }
  17677. /**
  17678. * Get the query grammar instance.
  17679. *
  17680. * @return \Illuminate\Database\Query\Grammars\Grammar
  17681. * @static
  17682. */
  17683. public static function getGrammar()
  17684. {
  17685. /** @var \Illuminate\Database\Query\Builder $instance */
  17686. return $instance->getGrammar();
  17687. }
  17688. /**
  17689. * Use the write pdo for query.
  17690. *
  17691. * @return \Illuminate\Database\Query\Builder
  17692. * @static
  17693. */
  17694. public static function useWritePdo()
  17695. {
  17696. /** @var \Illuminate\Database\Query\Builder $instance */
  17697. return $instance->useWritePdo();
  17698. }
  17699. /**
  17700. * Clone the query without the given properties.
  17701. *
  17702. * @param array $properties
  17703. * @return static
  17704. * @static
  17705. */
  17706. public static function cloneWithout($properties)
  17707. {
  17708. /** @var \Illuminate\Database\Query\Builder $instance */
  17709. return $instance->cloneWithout($properties);
  17710. }
  17711. /**
  17712. * Clone the query without the given bindings.
  17713. *
  17714. * @param array $except
  17715. * @return static
  17716. * @static
  17717. */
  17718. public static function cloneWithoutBindings($except)
  17719. {
  17720. /** @var \Illuminate\Database\Query\Builder $instance */
  17721. return $instance->cloneWithoutBindings($except);
  17722. }
  17723. /**
  17724. * Dump the current SQL and bindings.
  17725. *
  17726. * @return \Illuminate\Database\Query\Builder
  17727. * @static
  17728. */
  17729. public static function dump()
  17730. {
  17731. /** @var \Illuminate\Database\Query\Builder $instance */
  17732. return $instance->dump();
  17733. }
  17734. /**
  17735. * Die and dump the current SQL and bindings.
  17736. *
  17737. * @return void
  17738. * @static
  17739. */
  17740. public static function dd()
  17741. {
  17742. /** @var \Illuminate\Database\Query\Builder $instance */
  17743. $instance->dd();
  17744. }
  17745. /**
  17746. * Register a custom macro.
  17747. *
  17748. * @param string $name
  17749. * @param object|callable $macro
  17750. * @return void
  17751. * @static
  17752. */
  17753. public static function macro($name, $macro)
  17754. {
  17755. \Illuminate\Database\Query\Builder::macro($name, $macro);
  17756. }
  17757. /**
  17758. * Mix another object into the class.
  17759. *
  17760. * @param object $mixin
  17761. * @param bool $replace
  17762. * @return void
  17763. * @throws \ReflectionException
  17764. * @static
  17765. */
  17766. public static function mixin($mixin, $replace = true)
  17767. {
  17768. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  17769. }
  17770. /**
  17771. * Checks if macro is registered.
  17772. *
  17773. * @param string $name
  17774. * @return bool
  17775. * @static
  17776. */
  17777. public static function hasMacro($name)
  17778. {
  17779. return \Illuminate\Database\Query\Builder::hasMacro($name);
  17780. }
  17781. /**
  17782. * Dynamically handle calls to the class.
  17783. *
  17784. * @param string $method
  17785. * @param array $parameters
  17786. * @return mixed
  17787. * @throws \BadMethodCallException
  17788. * @static
  17789. */
  17790. public static function macroCall($method, $parameters)
  17791. {
  17792. /** @var \Illuminate\Database\Query\Builder $instance */
  17793. return $instance->macroCall($method, $parameters);
  17794. }
  17795. }
  17796. class Event extends \Illuminate\Support\Facades\Event {}
  17797. class File extends \Illuminate\Support\Facades\File {}
  17798. class Gate extends \Illuminate\Support\Facades\Gate {}
  17799. class Hash extends \Illuminate\Support\Facades\Hash {}
  17800. class Lang extends \Illuminate\Support\Facades\Lang {}
  17801. class Log extends \Illuminate\Support\Facades\Log {}
  17802. class Mail extends \Illuminate\Support\Facades\Mail {}
  17803. class Notification extends \Illuminate\Support\Facades\Notification {}
  17804. class Password extends \Illuminate\Support\Facades\Password {}
  17805. class Queue extends \Illuminate\Support\Facades\Queue {}
  17806. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  17807. class Redis extends \Illuminate\Support\Facades\Redis {}
  17808. class Request extends \Illuminate\Support\Facades\Request {}
  17809. class Response extends \Illuminate\Support\Facades\Response {}
  17810. class Route extends \Illuminate\Support\Facades\Route {}
  17811. class Schema extends \Illuminate\Support\Facades\Schema {}
  17812. class Session extends \Illuminate\Support\Facades\Session {}
  17813. class Storage extends \Illuminate\Support\Facades\Storage {}
  17814. class Str extends \Illuminate\Support\Str {}
  17815. class URL extends \Illuminate\Support\Facades\URL {}
  17816. class Validator extends \Illuminate\Support\Facades\Validator {}
  17817. class View extends \Illuminate\Support\Facades\View {}
  17818. class Debugbar extends \Barryvdh\Debugbar\Facade {}
  17819. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  17820. class Uuid extends \Webpatser\Uuid\Uuid {}
  17821. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  17822. class JWTAuth extends \Tymon\JWTAuth\Facades\JWTAuth {}
  17823. class JWTFactory extends \Tymon\JWTAuth\Facades\JWTFactory {}
  17824. class QrCode extends \SimpleSoftwareIO\QrCode\Facades\QrCode {}
  17825. class Image extends \Intervention\Image\Facades\Image {}
  17826. class Strings extends \Songshenzong\Support\StringsFacade {}
  17827. }
  17828. namespace Illuminate\Support {
  17829. /**
  17830. * Methods commonly used in migrations
  17831. *
  17832. * @method Fluent after(string $column) Add the after modifier
  17833. * @method Fluent charset(string $charset) Add the character set modifier
  17834. * @method Fluent collation(string $collation) Add the collation modifier
  17835. * @method Fluent comment(string $comment) Add comment
  17836. * @method Fluent default($value) Add the default modifier
  17837. * @method Fluent first() Select first row
  17838. * @method Fluent index(string $name = null) Add the in dex clause
  17839. * @method Fluent on(string $table) `on` of a foreign key
  17840. * @method Fluent onDelete(string $action) `on delete` of a foreign key
  17841. * @method Fluent onUpdate(string $action) `on update` of a foreign key
  17842. * @method Fluent primary() Add the primary key modifier
  17843. * @method Fluent references(string $column) `references` of a foreign key
  17844. * @method Fluent nullable(bool $value = true) Add the nullable modifier
  17845. * @method Fluent unique(string $name = null) Add unique index clause
  17846. * @method Fluent unsigned() Add the unsigned modifier
  17847. * @method Fluent useCurrent() Add the default timestamp value
  17848. * @method Fluent change() Add the change modifier
  17849. */
  17850. class Fluent {}
  17851. }