_ide_helper.php 646 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel, to provide autocomplete information to your IDE
  5. * Generated for Laravel 7.26.1.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  10. * @see https://github.com/barryvdh/laravel-ide-helper
  11. */
  12. namespace Illuminate\Support\Facades {
  13. /**
  14. *
  15. *
  16. * @see \Illuminate\Contracts\Foundation\Application
  17. */
  18. class App {
  19. /**
  20. * Get the version number of the application.
  21. *
  22. * @return string
  23. * @static
  24. */
  25. public static function version()
  26. {
  27. /** @var \Illuminate\Foundation\Application $instance */
  28. return $instance->version();
  29. }
  30. /**
  31. * Run the given array of bootstrap classes.
  32. *
  33. * @param string[] $bootstrappers
  34. * @return void
  35. * @static
  36. */
  37. public static function bootstrapWith($bootstrappers)
  38. {
  39. /** @var \Illuminate\Foundation\Application $instance */
  40. $instance->bootstrapWith($bootstrappers);
  41. }
  42. /**
  43. * Register a callback to run after loading the environment.
  44. *
  45. * @param \Closure $callback
  46. * @return void
  47. * @static
  48. */
  49. public static function afterLoadingEnvironment($callback)
  50. {
  51. /** @var \Illuminate\Foundation\Application $instance */
  52. $instance->afterLoadingEnvironment($callback);
  53. }
  54. /**
  55. * Register a callback to run before a bootstrapper.
  56. *
  57. * @param string $bootstrapper
  58. * @param \Closure $callback
  59. * @return void
  60. * @static
  61. */
  62. public static function beforeBootstrapping($bootstrapper, $callback)
  63. {
  64. /** @var \Illuminate\Foundation\Application $instance */
  65. $instance->beforeBootstrapping($bootstrapper, $callback);
  66. }
  67. /**
  68. * Register a callback to run after a bootstrapper.
  69. *
  70. * @param string $bootstrapper
  71. * @param \Closure $callback
  72. * @return void
  73. * @static
  74. */
  75. public static function afterBootstrapping($bootstrapper, $callback)
  76. {
  77. /** @var \Illuminate\Foundation\Application $instance */
  78. $instance->afterBootstrapping($bootstrapper, $callback);
  79. }
  80. /**
  81. * Determine if the application has been bootstrapped before.
  82. *
  83. * @return bool
  84. * @static
  85. */
  86. public static function hasBeenBootstrapped()
  87. {
  88. /** @var \Illuminate\Foundation\Application $instance */
  89. return $instance->hasBeenBootstrapped();
  90. }
  91. /**
  92. * Set the base path for the application.
  93. *
  94. * @param string $basePath
  95. * @return \Illuminate\Foundation\Application
  96. * @static
  97. */
  98. public static function setBasePath($basePath)
  99. {
  100. /** @var \Illuminate\Foundation\Application $instance */
  101. return $instance->setBasePath($basePath);
  102. }
  103. /**
  104. * Get the path to the application "app" directory.
  105. *
  106. * @param string $path
  107. * @return string
  108. * @static
  109. */
  110. public static function path($path = '')
  111. {
  112. /** @var \Illuminate\Foundation\Application $instance */
  113. return $instance->path($path);
  114. }
  115. /**
  116. * Set the application directory.
  117. *
  118. * @param string $path
  119. * @return \Illuminate\Foundation\Application
  120. * @static
  121. */
  122. public static function useAppPath($path)
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->useAppPath($path);
  126. }
  127. /**
  128. * Get the base path of the Laravel installation.
  129. *
  130. * @param string $path Optionally, a path to append to the base path
  131. * @return string
  132. * @static
  133. */
  134. public static function basePath($path = '')
  135. {
  136. /** @var \Illuminate\Foundation\Application $instance */
  137. return $instance->basePath($path);
  138. }
  139. /**
  140. * Get the path to the bootstrap directory.
  141. *
  142. * @param string $path Optionally, a path to append to the bootstrap path
  143. * @return string
  144. * @static
  145. */
  146. public static function bootstrapPath($path = '')
  147. {
  148. /** @var \Illuminate\Foundation\Application $instance */
  149. return $instance->bootstrapPath($path);
  150. }
  151. /**
  152. * Get the path to the application configuration files.
  153. *
  154. * @param string $path Optionally, a path to append to the config path
  155. * @return string
  156. * @static
  157. */
  158. public static function configPath($path = '')
  159. {
  160. /** @var \Illuminate\Foundation\Application $instance */
  161. return $instance->configPath($path);
  162. }
  163. /**
  164. * Get the path to the database directory.
  165. *
  166. * @param string $path Optionally, a path to append to the database path
  167. * @return string
  168. * @static
  169. */
  170. public static function databasePath($path = '')
  171. {
  172. /** @var \Illuminate\Foundation\Application $instance */
  173. return $instance->databasePath($path);
  174. }
  175. /**
  176. * Set the database directory.
  177. *
  178. * @param string $path
  179. * @return \Illuminate\Foundation\Application
  180. * @static
  181. */
  182. public static function useDatabasePath($path)
  183. {
  184. /** @var \Illuminate\Foundation\Application $instance */
  185. return $instance->useDatabasePath($path);
  186. }
  187. /**
  188. * Get the path to the language files.
  189. *
  190. * @return string
  191. * @static
  192. */
  193. public static function langPath()
  194. {
  195. /** @var \Illuminate\Foundation\Application $instance */
  196. return $instance->langPath();
  197. }
  198. /**
  199. * Get the path to the public / web directory.
  200. *
  201. * @return string
  202. * @static
  203. */
  204. public static function publicPath()
  205. {
  206. /** @var \Illuminate\Foundation\Application $instance */
  207. return $instance->publicPath();
  208. }
  209. /**
  210. * Get the path to the storage directory.
  211. *
  212. * @return string
  213. * @static
  214. */
  215. public static function storagePath()
  216. {
  217. /** @var \Illuminate\Foundation\Application $instance */
  218. return $instance->storagePath();
  219. }
  220. /**
  221. * Set the storage directory.
  222. *
  223. * @param string $path
  224. * @return \Illuminate\Foundation\Application
  225. * @static
  226. */
  227. public static function useStoragePath($path)
  228. {
  229. /** @var \Illuminate\Foundation\Application $instance */
  230. return $instance->useStoragePath($path);
  231. }
  232. /**
  233. * Get the path to the resources directory.
  234. *
  235. * @param string $path
  236. * @return string
  237. * @static
  238. */
  239. public static function resourcePath($path = '')
  240. {
  241. /** @var \Illuminate\Foundation\Application $instance */
  242. return $instance->resourcePath($path);
  243. }
  244. /**
  245. * Get the path to the environment file directory.
  246. *
  247. * @return string
  248. * @static
  249. */
  250. public static function environmentPath()
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->environmentPath();
  254. }
  255. /**
  256. * Set the directory for the environment file.
  257. *
  258. * @param string $path
  259. * @return \Illuminate\Foundation\Application
  260. * @static
  261. */
  262. public static function useEnvironmentPath($path)
  263. {
  264. /** @var \Illuminate\Foundation\Application $instance */
  265. return $instance->useEnvironmentPath($path);
  266. }
  267. /**
  268. * Set the environment file to be loaded during bootstrapping.
  269. *
  270. * @param string $file
  271. * @return \Illuminate\Foundation\Application
  272. * @static
  273. */
  274. public static function loadEnvironmentFrom($file)
  275. {
  276. /** @var \Illuminate\Foundation\Application $instance */
  277. return $instance->loadEnvironmentFrom($file);
  278. }
  279. /**
  280. * Get the environment file the application is using.
  281. *
  282. * @return string
  283. * @static
  284. */
  285. public static function environmentFile()
  286. {
  287. /** @var \Illuminate\Foundation\Application $instance */
  288. return $instance->environmentFile();
  289. }
  290. /**
  291. * Get the fully qualified path to the environment file.
  292. *
  293. * @return string
  294. * @static
  295. */
  296. public static function environmentFilePath()
  297. {
  298. /** @var \Illuminate\Foundation\Application $instance */
  299. return $instance->environmentFilePath();
  300. }
  301. /**
  302. * Get or check the current application environment.
  303. *
  304. * @param string|array $environments
  305. * @return string|bool
  306. * @static
  307. */
  308. public static function environment(...$environments)
  309. {
  310. /** @var \Illuminate\Foundation\Application $instance */
  311. return $instance->environment(...$environments);
  312. }
  313. /**
  314. * Determine if application is in local environment.
  315. *
  316. * @return bool
  317. * @static
  318. */
  319. public static function isLocal()
  320. {
  321. /** @var \Illuminate\Foundation\Application $instance */
  322. return $instance->isLocal();
  323. }
  324. /**
  325. * Determine if application is in production environment.
  326. *
  327. * @return bool
  328. * @static
  329. */
  330. public static function isProduction()
  331. {
  332. /** @var \Illuminate\Foundation\Application $instance */
  333. return $instance->isProduction();
  334. }
  335. /**
  336. * Detect the application's current environment.
  337. *
  338. * @param \Closure $callback
  339. * @return string
  340. * @static
  341. */
  342. public static function detectEnvironment($callback)
  343. {
  344. /** @var \Illuminate\Foundation\Application $instance */
  345. return $instance->detectEnvironment($callback);
  346. }
  347. /**
  348. * Determine if the application is running in the console.
  349. *
  350. * @return bool
  351. * @static
  352. */
  353. public static function runningInConsole()
  354. {
  355. /** @var \Illuminate\Foundation\Application $instance */
  356. return $instance->runningInConsole();
  357. }
  358. /**
  359. * Determine if the application is running unit tests.
  360. *
  361. * @return bool
  362. * @static
  363. */
  364. public static function runningUnitTests()
  365. {
  366. /** @var \Illuminate\Foundation\Application $instance */
  367. return $instance->runningUnitTests();
  368. }
  369. /**
  370. * Register all of the configured providers.
  371. *
  372. * @return void
  373. * @static
  374. */
  375. public static function registerConfiguredProviders()
  376. {
  377. /** @var \Illuminate\Foundation\Application $instance */
  378. $instance->registerConfiguredProviders();
  379. }
  380. /**
  381. * Register a service provider with the application.
  382. *
  383. * @param \Illuminate\Support\ServiceProvider|string $provider
  384. * @param bool $force
  385. * @return \Illuminate\Support\ServiceProvider
  386. * @static
  387. */
  388. public static function register($provider, $force = false)
  389. {
  390. /** @var \Illuminate\Foundation\Application $instance */
  391. return $instance->register($provider, $force);
  392. }
  393. /**
  394. * Get the registered service provider instance if it exists.
  395. *
  396. * @param \Illuminate\Support\ServiceProvider|string $provider
  397. * @return \Illuminate\Support\ServiceProvider|null
  398. * @static
  399. */
  400. public static function getProvider($provider)
  401. {
  402. /** @var \Illuminate\Foundation\Application $instance */
  403. return $instance->getProvider($provider);
  404. }
  405. /**
  406. * Get the registered service provider instances if any exist.
  407. *
  408. * @param \Illuminate\Support\ServiceProvider|string $provider
  409. * @return array
  410. * @static
  411. */
  412. public static function getProviders($provider)
  413. {
  414. /** @var \Illuminate\Foundation\Application $instance */
  415. return $instance->getProviders($provider);
  416. }
  417. /**
  418. * Resolve a service provider instance from the class name.
  419. *
  420. * @param string $provider
  421. * @return \Illuminate\Support\ServiceProvider
  422. * @static
  423. */
  424. public static function resolveProvider($provider)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. return $instance->resolveProvider($provider);
  428. }
  429. /**
  430. * Load and boot all of the remaining deferred providers.
  431. *
  432. * @return void
  433. * @static
  434. */
  435. public static function loadDeferredProviders()
  436. {
  437. /** @var \Illuminate\Foundation\Application $instance */
  438. $instance->loadDeferredProviders();
  439. }
  440. /**
  441. * Load the provider for a deferred service.
  442. *
  443. * @param string $service
  444. * @return void
  445. * @static
  446. */
  447. public static function loadDeferredProvider($service)
  448. {
  449. /** @var \Illuminate\Foundation\Application $instance */
  450. $instance->loadDeferredProvider($service);
  451. }
  452. /**
  453. * Register a deferred provider and service.
  454. *
  455. * @param string $provider
  456. * @param string|null $service
  457. * @return void
  458. * @static
  459. */
  460. public static function registerDeferredProvider($provider, $service = null)
  461. {
  462. /** @var \Illuminate\Foundation\Application $instance */
  463. $instance->registerDeferredProvider($provider, $service);
  464. }
  465. /**
  466. * Resolve the given type from the container.
  467. *
  468. * @param string $abstract
  469. * @param array $parameters
  470. * @return mixed
  471. * @static
  472. */
  473. public static function make($abstract, $parameters = [])
  474. {
  475. /** @var \Illuminate\Foundation\Application $instance */
  476. return $instance->make($abstract, $parameters);
  477. }
  478. /**
  479. * Determine if the given abstract type has been bound.
  480. *
  481. * @param string $abstract
  482. * @return bool
  483. * @static
  484. */
  485. public static function bound($abstract)
  486. {
  487. /** @var \Illuminate\Foundation\Application $instance */
  488. return $instance->bound($abstract);
  489. }
  490. /**
  491. * Determine if the application has booted.
  492. *
  493. * @return bool
  494. * @static
  495. */
  496. public static function isBooted()
  497. {
  498. /** @var \Illuminate\Foundation\Application $instance */
  499. return $instance->isBooted();
  500. }
  501. /**
  502. * Boot the application's service providers.
  503. *
  504. * @return void
  505. * @static
  506. */
  507. public static function boot()
  508. {
  509. /** @var \Illuminate\Foundation\Application $instance */
  510. $instance->boot();
  511. }
  512. /**
  513. * Register a new boot listener.
  514. *
  515. * @param callable $callback
  516. * @return void
  517. * @static
  518. */
  519. public static function booting($callback)
  520. {
  521. /** @var \Illuminate\Foundation\Application $instance */
  522. $instance->booting($callback);
  523. }
  524. /**
  525. * Register a new "booted" listener.
  526. *
  527. * @param callable $callback
  528. * @return void
  529. * @static
  530. */
  531. public static function booted($callback)
  532. {
  533. /** @var \Illuminate\Foundation\Application $instance */
  534. $instance->booted($callback);
  535. }
  536. /**
  537. * {@inheritdoc}
  538. *
  539. * @static
  540. */
  541. public static function handle($request, $type = 1, $catch = true)
  542. {
  543. /** @var \Illuminate\Foundation\Application $instance */
  544. return $instance->handle($request, $type, $catch);
  545. }
  546. /**
  547. * Determine if middleware has been disabled for the application.
  548. *
  549. * @return bool
  550. * @static
  551. */
  552. public static function shouldSkipMiddleware()
  553. {
  554. /** @var \Illuminate\Foundation\Application $instance */
  555. return $instance->shouldSkipMiddleware();
  556. }
  557. /**
  558. * Get the path to the cached services.php file.
  559. *
  560. * @return string
  561. * @static
  562. */
  563. public static function getCachedServicesPath()
  564. {
  565. /** @var \Illuminate\Foundation\Application $instance */
  566. return $instance->getCachedServicesPath();
  567. }
  568. /**
  569. * Get the path to the cached packages.php file.
  570. *
  571. * @return string
  572. * @static
  573. */
  574. public static function getCachedPackagesPath()
  575. {
  576. /** @var \Illuminate\Foundation\Application $instance */
  577. return $instance->getCachedPackagesPath();
  578. }
  579. /**
  580. * Determine if the application configuration is cached.
  581. *
  582. * @return bool
  583. * @static
  584. */
  585. public static function configurationIsCached()
  586. {
  587. /** @var \Illuminate\Foundation\Application $instance */
  588. return $instance->configurationIsCached();
  589. }
  590. /**
  591. * Get the path to the configuration cache file.
  592. *
  593. * @return string
  594. * @static
  595. */
  596. public static function getCachedConfigPath()
  597. {
  598. /** @var \Illuminate\Foundation\Application $instance */
  599. return $instance->getCachedConfigPath();
  600. }
  601. /**
  602. * Determine if the application routes are cached.
  603. *
  604. * @return bool
  605. * @static
  606. */
  607. public static function routesAreCached()
  608. {
  609. /** @var \Illuminate\Foundation\Application $instance */
  610. return $instance->routesAreCached();
  611. }
  612. /**
  613. * Get the path to the routes cache file.
  614. *
  615. * @return string
  616. * @static
  617. */
  618. public static function getCachedRoutesPath()
  619. {
  620. /** @var \Illuminate\Foundation\Application $instance */
  621. return $instance->getCachedRoutesPath();
  622. }
  623. /**
  624. * Determine if the application events are cached.
  625. *
  626. * @return bool
  627. * @static
  628. */
  629. public static function eventsAreCached()
  630. {
  631. /** @var \Illuminate\Foundation\Application $instance */
  632. return $instance->eventsAreCached();
  633. }
  634. /**
  635. * Get the path to the events cache file.
  636. *
  637. * @return string
  638. * @static
  639. */
  640. public static function getCachedEventsPath()
  641. {
  642. /** @var \Illuminate\Foundation\Application $instance */
  643. return $instance->getCachedEventsPath();
  644. }
  645. /**
  646. * Add new prefix to list of absolute path prefixes.
  647. *
  648. * @param string $prefix
  649. * @return \Illuminate\Foundation\Application
  650. * @static
  651. */
  652. public static function addAbsoluteCachePathPrefix($prefix)
  653. {
  654. /** @var \Illuminate\Foundation\Application $instance */
  655. return $instance->addAbsoluteCachePathPrefix($prefix);
  656. }
  657. /**
  658. * Determine if the application is currently down for maintenance.
  659. *
  660. * @return bool
  661. * @static
  662. */
  663. public static function isDownForMaintenance()
  664. {
  665. /** @var \Illuminate\Foundation\Application $instance */
  666. return $instance->isDownForMaintenance();
  667. }
  668. /**
  669. * Throw an HttpException with the given data.
  670. *
  671. * @param int $code
  672. * @param string $message
  673. * @param array $headers
  674. * @return void
  675. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  676. * @throws \Symfony\Component\HttpKernel\Exception\NotFoundHttpException
  677. * @static
  678. */
  679. public static function abort($code, $message = '', $headers = [])
  680. {
  681. /** @var \Illuminate\Foundation\Application $instance */
  682. $instance->abort($code, $message, $headers);
  683. }
  684. /**
  685. * Register a terminating callback with the application.
  686. *
  687. * @param callable|string $callback
  688. * @return \Illuminate\Foundation\Application
  689. * @static
  690. */
  691. public static function terminating($callback)
  692. {
  693. /** @var \Illuminate\Foundation\Application $instance */
  694. return $instance->terminating($callback);
  695. }
  696. /**
  697. * Terminate the application.
  698. *
  699. * @return void
  700. * @static
  701. */
  702. public static function terminate()
  703. {
  704. /** @var \Illuminate\Foundation\Application $instance */
  705. $instance->terminate();
  706. }
  707. /**
  708. * Get the service providers that have been loaded.
  709. *
  710. * @return array
  711. * @static
  712. */
  713. public static function getLoadedProviders()
  714. {
  715. /** @var \Illuminate\Foundation\Application $instance */
  716. return $instance->getLoadedProviders();
  717. }
  718. /**
  719. * Determine if the given service provider is loaded.
  720. *
  721. * @param string $provider
  722. * @return bool
  723. * @static
  724. */
  725. public static function providerIsLoaded($provider)
  726. {
  727. /** @var \Illuminate\Foundation\Application $instance */
  728. return $instance->providerIsLoaded($provider);
  729. }
  730. /**
  731. * Get the application's deferred services.
  732. *
  733. * @return array
  734. * @static
  735. */
  736. public static function getDeferredServices()
  737. {
  738. /** @var \Illuminate\Foundation\Application $instance */
  739. return $instance->getDeferredServices();
  740. }
  741. /**
  742. * Set the application's deferred services.
  743. *
  744. * @param array $services
  745. * @return void
  746. * @static
  747. */
  748. public static function setDeferredServices($services)
  749. {
  750. /** @var \Illuminate\Foundation\Application $instance */
  751. $instance->setDeferredServices($services);
  752. }
  753. /**
  754. * Add an array of services to the application's deferred services.
  755. *
  756. * @param array $services
  757. * @return void
  758. * @static
  759. */
  760. public static function addDeferredServices($services)
  761. {
  762. /** @var \Illuminate\Foundation\Application $instance */
  763. $instance->addDeferredServices($services);
  764. }
  765. /**
  766. * Determine if the given service is a deferred service.
  767. *
  768. * @param string $service
  769. * @return bool
  770. * @static
  771. */
  772. public static function isDeferredService($service)
  773. {
  774. /** @var \Illuminate\Foundation\Application $instance */
  775. return $instance->isDeferredService($service);
  776. }
  777. /**
  778. * Configure the real-time facade namespace.
  779. *
  780. * @param string $namespace
  781. * @return void
  782. * @static
  783. */
  784. public static function provideFacades($namespace)
  785. {
  786. /** @var \Illuminate\Foundation\Application $instance */
  787. $instance->provideFacades($namespace);
  788. }
  789. /**
  790. * Get the current application locale.
  791. *
  792. * @return string
  793. * @static
  794. */
  795. public static function getLocale()
  796. {
  797. /** @var \Illuminate\Foundation\Application $instance */
  798. return $instance->getLocale();
  799. }
  800. /**
  801. * Get the current application fallback locale.
  802. *
  803. * @return string
  804. * @static
  805. */
  806. public static function getFallbackLocale()
  807. {
  808. /** @var \Illuminate\Foundation\Application $instance */
  809. return $instance->getFallbackLocale();
  810. }
  811. /**
  812. * Set the current application locale.
  813. *
  814. * @param string $locale
  815. * @return void
  816. * @static
  817. */
  818. public static function setLocale($locale)
  819. {
  820. /** @var \Illuminate\Foundation\Application $instance */
  821. $instance->setLocale($locale);
  822. }
  823. /**
  824. * Set the current application fallback locale.
  825. *
  826. * @param string $fallbackLocale
  827. * @return void
  828. * @static
  829. */
  830. public static function setFallbackLocale($fallbackLocale)
  831. {
  832. /** @var \Illuminate\Foundation\Application $instance */
  833. $instance->setFallbackLocale($fallbackLocale);
  834. }
  835. /**
  836. * Determine if application locale is the given locale.
  837. *
  838. * @param string $locale
  839. * @return bool
  840. * @static
  841. */
  842. public static function isLocale($locale)
  843. {
  844. /** @var \Illuminate\Foundation\Application $instance */
  845. return $instance->isLocale($locale);
  846. }
  847. /**
  848. * Register the core class aliases in the container.
  849. *
  850. * @return void
  851. * @static
  852. */
  853. public static function registerCoreContainerAliases()
  854. {
  855. /** @var \Illuminate\Foundation\Application $instance */
  856. $instance->registerCoreContainerAliases();
  857. }
  858. /**
  859. * Flush the container of all bindings and resolved instances.
  860. *
  861. * @return void
  862. * @static
  863. */
  864. public static function flush()
  865. {
  866. /** @var \Illuminate\Foundation\Application $instance */
  867. $instance->flush();
  868. }
  869. /**
  870. * Get the application namespace.
  871. *
  872. * @return string
  873. * @throws \RuntimeException
  874. * @static
  875. */
  876. public static function getNamespace()
  877. {
  878. /** @var \Illuminate\Foundation\Application $instance */
  879. return $instance->getNamespace();
  880. }
  881. /**
  882. * Define a contextual binding.
  883. *
  884. * @param array|string $concrete
  885. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  886. * @static
  887. */
  888. public static function when($concrete)
  889. { //Method inherited from \Illuminate\Container\Container
  890. /** @var \Illuminate\Foundation\Application $instance */
  891. return $instance->when($concrete);
  892. }
  893. /**
  894. * Returns true if the container can return an entry for the given identifier.
  895. *
  896. * Returns false otherwise.
  897. *
  898. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  899. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  900. *
  901. * @param string $id Identifier of the entry to look for.
  902. * @return bool
  903. * @static
  904. */
  905. public static function has($id)
  906. { //Method inherited from \Illuminate\Container\Container
  907. /** @var \Illuminate\Foundation\Application $instance */
  908. return $instance->has($id);
  909. }
  910. /**
  911. * Determine if the given abstract type has been resolved.
  912. *
  913. * @param string $abstract
  914. * @return bool
  915. * @static
  916. */
  917. public static function resolved($abstract)
  918. { //Method inherited from \Illuminate\Container\Container
  919. /** @var \Illuminate\Foundation\Application $instance */
  920. return $instance->resolved($abstract);
  921. }
  922. /**
  923. * Determine if a given type is shared.
  924. *
  925. * @param string $abstract
  926. * @return bool
  927. * @static
  928. */
  929. public static function isShared($abstract)
  930. { //Method inherited from \Illuminate\Container\Container
  931. /** @var \Illuminate\Foundation\Application $instance */
  932. return $instance->isShared($abstract);
  933. }
  934. /**
  935. * Determine if a given string is an alias.
  936. *
  937. * @param string $name
  938. * @return bool
  939. * @static
  940. */
  941. public static function isAlias($name)
  942. { //Method inherited from \Illuminate\Container\Container
  943. /** @var \Illuminate\Foundation\Application $instance */
  944. return $instance->isAlias($name);
  945. }
  946. /**
  947. * Register a binding with the container.
  948. *
  949. * @param string $abstract
  950. * @param \Closure|string|null $concrete
  951. * @param bool $shared
  952. * @return void
  953. * @static
  954. */
  955. public static function bind($abstract, $concrete = null, $shared = false)
  956. { //Method inherited from \Illuminate\Container\Container
  957. /** @var \Illuminate\Foundation\Application $instance */
  958. $instance->bind($abstract, $concrete, $shared);
  959. }
  960. /**
  961. * Determine if the container has a method binding.
  962. *
  963. * @param string $method
  964. * @return bool
  965. * @static
  966. */
  967. public static function hasMethodBinding($method)
  968. { //Method inherited from \Illuminate\Container\Container
  969. /** @var \Illuminate\Foundation\Application $instance */
  970. return $instance->hasMethodBinding($method);
  971. }
  972. /**
  973. * Bind a callback to resolve with Container::call.
  974. *
  975. * @param array|string $method
  976. * @param \Closure $callback
  977. * @return void
  978. * @static
  979. */
  980. public static function bindMethod($method, $callback)
  981. { //Method inherited from \Illuminate\Container\Container
  982. /** @var \Illuminate\Foundation\Application $instance */
  983. $instance->bindMethod($method, $callback);
  984. }
  985. /**
  986. * Get the method binding for the given method.
  987. *
  988. * @param string $method
  989. * @param mixed $instance
  990. * @return mixed
  991. * @static
  992. */
  993. public static function callMethodBinding($method, $instance)
  994. { //Method inherited from \Illuminate\Container\Container
  995. /** @var \Illuminate\Foundation\Application $instance */
  996. return $instance->callMethodBinding($method, $instance);
  997. }
  998. /**
  999. * Add a contextual binding to the container.
  1000. *
  1001. * @param string $concrete
  1002. * @param string $abstract
  1003. * @param \Closure|string $implementation
  1004. * @return void
  1005. * @static
  1006. */
  1007. public static function addContextualBinding($concrete, $abstract, $implementation)
  1008. { //Method inherited from \Illuminate\Container\Container
  1009. /** @var \Illuminate\Foundation\Application $instance */
  1010. $instance->addContextualBinding($concrete, $abstract, $implementation);
  1011. }
  1012. /**
  1013. * Register a binding if it hasn't already been registered.
  1014. *
  1015. * @param string $abstract
  1016. * @param \Closure|string|null $concrete
  1017. * @param bool $shared
  1018. * @return void
  1019. * @static
  1020. */
  1021. public static function bindIf($abstract, $concrete = null, $shared = false)
  1022. { //Method inherited from \Illuminate\Container\Container
  1023. /** @var \Illuminate\Foundation\Application $instance */
  1024. $instance->bindIf($abstract, $concrete, $shared);
  1025. }
  1026. /**
  1027. * Register a shared binding in the container.
  1028. *
  1029. * @param string $abstract
  1030. * @param \Closure|string|null $concrete
  1031. * @return void
  1032. * @static
  1033. */
  1034. public static function singleton($abstract, $concrete = null)
  1035. { //Method inherited from \Illuminate\Container\Container
  1036. /** @var \Illuminate\Foundation\Application $instance */
  1037. $instance->singleton($abstract, $concrete);
  1038. }
  1039. /**
  1040. * Register a shared binding if it hasn't already been registered.
  1041. *
  1042. * @param string $abstract
  1043. * @param \Closure|string|null $concrete
  1044. * @return void
  1045. * @static
  1046. */
  1047. public static function singletonIf($abstract, $concrete = null)
  1048. { //Method inherited from \Illuminate\Container\Container
  1049. /** @var \Illuminate\Foundation\Application $instance */
  1050. $instance->singletonIf($abstract, $concrete);
  1051. }
  1052. /**
  1053. * "Extend" an abstract type in the container.
  1054. *
  1055. * @param string $abstract
  1056. * @param \Closure $closure
  1057. * @return void
  1058. * @throws \InvalidArgumentException
  1059. * @static
  1060. */
  1061. public static function extend($abstract, $closure)
  1062. { //Method inherited from \Illuminate\Container\Container
  1063. /** @var \Illuminate\Foundation\Application $instance */
  1064. $instance->extend($abstract, $closure);
  1065. }
  1066. /**
  1067. * Register an existing instance as shared in the container.
  1068. *
  1069. * @param string $abstract
  1070. * @param mixed $instance
  1071. * @return mixed
  1072. * @static
  1073. */
  1074. public static function instance($abstract, $instance)
  1075. { //Method inherited from \Illuminate\Container\Container
  1076. /** @var \Illuminate\Foundation\Application $instance */
  1077. return $instance->instance($abstract, $instance);
  1078. }
  1079. /**
  1080. * Assign a set of tags to a given binding.
  1081. *
  1082. * @param array|string $abstracts
  1083. * @param array|mixed $tags
  1084. * @return void
  1085. * @static
  1086. */
  1087. public static function tag($abstracts, $tags)
  1088. { //Method inherited from \Illuminate\Container\Container
  1089. /** @var \Illuminate\Foundation\Application $instance */
  1090. $instance->tag($abstracts, $tags);
  1091. }
  1092. /**
  1093. * Resolve all of the bindings for a given tag.
  1094. *
  1095. * @param string $tag
  1096. * @return \Illuminate\Container\iterable
  1097. * @static
  1098. */
  1099. public static function tagged($tag)
  1100. { //Method inherited from \Illuminate\Container\Container
  1101. /** @var \Illuminate\Foundation\Application $instance */
  1102. return $instance->tagged($tag);
  1103. }
  1104. /**
  1105. * Alias a type to a different name.
  1106. *
  1107. * @param string $abstract
  1108. * @param string $alias
  1109. * @return void
  1110. * @throws \LogicException
  1111. * @static
  1112. */
  1113. public static function alias($abstract, $alias)
  1114. { //Method inherited from \Illuminate\Container\Container
  1115. /** @var \Illuminate\Foundation\Application $instance */
  1116. $instance->alias($abstract, $alias);
  1117. }
  1118. /**
  1119. * Bind a new callback to an abstract's rebind event.
  1120. *
  1121. * @param string $abstract
  1122. * @param \Closure $callback
  1123. * @return mixed
  1124. * @static
  1125. */
  1126. public static function rebinding($abstract, $callback)
  1127. { //Method inherited from \Illuminate\Container\Container
  1128. /** @var \Illuminate\Foundation\Application $instance */
  1129. return $instance->rebinding($abstract, $callback);
  1130. }
  1131. /**
  1132. * Refresh an instance on the given target and method.
  1133. *
  1134. * @param string $abstract
  1135. * @param mixed $target
  1136. * @param string $method
  1137. * @return mixed
  1138. * @static
  1139. */
  1140. public static function refresh($abstract, $target, $method)
  1141. { //Method inherited from \Illuminate\Container\Container
  1142. /** @var \Illuminate\Foundation\Application $instance */
  1143. return $instance->refresh($abstract, $target, $method);
  1144. }
  1145. /**
  1146. * Wrap the given closure such that its dependencies will be injected when executed.
  1147. *
  1148. * @param \Closure $callback
  1149. * @param array $parameters
  1150. * @return \Closure
  1151. * @static
  1152. */
  1153. public static function wrap($callback, $parameters = [])
  1154. { //Method inherited from \Illuminate\Container\Container
  1155. /** @var \Illuminate\Foundation\Application $instance */
  1156. return $instance->wrap($callback, $parameters);
  1157. }
  1158. /**
  1159. * Call the given Closure / class@method and inject its dependencies.
  1160. *
  1161. * @param callable|string $callback
  1162. * @param \Illuminate\Container\array<string, mixed> $parameters
  1163. * @param string|null $defaultMethod
  1164. * @return mixed
  1165. * @throws \InvalidArgumentException
  1166. * @static
  1167. */
  1168. public static function call($callback, $parameters = [], $defaultMethod = null)
  1169. { //Method inherited from \Illuminate\Container\Container
  1170. /** @var \Illuminate\Foundation\Application $instance */
  1171. return $instance->call($callback, $parameters, $defaultMethod);
  1172. }
  1173. /**
  1174. * Get a closure to resolve the given type from the container.
  1175. *
  1176. * @param string $abstract
  1177. * @return \Closure
  1178. * @static
  1179. */
  1180. public static function factory($abstract)
  1181. { //Method inherited from \Illuminate\Container\Container
  1182. /** @var \Illuminate\Foundation\Application $instance */
  1183. return $instance->factory($abstract);
  1184. }
  1185. /**
  1186. * An alias function name for make().
  1187. *
  1188. * @param string $abstract
  1189. * @param array $parameters
  1190. * @return mixed
  1191. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1192. * @static
  1193. */
  1194. public static function makeWith($abstract, $parameters = [])
  1195. { //Method inherited from \Illuminate\Container\Container
  1196. /** @var \Illuminate\Foundation\Application $instance */
  1197. return $instance->makeWith($abstract, $parameters);
  1198. }
  1199. /**
  1200. * Finds an entry of the container by its identifier and returns it.
  1201. *
  1202. * @param string $id Identifier of the entry to look for.
  1203. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1204. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1205. * @return mixed Entry.
  1206. * @static
  1207. */
  1208. public static function get($id)
  1209. { //Method inherited from \Illuminate\Container\Container
  1210. /** @var \Illuminate\Foundation\Application $instance */
  1211. return $instance->get($id);
  1212. }
  1213. /**
  1214. * Instantiate a concrete instance of the given type.
  1215. *
  1216. * @param \Closure|string $concrete
  1217. * @return mixed
  1218. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1219. * @static
  1220. */
  1221. public static function build($concrete)
  1222. { //Method inherited from \Illuminate\Container\Container
  1223. /** @var \Illuminate\Foundation\Application $instance */
  1224. return $instance->build($concrete);
  1225. }
  1226. /**
  1227. * Register a new resolving callback.
  1228. *
  1229. * @param \Closure|string $abstract
  1230. * @param \Closure|null $callback
  1231. * @return void
  1232. * @static
  1233. */
  1234. public static function resolving($abstract, $callback = null)
  1235. { //Method inherited from \Illuminate\Container\Container
  1236. /** @var \Illuminate\Foundation\Application $instance */
  1237. $instance->resolving($abstract, $callback);
  1238. }
  1239. /**
  1240. * Register a new after resolving callback for all types.
  1241. *
  1242. * @param \Closure|string $abstract
  1243. * @param \Closure|null $callback
  1244. * @return void
  1245. * @static
  1246. */
  1247. public static function afterResolving($abstract, $callback = null)
  1248. { //Method inherited from \Illuminate\Container\Container
  1249. /** @var \Illuminate\Foundation\Application $instance */
  1250. $instance->afterResolving($abstract, $callback);
  1251. }
  1252. /**
  1253. * Get the container's bindings.
  1254. *
  1255. * @return array
  1256. * @static
  1257. */
  1258. public static function getBindings()
  1259. { //Method inherited from \Illuminate\Container\Container
  1260. /** @var \Illuminate\Foundation\Application $instance */
  1261. return $instance->getBindings();
  1262. }
  1263. /**
  1264. * Get the alias for an abstract if available.
  1265. *
  1266. * @param string $abstract
  1267. * @return string
  1268. * @static
  1269. */
  1270. public static function getAlias($abstract)
  1271. { //Method inherited from \Illuminate\Container\Container
  1272. /** @var \Illuminate\Foundation\Application $instance */
  1273. return $instance->getAlias($abstract);
  1274. }
  1275. /**
  1276. * Remove all of the extender callbacks for a given type.
  1277. *
  1278. * @param string $abstract
  1279. * @return void
  1280. * @static
  1281. */
  1282. public static function forgetExtenders($abstract)
  1283. { //Method inherited from \Illuminate\Container\Container
  1284. /** @var \Illuminate\Foundation\Application $instance */
  1285. $instance->forgetExtenders($abstract);
  1286. }
  1287. /**
  1288. * Remove a resolved instance from the instance cache.
  1289. *
  1290. * @param string $abstract
  1291. * @return void
  1292. * @static
  1293. */
  1294. public static function forgetInstance($abstract)
  1295. { //Method inherited from \Illuminate\Container\Container
  1296. /** @var \Illuminate\Foundation\Application $instance */
  1297. $instance->forgetInstance($abstract);
  1298. }
  1299. /**
  1300. * Clear all of the instances from the container.
  1301. *
  1302. * @return void
  1303. * @static
  1304. */
  1305. public static function forgetInstances()
  1306. { //Method inherited from \Illuminate\Container\Container
  1307. /** @var \Illuminate\Foundation\Application $instance */
  1308. $instance->forgetInstances();
  1309. }
  1310. /**
  1311. * Get the globally available instance of the container.
  1312. *
  1313. * @return static
  1314. * @static
  1315. */
  1316. public static function getInstance()
  1317. { //Method inherited from \Illuminate\Container\Container
  1318. return \Illuminate\Foundation\Application::getInstance();
  1319. }
  1320. /**
  1321. * Set the shared instance of the container.
  1322. *
  1323. * @param \Illuminate\Contracts\Container\Container|null $container
  1324. * @return \Illuminate\Contracts\Container\Container|static
  1325. * @static
  1326. */
  1327. public static function setInstance($container = null)
  1328. { //Method inherited from \Illuminate\Container\Container
  1329. return \Illuminate\Foundation\Application::setInstance($container);
  1330. }
  1331. /**
  1332. * Determine if a given offset exists.
  1333. *
  1334. * @param string $key
  1335. * @return bool
  1336. * @static
  1337. */
  1338. public static function offsetExists($key)
  1339. { //Method inherited from \Illuminate\Container\Container
  1340. /** @var \Illuminate\Foundation\Application $instance */
  1341. return $instance->offsetExists($key);
  1342. }
  1343. /**
  1344. * Get the value at a given offset.
  1345. *
  1346. * @param string $key
  1347. * @return mixed
  1348. * @static
  1349. */
  1350. public static function offsetGet($key)
  1351. { //Method inherited from \Illuminate\Container\Container
  1352. /** @var \Illuminate\Foundation\Application $instance */
  1353. return $instance->offsetGet($key);
  1354. }
  1355. /**
  1356. * Set the value at a given offset.
  1357. *
  1358. * @param string $key
  1359. * @param mixed $value
  1360. * @return void
  1361. * @static
  1362. */
  1363. public static function offsetSet($key, $value)
  1364. { //Method inherited from \Illuminate\Container\Container
  1365. /** @var \Illuminate\Foundation\Application $instance */
  1366. $instance->offsetSet($key, $value);
  1367. }
  1368. /**
  1369. * Unset the value at a given offset.
  1370. *
  1371. * @param string $key
  1372. * @return void
  1373. * @static
  1374. */
  1375. public static function offsetUnset($key)
  1376. { //Method inherited from \Illuminate\Container\Container
  1377. /** @var \Illuminate\Foundation\Application $instance */
  1378. $instance->offsetUnset($key);
  1379. }
  1380. }
  1381. /**
  1382. *
  1383. *
  1384. * @see \Illuminate\Contracts\Console\Kernel
  1385. */
  1386. class Artisan {
  1387. /**
  1388. * Run the console application.
  1389. *
  1390. * @param \Symfony\Component\Console\Input\InputInterface $input
  1391. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1392. * @return int
  1393. * @static
  1394. */
  1395. public static function handle($input, $output = null)
  1396. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1397. /** @var \App\Console\Kernel $instance */
  1398. return $instance->handle($input, $output);
  1399. }
  1400. /**
  1401. * Terminate the application.
  1402. *
  1403. * @param \Symfony\Component\Console\Input\InputInterface $input
  1404. * @param int $status
  1405. * @return void
  1406. * @static
  1407. */
  1408. public static function terminate($input, $status)
  1409. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1410. /** @var \App\Console\Kernel $instance */
  1411. $instance->terminate($input, $status);
  1412. }
  1413. /**
  1414. * Register a Closure based command with the application.
  1415. *
  1416. * @param string $signature
  1417. * @param \Closure $callback
  1418. * @return \Illuminate\Foundation\Console\ClosureCommand
  1419. * @static
  1420. */
  1421. public static function command($signature, $callback)
  1422. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1423. /** @var \App\Console\Kernel $instance */
  1424. return $instance->command($signature, $callback);
  1425. }
  1426. /**
  1427. * Register the given command with the console application.
  1428. *
  1429. * @param \Symfony\Component\Console\Command\Command $command
  1430. * @return void
  1431. * @static
  1432. */
  1433. public static function registerCommand($command)
  1434. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1435. /** @var \App\Console\Kernel $instance */
  1436. $instance->registerCommand($command);
  1437. }
  1438. /**
  1439. * Run an Artisan console command by name.
  1440. *
  1441. * @param string $command
  1442. * @param array $parameters
  1443. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1444. * @return int
  1445. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1446. * @static
  1447. */
  1448. public static function call($command, $parameters = [], $outputBuffer = null)
  1449. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1450. /** @var \App\Console\Kernel $instance */
  1451. return $instance->call($command, $parameters, $outputBuffer);
  1452. }
  1453. /**
  1454. * Queue the given console command.
  1455. *
  1456. * @param string $command
  1457. * @param array $parameters
  1458. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1459. * @static
  1460. */
  1461. public static function queue($command, $parameters = [])
  1462. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1463. /** @var \App\Console\Kernel $instance */
  1464. return $instance->queue($command, $parameters);
  1465. }
  1466. /**
  1467. * Get all of the commands registered with the console.
  1468. *
  1469. * @return array
  1470. * @static
  1471. */
  1472. public static function all()
  1473. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1474. /** @var \App\Console\Kernel $instance */
  1475. return $instance->all();
  1476. }
  1477. /**
  1478. * Get the output for the last run command.
  1479. *
  1480. * @return string
  1481. * @static
  1482. */
  1483. public static function output()
  1484. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1485. /** @var \App\Console\Kernel $instance */
  1486. return $instance->output();
  1487. }
  1488. /**
  1489. * Bootstrap the application for artisan commands.
  1490. *
  1491. * @return void
  1492. * @static
  1493. */
  1494. public static function bootstrap()
  1495. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1496. /** @var \App\Console\Kernel $instance */
  1497. $instance->bootstrap();
  1498. }
  1499. /**
  1500. * Set the Artisan application instance.
  1501. *
  1502. * @param \Illuminate\Console\Application $artisan
  1503. * @return void
  1504. * @static
  1505. */
  1506. public static function setArtisan($artisan)
  1507. { //Method inherited from \Illuminate\Foundation\Console\Kernel
  1508. /** @var \App\Console\Kernel $instance */
  1509. $instance->setArtisan($artisan);
  1510. }
  1511. }
  1512. /**
  1513. *
  1514. *
  1515. * @see \Illuminate\Auth\AuthManager
  1516. * @see \Illuminate\Contracts\Auth\Factory
  1517. * @see \Illuminate\Contracts\Auth\Guard
  1518. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1519. */
  1520. class Auth {
  1521. /**
  1522. * Attempt to get the guard from the local cache.
  1523. *
  1524. * @param string|null $name
  1525. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1526. * @static
  1527. */
  1528. public static function guard($name = null)
  1529. {
  1530. /** @var \Illuminate\Auth\AuthManager $instance */
  1531. return $instance->guard($name);
  1532. }
  1533. /**
  1534. * Create a session based authentication guard.
  1535. *
  1536. * @param string $name
  1537. * @param array $config
  1538. * @return \Illuminate\Auth\SessionGuard
  1539. * @static
  1540. */
  1541. public static function createSessionDriver($name, $config)
  1542. {
  1543. /** @var \Illuminate\Auth\AuthManager $instance */
  1544. return $instance->createSessionDriver($name, $config);
  1545. }
  1546. /**
  1547. * Create a token based authentication guard.
  1548. *
  1549. * @param string $name
  1550. * @param array $config
  1551. * @return \Illuminate\Auth\TokenGuard
  1552. * @static
  1553. */
  1554. public static function createTokenDriver($name, $config)
  1555. {
  1556. /** @var \Illuminate\Auth\AuthManager $instance */
  1557. return $instance->createTokenDriver($name, $config);
  1558. }
  1559. /**
  1560. * Get the default authentication driver name.
  1561. *
  1562. * @return string
  1563. * @static
  1564. */
  1565. public static function getDefaultDriver()
  1566. {
  1567. /** @var \Illuminate\Auth\AuthManager $instance */
  1568. return $instance->getDefaultDriver();
  1569. }
  1570. /**
  1571. * Set the default guard driver the factory should serve.
  1572. *
  1573. * @param string $name
  1574. * @return void
  1575. * @static
  1576. */
  1577. public static function shouldUse($name)
  1578. {
  1579. /** @var \Illuminate\Auth\AuthManager $instance */
  1580. $instance->shouldUse($name);
  1581. }
  1582. /**
  1583. * Set the default authentication driver name.
  1584. *
  1585. * @param string $name
  1586. * @return void
  1587. * @static
  1588. */
  1589. public static function setDefaultDriver($name)
  1590. {
  1591. /** @var \Illuminate\Auth\AuthManager $instance */
  1592. $instance->setDefaultDriver($name);
  1593. }
  1594. /**
  1595. * Register a new callback based request guard.
  1596. *
  1597. * @param string $driver
  1598. * @param callable $callback
  1599. * @return \Illuminate\Auth\AuthManager
  1600. * @static
  1601. */
  1602. public static function viaRequest($driver, $callback)
  1603. {
  1604. /** @var \Illuminate\Auth\AuthManager $instance */
  1605. return $instance->viaRequest($driver, $callback);
  1606. }
  1607. /**
  1608. * Get the user resolver callback.
  1609. *
  1610. * @return \Closure
  1611. * @static
  1612. */
  1613. public static function userResolver()
  1614. {
  1615. /** @var \Illuminate\Auth\AuthManager $instance */
  1616. return $instance->userResolver();
  1617. }
  1618. /**
  1619. * Set the callback to be used to resolve users.
  1620. *
  1621. * @param \Closure $userResolver
  1622. * @return \Illuminate\Auth\AuthManager
  1623. * @static
  1624. */
  1625. public static function resolveUsersUsing($userResolver)
  1626. {
  1627. /** @var \Illuminate\Auth\AuthManager $instance */
  1628. return $instance->resolveUsersUsing($userResolver);
  1629. }
  1630. /**
  1631. * Register a custom driver creator Closure.
  1632. *
  1633. * @param string $driver
  1634. * @param \Closure $callback
  1635. * @return \Illuminate\Auth\AuthManager
  1636. * @static
  1637. */
  1638. public static function extend($driver, $callback)
  1639. {
  1640. /** @var \Illuminate\Auth\AuthManager $instance */
  1641. return $instance->extend($driver, $callback);
  1642. }
  1643. /**
  1644. * Register a custom provider creator Closure.
  1645. *
  1646. * @param string $name
  1647. * @param \Closure $callback
  1648. * @return \Illuminate\Auth\AuthManager
  1649. * @static
  1650. */
  1651. public static function provider($name, $callback)
  1652. {
  1653. /** @var \Illuminate\Auth\AuthManager $instance */
  1654. return $instance->provider($name, $callback);
  1655. }
  1656. /**
  1657. * Determines if any guards have already been resolved.
  1658. *
  1659. * @return bool
  1660. * @static
  1661. */
  1662. public static function hasResolvedGuards()
  1663. {
  1664. /** @var \Illuminate\Auth\AuthManager $instance */
  1665. return $instance->hasResolvedGuards();
  1666. }
  1667. /**
  1668. * Create the user provider implementation for the driver.
  1669. *
  1670. * @param string|null $provider
  1671. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1672. * @throws \InvalidArgumentException
  1673. * @static
  1674. */
  1675. public static function createUserProvider($provider = null)
  1676. {
  1677. /** @var \Illuminate\Auth\AuthManager $instance */
  1678. return $instance->createUserProvider($provider);
  1679. }
  1680. /**
  1681. * Get the default user provider name.
  1682. *
  1683. * @return string
  1684. * @static
  1685. */
  1686. public static function getDefaultUserProvider()
  1687. {
  1688. /** @var \Illuminate\Auth\AuthManager $instance */
  1689. return $instance->getDefaultUserProvider();
  1690. }
  1691. /**
  1692. * Get the currently authenticated user.
  1693. *
  1694. * @return \App\User|null
  1695. * @static
  1696. */
  1697. public static function user()
  1698. {
  1699. /** @var \Illuminate\Auth\SessionGuard $instance */
  1700. return $instance->user();
  1701. }
  1702. /**
  1703. * Get the ID for the currently authenticated user.
  1704. *
  1705. * @return int|string|null
  1706. * @static
  1707. */
  1708. public static function id()
  1709. {
  1710. /** @var \Illuminate\Auth\SessionGuard $instance */
  1711. return $instance->id();
  1712. }
  1713. /**
  1714. * Log a user into the application without sessions or cookies.
  1715. *
  1716. * @param array $credentials
  1717. * @return bool
  1718. * @static
  1719. */
  1720. public static function once($credentials = [])
  1721. {
  1722. /** @var \Illuminate\Auth\SessionGuard $instance */
  1723. return $instance->once($credentials);
  1724. }
  1725. /**
  1726. * Log the given user ID into the application without sessions or cookies.
  1727. *
  1728. * @param mixed $id
  1729. * @return \App\User|false
  1730. * @static
  1731. */
  1732. public static function onceUsingId($id)
  1733. {
  1734. /** @var \Illuminate\Auth\SessionGuard $instance */
  1735. return $instance->onceUsingId($id);
  1736. }
  1737. /**
  1738. * Validate a user's credentials.
  1739. *
  1740. * @param array $credentials
  1741. * @return bool
  1742. * @static
  1743. */
  1744. public static function validate($credentials = [])
  1745. {
  1746. /** @var \Illuminate\Auth\SessionGuard $instance */
  1747. return $instance->validate($credentials);
  1748. }
  1749. /**
  1750. * Attempt to authenticate using HTTP Basic Auth.
  1751. *
  1752. * @param string $field
  1753. * @param array $extraConditions
  1754. * @return \Symfony\Component\HttpFoundation\Response|null
  1755. * @static
  1756. */
  1757. public static function basic($field = 'email', $extraConditions = [])
  1758. {
  1759. /** @var \Illuminate\Auth\SessionGuard $instance */
  1760. return $instance->basic($field, $extraConditions);
  1761. }
  1762. /**
  1763. * Perform a stateless HTTP Basic login attempt.
  1764. *
  1765. * @param string $field
  1766. * @param array $extraConditions
  1767. * @return \Symfony\Component\HttpFoundation\Response|null
  1768. * @static
  1769. */
  1770. public static function onceBasic($field = 'email', $extraConditions = [])
  1771. {
  1772. /** @var \Illuminate\Auth\SessionGuard $instance */
  1773. return $instance->onceBasic($field, $extraConditions);
  1774. }
  1775. /**
  1776. * Attempt to authenticate a user using the given credentials.
  1777. *
  1778. * @param array $credentials
  1779. * @param bool $remember
  1780. * @return bool
  1781. * @static
  1782. */
  1783. public static function attempt($credentials = [], $remember = false)
  1784. {
  1785. /** @var \Illuminate\Auth\SessionGuard $instance */
  1786. return $instance->attempt($credentials, $remember);
  1787. }
  1788. /**
  1789. * Log the given user ID into the application.
  1790. *
  1791. * @param mixed $id
  1792. * @param bool $remember
  1793. * @return \App\User|false
  1794. * @static
  1795. */
  1796. public static function loginUsingId($id, $remember = false)
  1797. {
  1798. /** @var \Illuminate\Auth\SessionGuard $instance */
  1799. return $instance->loginUsingId($id, $remember);
  1800. }
  1801. /**
  1802. * Log a user into the application.
  1803. *
  1804. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1805. * @param bool $remember
  1806. * @return void
  1807. * @static
  1808. */
  1809. public static function login($user, $remember = false)
  1810. {
  1811. /** @var \Illuminate\Auth\SessionGuard $instance */
  1812. $instance->login($user, $remember);
  1813. }
  1814. /**
  1815. * Log the user out of the application.
  1816. *
  1817. * @return void
  1818. * @static
  1819. */
  1820. public static function logout()
  1821. {
  1822. /** @var \Illuminate\Auth\SessionGuard $instance */
  1823. $instance->logout();
  1824. }
  1825. /**
  1826. * Log the user out of the application on their current device only.
  1827. *
  1828. * @return void
  1829. * @static
  1830. */
  1831. public static function logoutCurrentDevice()
  1832. {
  1833. /** @var \Illuminate\Auth\SessionGuard $instance */
  1834. $instance->logoutCurrentDevice();
  1835. }
  1836. /**
  1837. * Invalidate other sessions for the current user.
  1838. *
  1839. * The application must be using the AuthenticateSession middleware.
  1840. *
  1841. * @param string $password
  1842. * @param string $attribute
  1843. * @return bool|null
  1844. * @static
  1845. */
  1846. public static function logoutOtherDevices($password, $attribute = 'password')
  1847. {
  1848. /** @var \Illuminate\Auth\SessionGuard $instance */
  1849. return $instance->logoutOtherDevices($password, $attribute);
  1850. }
  1851. /**
  1852. * Register an authentication attempt event listener.
  1853. *
  1854. * @param mixed $callback
  1855. * @return void
  1856. * @static
  1857. */
  1858. public static function attempting($callback)
  1859. {
  1860. /** @var \Illuminate\Auth\SessionGuard $instance */
  1861. $instance->attempting($callback);
  1862. }
  1863. /**
  1864. * Get the last user we attempted to authenticate.
  1865. *
  1866. * @return \App\User
  1867. * @static
  1868. */
  1869. public static function getLastAttempted()
  1870. {
  1871. /** @var \Illuminate\Auth\SessionGuard $instance */
  1872. return $instance->getLastAttempted();
  1873. }
  1874. /**
  1875. * Get a unique identifier for the auth session value.
  1876. *
  1877. * @return string
  1878. * @static
  1879. */
  1880. public static function getName()
  1881. {
  1882. /** @var \Illuminate\Auth\SessionGuard $instance */
  1883. return $instance->getName();
  1884. }
  1885. /**
  1886. * Get the name of the cookie used to store the "recaller".
  1887. *
  1888. * @return string
  1889. * @static
  1890. */
  1891. public static function getRecallerName()
  1892. {
  1893. /** @var \Illuminate\Auth\SessionGuard $instance */
  1894. return $instance->getRecallerName();
  1895. }
  1896. /**
  1897. * Determine if the user was authenticated via "remember me" cookie.
  1898. *
  1899. * @return bool
  1900. * @static
  1901. */
  1902. public static function viaRemember()
  1903. {
  1904. /** @var \Illuminate\Auth\SessionGuard $instance */
  1905. return $instance->viaRemember();
  1906. }
  1907. /**
  1908. * Get the cookie creator instance used by the guard.
  1909. *
  1910. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1911. * @throws \RuntimeException
  1912. * @static
  1913. */
  1914. public static function getCookieJar()
  1915. {
  1916. /** @var \Illuminate\Auth\SessionGuard $instance */
  1917. return $instance->getCookieJar();
  1918. }
  1919. /**
  1920. * Set the cookie creator instance used by the guard.
  1921. *
  1922. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1923. * @return void
  1924. * @static
  1925. */
  1926. public static function setCookieJar($cookie)
  1927. {
  1928. /** @var \Illuminate\Auth\SessionGuard $instance */
  1929. $instance->setCookieJar($cookie);
  1930. }
  1931. /**
  1932. * Get the event dispatcher instance.
  1933. *
  1934. * @return \Illuminate\Contracts\Events\Dispatcher
  1935. * @static
  1936. */
  1937. public static function getDispatcher()
  1938. {
  1939. /** @var \Illuminate\Auth\SessionGuard $instance */
  1940. return $instance->getDispatcher();
  1941. }
  1942. /**
  1943. * Set the event dispatcher instance.
  1944. *
  1945. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1946. * @return void
  1947. * @static
  1948. */
  1949. public static function setDispatcher($events)
  1950. {
  1951. /** @var \Illuminate\Auth\SessionGuard $instance */
  1952. $instance->setDispatcher($events);
  1953. }
  1954. /**
  1955. * Get the session store used by the guard.
  1956. *
  1957. * @return \Illuminate\Contracts\Session\Session
  1958. * @static
  1959. */
  1960. public static function getSession()
  1961. {
  1962. /** @var \Illuminate\Auth\SessionGuard $instance */
  1963. return $instance->getSession();
  1964. }
  1965. /**
  1966. * Return the currently cached user.
  1967. *
  1968. * @return \App\User|null
  1969. * @static
  1970. */
  1971. public static function getUser()
  1972. {
  1973. /** @var \Illuminate\Auth\SessionGuard $instance */
  1974. return $instance->getUser();
  1975. }
  1976. /**
  1977. * Set the current user.
  1978. *
  1979. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1980. * @return \Illuminate\Auth\SessionGuard
  1981. * @static
  1982. */
  1983. public static function setUser($user)
  1984. {
  1985. /** @var \Illuminate\Auth\SessionGuard $instance */
  1986. return $instance->setUser($user);
  1987. }
  1988. /**
  1989. * Get the current request instance.
  1990. *
  1991. * @return \Symfony\Component\HttpFoundation\Request
  1992. * @static
  1993. */
  1994. public static function getRequest()
  1995. {
  1996. /** @var \Illuminate\Auth\SessionGuard $instance */
  1997. return $instance->getRequest();
  1998. }
  1999. /**
  2000. * Set the current request instance.
  2001. *
  2002. * @param \Symfony\Component\HttpFoundation\Request $request
  2003. * @return \Illuminate\Auth\SessionGuard
  2004. * @static
  2005. */
  2006. public static function setRequest($request)
  2007. {
  2008. /** @var \Illuminate\Auth\SessionGuard $instance */
  2009. return $instance->setRequest($request);
  2010. }
  2011. /**
  2012. * Determine if current user is authenticated. If not, throw an exception.
  2013. *
  2014. * @return \App\User
  2015. * @throws \Illuminate\Auth\AuthenticationException
  2016. * @static
  2017. */
  2018. public static function authenticate()
  2019. {
  2020. /** @var \Illuminate\Auth\SessionGuard $instance */
  2021. return $instance->authenticate();
  2022. }
  2023. /**
  2024. * Determine if the guard has a user instance.
  2025. *
  2026. * @return bool
  2027. * @static
  2028. */
  2029. public static function hasUser()
  2030. {
  2031. /** @var \Illuminate\Auth\SessionGuard $instance */
  2032. return $instance->hasUser();
  2033. }
  2034. /**
  2035. * Determine if the current user is authenticated.
  2036. *
  2037. * @return bool
  2038. * @static
  2039. */
  2040. public static function check()
  2041. {
  2042. /** @var \Illuminate\Auth\SessionGuard $instance */
  2043. return $instance->check();
  2044. }
  2045. /**
  2046. * Determine if the current user is a guest.
  2047. *
  2048. * @return bool
  2049. * @static
  2050. */
  2051. public static function guest()
  2052. {
  2053. /** @var \Illuminate\Auth\SessionGuard $instance */
  2054. return $instance->guest();
  2055. }
  2056. /**
  2057. * Get the user provider used by the guard.
  2058. *
  2059. * @return \Illuminate\Contracts\Auth\UserProvider
  2060. * @static
  2061. */
  2062. public static function getProvider()
  2063. {
  2064. /** @var \Illuminate\Auth\SessionGuard $instance */
  2065. return $instance->getProvider();
  2066. }
  2067. /**
  2068. * Set the user provider used by the guard.
  2069. *
  2070. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2071. * @return void
  2072. * @static
  2073. */
  2074. public static function setProvider($provider)
  2075. {
  2076. /** @var \Illuminate\Auth\SessionGuard $instance */
  2077. $instance->setProvider($provider);
  2078. }
  2079. /**
  2080. * Register a custom macro.
  2081. *
  2082. * @param string $name
  2083. * @param object|callable $macro
  2084. * @return void
  2085. * @static
  2086. */
  2087. public static function macro($name, $macro)
  2088. {
  2089. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2090. }
  2091. /**
  2092. * Mix another object into the class.
  2093. *
  2094. * @param object $mixin
  2095. * @param bool $replace
  2096. * @return void
  2097. * @throws \ReflectionException
  2098. * @static
  2099. */
  2100. public static function mixin($mixin, $replace = true)
  2101. {
  2102. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2103. }
  2104. /**
  2105. * Checks if macro is registered.
  2106. *
  2107. * @param string $name
  2108. * @return bool
  2109. * @static
  2110. */
  2111. public static function hasMacro($name)
  2112. {
  2113. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2114. }
  2115. }
  2116. /**
  2117. *
  2118. *
  2119. * @see \Illuminate\View\Compilers\BladeCompiler
  2120. */
  2121. class Blade {
  2122. /**
  2123. * Compile the view at the given path.
  2124. *
  2125. * @param string|null $path
  2126. * @return void
  2127. * @static
  2128. */
  2129. public static function compile($path = null)
  2130. {
  2131. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2132. $instance->compile($path);
  2133. }
  2134. /**
  2135. * Get the path currently being compiled.
  2136. *
  2137. * @return string
  2138. * @static
  2139. */
  2140. public static function getPath()
  2141. {
  2142. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2143. return $instance->getPath();
  2144. }
  2145. /**
  2146. * Set the path currently being compiled.
  2147. *
  2148. * @param string $path
  2149. * @return void
  2150. * @static
  2151. */
  2152. public static function setPath($path)
  2153. {
  2154. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2155. $instance->setPath($path);
  2156. }
  2157. /**
  2158. * Compile the given Blade template contents.
  2159. *
  2160. * @param string $value
  2161. * @return string
  2162. * @static
  2163. */
  2164. public static function compileString($value)
  2165. {
  2166. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2167. return $instance->compileString($value);
  2168. }
  2169. /**
  2170. * Strip the parentheses from the given expression.
  2171. *
  2172. * @param string $expression
  2173. * @return string
  2174. * @static
  2175. */
  2176. public static function stripParentheses($expression)
  2177. {
  2178. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2179. return $instance->stripParentheses($expression);
  2180. }
  2181. /**
  2182. * Register a custom Blade compiler.
  2183. *
  2184. * @param callable $compiler
  2185. * @return void
  2186. * @static
  2187. */
  2188. public static function extend($compiler)
  2189. {
  2190. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2191. $instance->extend($compiler);
  2192. }
  2193. /**
  2194. * Get the extensions used by the compiler.
  2195. *
  2196. * @return array
  2197. * @static
  2198. */
  2199. public static function getExtensions()
  2200. {
  2201. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2202. return $instance->getExtensions();
  2203. }
  2204. /**
  2205. * Register an "if" statement directive.
  2206. *
  2207. * @param string $name
  2208. * @param callable $callback
  2209. * @return void
  2210. * @static
  2211. */
  2212. public static function if($name, $callback)
  2213. {
  2214. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2215. $instance->if($name, $callback);
  2216. }
  2217. /**
  2218. * Check the result of a condition.
  2219. *
  2220. * @param string $name
  2221. * @param array $parameters
  2222. * @return bool
  2223. * @static
  2224. */
  2225. public static function check($name, ...$parameters)
  2226. {
  2227. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2228. return $instance->check($name, ...$parameters);
  2229. }
  2230. /**
  2231. * Register a class-based component alias directive.
  2232. *
  2233. * @param string $class
  2234. * @param string|null $alias
  2235. * @param string $prefix
  2236. * @return void
  2237. * @static
  2238. */
  2239. public static function component($class, $alias = null, $prefix = '')
  2240. {
  2241. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2242. $instance->component($class, $alias, $prefix);
  2243. }
  2244. /**
  2245. * Register an array of class-based components.
  2246. *
  2247. * @param array $components
  2248. * @param string $prefix
  2249. * @return void
  2250. * @static
  2251. */
  2252. public static function components($components, $prefix = '')
  2253. {
  2254. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2255. $instance->components($components, $prefix);
  2256. }
  2257. /**
  2258. * Get the registered class component aliases.
  2259. *
  2260. * @return array
  2261. * @static
  2262. */
  2263. public static function getClassComponentAliases()
  2264. {
  2265. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2266. return $instance->getClassComponentAliases();
  2267. }
  2268. /**
  2269. * Register a component alias directive.
  2270. *
  2271. * @param string $path
  2272. * @param string|null $alias
  2273. * @return void
  2274. * @static
  2275. */
  2276. public static function aliasComponent($path, $alias = null)
  2277. {
  2278. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2279. $instance->aliasComponent($path, $alias);
  2280. }
  2281. /**
  2282. * Register an include alias directive.
  2283. *
  2284. * @param string $path
  2285. * @param string|null $alias
  2286. * @return void
  2287. * @static
  2288. */
  2289. public static function include($path, $alias = null)
  2290. {
  2291. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2292. $instance->include($path, $alias);
  2293. }
  2294. /**
  2295. * Register an include alias directive.
  2296. *
  2297. * @param string $path
  2298. * @param string|null $alias
  2299. * @return void
  2300. * @static
  2301. */
  2302. public static function aliasInclude($path, $alias = null)
  2303. {
  2304. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2305. $instance->aliasInclude($path, $alias);
  2306. }
  2307. /**
  2308. * Register a handler for custom directives.
  2309. *
  2310. * @param string $name
  2311. * @param callable $handler
  2312. * @return void
  2313. * @throws \InvalidArgumentException
  2314. * @static
  2315. */
  2316. public static function directive($name, $handler)
  2317. {
  2318. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2319. $instance->directive($name, $handler);
  2320. }
  2321. /**
  2322. * Get the list of custom directives.
  2323. *
  2324. * @return array
  2325. * @static
  2326. */
  2327. public static function getCustomDirectives()
  2328. {
  2329. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2330. return $instance->getCustomDirectives();
  2331. }
  2332. /**
  2333. * Register a new precompiler.
  2334. *
  2335. * @param callable $precompiler
  2336. * @return void
  2337. * @static
  2338. */
  2339. public static function precompiler($precompiler)
  2340. {
  2341. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2342. $instance->precompiler($precompiler);
  2343. }
  2344. /**
  2345. * Set the echo format to be used by the compiler.
  2346. *
  2347. * @param string $format
  2348. * @return void
  2349. * @static
  2350. */
  2351. public static function setEchoFormat($format)
  2352. {
  2353. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2354. $instance->setEchoFormat($format);
  2355. }
  2356. /**
  2357. * Set the "echo" format to double encode entities.
  2358. *
  2359. * @return void
  2360. * @static
  2361. */
  2362. public static function withDoubleEncoding()
  2363. {
  2364. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2365. $instance->withDoubleEncoding();
  2366. }
  2367. /**
  2368. * Set the "echo" format to not double encode entities.
  2369. *
  2370. * @return void
  2371. * @static
  2372. */
  2373. public static function withoutDoubleEncoding()
  2374. {
  2375. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2376. $instance->withoutDoubleEncoding();
  2377. }
  2378. /**
  2379. * Indicate that component tags should not be compiled.
  2380. *
  2381. * @return void
  2382. * @static
  2383. */
  2384. public static function withoutComponentTags()
  2385. {
  2386. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2387. $instance->withoutComponentTags();
  2388. }
  2389. /**
  2390. * Get the path to the compiled version of a view.
  2391. *
  2392. * @param string $path
  2393. * @return string
  2394. * @static
  2395. */
  2396. public static function getCompiledPath($path)
  2397. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2398. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2399. return $instance->getCompiledPath($path);
  2400. }
  2401. /**
  2402. * Determine if the view at the given path is expired.
  2403. *
  2404. * @param string $path
  2405. * @return bool
  2406. * @static
  2407. */
  2408. public static function isExpired($path)
  2409. { //Method inherited from \Illuminate\View\Compilers\Compiler
  2410. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2411. return $instance->isExpired($path);
  2412. }
  2413. /**
  2414. * Get a new component hash for a component name.
  2415. *
  2416. * @param string $component
  2417. * @return string
  2418. * @static
  2419. */
  2420. public static function newComponentHash($component)
  2421. {
  2422. return \Illuminate\View\Compilers\BladeCompiler::newComponentHash($component);
  2423. }
  2424. /**
  2425. * Compile a class component opening.
  2426. *
  2427. * @param string $component
  2428. * @param string $alias
  2429. * @param string $data
  2430. * @param string $hash
  2431. * @return string
  2432. * @static
  2433. */
  2434. public static function compileClassComponentOpening($component, $alias, $data, $hash)
  2435. {
  2436. return \Illuminate\View\Compilers\BladeCompiler::compileClassComponentOpening($component, $alias, $data, $hash);
  2437. }
  2438. /**
  2439. * Compile the end-component statements into valid PHP.
  2440. *
  2441. * @return string
  2442. * @static
  2443. */
  2444. public static function compileEndComponentClass()
  2445. {
  2446. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2447. return $instance->compileEndComponentClass();
  2448. }
  2449. /**
  2450. * Sanitize the given component attribute value.
  2451. *
  2452. * @param mixed $value
  2453. * @return mixed
  2454. * @static
  2455. */
  2456. public static function sanitizeComponentAttribute($value)
  2457. {
  2458. return \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($value);
  2459. }
  2460. /**
  2461. * Compile an end-once block into valid PHP.
  2462. *
  2463. * @return string
  2464. * @static
  2465. */
  2466. public static function compileEndOnce()
  2467. {
  2468. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2469. return $instance->compileEndOnce();
  2470. }
  2471. /**
  2472. * Compile Blade echos into valid PHP.
  2473. *
  2474. * @param string $value
  2475. * @return string
  2476. * @static
  2477. */
  2478. public static function compileEchos($value)
  2479. {
  2480. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2481. return $instance->compileEchos($value);
  2482. }
  2483. }
  2484. /**
  2485. *
  2486. *
  2487. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
  2488. * @method static mixed auth(\Illuminate\Http\Request $request)
  2489. * @see \Illuminate\Contracts\Broadcasting\Factory
  2490. */
  2491. class Broadcast {
  2492. /**
  2493. * Register the routes for handling broadcast authentication and sockets.
  2494. *
  2495. * @param array|null $attributes
  2496. * @return void
  2497. * @static
  2498. */
  2499. public static function routes($attributes = null)
  2500. {
  2501. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2502. $instance->routes($attributes);
  2503. }
  2504. /**
  2505. * Get the socket ID for the given request.
  2506. *
  2507. * @param \Illuminate\Http\Request|null $request
  2508. * @return string|null
  2509. * @static
  2510. */
  2511. public static function socket($request = null)
  2512. {
  2513. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2514. return $instance->socket($request);
  2515. }
  2516. /**
  2517. * Begin broadcasting an event.
  2518. *
  2519. * @param mixed|null $event
  2520. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2521. * @static
  2522. */
  2523. public static function event($event = null)
  2524. {
  2525. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2526. return $instance->event($event);
  2527. }
  2528. /**
  2529. * Queue the given event for broadcast.
  2530. *
  2531. * @param mixed $event
  2532. * @return void
  2533. * @static
  2534. */
  2535. public static function queue($event)
  2536. {
  2537. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2538. $instance->queue($event);
  2539. }
  2540. /**
  2541. * Get a driver instance.
  2542. *
  2543. * @param string|null $driver
  2544. * @return mixed
  2545. * @static
  2546. */
  2547. public static function connection($driver = null)
  2548. {
  2549. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2550. return $instance->connection($driver);
  2551. }
  2552. /**
  2553. * Get a driver instance.
  2554. *
  2555. * @param string|null $name
  2556. * @return mixed
  2557. * @static
  2558. */
  2559. public static function driver($name = null)
  2560. {
  2561. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2562. return $instance->driver($name);
  2563. }
  2564. /**
  2565. * Get the default driver name.
  2566. *
  2567. * @return string
  2568. * @static
  2569. */
  2570. public static function getDefaultDriver()
  2571. {
  2572. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2573. return $instance->getDefaultDriver();
  2574. }
  2575. /**
  2576. * Set the default driver name.
  2577. *
  2578. * @param string $name
  2579. * @return void
  2580. * @static
  2581. */
  2582. public static function setDefaultDriver($name)
  2583. {
  2584. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2585. $instance->setDefaultDriver($name);
  2586. }
  2587. /**
  2588. * Register a custom driver creator Closure.
  2589. *
  2590. * @param string $driver
  2591. * @param \Closure $callback
  2592. * @return \Illuminate\Broadcasting\BroadcastManager
  2593. * @static
  2594. */
  2595. public static function extend($driver, $callback)
  2596. {
  2597. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2598. return $instance->extend($driver, $callback);
  2599. }
  2600. }
  2601. /**
  2602. *
  2603. *
  2604. * @see \Illuminate\Contracts\Bus\Dispatcher
  2605. */
  2606. class Bus {
  2607. /**
  2608. * Dispatch a command to its appropriate handler.
  2609. *
  2610. * @param mixed $command
  2611. * @return mixed
  2612. * @static
  2613. */
  2614. public static function dispatch($command)
  2615. {
  2616. /** @var \Illuminate\Bus\Dispatcher $instance */
  2617. return $instance->dispatch($command);
  2618. }
  2619. /**
  2620. * Dispatch a command to its appropriate handler in the current process.
  2621. *
  2622. * @param mixed $command
  2623. * @param mixed $handler
  2624. * @return mixed
  2625. * @static
  2626. */
  2627. public static function dispatchNow($command, $handler = null)
  2628. {
  2629. /** @var \Illuminate\Bus\Dispatcher $instance */
  2630. return $instance->dispatchNow($command, $handler);
  2631. }
  2632. /**
  2633. * Determine if the given command has a handler.
  2634. *
  2635. * @param mixed $command
  2636. * @return bool
  2637. * @static
  2638. */
  2639. public static function hasCommandHandler($command)
  2640. {
  2641. /** @var \Illuminate\Bus\Dispatcher $instance */
  2642. return $instance->hasCommandHandler($command);
  2643. }
  2644. /**
  2645. * Retrieve the handler for a command.
  2646. *
  2647. * @param mixed $command
  2648. * @return bool|mixed
  2649. * @static
  2650. */
  2651. public static function getCommandHandler($command)
  2652. {
  2653. /** @var \Illuminate\Bus\Dispatcher $instance */
  2654. return $instance->getCommandHandler($command);
  2655. }
  2656. /**
  2657. * Dispatch a command to its appropriate handler behind a queue.
  2658. *
  2659. * @param mixed $command
  2660. * @return mixed
  2661. * @static
  2662. */
  2663. public static function dispatchToQueue($command)
  2664. {
  2665. /** @var \Illuminate\Bus\Dispatcher $instance */
  2666. return $instance->dispatchToQueue($command);
  2667. }
  2668. /**
  2669. * Dispatch a command to its appropriate handler after the current process.
  2670. *
  2671. * @param mixed $command
  2672. * @param mixed $handler
  2673. * @return void
  2674. * @static
  2675. */
  2676. public static function dispatchAfterResponse($command, $handler = null)
  2677. {
  2678. /** @var \Illuminate\Bus\Dispatcher $instance */
  2679. $instance->dispatchAfterResponse($command, $handler);
  2680. }
  2681. /**
  2682. * Set the pipes through which commands should be piped before dispatching.
  2683. *
  2684. * @param array $pipes
  2685. * @return \Illuminate\Bus\Dispatcher
  2686. * @static
  2687. */
  2688. public static function pipeThrough($pipes)
  2689. {
  2690. /** @var \Illuminate\Bus\Dispatcher $instance */
  2691. return $instance->pipeThrough($pipes);
  2692. }
  2693. /**
  2694. * Map a command to a handler.
  2695. *
  2696. * @param array $map
  2697. * @return \Illuminate\Bus\Dispatcher
  2698. * @static
  2699. */
  2700. public static function map($map)
  2701. {
  2702. /** @var \Illuminate\Bus\Dispatcher $instance */
  2703. return $instance->map($map);
  2704. }
  2705. /**
  2706. * Assert if a job was dispatched based on a truth-test callback.
  2707. *
  2708. * @param string|\Closure $command
  2709. * @param callable|int|null $callback
  2710. * @return void
  2711. * @static
  2712. */
  2713. public static function assertDispatched($command, $callback = null)
  2714. {
  2715. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2716. $instance->assertDispatched($command, $callback);
  2717. }
  2718. /**
  2719. * Assert if a job was pushed a number of times.
  2720. *
  2721. * @param string $command
  2722. * @param int $times
  2723. * @return void
  2724. * @static
  2725. */
  2726. public static function assertDispatchedTimes($command, $times = 1)
  2727. {
  2728. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2729. $instance->assertDispatchedTimes($command, $times);
  2730. }
  2731. /**
  2732. * Determine if a job was dispatched based on a truth-test callback.
  2733. *
  2734. * @param string|\Closure $command
  2735. * @param callable|null $callback
  2736. * @return void
  2737. * @static
  2738. */
  2739. public static function assertNotDispatched($command, $callback = null)
  2740. {
  2741. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2742. $instance->assertNotDispatched($command, $callback);
  2743. }
  2744. /**
  2745. * Assert if a job was dispatched after the response was sent based on a truth-test callback.
  2746. *
  2747. * @param string|\Closure $command
  2748. * @param callable|int|null $callback
  2749. * @return void
  2750. * @static
  2751. */
  2752. public static function assertDispatchedAfterResponse($command, $callback = null)
  2753. {
  2754. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2755. $instance->assertDispatchedAfterResponse($command, $callback);
  2756. }
  2757. /**
  2758. * Assert if a job was pushed after the response was sent a number of times.
  2759. *
  2760. * @param string $command
  2761. * @param int $times
  2762. * @return void
  2763. * @static
  2764. */
  2765. public static function assertDispatchedAfterResponseTimes($command, $times = 1)
  2766. {
  2767. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2768. $instance->assertDispatchedAfterResponseTimes($command, $times);
  2769. }
  2770. /**
  2771. * Determine if a job was dispatched based on a truth-test callback.
  2772. *
  2773. * @param string|\Closure $command
  2774. * @param callable|null $callback
  2775. * @return void
  2776. * @static
  2777. */
  2778. public static function assertNotDispatchedAfterResponse($command, $callback = null)
  2779. {
  2780. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2781. $instance->assertNotDispatchedAfterResponse($command, $callback);
  2782. }
  2783. /**
  2784. * Get all of the jobs matching a truth-test callback.
  2785. *
  2786. * @param string $command
  2787. * @param callable|null $callback
  2788. * @return \Illuminate\Support\Collection
  2789. * @static
  2790. */
  2791. public static function dispatched($command, $callback = null)
  2792. {
  2793. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2794. return $instance->dispatched($command, $callback);
  2795. }
  2796. /**
  2797. * Get all of the jobs dispatched after the response was sent matching a truth-test callback.
  2798. *
  2799. * @param string $command
  2800. * @param callable|null $callback
  2801. * @return \Illuminate\Support\Collection
  2802. * @static
  2803. */
  2804. public static function dispatchedAfterResponse($command, $callback = null)
  2805. {
  2806. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2807. return $instance->dispatchedAfterResponse($command, $callback);
  2808. }
  2809. /**
  2810. * Determine if there are any stored commands for a given class.
  2811. *
  2812. * @param string $command
  2813. * @return bool
  2814. * @static
  2815. */
  2816. public static function hasDispatched($command)
  2817. {
  2818. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2819. return $instance->hasDispatched($command);
  2820. }
  2821. /**
  2822. * Determine if there are any stored commands for a given class.
  2823. *
  2824. * @param string $command
  2825. * @return bool
  2826. * @static
  2827. */
  2828. public static function hasDispatchedAfterResponse($command)
  2829. {
  2830. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2831. return $instance->hasDispatchedAfterResponse($command);
  2832. }
  2833. }
  2834. /**
  2835. *
  2836. *
  2837. * @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, mixed $owner = null)
  2838. * @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner)
  2839. * @see \Illuminate\Cache\CacheManager
  2840. * @see \Illuminate\Cache\Repository
  2841. */
  2842. class Cache {
  2843. /**
  2844. * Get a cache store instance by name, wrapped in a repository.
  2845. *
  2846. * @param string|null $name
  2847. * @return \Illuminate\Contracts\Cache\Repository
  2848. * @static
  2849. */
  2850. public static function store($name = null)
  2851. {
  2852. /** @var \Illuminate\Cache\CacheManager $instance */
  2853. return $instance->store($name);
  2854. }
  2855. /**
  2856. * Get a cache driver instance.
  2857. *
  2858. * @param string|null $driver
  2859. * @return \Illuminate\Contracts\Cache\Repository
  2860. * @static
  2861. */
  2862. public static function driver($driver = null)
  2863. {
  2864. /** @var \Illuminate\Cache\CacheManager $instance */
  2865. return $instance->driver($driver);
  2866. }
  2867. /**
  2868. * Create a new cache repository with the given implementation.
  2869. *
  2870. * @param \Illuminate\Contracts\Cache\Store $store
  2871. * @return \Illuminate\Cache\Repository
  2872. * @static
  2873. */
  2874. public static function repository($store)
  2875. {
  2876. /** @var \Illuminate\Cache\CacheManager $instance */
  2877. return $instance->repository($store);
  2878. }
  2879. /**
  2880. * Re-set the event dispatcher on all resolved cache repositories.
  2881. *
  2882. * @return void
  2883. * @static
  2884. */
  2885. public static function refreshEventDispatcher()
  2886. {
  2887. /** @var \Illuminate\Cache\CacheManager $instance */
  2888. $instance->refreshEventDispatcher();
  2889. }
  2890. /**
  2891. * Get the default cache driver name.
  2892. *
  2893. * @return string
  2894. * @static
  2895. */
  2896. public static function getDefaultDriver()
  2897. {
  2898. /** @var \Illuminate\Cache\CacheManager $instance */
  2899. return $instance->getDefaultDriver();
  2900. }
  2901. /**
  2902. * Set the default cache driver name.
  2903. *
  2904. * @param string $name
  2905. * @return void
  2906. * @static
  2907. */
  2908. public static function setDefaultDriver($name)
  2909. {
  2910. /** @var \Illuminate\Cache\CacheManager $instance */
  2911. $instance->setDefaultDriver($name);
  2912. }
  2913. /**
  2914. * Unset the given driver instances.
  2915. *
  2916. * @param array|string|null $name
  2917. * @return \Illuminate\Cache\CacheManager
  2918. * @static
  2919. */
  2920. public static function forgetDriver($name = null)
  2921. {
  2922. /** @var \Illuminate\Cache\CacheManager $instance */
  2923. return $instance->forgetDriver($name);
  2924. }
  2925. /**
  2926. * Register a custom driver creator Closure.
  2927. *
  2928. * @param string $driver
  2929. * @param \Closure $callback
  2930. * @return \Illuminate\Cache\CacheManager
  2931. * @static
  2932. */
  2933. public static function extend($driver, $callback)
  2934. {
  2935. /** @var \Illuminate\Cache\CacheManager $instance */
  2936. return $instance->extend($driver, $callback);
  2937. }
  2938. /**
  2939. * Determine if an item exists in the cache.
  2940. *
  2941. * @param string $key
  2942. * @return bool
  2943. * @static
  2944. */
  2945. public static function has($key)
  2946. {
  2947. /** @var \Illuminate\Cache\Repository $instance */
  2948. return $instance->has($key);
  2949. }
  2950. /**
  2951. * Determine if an item doesn't exist in the cache.
  2952. *
  2953. * @param string $key
  2954. * @return bool
  2955. * @static
  2956. */
  2957. public static function missing($key)
  2958. {
  2959. /** @var \Illuminate\Cache\Repository $instance */
  2960. return $instance->missing($key);
  2961. }
  2962. /**
  2963. * Retrieve an item from the cache by key.
  2964. *
  2965. * @param string $key
  2966. * @param mixed $default
  2967. * @return mixed
  2968. * @static
  2969. */
  2970. public static function get($key, $default = null)
  2971. {
  2972. /** @var \Illuminate\Cache\Repository $instance */
  2973. return $instance->get($key, $default);
  2974. }
  2975. /**
  2976. * Retrieve multiple items from the cache by key.
  2977. *
  2978. * Items not found in the cache will have a null value.
  2979. *
  2980. * @param array $keys
  2981. * @return array
  2982. * @static
  2983. */
  2984. public static function many($keys)
  2985. {
  2986. /** @var \Illuminate\Cache\Repository $instance */
  2987. return $instance->many($keys);
  2988. }
  2989. /**
  2990. * Obtains multiple cache items by their unique keys.
  2991. *
  2992. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2993. * @param mixed $default Default value to return for keys that do not exist.
  2994. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2995. * @throws \Psr\SimpleCache\InvalidArgumentException
  2996. * MUST be thrown if $keys is neither an array nor a Traversable,
  2997. * or if any of the $keys are not a legal value.
  2998. * @static
  2999. */
  3000. public static function getMultiple($keys, $default = null)
  3001. {
  3002. /** @var \Illuminate\Cache\Repository $instance */
  3003. return $instance->getMultiple($keys, $default);
  3004. }
  3005. /**
  3006. * Retrieve an item from the cache and delete it.
  3007. *
  3008. * @param string $key
  3009. * @param mixed $default
  3010. * @return mixed
  3011. * @static
  3012. */
  3013. public static function pull($key, $default = null)
  3014. {
  3015. /** @var \Illuminate\Cache\Repository $instance */
  3016. return $instance->pull($key, $default);
  3017. }
  3018. /**
  3019. * Store an item in the cache.
  3020. *
  3021. * @param string $key
  3022. * @param mixed $value
  3023. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3024. * @return bool
  3025. * @static
  3026. */
  3027. public static function put($key, $value, $ttl = null)
  3028. {
  3029. /** @var \Illuminate\Cache\Repository $instance */
  3030. return $instance->put($key, $value, $ttl);
  3031. }
  3032. /**
  3033. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  3034. *
  3035. * @param string $key The key of the item to store.
  3036. * @param mixed $value The value of the item to store, must be serializable.
  3037. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3038. * the driver supports TTL then the library may set a default value
  3039. * for it or let the driver take care of that.
  3040. * @return bool True on success and false on failure.
  3041. * @throws \Psr\SimpleCache\InvalidArgumentException
  3042. * MUST be thrown if the $key string is not a legal value.
  3043. * @static
  3044. */
  3045. public static function set($key, $value, $ttl = null)
  3046. {
  3047. /** @var \Illuminate\Cache\Repository $instance */
  3048. return $instance->set($key, $value, $ttl);
  3049. }
  3050. /**
  3051. * Store multiple items in the cache for a given number of seconds.
  3052. *
  3053. * @param array $values
  3054. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3055. * @return bool
  3056. * @static
  3057. */
  3058. public static function putMany($values, $ttl = null)
  3059. {
  3060. /** @var \Illuminate\Cache\Repository $instance */
  3061. return $instance->putMany($values, $ttl);
  3062. }
  3063. /**
  3064. * Persists a set of key => value pairs in the cache, with an optional TTL.
  3065. *
  3066. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  3067. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  3068. * the driver supports TTL then the library may set a default value
  3069. * for it or let the driver take care of that.
  3070. * @return bool True on success and false on failure.
  3071. * @throws \Psr\SimpleCache\InvalidArgumentException
  3072. * MUST be thrown if $values is neither an array nor a Traversable,
  3073. * or if any of the $values are not a legal value.
  3074. * @static
  3075. */
  3076. public static function setMultiple($values, $ttl = null)
  3077. {
  3078. /** @var \Illuminate\Cache\Repository $instance */
  3079. return $instance->setMultiple($values, $ttl);
  3080. }
  3081. /**
  3082. * Store an item in the cache if the key does not exist.
  3083. *
  3084. * @param string $key
  3085. * @param mixed $value
  3086. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3087. * @return bool
  3088. * @static
  3089. */
  3090. public static function add($key, $value, $ttl = null)
  3091. {
  3092. /** @var \Illuminate\Cache\Repository $instance */
  3093. return $instance->add($key, $value, $ttl);
  3094. }
  3095. /**
  3096. * Increment the value of an item in the cache.
  3097. *
  3098. * @param string $key
  3099. * @param mixed $value
  3100. * @return int|bool
  3101. * @static
  3102. */
  3103. public static function increment($key, $value = 1)
  3104. {
  3105. /** @var \Illuminate\Cache\Repository $instance */
  3106. return $instance->increment($key, $value);
  3107. }
  3108. /**
  3109. * Decrement the value of an item in the cache.
  3110. *
  3111. * @param string $key
  3112. * @param mixed $value
  3113. * @return int|bool
  3114. * @static
  3115. */
  3116. public static function decrement($key, $value = 1)
  3117. {
  3118. /** @var \Illuminate\Cache\Repository $instance */
  3119. return $instance->decrement($key, $value);
  3120. }
  3121. /**
  3122. * Store an item in the cache indefinitely.
  3123. *
  3124. * @param string $key
  3125. * @param mixed $value
  3126. * @return bool
  3127. * @static
  3128. */
  3129. public static function forever($key, $value)
  3130. {
  3131. /** @var \Illuminate\Cache\Repository $instance */
  3132. return $instance->forever($key, $value);
  3133. }
  3134. /**
  3135. * Get an item from the cache, or execute the given Closure and store the result.
  3136. *
  3137. * @param string $key
  3138. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  3139. * @param \Closure $callback
  3140. * @return mixed
  3141. * @static
  3142. */
  3143. public static function remember($key, $ttl, $callback)
  3144. {
  3145. /** @var \Illuminate\Cache\Repository $instance */
  3146. return $instance->remember($key, $ttl, $callback);
  3147. }
  3148. /**
  3149. * Get an item from the cache, or execute the given Closure and store the result forever.
  3150. *
  3151. * @param string $key
  3152. * @param \Closure $callback
  3153. * @return mixed
  3154. * @static
  3155. */
  3156. public static function sear($key, $callback)
  3157. {
  3158. /** @var \Illuminate\Cache\Repository $instance */
  3159. return $instance->sear($key, $callback);
  3160. }
  3161. /**
  3162. * Get an item from the cache, or execute the given Closure and store the result forever.
  3163. *
  3164. * @param string $key
  3165. * @param \Closure $callback
  3166. * @return mixed
  3167. * @static
  3168. */
  3169. public static function rememberForever($key, $callback)
  3170. {
  3171. /** @var \Illuminate\Cache\Repository $instance */
  3172. return $instance->rememberForever($key, $callback);
  3173. }
  3174. /**
  3175. * Remove an item from the cache.
  3176. *
  3177. * @param string $key
  3178. * @return bool
  3179. * @static
  3180. */
  3181. public static function forget($key)
  3182. {
  3183. /** @var \Illuminate\Cache\Repository $instance */
  3184. return $instance->forget($key);
  3185. }
  3186. /**
  3187. * Delete an item from the cache by its unique key.
  3188. *
  3189. * @param string $key The unique cache key of the item to delete.
  3190. * @return bool True if the item was successfully removed. False if there was an error.
  3191. * @throws \Psr\SimpleCache\InvalidArgumentException
  3192. * MUST be thrown if the $key string is not a legal value.
  3193. * @static
  3194. */
  3195. public static function delete($key)
  3196. {
  3197. /** @var \Illuminate\Cache\Repository $instance */
  3198. return $instance->delete($key);
  3199. }
  3200. /**
  3201. * Deletes multiple cache items in a single operation.
  3202. *
  3203. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  3204. * @return bool True if the items were successfully removed. False if there was an error.
  3205. * @throws \Psr\SimpleCache\InvalidArgumentException
  3206. * MUST be thrown if $keys is neither an array nor a Traversable,
  3207. * or if any of the $keys are not a legal value.
  3208. * @static
  3209. */
  3210. public static function deleteMultiple($keys)
  3211. {
  3212. /** @var \Illuminate\Cache\Repository $instance */
  3213. return $instance->deleteMultiple($keys);
  3214. }
  3215. /**
  3216. * Wipes clean the entire cache's keys.
  3217. *
  3218. * @return bool True on success and false on failure.
  3219. * @static
  3220. */
  3221. public static function clear()
  3222. {
  3223. /** @var \Illuminate\Cache\Repository $instance */
  3224. return $instance->clear();
  3225. }
  3226. /**
  3227. * Begin executing a new tags operation if the store supports it.
  3228. *
  3229. * @param array|mixed $names
  3230. * @return \Illuminate\Cache\TaggedCache
  3231. * @throws \BadMethodCallException
  3232. * @static
  3233. */
  3234. public static function tags($names)
  3235. {
  3236. /** @var \Illuminate\Cache\Repository $instance */
  3237. return $instance->tags($names);
  3238. }
  3239. /**
  3240. * Get the default cache time.
  3241. *
  3242. * @return int|null
  3243. * @static
  3244. */
  3245. public static function getDefaultCacheTime()
  3246. {
  3247. /** @var \Illuminate\Cache\Repository $instance */
  3248. return $instance->getDefaultCacheTime();
  3249. }
  3250. /**
  3251. * Set the default cache time in seconds.
  3252. *
  3253. * @param int|null $seconds
  3254. * @return \Illuminate\Cache\Repository
  3255. * @static
  3256. */
  3257. public static function setDefaultCacheTime($seconds)
  3258. {
  3259. /** @var \Illuminate\Cache\Repository $instance */
  3260. return $instance->setDefaultCacheTime($seconds);
  3261. }
  3262. /**
  3263. * Get the cache store implementation.
  3264. *
  3265. * @return \Illuminate\Contracts\Cache\Store
  3266. * @static
  3267. */
  3268. public static function getStore()
  3269. {
  3270. /** @var \Illuminate\Cache\Repository $instance */
  3271. return $instance->getStore();
  3272. }
  3273. /**
  3274. * Get the event dispatcher instance.
  3275. *
  3276. * @return \Illuminate\Contracts\Events\Dispatcher
  3277. * @static
  3278. */
  3279. public static function getEventDispatcher()
  3280. {
  3281. /** @var \Illuminate\Cache\Repository $instance */
  3282. return $instance->getEventDispatcher();
  3283. }
  3284. /**
  3285. * Set the event dispatcher instance.
  3286. *
  3287. * @param \Illuminate\Contracts\Events\Dispatcher $events
  3288. * @return void
  3289. * @static
  3290. */
  3291. public static function setEventDispatcher($events)
  3292. {
  3293. /** @var \Illuminate\Cache\Repository $instance */
  3294. $instance->setEventDispatcher($events);
  3295. }
  3296. /**
  3297. * Determine if a cached value exists.
  3298. *
  3299. * @param string $key
  3300. * @return bool
  3301. * @static
  3302. */
  3303. public static function offsetExists($key)
  3304. {
  3305. /** @var \Illuminate\Cache\Repository $instance */
  3306. return $instance->offsetExists($key);
  3307. }
  3308. /**
  3309. * Retrieve an item from the cache by key.
  3310. *
  3311. * @param string $key
  3312. * @return mixed
  3313. * @static
  3314. */
  3315. public static function offsetGet($key)
  3316. {
  3317. /** @var \Illuminate\Cache\Repository $instance */
  3318. return $instance->offsetGet($key);
  3319. }
  3320. /**
  3321. * Store an item in the cache for the default time.
  3322. *
  3323. * @param string $key
  3324. * @param mixed $value
  3325. * @return void
  3326. * @static
  3327. */
  3328. public static function offsetSet($key, $value)
  3329. {
  3330. /** @var \Illuminate\Cache\Repository $instance */
  3331. $instance->offsetSet($key, $value);
  3332. }
  3333. /**
  3334. * Remove an item from the cache.
  3335. *
  3336. * @param string $key
  3337. * @return void
  3338. * @static
  3339. */
  3340. public static function offsetUnset($key)
  3341. {
  3342. /** @var \Illuminate\Cache\Repository $instance */
  3343. $instance->offsetUnset($key);
  3344. }
  3345. /**
  3346. * Register a custom macro.
  3347. *
  3348. * @param string $name
  3349. * @param object|callable $macro
  3350. * @return void
  3351. * @static
  3352. */
  3353. public static function macro($name, $macro)
  3354. {
  3355. \Illuminate\Cache\Repository::macro($name, $macro);
  3356. }
  3357. /**
  3358. * Mix another object into the class.
  3359. *
  3360. * @param object $mixin
  3361. * @param bool $replace
  3362. * @return void
  3363. * @throws \ReflectionException
  3364. * @static
  3365. */
  3366. public static function mixin($mixin, $replace = true)
  3367. {
  3368. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3369. }
  3370. /**
  3371. * Checks if macro is registered.
  3372. *
  3373. * @param string $name
  3374. * @return bool
  3375. * @static
  3376. */
  3377. public static function hasMacro($name)
  3378. {
  3379. return \Illuminate\Cache\Repository::hasMacro($name);
  3380. }
  3381. /**
  3382. * Dynamically handle calls to the class.
  3383. *
  3384. * @param string $method
  3385. * @param array $parameters
  3386. * @return mixed
  3387. * @throws \BadMethodCallException
  3388. * @static
  3389. */
  3390. public static function macroCall($method, $parameters)
  3391. {
  3392. /** @var \Illuminate\Cache\Repository $instance */
  3393. return $instance->macroCall($method, $parameters);
  3394. }
  3395. /**
  3396. * Remove all items from the cache.
  3397. *
  3398. * @return bool
  3399. * @static
  3400. */
  3401. public static function flush()
  3402. {
  3403. /** @var \Illuminate\Cache\FileStore $instance */
  3404. return $instance->flush();
  3405. }
  3406. /**
  3407. * Get the Filesystem instance.
  3408. *
  3409. * @return \Illuminate\Filesystem\Filesystem
  3410. * @static
  3411. */
  3412. public static function getFilesystem()
  3413. {
  3414. /** @var \Illuminate\Cache\FileStore $instance */
  3415. return $instance->getFilesystem();
  3416. }
  3417. /**
  3418. * Get the working directory of the cache.
  3419. *
  3420. * @return string
  3421. * @static
  3422. */
  3423. public static function getDirectory()
  3424. {
  3425. /** @var \Illuminate\Cache\FileStore $instance */
  3426. return $instance->getDirectory();
  3427. }
  3428. /**
  3429. * Get the cache key prefix.
  3430. *
  3431. * @return string
  3432. * @static
  3433. */
  3434. public static function getPrefix()
  3435. {
  3436. /** @var \Illuminate\Cache\FileStore $instance */
  3437. return $instance->getPrefix();
  3438. }
  3439. }
  3440. /**
  3441. *
  3442. *
  3443. * @see \Illuminate\Config\Repository
  3444. */
  3445. class Config {
  3446. /**
  3447. * Determine if the given configuration value exists.
  3448. *
  3449. * @param string $key
  3450. * @return bool
  3451. * @static
  3452. */
  3453. public static function has($key)
  3454. {
  3455. /** @var \Illuminate\Config\Repository $instance */
  3456. return $instance->has($key);
  3457. }
  3458. /**
  3459. * Get the specified configuration value.
  3460. *
  3461. * @param array|string $key
  3462. * @param mixed $default
  3463. * @return mixed
  3464. * @static
  3465. */
  3466. public static function get($key, $default = null)
  3467. {
  3468. /** @var \Illuminate\Config\Repository $instance */
  3469. return $instance->get($key, $default);
  3470. }
  3471. /**
  3472. * Get many configuration values.
  3473. *
  3474. * @param array $keys
  3475. * @return array
  3476. * @static
  3477. */
  3478. public static function getMany($keys)
  3479. {
  3480. /** @var \Illuminate\Config\Repository $instance */
  3481. return $instance->getMany($keys);
  3482. }
  3483. /**
  3484. * Set a given configuration value.
  3485. *
  3486. * @param array|string $key
  3487. * @param mixed $value
  3488. * @return void
  3489. * @static
  3490. */
  3491. public static function set($key, $value = null)
  3492. {
  3493. /** @var \Illuminate\Config\Repository $instance */
  3494. $instance->set($key, $value);
  3495. }
  3496. /**
  3497. * Prepend a value onto an array configuration value.
  3498. *
  3499. * @param string $key
  3500. * @param mixed $value
  3501. * @return void
  3502. * @static
  3503. */
  3504. public static function prepend($key, $value)
  3505. {
  3506. /** @var \Illuminate\Config\Repository $instance */
  3507. $instance->prepend($key, $value);
  3508. }
  3509. /**
  3510. * Push a value onto an array configuration value.
  3511. *
  3512. * @param string $key
  3513. * @param mixed $value
  3514. * @return void
  3515. * @static
  3516. */
  3517. public static function push($key, $value)
  3518. {
  3519. /** @var \Illuminate\Config\Repository $instance */
  3520. $instance->push($key, $value);
  3521. }
  3522. /**
  3523. * Get all of the configuration items for the application.
  3524. *
  3525. * @return array
  3526. * @static
  3527. */
  3528. public static function all()
  3529. {
  3530. /** @var \Illuminate\Config\Repository $instance */
  3531. return $instance->all();
  3532. }
  3533. /**
  3534. * Determine if the given configuration option exists.
  3535. *
  3536. * @param string $key
  3537. * @return bool
  3538. * @static
  3539. */
  3540. public static function offsetExists($key)
  3541. {
  3542. /** @var \Illuminate\Config\Repository $instance */
  3543. return $instance->offsetExists($key);
  3544. }
  3545. /**
  3546. * Get a configuration option.
  3547. *
  3548. * @param string $key
  3549. * @return mixed
  3550. * @static
  3551. */
  3552. public static function offsetGet($key)
  3553. {
  3554. /** @var \Illuminate\Config\Repository $instance */
  3555. return $instance->offsetGet($key);
  3556. }
  3557. /**
  3558. * Set a configuration option.
  3559. *
  3560. * @param string $key
  3561. * @param mixed $value
  3562. * @return void
  3563. * @static
  3564. */
  3565. public static function offsetSet($key, $value)
  3566. {
  3567. /** @var \Illuminate\Config\Repository $instance */
  3568. $instance->offsetSet($key, $value);
  3569. }
  3570. /**
  3571. * Unset a configuration option.
  3572. *
  3573. * @param string $key
  3574. * @return void
  3575. * @static
  3576. */
  3577. public static function offsetUnset($key)
  3578. {
  3579. /** @var \Illuminate\Config\Repository $instance */
  3580. $instance->offsetUnset($key);
  3581. }
  3582. }
  3583. /**
  3584. *
  3585. *
  3586. * @see \Illuminate\Cookie\CookieJar
  3587. */
  3588. class Cookie {
  3589. /**
  3590. * Create a new cookie instance.
  3591. *
  3592. * @param string $name
  3593. * @param string $value
  3594. * @param int $minutes
  3595. * @param string|null $path
  3596. * @param string|null $domain
  3597. * @param bool|null $secure
  3598. * @param bool $httpOnly
  3599. * @param bool $raw
  3600. * @param string|null $sameSite
  3601. * @return \Symfony\Component\HttpFoundation\Cookie
  3602. * @static
  3603. */
  3604. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3605. {
  3606. /** @var \Illuminate\Cookie\CookieJar $instance */
  3607. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3608. }
  3609. /**
  3610. * Create a cookie that lasts "forever" (five years).
  3611. *
  3612. * @param string $name
  3613. * @param string $value
  3614. * @param string|null $path
  3615. * @param string|null $domain
  3616. * @param bool|null $secure
  3617. * @param bool $httpOnly
  3618. * @param bool $raw
  3619. * @param string|null $sameSite
  3620. * @return \Symfony\Component\HttpFoundation\Cookie
  3621. * @static
  3622. */
  3623. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3624. {
  3625. /** @var \Illuminate\Cookie\CookieJar $instance */
  3626. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3627. }
  3628. /**
  3629. * Expire the given cookie.
  3630. *
  3631. * @param string $name
  3632. * @param string|null $path
  3633. * @param string|null $domain
  3634. * @return \Symfony\Component\HttpFoundation\Cookie
  3635. * @static
  3636. */
  3637. public static function forget($name, $path = null, $domain = null)
  3638. {
  3639. /** @var \Illuminate\Cookie\CookieJar $instance */
  3640. return $instance->forget($name, $path, $domain);
  3641. }
  3642. /**
  3643. * Determine if a cookie has been queued.
  3644. *
  3645. * @param string $key
  3646. * @param string|null $path
  3647. * @return bool
  3648. * @static
  3649. */
  3650. public static function hasQueued($key, $path = null)
  3651. {
  3652. /** @var \Illuminate\Cookie\CookieJar $instance */
  3653. return $instance->hasQueued($key, $path);
  3654. }
  3655. /**
  3656. * Get a queued cookie instance.
  3657. *
  3658. * @param string $key
  3659. * @param mixed $default
  3660. * @param string|null $path
  3661. * @return \Symfony\Component\HttpFoundation\Cookie|null
  3662. * @static
  3663. */
  3664. public static function queued($key, $default = null, $path = null)
  3665. {
  3666. /** @var \Illuminate\Cookie\CookieJar $instance */
  3667. return $instance->queued($key, $default, $path);
  3668. }
  3669. /**
  3670. * Queue a cookie to send with the next response.
  3671. *
  3672. * @param array $parameters
  3673. * @return void
  3674. * @static
  3675. */
  3676. public static function queue(...$parameters)
  3677. {
  3678. /** @var \Illuminate\Cookie\CookieJar $instance */
  3679. $instance->queue(...$parameters);
  3680. }
  3681. /**
  3682. * Remove a cookie from the queue.
  3683. *
  3684. * @param string $name
  3685. * @param string|null $path
  3686. * @return void
  3687. * @static
  3688. */
  3689. public static function unqueue($name, $path = null)
  3690. {
  3691. /** @var \Illuminate\Cookie\CookieJar $instance */
  3692. $instance->unqueue($name, $path);
  3693. }
  3694. /**
  3695. * Set the default path and domain for the jar.
  3696. *
  3697. * @param string $path
  3698. * @param string $domain
  3699. * @param bool $secure
  3700. * @param string|null $sameSite
  3701. * @return \Illuminate\Cookie\CookieJar
  3702. * @static
  3703. */
  3704. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3705. {
  3706. /** @var \Illuminate\Cookie\CookieJar $instance */
  3707. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3708. }
  3709. /**
  3710. * Get the cookies which have been queued for the next request.
  3711. *
  3712. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3713. * @static
  3714. */
  3715. public static function getQueuedCookies()
  3716. {
  3717. /** @var \Illuminate\Cookie\CookieJar $instance */
  3718. return $instance->getQueuedCookies();
  3719. }
  3720. /**
  3721. * Register a custom macro.
  3722. *
  3723. * @param string $name
  3724. * @param object|callable $macro
  3725. * @return void
  3726. * @static
  3727. */
  3728. public static function macro($name, $macro)
  3729. {
  3730. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  3731. }
  3732. /**
  3733. * Mix another object into the class.
  3734. *
  3735. * @param object $mixin
  3736. * @param bool $replace
  3737. * @return void
  3738. * @throws \ReflectionException
  3739. * @static
  3740. */
  3741. public static function mixin($mixin, $replace = true)
  3742. {
  3743. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  3744. }
  3745. /**
  3746. * Checks if macro is registered.
  3747. *
  3748. * @param string $name
  3749. * @return bool
  3750. * @static
  3751. */
  3752. public static function hasMacro($name)
  3753. {
  3754. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  3755. }
  3756. }
  3757. /**
  3758. *
  3759. *
  3760. * @see \Illuminate\Encryption\Encrypter
  3761. */
  3762. class Crypt {
  3763. /**
  3764. * Determine if the given key and cipher combination is valid.
  3765. *
  3766. * @param string $key
  3767. * @param string $cipher
  3768. * @return bool
  3769. * @static
  3770. */
  3771. public static function supported($key, $cipher)
  3772. {
  3773. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3774. }
  3775. /**
  3776. * Create a new encryption key for the given cipher.
  3777. *
  3778. * @param string $cipher
  3779. * @return string
  3780. * @static
  3781. */
  3782. public static function generateKey($cipher)
  3783. {
  3784. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3785. }
  3786. /**
  3787. * Encrypt the given value.
  3788. *
  3789. * @param mixed $value
  3790. * @param bool $serialize
  3791. * @return string
  3792. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3793. * @static
  3794. */
  3795. public static function encrypt($value, $serialize = true)
  3796. {
  3797. /** @var \Illuminate\Encryption\Encrypter $instance */
  3798. return $instance->encrypt($value, $serialize);
  3799. }
  3800. /**
  3801. * Encrypt a string without serialization.
  3802. *
  3803. * @param string $value
  3804. * @return string
  3805. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3806. * @static
  3807. */
  3808. public static function encryptString($value)
  3809. {
  3810. /** @var \Illuminate\Encryption\Encrypter $instance */
  3811. return $instance->encryptString($value);
  3812. }
  3813. /**
  3814. * Decrypt the given value.
  3815. *
  3816. * @param string $payload
  3817. * @param bool $unserialize
  3818. * @return mixed
  3819. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3820. * @static
  3821. */
  3822. public static function decrypt($payload, $unserialize = true)
  3823. {
  3824. /** @var \Illuminate\Encryption\Encrypter $instance */
  3825. return $instance->decrypt($payload, $unserialize);
  3826. }
  3827. /**
  3828. * Decrypt the given string without unserialization.
  3829. *
  3830. * @param string $payload
  3831. * @return string
  3832. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3833. * @static
  3834. */
  3835. public static function decryptString($payload)
  3836. {
  3837. /** @var \Illuminate\Encryption\Encrypter $instance */
  3838. return $instance->decryptString($payload);
  3839. }
  3840. /**
  3841. * Get the encryption key.
  3842. *
  3843. * @return string
  3844. * @static
  3845. */
  3846. public static function getKey()
  3847. {
  3848. /** @var \Illuminate\Encryption\Encrypter $instance */
  3849. return $instance->getKey();
  3850. }
  3851. }
  3852. /**
  3853. *
  3854. *
  3855. * @see \Illuminate\Database\DatabaseManager
  3856. * @see \Illuminate\Database\Connection
  3857. */
  3858. class DB {
  3859. /**
  3860. * Get a database connection instance.
  3861. *
  3862. * @param string|null $name
  3863. * @return \Illuminate\Database\Connection
  3864. * @static
  3865. */
  3866. public static function connection($name = null)
  3867. {
  3868. /** @var \Illuminate\Database\DatabaseManager $instance */
  3869. return $instance->connection($name);
  3870. }
  3871. /**
  3872. * Disconnect from the given database and remove from local cache.
  3873. *
  3874. * @param string|null $name
  3875. * @return void
  3876. * @static
  3877. */
  3878. public static function purge($name = null)
  3879. {
  3880. /** @var \Illuminate\Database\DatabaseManager $instance */
  3881. $instance->purge($name);
  3882. }
  3883. /**
  3884. * Disconnect from the given database.
  3885. *
  3886. * @param string|null $name
  3887. * @return void
  3888. * @static
  3889. */
  3890. public static function disconnect($name = null)
  3891. {
  3892. /** @var \Illuminate\Database\DatabaseManager $instance */
  3893. $instance->disconnect($name);
  3894. }
  3895. /**
  3896. * Reconnect to the given database.
  3897. *
  3898. * @param string|null $name
  3899. * @return \Illuminate\Database\Connection
  3900. * @static
  3901. */
  3902. public static function reconnect($name = null)
  3903. {
  3904. /** @var \Illuminate\Database\DatabaseManager $instance */
  3905. return $instance->reconnect($name);
  3906. }
  3907. /**
  3908. * Set the default database connection for the callback execution.
  3909. *
  3910. * @param string $name
  3911. * @param callable $callback
  3912. * @return mixed
  3913. * @static
  3914. */
  3915. public static function usingConnection($name, $callback)
  3916. {
  3917. /** @var \Illuminate\Database\DatabaseManager $instance */
  3918. return $instance->usingConnection($name, $callback);
  3919. }
  3920. /**
  3921. * Get the default connection name.
  3922. *
  3923. * @return string
  3924. * @static
  3925. */
  3926. public static function getDefaultConnection()
  3927. {
  3928. /** @var \Illuminate\Database\DatabaseManager $instance */
  3929. return $instance->getDefaultConnection();
  3930. }
  3931. /**
  3932. * Set the default connection name.
  3933. *
  3934. * @param string $name
  3935. * @return void
  3936. * @static
  3937. */
  3938. public static function setDefaultConnection($name)
  3939. {
  3940. /** @var \Illuminate\Database\DatabaseManager $instance */
  3941. $instance->setDefaultConnection($name);
  3942. }
  3943. /**
  3944. * Get all of the support drivers.
  3945. *
  3946. * @return array
  3947. * @static
  3948. */
  3949. public static function supportedDrivers()
  3950. {
  3951. /** @var \Illuminate\Database\DatabaseManager $instance */
  3952. return $instance->supportedDrivers();
  3953. }
  3954. /**
  3955. * Get all of the drivers that are actually available.
  3956. *
  3957. * @return array
  3958. * @static
  3959. */
  3960. public static function availableDrivers()
  3961. {
  3962. /** @var \Illuminate\Database\DatabaseManager $instance */
  3963. return $instance->availableDrivers();
  3964. }
  3965. /**
  3966. * Register an extension connection resolver.
  3967. *
  3968. * @param string $name
  3969. * @param callable $resolver
  3970. * @return void
  3971. * @static
  3972. */
  3973. public static function extend($name, $resolver)
  3974. {
  3975. /** @var \Illuminate\Database\DatabaseManager $instance */
  3976. $instance->extend($name, $resolver);
  3977. }
  3978. /**
  3979. * Return all of the created connections.
  3980. *
  3981. * @return array
  3982. * @static
  3983. */
  3984. public static function getConnections()
  3985. {
  3986. /** @var \Illuminate\Database\DatabaseManager $instance */
  3987. return $instance->getConnections();
  3988. }
  3989. /**
  3990. * Set the database reconnector callback.
  3991. *
  3992. * @param callable $reconnector
  3993. * @return void
  3994. * @static
  3995. */
  3996. public static function setReconnector($reconnector)
  3997. {
  3998. /** @var \Illuminate\Database\DatabaseManager $instance */
  3999. $instance->setReconnector($reconnector);
  4000. }
  4001. /**
  4002. * Get a schema builder instance for the connection.
  4003. *
  4004. * @return \Illuminate\Database\Schema\MySqlBuilder
  4005. * @static
  4006. */
  4007. public static function getSchemaBuilder()
  4008. {
  4009. /** @var \Illuminate\Database\MySqlConnection $instance */
  4010. return $instance->getSchemaBuilder();
  4011. }
  4012. /**
  4013. * Set the query grammar to the default implementation.
  4014. *
  4015. * @return void
  4016. * @static
  4017. */
  4018. public static function useDefaultQueryGrammar()
  4019. { //Method inherited from \Illuminate\Database\Connection
  4020. /** @var \Illuminate\Database\MySqlConnection $instance */
  4021. $instance->useDefaultQueryGrammar();
  4022. }
  4023. /**
  4024. * Set the schema grammar to the default implementation.
  4025. *
  4026. * @return void
  4027. * @static
  4028. */
  4029. public static function useDefaultSchemaGrammar()
  4030. { //Method inherited from \Illuminate\Database\Connection
  4031. /** @var \Illuminate\Database\MySqlConnection $instance */
  4032. $instance->useDefaultSchemaGrammar();
  4033. }
  4034. /**
  4035. * Set the query post processor to the default implementation.
  4036. *
  4037. * @return void
  4038. * @static
  4039. */
  4040. public static function useDefaultPostProcessor()
  4041. { //Method inherited from \Illuminate\Database\Connection
  4042. /** @var \Illuminate\Database\MySqlConnection $instance */
  4043. $instance->useDefaultPostProcessor();
  4044. }
  4045. /**
  4046. * Begin a fluent query against a database table.
  4047. *
  4048. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  4049. * @param string|null $as
  4050. * @return \Illuminate\Database\Query\Builder
  4051. * @static
  4052. */
  4053. public static function table($table, $as = null)
  4054. { //Method inherited from \Illuminate\Database\Connection
  4055. /** @var \Illuminate\Database\MySqlConnection $instance */
  4056. return $instance->table($table, $as);
  4057. }
  4058. /**
  4059. * Get a new query builder instance.
  4060. *
  4061. * @return \Illuminate\Database\Query\Builder
  4062. * @static
  4063. */
  4064. public static function query()
  4065. { //Method inherited from \Illuminate\Database\Connection
  4066. /** @var \Illuminate\Database\MySqlConnection $instance */
  4067. return $instance->query();
  4068. }
  4069. /**
  4070. * Run a select statement and return a single result.
  4071. *
  4072. * @param string $query
  4073. * @param array $bindings
  4074. * @param bool $useReadPdo
  4075. * @return mixed
  4076. * @static
  4077. */
  4078. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  4079. { //Method inherited from \Illuminate\Database\Connection
  4080. /** @var \Illuminate\Database\MySqlConnection $instance */
  4081. return $instance->selectOne($query, $bindings, $useReadPdo);
  4082. }
  4083. /**
  4084. * Run a select statement against the database.
  4085. *
  4086. * @param string $query
  4087. * @param array $bindings
  4088. * @return array
  4089. * @static
  4090. */
  4091. public static function selectFromWriteConnection($query, $bindings = [])
  4092. { //Method inherited from \Illuminate\Database\Connection
  4093. /** @var \Illuminate\Database\MySqlConnection $instance */
  4094. return $instance->selectFromWriteConnection($query, $bindings);
  4095. }
  4096. /**
  4097. * Run a select statement against the database.
  4098. *
  4099. * @param string $query
  4100. * @param array $bindings
  4101. * @param bool $useReadPdo
  4102. * @return array
  4103. * @static
  4104. */
  4105. public static function select($query, $bindings = [], $useReadPdo = true)
  4106. { //Method inherited from \Illuminate\Database\Connection
  4107. /** @var \Illuminate\Database\MySqlConnection $instance */
  4108. return $instance->select($query, $bindings, $useReadPdo);
  4109. }
  4110. /**
  4111. * Run a select statement against the database and returns a generator.
  4112. *
  4113. * @param string $query
  4114. * @param array $bindings
  4115. * @param bool $useReadPdo
  4116. * @return \Generator
  4117. * @static
  4118. */
  4119. public static function cursor($query, $bindings = [], $useReadPdo = true)
  4120. { //Method inherited from \Illuminate\Database\Connection
  4121. /** @var \Illuminate\Database\MySqlConnection $instance */
  4122. return $instance->cursor($query, $bindings, $useReadPdo);
  4123. }
  4124. /**
  4125. * Run an insert statement against the database.
  4126. *
  4127. * @param string $query
  4128. * @param array $bindings
  4129. * @return bool
  4130. * @static
  4131. */
  4132. public static function insert($query, $bindings = [])
  4133. { //Method inherited from \Illuminate\Database\Connection
  4134. /** @var \Illuminate\Database\MySqlConnection $instance */
  4135. return $instance->insert($query, $bindings);
  4136. }
  4137. /**
  4138. * Run an update statement against the database.
  4139. *
  4140. * @param string $query
  4141. * @param array $bindings
  4142. * @return int
  4143. * @static
  4144. */
  4145. public static function update($query, $bindings = [])
  4146. { //Method inherited from \Illuminate\Database\Connection
  4147. /** @var \Illuminate\Database\MySqlConnection $instance */
  4148. return $instance->update($query, $bindings);
  4149. }
  4150. /**
  4151. * Run a delete statement against the database.
  4152. *
  4153. * @param string $query
  4154. * @param array $bindings
  4155. * @return int
  4156. * @static
  4157. */
  4158. public static function delete($query, $bindings = [])
  4159. { //Method inherited from \Illuminate\Database\Connection
  4160. /** @var \Illuminate\Database\MySqlConnection $instance */
  4161. return $instance->delete($query, $bindings);
  4162. }
  4163. /**
  4164. * Execute an SQL statement and return the boolean result.
  4165. *
  4166. * @param string $query
  4167. * @param array $bindings
  4168. * @return bool
  4169. * @static
  4170. */
  4171. public static function statement($query, $bindings = [])
  4172. { //Method inherited from \Illuminate\Database\Connection
  4173. /** @var \Illuminate\Database\MySqlConnection $instance */
  4174. return $instance->statement($query, $bindings);
  4175. }
  4176. /**
  4177. * Run an SQL statement and get the number of rows affected.
  4178. *
  4179. * @param string $query
  4180. * @param array $bindings
  4181. * @return int
  4182. * @static
  4183. */
  4184. public static function affectingStatement($query, $bindings = [])
  4185. { //Method inherited from \Illuminate\Database\Connection
  4186. /** @var \Illuminate\Database\MySqlConnection $instance */
  4187. return $instance->affectingStatement($query, $bindings);
  4188. }
  4189. /**
  4190. * Run a raw, unprepared query against the PDO connection.
  4191. *
  4192. * @param string $query
  4193. * @return bool
  4194. * @static
  4195. */
  4196. public static function unprepared($query)
  4197. { //Method inherited from \Illuminate\Database\Connection
  4198. /** @var \Illuminate\Database\MySqlConnection $instance */
  4199. return $instance->unprepared($query);
  4200. }
  4201. /**
  4202. * Execute the given callback in "dry run" mode.
  4203. *
  4204. * @param \Closure $callback
  4205. * @return array
  4206. * @static
  4207. */
  4208. public static function pretend($callback)
  4209. { //Method inherited from \Illuminate\Database\Connection
  4210. /** @var \Illuminate\Database\MySqlConnection $instance */
  4211. return $instance->pretend($callback);
  4212. }
  4213. /**
  4214. * Bind values to their parameters in the given statement.
  4215. *
  4216. * @param \PDOStatement $statement
  4217. * @param array $bindings
  4218. * @return void
  4219. * @static
  4220. */
  4221. public static function bindValues($statement, $bindings)
  4222. { //Method inherited from \Illuminate\Database\Connection
  4223. /** @var \Illuminate\Database\MySqlConnection $instance */
  4224. $instance->bindValues($statement, $bindings);
  4225. }
  4226. /**
  4227. * Prepare the query bindings for execution.
  4228. *
  4229. * @param array $bindings
  4230. * @return array
  4231. * @static
  4232. */
  4233. public static function prepareBindings($bindings)
  4234. { //Method inherited from \Illuminate\Database\Connection
  4235. /** @var \Illuminate\Database\MySqlConnection $instance */
  4236. return $instance->prepareBindings($bindings);
  4237. }
  4238. /**
  4239. * Log a query in the connection's query log.
  4240. *
  4241. * @param string $query
  4242. * @param array $bindings
  4243. * @param float|null $time
  4244. * @return void
  4245. * @static
  4246. */
  4247. public static function logQuery($query, $bindings, $time = null)
  4248. { //Method inherited from \Illuminate\Database\Connection
  4249. /** @var \Illuminate\Database\MySqlConnection $instance */
  4250. $instance->logQuery($query, $bindings, $time);
  4251. }
  4252. /**
  4253. * Register a database query listener with the connection.
  4254. *
  4255. * @param \Closure $callback
  4256. * @return void
  4257. * @static
  4258. */
  4259. public static function listen($callback)
  4260. { //Method inherited from \Illuminate\Database\Connection
  4261. /** @var \Illuminate\Database\MySqlConnection $instance */
  4262. $instance->listen($callback);
  4263. }
  4264. /**
  4265. * Get a new raw query expression.
  4266. *
  4267. * @param mixed $value
  4268. * @return \Illuminate\Database\Query\Expression
  4269. * @static
  4270. */
  4271. public static function raw($value)
  4272. { //Method inherited from \Illuminate\Database\Connection
  4273. /** @var \Illuminate\Database\MySqlConnection $instance */
  4274. return $instance->raw($value);
  4275. }
  4276. /**
  4277. * Indicate if any records have been modified.
  4278. *
  4279. * @param bool $value
  4280. * @return void
  4281. * @static
  4282. */
  4283. public static function recordsHaveBeenModified($value = true)
  4284. { //Method inherited from \Illuminate\Database\Connection
  4285. /** @var \Illuminate\Database\MySqlConnection $instance */
  4286. $instance->recordsHaveBeenModified($value);
  4287. }
  4288. /**
  4289. * Is Doctrine available?
  4290. *
  4291. * @return bool
  4292. * @static
  4293. */
  4294. public static function isDoctrineAvailable()
  4295. { //Method inherited from \Illuminate\Database\Connection
  4296. /** @var \Illuminate\Database\MySqlConnection $instance */
  4297. return $instance->isDoctrineAvailable();
  4298. }
  4299. /**
  4300. * Get a Doctrine Schema Column instance.
  4301. *
  4302. * @param string $table
  4303. * @param string $column
  4304. * @return \Doctrine\DBAL\Schema\Column
  4305. * @static
  4306. */
  4307. public static function getDoctrineColumn($table, $column)
  4308. { //Method inherited from \Illuminate\Database\Connection
  4309. /** @var \Illuminate\Database\MySqlConnection $instance */
  4310. return $instance->getDoctrineColumn($table, $column);
  4311. }
  4312. /**
  4313. * Get the Doctrine DBAL schema manager for the connection.
  4314. *
  4315. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  4316. * @static
  4317. */
  4318. public static function getDoctrineSchemaManager()
  4319. { //Method inherited from \Illuminate\Database\Connection
  4320. /** @var \Illuminate\Database\MySqlConnection $instance */
  4321. return $instance->getDoctrineSchemaManager();
  4322. }
  4323. /**
  4324. * Get the Doctrine DBAL database connection instance.
  4325. *
  4326. * @return \Doctrine\DBAL\Connection
  4327. * @static
  4328. */
  4329. public static function getDoctrineConnection()
  4330. { //Method inherited from \Illuminate\Database\Connection
  4331. /** @var \Illuminate\Database\MySqlConnection $instance */
  4332. return $instance->getDoctrineConnection();
  4333. }
  4334. /**
  4335. * Get the current PDO connection.
  4336. *
  4337. * @return \PDO
  4338. * @static
  4339. */
  4340. public static function getPdo()
  4341. { //Method inherited from \Illuminate\Database\Connection
  4342. /** @var \Illuminate\Database\MySqlConnection $instance */
  4343. return $instance->getPdo();
  4344. }
  4345. /**
  4346. * Get the current PDO connection parameter without executing any reconnect logic.
  4347. *
  4348. * @return \PDO|\Closure|null
  4349. * @static
  4350. */
  4351. public static function getRawPdo()
  4352. { //Method inherited from \Illuminate\Database\Connection
  4353. /** @var \Illuminate\Database\MySqlConnection $instance */
  4354. return $instance->getRawPdo();
  4355. }
  4356. /**
  4357. * Get the current PDO connection used for reading.
  4358. *
  4359. * @return \PDO
  4360. * @static
  4361. */
  4362. public static function getReadPdo()
  4363. { //Method inherited from \Illuminate\Database\Connection
  4364. /** @var \Illuminate\Database\MySqlConnection $instance */
  4365. return $instance->getReadPdo();
  4366. }
  4367. /**
  4368. * Get the current read PDO connection parameter without executing any reconnect logic.
  4369. *
  4370. * @return \PDO|\Closure|null
  4371. * @static
  4372. */
  4373. public static function getRawReadPdo()
  4374. { //Method inherited from \Illuminate\Database\Connection
  4375. /** @var \Illuminate\Database\MySqlConnection $instance */
  4376. return $instance->getRawReadPdo();
  4377. }
  4378. /**
  4379. * Set the PDO connection.
  4380. *
  4381. * @param \PDO|\Closure|null $pdo
  4382. * @return \Illuminate\Database\MySqlConnection
  4383. * @static
  4384. */
  4385. public static function setPdo($pdo)
  4386. { //Method inherited from \Illuminate\Database\Connection
  4387. /** @var \Illuminate\Database\MySqlConnection $instance */
  4388. return $instance->setPdo($pdo);
  4389. }
  4390. /**
  4391. * Set the PDO connection used for reading.
  4392. *
  4393. * @param \PDO|\Closure|null $pdo
  4394. * @return \Illuminate\Database\MySqlConnection
  4395. * @static
  4396. */
  4397. public static function setReadPdo($pdo)
  4398. { //Method inherited from \Illuminate\Database\Connection
  4399. /** @var \Illuminate\Database\MySqlConnection $instance */
  4400. return $instance->setReadPdo($pdo);
  4401. }
  4402. /**
  4403. * Get the database connection name.
  4404. *
  4405. * @return string|null
  4406. * @static
  4407. */
  4408. public static function getName()
  4409. { //Method inherited from \Illuminate\Database\Connection
  4410. /** @var \Illuminate\Database\MySqlConnection $instance */
  4411. return $instance->getName();
  4412. }
  4413. /**
  4414. * Get an option from the configuration options.
  4415. *
  4416. * @param string|null $option
  4417. * @return mixed
  4418. * @static
  4419. */
  4420. public static function getConfig($option = null)
  4421. { //Method inherited from \Illuminate\Database\Connection
  4422. /** @var \Illuminate\Database\MySqlConnection $instance */
  4423. return $instance->getConfig($option);
  4424. }
  4425. /**
  4426. * Get the PDO driver name.
  4427. *
  4428. * @return string
  4429. * @static
  4430. */
  4431. public static function getDriverName()
  4432. { //Method inherited from \Illuminate\Database\Connection
  4433. /** @var \Illuminate\Database\MySqlConnection $instance */
  4434. return $instance->getDriverName();
  4435. }
  4436. /**
  4437. * Get the query grammar used by the connection.
  4438. *
  4439. * @return \Illuminate\Database\Query\Grammars\Grammar
  4440. * @static
  4441. */
  4442. public static function getQueryGrammar()
  4443. { //Method inherited from \Illuminate\Database\Connection
  4444. /** @var \Illuminate\Database\MySqlConnection $instance */
  4445. return $instance->getQueryGrammar();
  4446. }
  4447. /**
  4448. * Set the query grammar used by the connection.
  4449. *
  4450. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4451. * @return \Illuminate\Database\MySqlConnection
  4452. * @static
  4453. */
  4454. public static function setQueryGrammar($grammar)
  4455. { //Method inherited from \Illuminate\Database\Connection
  4456. /** @var \Illuminate\Database\MySqlConnection $instance */
  4457. return $instance->setQueryGrammar($grammar);
  4458. }
  4459. /**
  4460. * Get the schema grammar used by the connection.
  4461. *
  4462. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4463. * @static
  4464. */
  4465. public static function getSchemaGrammar()
  4466. { //Method inherited from \Illuminate\Database\Connection
  4467. /** @var \Illuminate\Database\MySqlConnection $instance */
  4468. return $instance->getSchemaGrammar();
  4469. }
  4470. /**
  4471. * Set the schema grammar used by the connection.
  4472. *
  4473. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4474. * @return \Illuminate\Database\MySqlConnection
  4475. * @static
  4476. */
  4477. public static function setSchemaGrammar($grammar)
  4478. { //Method inherited from \Illuminate\Database\Connection
  4479. /** @var \Illuminate\Database\MySqlConnection $instance */
  4480. return $instance->setSchemaGrammar($grammar);
  4481. }
  4482. /**
  4483. * Get the query post processor used by the connection.
  4484. *
  4485. * @return \Illuminate\Database\Query\Processors\Processor
  4486. * @static
  4487. */
  4488. public static function getPostProcessor()
  4489. { //Method inherited from \Illuminate\Database\Connection
  4490. /** @var \Illuminate\Database\MySqlConnection $instance */
  4491. return $instance->getPostProcessor();
  4492. }
  4493. /**
  4494. * Set the query post processor used by the connection.
  4495. *
  4496. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4497. * @return \Illuminate\Database\MySqlConnection
  4498. * @static
  4499. */
  4500. public static function setPostProcessor($processor)
  4501. { //Method inherited from \Illuminate\Database\Connection
  4502. /** @var \Illuminate\Database\MySqlConnection $instance */
  4503. return $instance->setPostProcessor($processor);
  4504. }
  4505. /**
  4506. * Get the event dispatcher used by the connection.
  4507. *
  4508. * @return \Illuminate\Contracts\Events\Dispatcher
  4509. * @static
  4510. */
  4511. public static function getEventDispatcher()
  4512. { //Method inherited from \Illuminate\Database\Connection
  4513. /** @var \Illuminate\Database\MySqlConnection $instance */
  4514. return $instance->getEventDispatcher();
  4515. }
  4516. /**
  4517. * Set the event dispatcher instance on the connection.
  4518. *
  4519. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4520. * @return \Illuminate\Database\MySqlConnection
  4521. * @static
  4522. */
  4523. public static function setEventDispatcher($events)
  4524. { //Method inherited from \Illuminate\Database\Connection
  4525. /** @var \Illuminate\Database\MySqlConnection $instance */
  4526. return $instance->setEventDispatcher($events);
  4527. }
  4528. /**
  4529. * Unset the event dispatcher for this connection.
  4530. *
  4531. * @return void
  4532. * @static
  4533. */
  4534. public static function unsetEventDispatcher()
  4535. { //Method inherited from \Illuminate\Database\Connection
  4536. /** @var \Illuminate\Database\MySqlConnection $instance */
  4537. $instance->unsetEventDispatcher();
  4538. }
  4539. /**
  4540. * Determine if the connection is in a "dry run".
  4541. *
  4542. * @return bool
  4543. * @static
  4544. */
  4545. public static function pretending()
  4546. { //Method inherited from \Illuminate\Database\Connection
  4547. /** @var \Illuminate\Database\MySqlConnection $instance */
  4548. return $instance->pretending();
  4549. }
  4550. /**
  4551. * Get the connection query log.
  4552. *
  4553. * @return array
  4554. * @static
  4555. */
  4556. public static function getQueryLog()
  4557. { //Method inherited from \Illuminate\Database\Connection
  4558. /** @var \Illuminate\Database\MySqlConnection $instance */
  4559. return $instance->getQueryLog();
  4560. }
  4561. /**
  4562. * Clear the query log.
  4563. *
  4564. * @return void
  4565. * @static
  4566. */
  4567. public static function flushQueryLog()
  4568. { //Method inherited from \Illuminate\Database\Connection
  4569. /** @var \Illuminate\Database\MySqlConnection $instance */
  4570. $instance->flushQueryLog();
  4571. }
  4572. /**
  4573. * Enable the query log on the connection.
  4574. *
  4575. * @return void
  4576. * @static
  4577. */
  4578. public static function enableQueryLog()
  4579. { //Method inherited from \Illuminate\Database\Connection
  4580. /** @var \Illuminate\Database\MySqlConnection $instance */
  4581. $instance->enableQueryLog();
  4582. }
  4583. /**
  4584. * Disable the query log on the connection.
  4585. *
  4586. * @return void
  4587. * @static
  4588. */
  4589. public static function disableQueryLog()
  4590. { //Method inherited from \Illuminate\Database\Connection
  4591. /** @var \Illuminate\Database\MySqlConnection $instance */
  4592. $instance->disableQueryLog();
  4593. }
  4594. /**
  4595. * Determine whether we're logging queries.
  4596. *
  4597. * @return bool
  4598. * @static
  4599. */
  4600. public static function logging()
  4601. { //Method inherited from \Illuminate\Database\Connection
  4602. /** @var \Illuminate\Database\MySqlConnection $instance */
  4603. return $instance->logging();
  4604. }
  4605. /**
  4606. * Get the name of the connected database.
  4607. *
  4608. * @return string
  4609. * @static
  4610. */
  4611. public static function getDatabaseName()
  4612. { //Method inherited from \Illuminate\Database\Connection
  4613. /** @var \Illuminate\Database\MySqlConnection $instance */
  4614. return $instance->getDatabaseName();
  4615. }
  4616. /**
  4617. * Set the name of the connected database.
  4618. *
  4619. * @param string $database
  4620. * @return \Illuminate\Database\MySqlConnection
  4621. * @static
  4622. */
  4623. public static function setDatabaseName($database)
  4624. { //Method inherited from \Illuminate\Database\Connection
  4625. /** @var \Illuminate\Database\MySqlConnection $instance */
  4626. return $instance->setDatabaseName($database);
  4627. }
  4628. /**
  4629. * Get the table prefix for the connection.
  4630. *
  4631. * @return string
  4632. * @static
  4633. */
  4634. public static function getTablePrefix()
  4635. { //Method inherited from \Illuminate\Database\Connection
  4636. /** @var \Illuminate\Database\MySqlConnection $instance */
  4637. return $instance->getTablePrefix();
  4638. }
  4639. /**
  4640. * Set the table prefix in use by the connection.
  4641. *
  4642. * @param string $prefix
  4643. * @return \Illuminate\Database\MySqlConnection
  4644. * @static
  4645. */
  4646. public static function setTablePrefix($prefix)
  4647. { //Method inherited from \Illuminate\Database\Connection
  4648. /** @var \Illuminate\Database\MySqlConnection $instance */
  4649. return $instance->setTablePrefix($prefix);
  4650. }
  4651. /**
  4652. * Set the table prefix and return the grammar.
  4653. *
  4654. * @param \Illuminate\Database\Grammar $grammar
  4655. * @return \Illuminate\Database\Grammar
  4656. * @static
  4657. */
  4658. public static function withTablePrefix($grammar)
  4659. { //Method inherited from \Illuminate\Database\Connection
  4660. /** @var \Illuminate\Database\MySqlConnection $instance */
  4661. return $instance->withTablePrefix($grammar);
  4662. }
  4663. /**
  4664. * Register a connection resolver.
  4665. *
  4666. * @param string $driver
  4667. * @param \Closure $callback
  4668. * @return void
  4669. * @static
  4670. */
  4671. public static function resolverFor($driver, $callback)
  4672. { //Method inherited from \Illuminate\Database\Connection
  4673. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4674. }
  4675. /**
  4676. * Get the connection resolver for the given driver.
  4677. *
  4678. * @param string $driver
  4679. * @return mixed
  4680. * @static
  4681. */
  4682. public static function getResolver($driver)
  4683. { //Method inherited from \Illuminate\Database\Connection
  4684. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4685. }
  4686. /**
  4687. * Execute a Closure within a transaction.
  4688. *
  4689. * @param \Closure $callback
  4690. * @param int $attempts
  4691. * @return mixed
  4692. * @throws \Throwable
  4693. * @static
  4694. */
  4695. public static function transaction($callback, $attempts = 1)
  4696. { //Method inherited from \Illuminate\Database\Connection
  4697. /** @var \Illuminate\Database\MySqlConnection $instance */
  4698. return $instance->transaction($callback, $attempts);
  4699. }
  4700. /**
  4701. * Start a new database transaction.
  4702. *
  4703. * @return void
  4704. * @throws \Throwable
  4705. * @static
  4706. */
  4707. public static function beginTransaction()
  4708. { //Method inherited from \Illuminate\Database\Connection
  4709. /** @var \Illuminate\Database\MySqlConnection $instance */
  4710. $instance->beginTransaction();
  4711. }
  4712. /**
  4713. * Commit the active database transaction.
  4714. *
  4715. * @return void
  4716. * @throws \Throwable
  4717. * @static
  4718. */
  4719. public static function commit()
  4720. { //Method inherited from \Illuminate\Database\Connection
  4721. /** @var \Illuminate\Database\MySqlConnection $instance */
  4722. $instance->commit();
  4723. }
  4724. /**
  4725. * Rollback the active database transaction.
  4726. *
  4727. * @param int|null $toLevel
  4728. * @return void
  4729. * @throws \Throwable
  4730. * @static
  4731. */
  4732. public static function rollBack($toLevel = null)
  4733. { //Method inherited from \Illuminate\Database\Connection
  4734. /** @var \Illuminate\Database\MySqlConnection $instance */
  4735. $instance->rollBack($toLevel);
  4736. }
  4737. /**
  4738. * Get the number of active transactions.
  4739. *
  4740. * @return int
  4741. * @static
  4742. */
  4743. public static function transactionLevel()
  4744. { //Method inherited from \Illuminate\Database\Connection
  4745. /** @var \Illuminate\Database\MySqlConnection $instance */
  4746. return $instance->transactionLevel();
  4747. }
  4748. }
  4749. /**
  4750. *
  4751. *
  4752. * @see \Illuminate\Events\Dispatcher
  4753. */
  4754. class Event {
  4755. /**
  4756. * Register an event listener with the dispatcher.
  4757. *
  4758. * @param string|array $events
  4759. * @param \Closure|string $listener
  4760. * @return void
  4761. * @static
  4762. */
  4763. public static function listen($events, $listener)
  4764. {
  4765. /** @var \Illuminate\Events\Dispatcher $instance */
  4766. $instance->listen($events, $listener);
  4767. }
  4768. /**
  4769. * Determine if a given event has listeners.
  4770. *
  4771. * @param string $eventName
  4772. * @return bool
  4773. * @static
  4774. */
  4775. public static function hasListeners($eventName)
  4776. {
  4777. /** @var \Illuminate\Events\Dispatcher $instance */
  4778. return $instance->hasListeners($eventName);
  4779. }
  4780. /**
  4781. * Determine if the given event has any wildcard listeners.
  4782. *
  4783. * @param string $eventName
  4784. * @return bool
  4785. * @static
  4786. */
  4787. public static function hasWildcardListeners($eventName)
  4788. {
  4789. /** @var \Illuminate\Events\Dispatcher $instance */
  4790. return $instance->hasWildcardListeners($eventName);
  4791. }
  4792. /**
  4793. * Register an event and payload to be fired later.
  4794. *
  4795. * @param string $event
  4796. * @param array $payload
  4797. * @return void
  4798. * @static
  4799. */
  4800. public static function push($event, $payload = [])
  4801. {
  4802. /** @var \Illuminate\Events\Dispatcher $instance */
  4803. $instance->push($event, $payload);
  4804. }
  4805. /**
  4806. * Flush a set of pushed events.
  4807. *
  4808. * @param string $event
  4809. * @return void
  4810. * @static
  4811. */
  4812. public static function flush($event)
  4813. {
  4814. /** @var \Illuminate\Events\Dispatcher $instance */
  4815. $instance->flush($event);
  4816. }
  4817. /**
  4818. * Register an event subscriber with the dispatcher.
  4819. *
  4820. * @param object|string $subscriber
  4821. * @return void
  4822. * @static
  4823. */
  4824. public static function subscribe($subscriber)
  4825. {
  4826. /** @var \Illuminate\Events\Dispatcher $instance */
  4827. $instance->subscribe($subscriber);
  4828. }
  4829. /**
  4830. * Fire an event until the first non-null response is returned.
  4831. *
  4832. * @param string|object $event
  4833. * @param mixed $payload
  4834. * @return array|null
  4835. * @static
  4836. */
  4837. public static function until($event, $payload = [])
  4838. {
  4839. /** @var \Illuminate\Events\Dispatcher $instance */
  4840. return $instance->until($event, $payload);
  4841. }
  4842. /**
  4843. * Fire an event and call the listeners.
  4844. *
  4845. * @param string|object $event
  4846. * @param mixed $payload
  4847. * @param bool $halt
  4848. * @return array|null
  4849. * @static
  4850. */
  4851. public static function dispatch($event, $payload = [], $halt = false)
  4852. {
  4853. /** @var \Illuminate\Events\Dispatcher $instance */
  4854. return $instance->dispatch($event, $payload, $halt);
  4855. }
  4856. /**
  4857. * Get all of the listeners for a given event name.
  4858. *
  4859. * @param string $eventName
  4860. * @return array
  4861. * @static
  4862. */
  4863. public static function getListeners($eventName)
  4864. {
  4865. /** @var \Illuminate\Events\Dispatcher $instance */
  4866. return $instance->getListeners($eventName);
  4867. }
  4868. /**
  4869. * Register an event listener with the dispatcher.
  4870. *
  4871. * @param \Closure|string $listener
  4872. * @param bool $wildcard
  4873. * @return \Closure
  4874. * @static
  4875. */
  4876. public static function makeListener($listener, $wildcard = false)
  4877. {
  4878. /** @var \Illuminate\Events\Dispatcher $instance */
  4879. return $instance->makeListener($listener, $wildcard);
  4880. }
  4881. /**
  4882. * Create a class based listener using the IoC container.
  4883. *
  4884. * @param string $listener
  4885. * @param bool $wildcard
  4886. * @return \Closure
  4887. * @static
  4888. */
  4889. public static function createClassListener($listener, $wildcard = false)
  4890. {
  4891. /** @var \Illuminate\Events\Dispatcher $instance */
  4892. return $instance->createClassListener($listener, $wildcard);
  4893. }
  4894. /**
  4895. * Remove a set of listeners from the dispatcher.
  4896. *
  4897. * @param string $event
  4898. * @return void
  4899. * @static
  4900. */
  4901. public static function forget($event)
  4902. {
  4903. /** @var \Illuminate\Events\Dispatcher $instance */
  4904. $instance->forget($event);
  4905. }
  4906. /**
  4907. * Forget all of the pushed listeners.
  4908. *
  4909. * @return void
  4910. * @static
  4911. */
  4912. public static function forgetPushed()
  4913. {
  4914. /** @var \Illuminate\Events\Dispatcher $instance */
  4915. $instance->forgetPushed();
  4916. }
  4917. /**
  4918. * Set the queue resolver implementation.
  4919. *
  4920. * @param callable $resolver
  4921. * @return \Illuminate\Events\Dispatcher
  4922. * @static
  4923. */
  4924. public static function setQueueResolver($resolver)
  4925. {
  4926. /** @var \Illuminate\Events\Dispatcher $instance */
  4927. return $instance->setQueueResolver($resolver);
  4928. }
  4929. /**
  4930. * Register a custom macro.
  4931. *
  4932. * @param string $name
  4933. * @param object|callable $macro
  4934. * @return void
  4935. * @static
  4936. */
  4937. public static function macro($name, $macro)
  4938. {
  4939. \Illuminate\Events\Dispatcher::macro($name, $macro);
  4940. }
  4941. /**
  4942. * Mix another object into the class.
  4943. *
  4944. * @param object $mixin
  4945. * @param bool $replace
  4946. * @return void
  4947. * @throws \ReflectionException
  4948. * @static
  4949. */
  4950. public static function mixin($mixin, $replace = true)
  4951. {
  4952. \Illuminate\Events\Dispatcher::mixin($mixin, $replace);
  4953. }
  4954. /**
  4955. * Checks if macro is registered.
  4956. *
  4957. * @param string $name
  4958. * @return bool
  4959. * @static
  4960. */
  4961. public static function hasMacro($name)
  4962. {
  4963. return \Illuminate\Events\Dispatcher::hasMacro($name);
  4964. }
  4965. /**
  4966. * Assert if an event was dispatched based on a truth-test callback.
  4967. *
  4968. * @param string|\Closure $event
  4969. * @param callable|int|null $callback
  4970. * @return void
  4971. * @static
  4972. */
  4973. public static function assertDispatched($event, $callback = null)
  4974. {
  4975. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4976. $instance->assertDispatched($event, $callback);
  4977. }
  4978. /**
  4979. * Assert if an event was dispatched a number of times.
  4980. *
  4981. * @param string $event
  4982. * @param int $times
  4983. * @return void
  4984. * @static
  4985. */
  4986. public static function assertDispatchedTimes($event, $times = 1)
  4987. {
  4988. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4989. $instance->assertDispatchedTimes($event, $times);
  4990. }
  4991. /**
  4992. * Determine if an event was dispatched based on a truth-test callback.
  4993. *
  4994. * @param string|\Closure $event
  4995. * @param callable|null $callback
  4996. * @return void
  4997. * @static
  4998. */
  4999. public static function assertNotDispatched($event, $callback = null)
  5000. {
  5001. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5002. $instance->assertNotDispatched($event, $callback);
  5003. }
  5004. /**
  5005. * Get all of the events matching a truth-test callback.
  5006. *
  5007. * @param string $event
  5008. * @param callable|null $callback
  5009. * @return \Illuminate\Support\Collection
  5010. * @static
  5011. */
  5012. public static function dispatched($event, $callback = null)
  5013. {
  5014. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5015. return $instance->dispatched($event, $callback);
  5016. }
  5017. /**
  5018. * Determine if the given event has been dispatched.
  5019. *
  5020. * @param string $event
  5021. * @return bool
  5022. * @static
  5023. */
  5024. public static function hasDispatched($event)
  5025. {
  5026. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  5027. return $instance->hasDispatched($event);
  5028. }
  5029. }
  5030. /**
  5031. *
  5032. *
  5033. * @see \Illuminate\Filesystem\Filesystem
  5034. */
  5035. class File {
  5036. /**
  5037. * Determine if a file or directory exists.
  5038. *
  5039. * @param string $path
  5040. * @return bool
  5041. * @static
  5042. */
  5043. public static function exists($path)
  5044. {
  5045. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5046. return $instance->exists($path);
  5047. }
  5048. /**
  5049. * Determine if a file or directory is missing.
  5050. *
  5051. * @param string $path
  5052. * @return bool
  5053. * @static
  5054. */
  5055. public static function missing($path)
  5056. {
  5057. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5058. return $instance->missing($path);
  5059. }
  5060. /**
  5061. * Get the contents of a file.
  5062. *
  5063. * @param string $path
  5064. * @param bool $lock
  5065. * @return string
  5066. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5067. * @static
  5068. */
  5069. public static function get($path, $lock = false)
  5070. {
  5071. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5072. return $instance->get($path, $lock);
  5073. }
  5074. /**
  5075. * Get contents of a file with shared access.
  5076. *
  5077. * @param string $path
  5078. * @return string
  5079. * @static
  5080. */
  5081. public static function sharedGet($path)
  5082. {
  5083. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5084. return $instance->sharedGet($path);
  5085. }
  5086. /**
  5087. * Get the returned value of a file.
  5088. *
  5089. * @param string $path
  5090. * @return mixed
  5091. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  5092. * @static
  5093. */
  5094. public static function getRequire($path)
  5095. {
  5096. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5097. return $instance->getRequire($path);
  5098. }
  5099. /**
  5100. * Require the given file once.
  5101. *
  5102. * @param string $file
  5103. * @return mixed
  5104. * @static
  5105. */
  5106. public static function requireOnce($file)
  5107. {
  5108. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5109. return $instance->requireOnce($file);
  5110. }
  5111. /**
  5112. * Get the MD5 hash of the file at the given path.
  5113. *
  5114. * @param string $path
  5115. * @return string
  5116. * @static
  5117. */
  5118. public static function hash($path)
  5119. {
  5120. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5121. return $instance->hash($path);
  5122. }
  5123. /**
  5124. * Write the contents of a file.
  5125. *
  5126. * @param string $path
  5127. * @param string $contents
  5128. * @param bool $lock
  5129. * @return int|bool
  5130. * @static
  5131. */
  5132. public static function put($path, $contents, $lock = false)
  5133. {
  5134. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5135. return $instance->put($path, $contents, $lock);
  5136. }
  5137. /**
  5138. * Write the contents of a file, replacing it atomically if it already exists.
  5139. *
  5140. * @param string $path
  5141. * @param string $content
  5142. * @return void
  5143. * @static
  5144. */
  5145. public static function replace($path, $content)
  5146. {
  5147. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5148. $instance->replace($path, $content);
  5149. }
  5150. /**
  5151. * Prepend to a file.
  5152. *
  5153. * @param string $path
  5154. * @param string $data
  5155. * @return int
  5156. * @static
  5157. */
  5158. public static function prepend($path, $data)
  5159. {
  5160. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5161. return $instance->prepend($path, $data);
  5162. }
  5163. /**
  5164. * Append to a file.
  5165. *
  5166. * @param string $path
  5167. * @param string $data
  5168. * @return int
  5169. * @static
  5170. */
  5171. public static function append($path, $data)
  5172. {
  5173. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5174. return $instance->append($path, $data);
  5175. }
  5176. /**
  5177. * Get or set UNIX mode of a file or directory.
  5178. *
  5179. * @param string $path
  5180. * @param int|null $mode
  5181. * @return mixed
  5182. * @static
  5183. */
  5184. public static function chmod($path, $mode = null)
  5185. {
  5186. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5187. return $instance->chmod($path, $mode);
  5188. }
  5189. /**
  5190. * Delete the file at a given path.
  5191. *
  5192. * @param string|array $paths
  5193. * @return bool
  5194. * @static
  5195. */
  5196. public static function delete($paths)
  5197. {
  5198. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5199. return $instance->delete($paths);
  5200. }
  5201. /**
  5202. * Move a file to a new location.
  5203. *
  5204. * @param string $path
  5205. * @param string $target
  5206. * @return bool
  5207. * @static
  5208. */
  5209. public static function move($path, $target)
  5210. {
  5211. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5212. return $instance->move($path, $target);
  5213. }
  5214. /**
  5215. * Copy a file to a new location.
  5216. *
  5217. * @param string $path
  5218. * @param string $target
  5219. * @return bool
  5220. * @static
  5221. */
  5222. public static function copy($path, $target)
  5223. {
  5224. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5225. return $instance->copy($path, $target);
  5226. }
  5227. /**
  5228. * Create a symlink to the target file or directory. On Windows, a hard link is created if the target is a file.
  5229. *
  5230. * @param string $target
  5231. * @param string $link
  5232. * @return void
  5233. * @static
  5234. */
  5235. public static function link($target, $link)
  5236. {
  5237. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5238. $instance->link($target, $link);
  5239. }
  5240. /**
  5241. * Extract the file name from a file path.
  5242. *
  5243. * @param string $path
  5244. * @return string
  5245. * @static
  5246. */
  5247. public static function name($path)
  5248. {
  5249. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5250. return $instance->name($path);
  5251. }
  5252. /**
  5253. * Extract the trailing name component from a file path.
  5254. *
  5255. * @param string $path
  5256. * @return string
  5257. * @static
  5258. */
  5259. public static function basename($path)
  5260. {
  5261. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5262. return $instance->basename($path);
  5263. }
  5264. /**
  5265. * Extract the parent directory from a file path.
  5266. *
  5267. * @param string $path
  5268. * @return string
  5269. * @static
  5270. */
  5271. public static function dirname($path)
  5272. {
  5273. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5274. return $instance->dirname($path);
  5275. }
  5276. /**
  5277. * Extract the file extension from a file path.
  5278. *
  5279. * @param string $path
  5280. * @return string
  5281. * @static
  5282. */
  5283. public static function extension($path)
  5284. {
  5285. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5286. return $instance->extension($path);
  5287. }
  5288. /**
  5289. * Guess the file extension from the mime-type of a given file.
  5290. *
  5291. * @param string $path
  5292. * @return string|null
  5293. * @static
  5294. */
  5295. public static function guessExtension($path)
  5296. {
  5297. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5298. return $instance->guessExtension($path);
  5299. }
  5300. /**
  5301. * Get the file type of a given file.
  5302. *
  5303. * @param string $path
  5304. * @return string
  5305. * @static
  5306. */
  5307. public static function type($path)
  5308. {
  5309. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5310. return $instance->type($path);
  5311. }
  5312. /**
  5313. * Get the mime-type of a given file.
  5314. *
  5315. * @param string $path
  5316. * @return string|false
  5317. * @static
  5318. */
  5319. public static function mimeType($path)
  5320. {
  5321. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5322. return $instance->mimeType($path);
  5323. }
  5324. /**
  5325. * Get the file size of a given file.
  5326. *
  5327. * @param string $path
  5328. * @return int
  5329. * @static
  5330. */
  5331. public static function size($path)
  5332. {
  5333. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5334. return $instance->size($path);
  5335. }
  5336. /**
  5337. * Get the file's last modification time.
  5338. *
  5339. * @param string $path
  5340. * @return int
  5341. * @static
  5342. */
  5343. public static function lastModified($path)
  5344. {
  5345. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5346. return $instance->lastModified($path);
  5347. }
  5348. /**
  5349. * Determine if the given path is a directory.
  5350. *
  5351. * @param string $directory
  5352. * @return bool
  5353. * @static
  5354. */
  5355. public static function isDirectory($directory)
  5356. {
  5357. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5358. return $instance->isDirectory($directory);
  5359. }
  5360. /**
  5361. * Determine if the given path is readable.
  5362. *
  5363. * @param string $path
  5364. * @return bool
  5365. * @static
  5366. */
  5367. public static function isReadable($path)
  5368. {
  5369. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5370. return $instance->isReadable($path);
  5371. }
  5372. /**
  5373. * Determine if the given path is writable.
  5374. *
  5375. * @param string $path
  5376. * @return bool
  5377. * @static
  5378. */
  5379. public static function isWritable($path)
  5380. {
  5381. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5382. return $instance->isWritable($path);
  5383. }
  5384. /**
  5385. * Determine if the given path is a file.
  5386. *
  5387. * @param string $file
  5388. * @return bool
  5389. * @static
  5390. */
  5391. public static function isFile($file)
  5392. {
  5393. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5394. return $instance->isFile($file);
  5395. }
  5396. /**
  5397. * Find path names matching a given pattern.
  5398. *
  5399. * @param string $pattern
  5400. * @param int $flags
  5401. * @return array
  5402. * @static
  5403. */
  5404. public static function glob($pattern, $flags = 0)
  5405. {
  5406. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5407. return $instance->glob($pattern, $flags);
  5408. }
  5409. /**
  5410. * Get an array of all files in a directory.
  5411. *
  5412. * @param string $directory
  5413. * @param bool $hidden
  5414. * @return \Symfony\Component\Finder\SplFileInfo[]
  5415. * @static
  5416. */
  5417. public static function files($directory, $hidden = false)
  5418. {
  5419. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5420. return $instance->files($directory, $hidden);
  5421. }
  5422. /**
  5423. * Get all of the files from the given directory (recursive).
  5424. *
  5425. * @param string $directory
  5426. * @param bool $hidden
  5427. * @return \Symfony\Component\Finder\SplFileInfo[]
  5428. * @static
  5429. */
  5430. public static function allFiles($directory, $hidden = false)
  5431. {
  5432. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5433. return $instance->allFiles($directory, $hidden);
  5434. }
  5435. /**
  5436. * Get all of the directories within a given directory.
  5437. *
  5438. * @param string $directory
  5439. * @return array
  5440. * @static
  5441. */
  5442. public static function directories($directory)
  5443. {
  5444. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5445. return $instance->directories($directory);
  5446. }
  5447. /**
  5448. * Ensure a directory exists.
  5449. *
  5450. * @param string $path
  5451. * @param int $mode
  5452. * @param bool $recursive
  5453. * @return void
  5454. * @static
  5455. */
  5456. public static function ensureDirectoryExists($path, $mode = 493, $recursive = true)
  5457. {
  5458. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5459. $instance->ensureDirectoryExists($path, $mode, $recursive);
  5460. }
  5461. /**
  5462. * Create a directory.
  5463. *
  5464. * @param string $path
  5465. * @param int $mode
  5466. * @param bool $recursive
  5467. * @param bool $force
  5468. * @return bool
  5469. * @static
  5470. */
  5471. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  5472. {
  5473. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5474. return $instance->makeDirectory($path, $mode, $recursive, $force);
  5475. }
  5476. /**
  5477. * Move a directory.
  5478. *
  5479. * @param string $from
  5480. * @param string $to
  5481. * @param bool $overwrite
  5482. * @return bool
  5483. * @static
  5484. */
  5485. public static function moveDirectory($from, $to, $overwrite = false)
  5486. {
  5487. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5488. return $instance->moveDirectory($from, $to, $overwrite);
  5489. }
  5490. /**
  5491. * Copy a directory from one location to another.
  5492. *
  5493. * @param string $directory
  5494. * @param string $destination
  5495. * @param int|null $options
  5496. * @return bool
  5497. * @static
  5498. */
  5499. public static function copyDirectory($directory, $destination, $options = null)
  5500. {
  5501. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5502. return $instance->copyDirectory($directory, $destination, $options);
  5503. }
  5504. /**
  5505. * Recursively delete a directory.
  5506. *
  5507. * The directory itself may be optionally preserved.
  5508. *
  5509. * @param string $directory
  5510. * @param bool $preserve
  5511. * @return bool
  5512. * @static
  5513. */
  5514. public static function deleteDirectory($directory, $preserve = false)
  5515. {
  5516. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5517. return $instance->deleteDirectory($directory, $preserve);
  5518. }
  5519. /**
  5520. * Remove all of the directories within a given directory.
  5521. *
  5522. * @param string $directory
  5523. * @return bool
  5524. * @static
  5525. */
  5526. public static function deleteDirectories($directory)
  5527. {
  5528. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5529. return $instance->deleteDirectories($directory);
  5530. }
  5531. /**
  5532. * Empty the specified directory of all files and folders.
  5533. *
  5534. * @param string $directory
  5535. * @return bool
  5536. * @static
  5537. */
  5538. public static function cleanDirectory($directory)
  5539. {
  5540. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5541. return $instance->cleanDirectory($directory);
  5542. }
  5543. /**
  5544. * Register a custom macro.
  5545. *
  5546. * @param string $name
  5547. * @param object|callable $macro
  5548. * @return void
  5549. * @static
  5550. */
  5551. public static function macro($name, $macro)
  5552. {
  5553. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5554. }
  5555. /**
  5556. * Mix another object into the class.
  5557. *
  5558. * @param object $mixin
  5559. * @param bool $replace
  5560. * @return void
  5561. * @throws \ReflectionException
  5562. * @static
  5563. */
  5564. public static function mixin($mixin, $replace = true)
  5565. {
  5566. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  5567. }
  5568. /**
  5569. * Checks if macro is registered.
  5570. *
  5571. * @param string $name
  5572. * @return bool
  5573. * @static
  5574. */
  5575. public static function hasMacro($name)
  5576. {
  5577. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5578. }
  5579. }
  5580. /**
  5581. *
  5582. *
  5583. * @see \Illuminate\Contracts\Auth\Access\Gate
  5584. */
  5585. class Gate {
  5586. /**
  5587. * Determine if a given ability has been defined.
  5588. *
  5589. * @param string|array $ability
  5590. * @return bool
  5591. * @static
  5592. */
  5593. public static function has($ability)
  5594. {
  5595. /** @var \Illuminate\Auth\Access\Gate $instance */
  5596. return $instance->has($ability);
  5597. }
  5598. /**
  5599. * Define a new ability.
  5600. *
  5601. * @param string $ability
  5602. * @param callable|string $callback
  5603. * @return \Illuminate\Auth\Access\Gate
  5604. * @throws \InvalidArgumentException
  5605. * @static
  5606. */
  5607. public static function define($ability, $callback)
  5608. {
  5609. /** @var \Illuminate\Auth\Access\Gate $instance */
  5610. return $instance->define($ability, $callback);
  5611. }
  5612. /**
  5613. * Define abilities for a resource.
  5614. *
  5615. * @param string $name
  5616. * @param string $class
  5617. * @param array|null $abilities
  5618. * @return \Illuminate\Auth\Access\Gate
  5619. * @static
  5620. */
  5621. public static function resource($name, $class, $abilities = null)
  5622. {
  5623. /** @var \Illuminate\Auth\Access\Gate $instance */
  5624. return $instance->resource($name, $class, $abilities);
  5625. }
  5626. /**
  5627. * Define a policy class for a given class type.
  5628. *
  5629. * @param string $class
  5630. * @param string $policy
  5631. * @return \Illuminate\Auth\Access\Gate
  5632. * @static
  5633. */
  5634. public static function policy($class, $policy)
  5635. {
  5636. /** @var \Illuminate\Auth\Access\Gate $instance */
  5637. return $instance->policy($class, $policy);
  5638. }
  5639. /**
  5640. * Register a callback to run before all Gate checks.
  5641. *
  5642. * @param callable $callback
  5643. * @return \Illuminate\Auth\Access\Gate
  5644. * @static
  5645. */
  5646. public static function before($callback)
  5647. {
  5648. /** @var \Illuminate\Auth\Access\Gate $instance */
  5649. return $instance->before($callback);
  5650. }
  5651. /**
  5652. * Register a callback to run after all Gate checks.
  5653. *
  5654. * @param callable $callback
  5655. * @return \Illuminate\Auth\Access\Gate
  5656. * @static
  5657. */
  5658. public static function after($callback)
  5659. {
  5660. /** @var \Illuminate\Auth\Access\Gate $instance */
  5661. return $instance->after($callback);
  5662. }
  5663. /**
  5664. * Determine if the given ability should be granted for the current user.
  5665. *
  5666. * @param string $ability
  5667. * @param array|mixed $arguments
  5668. * @return bool
  5669. * @static
  5670. */
  5671. public static function allows($ability, $arguments = [])
  5672. {
  5673. /** @var \Illuminate\Auth\Access\Gate $instance */
  5674. return $instance->allows($ability, $arguments);
  5675. }
  5676. /**
  5677. * Determine if the given ability should be denied for the current user.
  5678. *
  5679. * @param string $ability
  5680. * @param array|mixed $arguments
  5681. * @return bool
  5682. * @static
  5683. */
  5684. public static function denies($ability, $arguments = [])
  5685. {
  5686. /** @var \Illuminate\Auth\Access\Gate $instance */
  5687. return $instance->denies($ability, $arguments);
  5688. }
  5689. /**
  5690. * Determine if all of the given abilities should be granted for the current user.
  5691. *
  5692. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5693. * @param array|mixed $arguments
  5694. * @return bool
  5695. * @static
  5696. */
  5697. public static function check($abilities, $arguments = [])
  5698. {
  5699. /** @var \Illuminate\Auth\Access\Gate $instance */
  5700. return $instance->check($abilities, $arguments);
  5701. }
  5702. /**
  5703. * Determine if any one of the given abilities should be granted for the current user.
  5704. *
  5705. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5706. * @param array|mixed $arguments
  5707. * @return bool
  5708. * @static
  5709. */
  5710. public static function any($abilities, $arguments = [])
  5711. {
  5712. /** @var \Illuminate\Auth\Access\Gate $instance */
  5713. return $instance->any($abilities, $arguments);
  5714. }
  5715. /**
  5716. * Determine if all of the given abilities should be denied for the current user.
  5717. *
  5718. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5719. * @param array|mixed $arguments
  5720. * @return bool
  5721. * @static
  5722. */
  5723. public static function none($abilities, $arguments = [])
  5724. {
  5725. /** @var \Illuminate\Auth\Access\Gate $instance */
  5726. return $instance->none($abilities, $arguments);
  5727. }
  5728. /**
  5729. * Determine if the given ability should be granted for the current user.
  5730. *
  5731. * @param string $ability
  5732. * @param array|mixed $arguments
  5733. * @return \Illuminate\Auth\Access\Response
  5734. * @throws \Illuminate\Auth\Access\AuthorizationException
  5735. * @static
  5736. */
  5737. public static function authorize($ability, $arguments = [])
  5738. {
  5739. /** @var \Illuminate\Auth\Access\Gate $instance */
  5740. return $instance->authorize($ability, $arguments);
  5741. }
  5742. /**
  5743. * Inspect the user for the given ability.
  5744. *
  5745. * @param string $ability
  5746. * @param array|mixed $arguments
  5747. * @return \Illuminate\Auth\Access\Response
  5748. * @static
  5749. */
  5750. public static function inspect($ability, $arguments = [])
  5751. {
  5752. /** @var \Illuminate\Auth\Access\Gate $instance */
  5753. return $instance->inspect($ability, $arguments);
  5754. }
  5755. /**
  5756. * Get the raw result from the authorization callback.
  5757. *
  5758. * @param string $ability
  5759. * @param array|mixed $arguments
  5760. * @return mixed
  5761. * @throws \Illuminate\Auth\Access\AuthorizationException
  5762. * @static
  5763. */
  5764. public static function raw($ability, $arguments = [])
  5765. {
  5766. /** @var \Illuminate\Auth\Access\Gate $instance */
  5767. return $instance->raw($ability, $arguments);
  5768. }
  5769. /**
  5770. * Get a policy instance for a given class.
  5771. *
  5772. * @param object|string $class
  5773. * @return mixed
  5774. * @static
  5775. */
  5776. public static function getPolicyFor($class)
  5777. {
  5778. /** @var \Illuminate\Auth\Access\Gate $instance */
  5779. return $instance->getPolicyFor($class);
  5780. }
  5781. /**
  5782. * Specify a callback to be used to guess policy names.
  5783. *
  5784. * @param callable $callback
  5785. * @return \Illuminate\Auth\Access\Gate
  5786. * @static
  5787. */
  5788. public static function guessPolicyNamesUsing($callback)
  5789. {
  5790. /** @var \Illuminate\Auth\Access\Gate $instance */
  5791. return $instance->guessPolicyNamesUsing($callback);
  5792. }
  5793. /**
  5794. * Build a policy class instance of the given type.
  5795. *
  5796. * @param object|string $class
  5797. * @return mixed
  5798. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  5799. * @static
  5800. */
  5801. public static function resolvePolicy($class)
  5802. {
  5803. /** @var \Illuminate\Auth\Access\Gate $instance */
  5804. return $instance->resolvePolicy($class);
  5805. }
  5806. /**
  5807. * Get a gate instance for the given user.
  5808. *
  5809. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5810. * @return static
  5811. * @static
  5812. */
  5813. public static function forUser($user)
  5814. {
  5815. /** @var \Illuminate\Auth\Access\Gate $instance */
  5816. return $instance->forUser($user);
  5817. }
  5818. /**
  5819. * Get all of the defined abilities.
  5820. *
  5821. * @return array
  5822. * @static
  5823. */
  5824. public static function abilities()
  5825. {
  5826. /** @var \Illuminate\Auth\Access\Gate $instance */
  5827. return $instance->abilities();
  5828. }
  5829. /**
  5830. * Get all of the defined policies.
  5831. *
  5832. * @return array
  5833. * @static
  5834. */
  5835. public static function policies()
  5836. {
  5837. /** @var \Illuminate\Auth\Access\Gate $instance */
  5838. return $instance->policies();
  5839. }
  5840. }
  5841. /**
  5842. *
  5843. *
  5844. * @see \Illuminate\Hashing\HashManager
  5845. */
  5846. class Hash {
  5847. /**
  5848. * Create an instance of the Bcrypt hash Driver.
  5849. *
  5850. * @return \Illuminate\Hashing\BcryptHasher
  5851. * @static
  5852. */
  5853. public static function createBcryptDriver()
  5854. {
  5855. /** @var \Illuminate\Hashing\HashManager $instance */
  5856. return $instance->createBcryptDriver();
  5857. }
  5858. /**
  5859. * Create an instance of the Argon2i hash Driver.
  5860. *
  5861. * @return \Illuminate\Hashing\ArgonHasher
  5862. * @static
  5863. */
  5864. public static function createArgonDriver()
  5865. {
  5866. /** @var \Illuminate\Hashing\HashManager $instance */
  5867. return $instance->createArgonDriver();
  5868. }
  5869. /**
  5870. * Create an instance of the Argon2id hash Driver.
  5871. *
  5872. * @return \Illuminate\Hashing\Argon2IdHasher
  5873. * @static
  5874. */
  5875. public static function createArgon2idDriver()
  5876. {
  5877. /** @var \Illuminate\Hashing\HashManager $instance */
  5878. return $instance->createArgon2idDriver();
  5879. }
  5880. /**
  5881. * Get information about the given hashed value.
  5882. *
  5883. * @param string $hashedValue
  5884. * @return array
  5885. * @static
  5886. */
  5887. public static function info($hashedValue)
  5888. {
  5889. /** @var \Illuminate\Hashing\HashManager $instance */
  5890. return $instance->info($hashedValue);
  5891. }
  5892. /**
  5893. * Hash the given value.
  5894. *
  5895. * @param string $value
  5896. * @param array $options
  5897. * @return string
  5898. * @static
  5899. */
  5900. public static function make($value, $options = [])
  5901. {
  5902. /** @var \Illuminate\Hashing\HashManager $instance */
  5903. return $instance->make($value, $options);
  5904. }
  5905. /**
  5906. * Check the given plain value against a hash.
  5907. *
  5908. * @param string $value
  5909. * @param string $hashedValue
  5910. * @param array $options
  5911. * @return bool
  5912. * @static
  5913. */
  5914. public static function check($value, $hashedValue, $options = [])
  5915. {
  5916. /** @var \Illuminate\Hashing\HashManager $instance */
  5917. return $instance->check($value, $hashedValue, $options);
  5918. }
  5919. /**
  5920. * Check if the given hash has been hashed using the given options.
  5921. *
  5922. * @param string $hashedValue
  5923. * @param array $options
  5924. * @return bool
  5925. * @static
  5926. */
  5927. public static function needsRehash($hashedValue, $options = [])
  5928. {
  5929. /** @var \Illuminate\Hashing\HashManager $instance */
  5930. return $instance->needsRehash($hashedValue, $options);
  5931. }
  5932. /**
  5933. * Get the default driver name.
  5934. *
  5935. * @return string
  5936. * @static
  5937. */
  5938. public static function getDefaultDriver()
  5939. {
  5940. /** @var \Illuminate\Hashing\HashManager $instance */
  5941. return $instance->getDefaultDriver();
  5942. }
  5943. /**
  5944. * Get a driver instance.
  5945. *
  5946. * @param string|null $driver
  5947. * @return mixed
  5948. * @throws \InvalidArgumentException
  5949. * @static
  5950. */
  5951. public static function driver($driver = null)
  5952. { //Method inherited from \Illuminate\Support\Manager
  5953. /** @var \Illuminate\Hashing\HashManager $instance */
  5954. return $instance->driver($driver);
  5955. }
  5956. /**
  5957. * Register a custom driver creator Closure.
  5958. *
  5959. * @param string $driver
  5960. * @param \Closure $callback
  5961. * @return \Illuminate\Hashing\HashManager
  5962. * @static
  5963. */
  5964. public static function extend($driver, $callback)
  5965. { //Method inherited from \Illuminate\Support\Manager
  5966. /** @var \Illuminate\Hashing\HashManager $instance */
  5967. return $instance->extend($driver, $callback);
  5968. }
  5969. /**
  5970. * Get all of the created "drivers".
  5971. *
  5972. * @return array
  5973. * @static
  5974. */
  5975. public static function getDrivers()
  5976. { //Method inherited from \Illuminate\Support\Manager
  5977. /** @var \Illuminate\Hashing\HashManager $instance */
  5978. return $instance->getDrivers();
  5979. }
  5980. }
  5981. /**
  5982. *
  5983. *
  5984. * @method static \Illuminate\Http\Client\PendingRequest accept(string $contentType)
  5985. * @method static \Illuminate\Http\Client\PendingRequest acceptJson()
  5986. * @method static \Illuminate\Http\Client\PendingRequest asForm()
  5987. * @method static \Illuminate\Http\Client\PendingRequest asJson()
  5988. * @method static \Illuminate\Http\Client\PendingRequest asMultipart()
  5989. * @method static \Illuminate\Http\Client\PendingRequest attach(string $name, string $contents, string|null $filename = null, array $headers = [])
  5990. * @method static \Illuminate\Http\Client\PendingRequest baseUrl(string $url)
  5991. * @method static \Illuminate\Http\Client\PendingRequest beforeSending(callable $callback)
  5992. * @method static \Illuminate\Http\Client\PendingRequest bodyFormat(string $format)
  5993. * @method static \Illuminate\Http\Client\PendingRequest contentType(string $contentType)
  5994. * @method static \Illuminate\Http\Client\PendingRequest retry(int $times, int $sleep = 0)
  5995. * @method static \Illuminate\Http\Client\PendingRequest stub(callable $callback)
  5996. * @method static \Illuminate\Http\Client\PendingRequest timeout(int $seconds)
  5997. * @method static \Illuminate\Http\Client\PendingRequest withBasicAuth(string $username, string $password)
  5998. * @method static \Illuminate\Http\Client\PendingRequest withBody(resource|string $content, string $contentType)
  5999. * @method static \Illuminate\Http\Client\PendingRequest withCookies(array $cookies, string $domain)
  6000. * @method static \Illuminate\Http\Client\PendingRequest withDigestAuth(string $username, string $password)
  6001. * @method static \Illuminate\Http\Client\PendingRequest withHeaders(array $headers)
  6002. * @method static \Illuminate\Http\Client\PendingRequest withOptions(array $options)
  6003. * @method static \Illuminate\Http\Client\PendingRequest withToken(string $token, string $type = 'Bearer')
  6004. * @method static \Illuminate\Http\Client\PendingRequest withoutRedirecting()
  6005. * @method static \Illuminate\Http\Client\PendingRequest withoutVerifying()
  6006. * @method static \Illuminate\Http\Client\Response delete(string $url, array $data = [])
  6007. * @method static \Illuminate\Http\Client\Response get(string $url, array $query = [])
  6008. * @method static \Illuminate\Http\Client\Response head(string $url, array $query = [])
  6009. * @method static \Illuminate\Http\Client\Response patch(string $url, array $data = [])
  6010. * @method static \Illuminate\Http\Client\Response post(string $url, array $data = [])
  6011. * @method static \Illuminate\Http\Client\Response put(string $url, array $data = [])
  6012. * @method static \Illuminate\Http\Client\Response send(string $method, string $url, array $options = [])
  6013. * @see \Illuminate\Http\Client\Factory
  6014. */
  6015. class Http {
  6016. /**
  6017. * Create a new response instance for use during stubbing.
  6018. *
  6019. * @param array|string $body
  6020. * @param int $status
  6021. * @param array $headers
  6022. * @return \GuzzleHttp\Promise\PromiseInterface
  6023. * @static
  6024. */
  6025. public static function response($body = null, $status = 200, $headers = [])
  6026. {
  6027. return \Illuminate\Http\Client\Factory::response($body, $status, $headers);
  6028. }
  6029. /**
  6030. * Get an invokable object that returns a sequence of responses in order for use during stubbing.
  6031. *
  6032. * @param array $responses
  6033. * @return \Illuminate\Http\Client\ResponseSequence
  6034. * @static
  6035. */
  6036. public static function sequence($responses = [])
  6037. {
  6038. /** @var \Illuminate\Http\Client\Factory $instance */
  6039. return $instance->sequence($responses);
  6040. }
  6041. /**
  6042. * Register a stub callable that will intercept requests and be able to return stub responses.
  6043. *
  6044. * @param callable|array $callback
  6045. * @return \Illuminate\Http\Client\Factory
  6046. * @static
  6047. */
  6048. public static function fake($callback = null)
  6049. {
  6050. /** @var \Illuminate\Http\Client\Factory $instance */
  6051. return $instance->fake($callback);
  6052. }
  6053. /**
  6054. * Register a response sequence for the given URL pattern.
  6055. *
  6056. * @param string $url
  6057. * @return \Illuminate\Http\Client\ResponseSequence
  6058. * @static
  6059. */
  6060. public static function fakeSequence($url = '*')
  6061. {
  6062. /** @var \Illuminate\Http\Client\Factory $instance */
  6063. return $instance->fakeSequence($url);
  6064. }
  6065. /**
  6066. * Stub the given URL using the given callback.
  6067. *
  6068. * @param string $url
  6069. * @param \Illuminate\Http\Client\Response|\GuzzleHttp\Promise\PromiseInterface|callable $callback
  6070. * @return \Illuminate\Http\Client\Factory
  6071. * @static
  6072. */
  6073. public static function stubUrl($url, $callback)
  6074. {
  6075. /** @var \Illuminate\Http\Client\Factory $instance */
  6076. return $instance->stubUrl($url, $callback);
  6077. }
  6078. /**
  6079. * Record a request response pair.
  6080. *
  6081. * @param \Illuminate\Http\Client\Request $request
  6082. * @param \Illuminate\Http\Client\Response $response
  6083. * @return void
  6084. * @static
  6085. */
  6086. public static function recordRequestResponsePair($request, $response)
  6087. {
  6088. /** @var \Illuminate\Http\Client\Factory $instance */
  6089. $instance->recordRequestResponsePair($request, $response);
  6090. }
  6091. /**
  6092. * Assert that a request / response pair was recorded matching a given truth test.
  6093. *
  6094. * @param callable $callback
  6095. * @return void
  6096. * @static
  6097. */
  6098. public static function assertSent($callback)
  6099. {
  6100. /** @var \Illuminate\Http\Client\Factory $instance */
  6101. $instance->assertSent($callback);
  6102. }
  6103. /**
  6104. * Assert that a request / response pair was not recorded matching a given truth test.
  6105. *
  6106. * @param callable $callback
  6107. * @return void
  6108. * @static
  6109. */
  6110. public static function assertNotSent($callback)
  6111. {
  6112. /** @var \Illuminate\Http\Client\Factory $instance */
  6113. $instance->assertNotSent($callback);
  6114. }
  6115. /**
  6116. * Assert that no request / response pair was recorded.
  6117. *
  6118. * @return void
  6119. * @static
  6120. */
  6121. public static function assertNothingSent()
  6122. {
  6123. /** @var \Illuminate\Http\Client\Factory $instance */
  6124. $instance->assertNothingSent();
  6125. }
  6126. /**
  6127. * Assert how many requests have been recorded.
  6128. *
  6129. * @param int $count
  6130. * @return void
  6131. * @static
  6132. */
  6133. public static function assertSentCount($count)
  6134. {
  6135. /** @var \Illuminate\Http\Client\Factory $instance */
  6136. $instance->assertSentCount($count);
  6137. }
  6138. /**
  6139. * Assert that every created response sequence is empty.
  6140. *
  6141. * @return void
  6142. * @static
  6143. */
  6144. public static function assertSequencesAreEmpty()
  6145. {
  6146. /** @var \Illuminate\Http\Client\Factory $instance */
  6147. $instance->assertSequencesAreEmpty();
  6148. }
  6149. /**
  6150. * Get a collection of the request / response pairs matching the given truth test.
  6151. *
  6152. * @param callable $callback
  6153. * @return \Illuminate\Support\Collection
  6154. * @static
  6155. */
  6156. public static function recorded($callback)
  6157. {
  6158. /** @var \Illuminate\Http\Client\Factory $instance */
  6159. return $instance->recorded($callback);
  6160. }
  6161. /**
  6162. * Register a custom macro.
  6163. *
  6164. * @param string $name
  6165. * @param object|callable $macro
  6166. * @return void
  6167. * @static
  6168. */
  6169. public static function macro($name, $macro)
  6170. {
  6171. \Illuminate\Http\Client\Factory::macro($name, $macro);
  6172. }
  6173. /**
  6174. * Mix another object into the class.
  6175. *
  6176. * @param object $mixin
  6177. * @param bool $replace
  6178. * @return void
  6179. * @throws \ReflectionException
  6180. * @static
  6181. */
  6182. public static function mixin($mixin, $replace = true)
  6183. {
  6184. \Illuminate\Http\Client\Factory::mixin($mixin, $replace);
  6185. }
  6186. /**
  6187. * Checks if macro is registered.
  6188. *
  6189. * @param string $name
  6190. * @return bool
  6191. * @static
  6192. */
  6193. public static function hasMacro($name)
  6194. {
  6195. return \Illuminate\Http\Client\Factory::hasMacro($name);
  6196. }
  6197. /**
  6198. * Dynamically handle calls to the class.
  6199. *
  6200. * @param string $method
  6201. * @param array $parameters
  6202. * @return mixed
  6203. * @throws \BadMethodCallException
  6204. * @static
  6205. */
  6206. public static function macroCall($method, $parameters)
  6207. {
  6208. /** @var \Illuminate\Http\Client\Factory $instance */
  6209. return $instance->macroCall($method, $parameters);
  6210. }
  6211. }
  6212. /**
  6213. *
  6214. *
  6215. * @see \Illuminate\Translation\Translator
  6216. */
  6217. class Lang {
  6218. /**
  6219. * Determine if a translation exists for a given locale.
  6220. *
  6221. * @param string $key
  6222. * @param string|null $locale
  6223. * @return bool
  6224. * @static
  6225. */
  6226. public static function hasForLocale($key, $locale = null)
  6227. {
  6228. /** @var \Illuminate\Translation\Translator $instance */
  6229. return $instance->hasForLocale($key, $locale);
  6230. }
  6231. /**
  6232. * Determine if a translation exists.
  6233. *
  6234. * @param string $key
  6235. * @param string|null $locale
  6236. * @param bool $fallback
  6237. * @return bool
  6238. * @static
  6239. */
  6240. public static function has($key, $locale = null, $fallback = true)
  6241. {
  6242. /** @var \Illuminate\Translation\Translator $instance */
  6243. return $instance->has($key, $locale, $fallback);
  6244. }
  6245. /**
  6246. * Get the translation for the given key.
  6247. *
  6248. * @param string $key
  6249. * @param array $replace
  6250. * @param string|null $locale
  6251. * @param bool $fallback
  6252. * @return string|array
  6253. * @static
  6254. */
  6255. public static function get($key, $replace = [], $locale = null, $fallback = true)
  6256. {
  6257. /** @var \Illuminate\Translation\Translator $instance */
  6258. return $instance->get($key, $replace, $locale, $fallback);
  6259. }
  6260. /**
  6261. * Get a translation according to an integer value.
  6262. *
  6263. * @param string $key
  6264. * @param \Countable|int|array $number
  6265. * @param array $replace
  6266. * @param string|null $locale
  6267. * @return string
  6268. * @static
  6269. */
  6270. public static function choice($key, $number, $replace = [], $locale = null)
  6271. {
  6272. /** @var \Illuminate\Translation\Translator $instance */
  6273. return $instance->choice($key, $number, $replace, $locale);
  6274. }
  6275. /**
  6276. * Add translation lines to the given locale.
  6277. *
  6278. * @param array $lines
  6279. * @param string $locale
  6280. * @param string $namespace
  6281. * @return void
  6282. * @static
  6283. */
  6284. public static function addLines($lines, $locale, $namespace = '*')
  6285. {
  6286. /** @var \Illuminate\Translation\Translator $instance */
  6287. $instance->addLines($lines, $locale, $namespace);
  6288. }
  6289. /**
  6290. * Load the specified language group.
  6291. *
  6292. * @param string $namespace
  6293. * @param string $group
  6294. * @param string $locale
  6295. * @return void
  6296. * @static
  6297. */
  6298. public static function load($namespace, $group, $locale)
  6299. {
  6300. /** @var \Illuminate\Translation\Translator $instance */
  6301. $instance->load($namespace, $group, $locale);
  6302. }
  6303. /**
  6304. * Add a new namespace to the loader.
  6305. *
  6306. * @param string $namespace
  6307. * @param string $hint
  6308. * @return void
  6309. * @static
  6310. */
  6311. public static function addNamespace($namespace, $hint)
  6312. {
  6313. /** @var \Illuminate\Translation\Translator $instance */
  6314. $instance->addNamespace($namespace, $hint);
  6315. }
  6316. /**
  6317. * Add a new JSON path to the loader.
  6318. *
  6319. * @param string $path
  6320. * @return void
  6321. * @static
  6322. */
  6323. public static function addJsonPath($path)
  6324. {
  6325. /** @var \Illuminate\Translation\Translator $instance */
  6326. $instance->addJsonPath($path);
  6327. }
  6328. /**
  6329. * Parse a key into namespace, group, and item.
  6330. *
  6331. * @param string $key
  6332. * @return array
  6333. * @static
  6334. */
  6335. public static function parseKey($key)
  6336. {
  6337. /** @var \Illuminate\Translation\Translator $instance */
  6338. return $instance->parseKey($key);
  6339. }
  6340. /**
  6341. * Get the message selector instance.
  6342. *
  6343. * @return \Illuminate\Translation\MessageSelector
  6344. * @static
  6345. */
  6346. public static function getSelector()
  6347. {
  6348. /** @var \Illuminate\Translation\Translator $instance */
  6349. return $instance->getSelector();
  6350. }
  6351. /**
  6352. * Set the message selector instance.
  6353. *
  6354. * @param \Illuminate\Translation\MessageSelector $selector
  6355. * @return void
  6356. * @static
  6357. */
  6358. public static function setSelector($selector)
  6359. {
  6360. /** @var \Illuminate\Translation\Translator $instance */
  6361. $instance->setSelector($selector);
  6362. }
  6363. /**
  6364. * Get the language line loader implementation.
  6365. *
  6366. * @return \Illuminate\Contracts\Translation\Loader
  6367. * @static
  6368. */
  6369. public static function getLoader()
  6370. {
  6371. /** @var \Illuminate\Translation\Translator $instance */
  6372. return $instance->getLoader();
  6373. }
  6374. /**
  6375. * Get the default locale being used.
  6376. *
  6377. * @return string
  6378. * @static
  6379. */
  6380. public static function locale()
  6381. {
  6382. /** @var \Illuminate\Translation\Translator $instance */
  6383. return $instance->locale();
  6384. }
  6385. /**
  6386. * Get the default locale being used.
  6387. *
  6388. * @return string
  6389. * @static
  6390. */
  6391. public static function getLocale()
  6392. {
  6393. /** @var \Illuminate\Translation\Translator $instance */
  6394. return $instance->getLocale();
  6395. }
  6396. /**
  6397. * Set the default locale.
  6398. *
  6399. * @param string $locale
  6400. * @return void
  6401. * @static
  6402. */
  6403. public static function setLocale($locale)
  6404. {
  6405. /** @var \Illuminate\Translation\Translator $instance */
  6406. $instance->setLocale($locale);
  6407. }
  6408. /**
  6409. * Get the fallback locale being used.
  6410. *
  6411. * @return string
  6412. * @static
  6413. */
  6414. public static function getFallback()
  6415. {
  6416. /** @var \Illuminate\Translation\Translator $instance */
  6417. return $instance->getFallback();
  6418. }
  6419. /**
  6420. * Set the fallback locale being used.
  6421. *
  6422. * @param string $fallback
  6423. * @return void
  6424. * @static
  6425. */
  6426. public static function setFallback($fallback)
  6427. {
  6428. /** @var \Illuminate\Translation\Translator $instance */
  6429. $instance->setFallback($fallback);
  6430. }
  6431. /**
  6432. * Set the loaded translation groups.
  6433. *
  6434. * @param array $loaded
  6435. * @return void
  6436. * @static
  6437. */
  6438. public static function setLoaded($loaded)
  6439. {
  6440. /** @var \Illuminate\Translation\Translator $instance */
  6441. $instance->setLoaded($loaded);
  6442. }
  6443. /**
  6444. * Set the parsed value of a key.
  6445. *
  6446. * @param string $key
  6447. * @param array $parsed
  6448. * @return void
  6449. * @static
  6450. */
  6451. public static function setParsedKey($key, $parsed)
  6452. { //Method inherited from \Illuminate\Support\NamespacedItemResolver
  6453. /** @var \Illuminate\Translation\Translator $instance */
  6454. $instance->setParsedKey($key, $parsed);
  6455. }
  6456. /**
  6457. * Register a custom macro.
  6458. *
  6459. * @param string $name
  6460. * @param object|callable $macro
  6461. * @return void
  6462. * @static
  6463. */
  6464. public static function macro($name, $macro)
  6465. {
  6466. \Illuminate\Translation\Translator::macro($name, $macro);
  6467. }
  6468. /**
  6469. * Mix another object into the class.
  6470. *
  6471. * @param object $mixin
  6472. * @param bool $replace
  6473. * @return void
  6474. * @throws \ReflectionException
  6475. * @static
  6476. */
  6477. public static function mixin($mixin, $replace = true)
  6478. {
  6479. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  6480. }
  6481. /**
  6482. * Checks if macro is registered.
  6483. *
  6484. * @param string $name
  6485. * @return bool
  6486. * @static
  6487. */
  6488. public static function hasMacro($name)
  6489. {
  6490. return \Illuminate\Translation\Translator::hasMacro($name);
  6491. }
  6492. }
  6493. /**
  6494. *
  6495. *
  6496. * @see \Illuminate\Log\Logger
  6497. */
  6498. class Log {
  6499. /**
  6500. * Create a new, on-demand aggregate logger instance.
  6501. *
  6502. * @param array $channels
  6503. * @param string|null $channel
  6504. * @return \Psr\Log\LoggerInterface
  6505. * @static
  6506. */
  6507. public static function stack($channels, $channel = null)
  6508. {
  6509. /** @var \Illuminate\Log\LogManager $instance */
  6510. return $instance->stack($channels, $channel);
  6511. }
  6512. /**
  6513. * Get a log channel instance.
  6514. *
  6515. * @param string|null $channel
  6516. * @return \Psr\Log\LoggerInterface
  6517. * @static
  6518. */
  6519. public static function channel($channel = null)
  6520. {
  6521. /** @var \Illuminate\Log\LogManager $instance */
  6522. return $instance->channel($channel);
  6523. }
  6524. /**
  6525. * Get a log driver instance.
  6526. *
  6527. * @param string|null $driver
  6528. * @return \Psr\Log\LoggerInterface
  6529. * @static
  6530. */
  6531. public static function driver($driver = null)
  6532. {
  6533. /** @var \Illuminate\Log\LogManager $instance */
  6534. return $instance->driver($driver);
  6535. }
  6536. /**
  6537. *
  6538. *
  6539. * @return array
  6540. * @static
  6541. */
  6542. public static function getChannels()
  6543. {
  6544. /** @var \Illuminate\Log\LogManager $instance */
  6545. return $instance->getChannels();
  6546. }
  6547. /**
  6548. * Get the default log driver name.
  6549. *
  6550. * @return string
  6551. * @static
  6552. */
  6553. public static function getDefaultDriver()
  6554. {
  6555. /** @var \Illuminate\Log\LogManager $instance */
  6556. return $instance->getDefaultDriver();
  6557. }
  6558. /**
  6559. * Set the default log driver name.
  6560. *
  6561. * @param string $name
  6562. * @return void
  6563. * @static
  6564. */
  6565. public static function setDefaultDriver($name)
  6566. {
  6567. /** @var \Illuminate\Log\LogManager $instance */
  6568. $instance->setDefaultDriver($name);
  6569. }
  6570. /**
  6571. * Register a custom driver creator Closure.
  6572. *
  6573. * @param string $driver
  6574. * @param \Closure $callback
  6575. * @return \Illuminate\Log\LogManager
  6576. * @static
  6577. */
  6578. public static function extend($driver, $callback)
  6579. {
  6580. /** @var \Illuminate\Log\LogManager $instance */
  6581. return $instance->extend($driver, $callback);
  6582. }
  6583. /**
  6584. * Unset the given channel instance.
  6585. *
  6586. * @param string|null $driver
  6587. * @return \Illuminate\Log\LogManager
  6588. * @static
  6589. */
  6590. public static function forgetChannel($driver = null)
  6591. {
  6592. /** @var \Illuminate\Log\LogManager $instance */
  6593. return $instance->forgetChannel($driver);
  6594. }
  6595. /**
  6596. * System is unusable.
  6597. *
  6598. * @param string $message
  6599. * @param array $context
  6600. * @return void
  6601. * @static
  6602. */
  6603. public static function emergency($message, $context = [])
  6604. {
  6605. /** @var \Illuminate\Log\LogManager $instance */
  6606. $instance->emergency($message, $context);
  6607. }
  6608. /**
  6609. * Action must be taken immediately.
  6610. *
  6611. * Example: Entire website down, database unavailable, etc. This should
  6612. * trigger the SMS alerts and wake you up.
  6613. *
  6614. * @param string $message
  6615. * @param array $context
  6616. * @return void
  6617. * @static
  6618. */
  6619. public static function alert($message, $context = [])
  6620. {
  6621. /** @var \Illuminate\Log\LogManager $instance */
  6622. $instance->alert($message, $context);
  6623. }
  6624. /**
  6625. * Critical conditions.
  6626. *
  6627. * Example: Application component unavailable, unexpected exception.
  6628. *
  6629. * @param string $message
  6630. * @param array $context
  6631. * @return void
  6632. * @static
  6633. */
  6634. public static function critical($message, $context = [])
  6635. {
  6636. /** @var \Illuminate\Log\LogManager $instance */
  6637. $instance->critical($message, $context);
  6638. }
  6639. /**
  6640. * Runtime errors that do not require immediate action but should typically
  6641. * be logged and monitored.
  6642. *
  6643. * @param string $message
  6644. * @param array $context
  6645. * @return void
  6646. * @static
  6647. */
  6648. public static function error($message, $context = [])
  6649. {
  6650. /** @var \Illuminate\Log\LogManager $instance */
  6651. $instance->error($message, $context);
  6652. }
  6653. /**
  6654. * Exceptional occurrences that are not errors.
  6655. *
  6656. * Example: Use of deprecated APIs, poor use of an API, undesirable things
  6657. * that are not necessarily wrong.
  6658. *
  6659. * @param string $message
  6660. * @param array $context
  6661. * @return void
  6662. * @static
  6663. */
  6664. public static function warning($message, $context = [])
  6665. {
  6666. /** @var \Illuminate\Log\LogManager $instance */
  6667. $instance->warning($message, $context);
  6668. }
  6669. /**
  6670. * Normal but significant events.
  6671. *
  6672. * @param string $message
  6673. * @param array $context
  6674. * @return void
  6675. * @static
  6676. */
  6677. public static function notice($message, $context = [])
  6678. {
  6679. /** @var \Illuminate\Log\LogManager $instance */
  6680. $instance->notice($message, $context);
  6681. }
  6682. /**
  6683. * Interesting events.
  6684. *
  6685. * Example: User logs in, SQL logs.
  6686. *
  6687. * @param string $message
  6688. * @param array $context
  6689. * @return void
  6690. * @static
  6691. */
  6692. public static function info($message, $context = [])
  6693. {
  6694. /** @var \Illuminate\Log\LogManager $instance */
  6695. $instance->info($message, $context);
  6696. }
  6697. /**
  6698. * Detailed debug information.
  6699. *
  6700. * @param string $message
  6701. * @param array $context
  6702. * @return void
  6703. * @static
  6704. */
  6705. public static function debug($message, $context = [])
  6706. {
  6707. /** @var \Illuminate\Log\LogManager $instance */
  6708. $instance->debug($message, $context);
  6709. }
  6710. /**
  6711. * Logs with an arbitrary level.
  6712. *
  6713. * @param mixed $level
  6714. * @param string $message
  6715. * @param array $context
  6716. * @return void
  6717. * @static
  6718. */
  6719. public static function log($level, $message, $context = [])
  6720. {
  6721. /** @var \Illuminate\Log\LogManager $instance */
  6722. $instance->log($level, $message, $context);
  6723. }
  6724. }
  6725. /**
  6726. *
  6727. *
  6728. * @see \Illuminate\Mail\Mailer
  6729. * @see \Illuminate\Support\Testing\Fakes\MailFake
  6730. */
  6731. class Mail {
  6732. /**
  6733. * Get a mailer instance by name.
  6734. *
  6735. * @param string|null $name
  6736. * @return \Illuminate\Mail\Mailer
  6737. * @static
  6738. */
  6739. public static function mailer($name = null)
  6740. {
  6741. /** @var \Illuminate\Mail\MailManager $instance */
  6742. return $instance->mailer($name);
  6743. }
  6744. /**
  6745. * Get a mailer driver instance.
  6746. *
  6747. * @param string|null $driver
  6748. * @return \Illuminate\Mail\Mailer
  6749. * @static
  6750. */
  6751. public static function driver($driver = null)
  6752. {
  6753. /** @var \Illuminate\Mail\MailManager $instance */
  6754. return $instance->driver($driver);
  6755. }
  6756. /**
  6757. * Create a new transport instance.
  6758. *
  6759. * @param array $config
  6760. * @return \Swift_Transport
  6761. * @static
  6762. */
  6763. public static function createTransport($config)
  6764. {
  6765. /** @var \Illuminate\Mail\MailManager $instance */
  6766. return $instance->createTransport($config);
  6767. }
  6768. /**
  6769. * Get the default mail driver name.
  6770. *
  6771. * @return string
  6772. * @static
  6773. */
  6774. public static function getDefaultDriver()
  6775. {
  6776. /** @var \Illuminate\Mail\MailManager $instance */
  6777. return $instance->getDefaultDriver();
  6778. }
  6779. /**
  6780. * Set the default mail driver name.
  6781. *
  6782. * @param string $name
  6783. * @return void
  6784. * @static
  6785. */
  6786. public static function setDefaultDriver($name)
  6787. {
  6788. /** @var \Illuminate\Mail\MailManager $instance */
  6789. $instance->setDefaultDriver($name);
  6790. }
  6791. /**
  6792. * Register a custom transport creator Closure.
  6793. *
  6794. * @param string $driver
  6795. * @param \Closure $callback
  6796. * @return \Illuminate\Mail\MailManager
  6797. * @static
  6798. */
  6799. public static function extend($driver, $callback)
  6800. {
  6801. /** @var \Illuminate\Mail\MailManager $instance */
  6802. return $instance->extend($driver, $callback);
  6803. }
  6804. /**
  6805. * Assert if a mailable was sent based on a truth-test callback.
  6806. *
  6807. * @param string|\Closure $mailable
  6808. * @param callable|int|null $callback
  6809. * @return void
  6810. * @static
  6811. */
  6812. public static function assertSent($mailable, $callback = null)
  6813. {
  6814. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6815. $instance->assertSent($mailable, $callback);
  6816. }
  6817. /**
  6818. * Determine if a mailable was not sent based on a truth-test callback.
  6819. *
  6820. * @param string $mailable
  6821. * @param callable|null $callback
  6822. * @return void
  6823. * @static
  6824. */
  6825. public static function assertNotSent($mailable, $callback = null)
  6826. {
  6827. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6828. $instance->assertNotSent($mailable, $callback);
  6829. }
  6830. /**
  6831. * Assert that no mailables were sent.
  6832. *
  6833. * @return void
  6834. * @static
  6835. */
  6836. public static function assertNothingSent()
  6837. {
  6838. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6839. $instance->assertNothingSent();
  6840. }
  6841. /**
  6842. * Assert if a mailable was queued based on a truth-test callback.
  6843. *
  6844. * @param string|\Closure $mailable
  6845. * @param callable|int|null $callback
  6846. * @return void
  6847. * @static
  6848. */
  6849. public static function assertQueued($mailable, $callback = null)
  6850. {
  6851. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6852. $instance->assertQueued($mailable, $callback);
  6853. }
  6854. /**
  6855. * Determine if a mailable was not queued based on a truth-test callback.
  6856. *
  6857. * @param string $mailable
  6858. * @param callable|null $callback
  6859. * @return void
  6860. * @static
  6861. */
  6862. public static function assertNotQueued($mailable, $callback = null)
  6863. {
  6864. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6865. $instance->assertNotQueued($mailable, $callback);
  6866. }
  6867. /**
  6868. * Assert that no mailables were queued.
  6869. *
  6870. * @return void
  6871. * @static
  6872. */
  6873. public static function assertNothingQueued()
  6874. {
  6875. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6876. $instance->assertNothingQueued();
  6877. }
  6878. /**
  6879. * Get all of the mailables matching a truth-test callback.
  6880. *
  6881. * @param string $mailable
  6882. * @param callable|null $callback
  6883. * @return \Illuminate\Support\Collection
  6884. * @static
  6885. */
  6886. public static function sent($mailable, $callback = null)
  6887. {
  6888. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6889. return $instance->sent($mailable, $callback);
  6890. }
  6891. /**
  6892. * Determine if the given mailable has been sent.
  6893. *
  6894. * @param string $mailable
  6895. * @return bool
  6896. * @static
  6897. */
  6898. public static function hasSent($mailable)
  6899. {
  6900. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6901. return $instance->hasSent($mailable);
  6902. }
  6903. /**
  6904. * Get all of the queued mailables matching a truth-test callback.
  6905. *
  6906. * @param string $mailable
  6907. * @param callable|null $callback
  6908. * @return \Illuminate\Support\Collection
  6909. * @static
  6910. */
  6911. public static function queued($mailable, $callback = null)
  6912. {
  6913. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6914. return $instance->queued($mailable, $callback);
  6915. }
  6916. /**
  6917. * Determine if the given mailable has been queued.
  6918. *
  6919. * @param string $mailable
  6920. * @return bool
  6921. * @static
  6922. */
  6923. public static function hasQueued($mailable)
  6924. {
  6925. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6926. return $instance->hasQueued($mailable);
  6927. }
  6928. /**
  6929. * Begin the process of mailing a mailable class instance.
  6930. *
  6931. * @param mixed $users
  6932. * @return \Illuminate\Mail\PendingMail
  6933. * @static
  6934. */
  6935. public static function to($users)
  6936. {
  6937. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6938. return $instance->to($users);
  6939. }
  6940. /**
  6941. * Begin the process of mailing a mailable class instance.
  6942. *
  6943. * @param mixed $users
  6944. * @return \Illuminate\Mail\PendingMail
  6945. * @static
  6946. */
  6947. public static function bcc($users)
  6948. {
  6949. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6950. return $instance->bcc($users);
  6951. }
  6952. /**
  6953. * Send a new message with only a raw text part.
  6954. *
  6955. * @param string $text
  6956. * @param \Closure|string $callback
  6957. * @return void
  6958. * @static
  6959. */
  6960. public static function raw($text, $callback)
  6961. {
  6962. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6963. $instance->raw($text, $callback);
  6964. }
  6965. /**
  6966. * Send a new message using a view.
  6967. *
  6968. * @param string|array $view
  6969. * @param array $data
  6970. * @param \Closure|string|null $callback
  6971. * @return void
  6972. * @static
  6973. */
  6974. public static function send($view, $data = [], $callback = null)
  6975. {
  6976. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6977. $instance->send($view, $data, $callback);
  6978. }
  6979. /**
  6980. * Queue a new e-mail message for sending.
  6981. *
  6982. * @param string|array $view
  6983. * @param string|null $queue
  6984. * @return mixed
  6985. * @static
  6986. */
  6987. public static function queue($view, $queue = null)
  6988. {
  6989. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6990. return $instance->queue($view, $queue);
  6991. }
  6992. /**
  6993. * Queue a new e-mail message for sending after (n) seconds.
  6994. *
  6995. * @param \DateTimeInterface|\DateInterval|int $delay
  6996. * @param \Illuminate\Contracts\Mail\Mailable|string|array $view
  6997. * @param string|null $queue
  6998. * @return mixed
  6999. * @static
  7000. */
  7001. public static function later($delay, $view, $queue = null)
  7002. {
  7003. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7004. return $instance->later($delay, $view, $queue);
  7005. }
  7006. /**
  7007. * Get the array of failed recipients.
  7008. *
  7009. * @return array
  7010. * @static
  7011. */
  7012. public static function failures()
  7013. {
  7014. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  7015. return $instance->failures();
  7016. }
  7017. }
  7018. /**
  7019. *
  7020. *
  7021. * @see \Illuminate\Notifications\ChannelManager
  7022. */
  7023. class Notification {
  7024. /**
  7025. * Send the given notification to the given notifiable entities.
  7026. *
  7027. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  7028. * @param mixed $notification
  7029. * @return void
  7030. * @static
  7031. */
  7032. public static function send($notifiables, $notification)
  7033. {
  7034. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7035. $instance->send($notifiables, $notification);
  7036. }
  7037. /**
  7038. * Send the given notification immediately.
  7039. *
  7040. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  7041. * @param mixed $notification
  7042. * @param array|null $channels
  7043. * @return void
  7044. * @static
  7045. */
  7046. public static function sendNow($notifiables, $notification, $channels = null)
  7047. {
  7048. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7049. $instance->sendNow($notifiables, $notification, $channels);
  7050. }
  7051. /**
  7052. * Get a channel instance.
  7053. *
  7054. * @param string|null $name
  7055. * @return mixed
  7056. * @static
  7057. */
  7058. public static function channel($name = null)
  7059. {
  7060. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7061. return $instance->channel($name);
  7062. }
  7063. /**
  7064. * Get the default channel driver name.
  7065. *
  7066. * @return string
  7067. * @static
  7068. */
  7069. public static function getDefaultDriver()
  7070. {
  7071. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7072. return $instance->getDefaultDriver();
  7073. }
  7074. /**
  7075. * Get the default channel driver name.
  7076. *
  7077. * @return string
  7078. * @static
  7079. */
  7080. public static function deliversVia()
  7081. {
  7082. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7083. return $instance->deliversVia();
  7084. }
  7085. /**
  7086. * Set the default channel driver name.
  7087. *
  7088. * @param string $channel
  7089. * @return void
  7090. * @static
  7091. */
  7092. public static function deliverVia($channel)
  7093. {
  7094. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7095. $instance->deliverVia($channel);
  7096. }
  7097. /**
  7098. * Set the locale of notifications.
  7099. *
  7100. * @param string $locale
  7101. * @return \Illuminate\Notifications\ChannelManager
  7102. * @static
  7103. */
  7104. public static function locale($locale)
  7105. {
  7106. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7107. return $instance->locale($locale);
  7108. }
  7109. /**
  7110. * Get a driver instance.
  7111. *
  7112. * @param string|null $driver
  7113. * @return mixed
  7114. * @throws \InvalidArgumentException
  7115. * @static
  7116. */
  7117. public static function driver($driver = null)
  7118. { //Method inherited from \Illuminate\Support\Manager
  7119. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7120. return $instance->driver($driver);
  7121. }
  7122. /**
  7123. * Register a custom driver creator Closure.
  7124. *
  7125. * @param string $driver
  7126. * @param \Closure $callback
  7127. * @return \Illuminate\Notifications\ChannelManager
  7128. * @static
  7129. */
  7130. public static function extend($driver, $callback)
  7131. { //Method inherited from \Illuminate\Support\Manager
  7132. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7133. return $instance->extend($driver, $callback);
  7134. }
  7135. /**
  7136. * Get all of the created "drivers".
  7137. *
  7138. * @return array
  7139. * @static
  7140. */
  7141. public static function getDrivers()
  7142. { //Method inherited from \Illuminate\Support\Manager
  7143. /** @var \Illuminate\Notifications\ChannelManager $instance */
  7144. return $instance->getDrivers();
  7145. }
  7146. /**
  7147. * Assert if a notification was sent based on a truth-test callback.
  7148. *
  7149. * @param mixed $notifiable
  7150. * @param string|\Closure $notification
  7151. * @param callable|null $callback
  7152. * @return void
  7153. * @throws \Exception
  7154. * @static
  7155. */
  7156. public static function assertSentTo($notifiable, $notification, $callback = null)
  7157. {
  7158. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7159. $instance->assertSentTo($notifiable, $notification, $callback);
  7160. }
  7161. /**
  7162. * Assert if a notification was sent a number of times.
  7163. *
  7164. * @param mixed $notifiable
  7165. * @param string $notification
  7166. * @param int $times
  7167. * @return void
  7168. * @static
  7169. */
  7170. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  7171. {
  7172. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7173. $instance->assertSentToTimes($notifiable, $notification, $times);
  7174. }
  7175. /**
  7176. * Determine if a notification was sent based on a truth-test callback.
  7177. *
  7178. * @param mixed $notifiable
  7179. * @param string|\Closure $notification
  7180. * @param callable|null $callback
  7181. * @return void
  7182. * @throws \Exception
  7183. * @static
  7184. */
  7185. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  7186. {
  7187. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7188. $instance->assertNotSentTo($notifiable, $notification, $callback);
  7189. }
  7190. /**
  7191. * Assert that no notifications were sent.
  7192. *
  7193. * @return void
  7194. * @static
  7195. */
  7196. public static function assertNothingSent()
  7197. {
  7198. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7199. $instance->assertNothingSent();
  7200. }
  7201. /**
  7202. * Assert the total amount of times a notification was sent.
  7203. *
  7204. * @param int $expectedCount
  7205. * @param string $notification
  7206. * @return void
  7207. * @static
  7208. */
  7209. public static function assertTimesSent($expectedCount, $notification)
  7210. {
  7211. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7212. $instance->assertTimesSent($expectedCount, $notification);
  7213. }
  7214. /**
  7215. * Get all of the notifications matching a truth-test callback.
  7216. *
  7217. * @param mixed $notifiable
  7218. * @param string $notification
  7219. * @param callable|null $callback
  7220. * @return \Illuminate\Support\Collection
  7221. * @static
  7222. */
  7223. public static function sent($notifiable, $notification, $callback = null)
  7224. {
  7225. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7226. return $instance->sent($notifiable, $notification, $callback);
  7227. }
  7228. /**
  7229. * Determine if there are more notifications left to inspect.
  7230. *
  7231. * @param mixed $notifiable
  7232. * @param string $notification
  7233. * @return bool
  7234. * @static
  7235. */
  7236. public static function hasSent($notifiable, $notification)
  7237. {
  7238. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  7239. return $instance->hasSent($notifiable, $notification);
  7240. }
  7241. /**
  7242. * Register a custom macro.
  7243. *
  7244. * @param string $name
  7245. * @param object|callable $macro
  7246. * @return void
  7247. * @static
  7248. */
  7249. public static function macro($name, $macro)
  7250. {
  7251. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  7252. }
  7253. /**
  7254. * Mix another object into the class.
  7255. *
  7256. * @param object $mixin
  7257. * @param bool $replace
  7258. * @return void
  7259. * @throws \ReflectionException
  7260. * @static
  7261. */
  7262. public static function mixin($mixin, $replace = true)
  7263. {
  7264. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  7265. }
  7266. /**
  7267. * Checks if macro is registered.
  7268. *
  7269. * @param string $name
  7270. * @return bool
  7271. * @static
  7272. */
  7273. public static function hasMacro($name)
  7274. {
  7275. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  7276. }
  7277. }
  7278. /**
  7279. *
  7280. *
  7281. * @method static mixed reset(array $credentials, \Closure $callback)
  7282. * @method static string sendResetLink(array $credentials)
  7283. * @method static \Illuminate\Contracts\Auth\CanResetPassword getUser(array $credentials)
  7284. * @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  7285. * @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
  7286. * @method static bool tokenExists(\Illuminate\Contracts\Auth\CanResetPassword $user, string $token)
  7287. * @method static \Illuminate\Auth\Passwords\TokenRepositoryInterface getRepository()
  7288. * @see \Illuminate\Auth\Passwords\PasswordBroker
  7289. */
  7290. class Password {
  7291. /**
  7292. * Attempt to get the broker from the local cache.
  7293. *
  7294. * @param string|null $name
  7295. * @return \Illuminate\Contracts\Auth\PasswordBroker
  7296. * @static
  7297. */
  7298. public static function broker($name = null)
  7299. {
  7300. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  7301. return $instance->broker($name);
  7302. }
  7303. /**
  7304. * Get the default password broker name.
  7305. *
  7306. * @return string
  7307. * @static
  7308. */
  7309. public static function getDefaultDriver()
  7310. {
  7311. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  7312. return $instance->getDefaultDriver();
  7313. }
  7314. /**
  7315. * Set the default password broker name.
  7316. *
  7317. * @param string $name
  7318. * @return void
  7319. * @static
  7320. */
  7321. public static function setDefaultDriver($name)
  7322. {
  7323. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  7324. $instance->setDefaultDriver($name);
  7325. }
  7326. }
  7327. /**
  7328. *
  7329. *
  7330. * @see \Illuminate\Queue\QueueManager
  7331. * @see \Illuminate\Queue\Queue
  7332. */
  7333. class Queue {
  7334. /**
  7335. * Register an event listener for the before job event.
  7336. *
  7337. * @param mixed $callback
  7338. * @return void
  7339. * @static
  7340. */
  7341. public static function before($callback)
  7342. {
  7343. /** @var \Illuminate\Queue\QueueManager $instance */
  7344. $instance->before($callback);
  7345. }
  7346. /**
  7347. * Register an event listener for the after job event.
  7348. *
  7349. * @param mixed $callback
  7350. * @return void
  7351. * @static
  7352. */
  7353. public static function after($callback)
  7354. {
  7355. /** @var \Illuminate\Queue\QueueManager $instance */
  7356. $instance->after($callback);
  7357. }
  7358. /**
  7359. * Register an event listener for the exception occurred job event.
  7360. *
  7361. * @param mixed $callback
  7362. * @return void
  7363. * @static
  7364. */
  7365. public static function exceptionOccurred($callback)
  7366. {
  7367. /** @var \Illuminate\Queue\QueueManager $instance */
  7368. $instance->exceptionOccurred($callback);
  7369. }
  7370. /**
  7371. * Register an event listener for the daemon queue loop.
  7372. *
  7373. * @param mixed $callback
  7374. * @return void
  7375. * @static
  7376. */
  7377. public static function looping($callback)
  7378. {
  7379. /** @var \Illuminate\Queue\QueueManager $instance */
  7380. $instance->looping($callback);
  7381. }
  7382. /**
  7383. * Register an event listener for the failed job event.
  7384. *
  7385. * @param mixed $callback
  7386. * @return void
  7387. * @static
  7388. */
  7389. public static function failing($callback)
  7390. {
  7391. /** @var \Illuminate\Queue\QueueManager $instance */
  7392. $instance->failing($callback);
  7393. }
  7394. /**
  7395. * Register an event listener for the daemon queue stopping.
  7396. *
  7397. * @param mixed $callback
  7398. * @return void
  7399. * @static
  7400. */
  7401. public static function stopping($callback)
  7402. {
  7403. /** @var \Illuminate\Queue\QueueManager $instance */
  7404. $instance->stopping($callback);
  7405. }
  7406. /**
  7407. * Determine if the driver is connected.
  7408. *
  7409. * @param string|null $name
  7410. * @return bool
  7411. * @static
  7412. */
  7413. public static function connected($name = null)
  7414. {
  7415. /** @var \Illuminate\Queue\QueueManager $instance */
  7416. return $instance->connected($name);
  7417. }
  7418. /**
  7419. * Resolve a queue connection instance.
  7420. *
  7421. * @param string|null $name
  7422. * @return \Illuminate\Contracts\Queue\Queue
  7423. * @static
  7424. */
  7425. public static function connection($name = null)
  7426. {
  7427. /** @var \Illuminate\Queue\QueueManager $instance */
  7428. return $instance->connection($name);
  7429. }
  7430. /**
  7431. * Add a queue connection resolver.
  7432. *
  7433. * @param string $driver
  7434. * @param \Closure $resolver
  7435. * @return void
  7436. * @static
  7437. */
  7438. public static function extend($driver, $resolver)
  7439. {
  7440. /** @var \Illuminate\Queue\QueueManager $instance */
  7441. $instance->extend($driver, $resolver);
  7442. }
  7443. /**
  7444. * Add a queue connection resolver.
  7445. *
  7446. * @param string $driver
  7447. * @param \Closure $resolver
  7448. * @return void
  7449. * @static
  7450. */
  7451. public static function addConnector($driver, $resolver)
  7452. {
  7453. /** @var \Illuminate\Queue\QueueManager $instance */
  7454. $instance->addConnector($driver, $resolver);
  7455. }
  7456. /**
  7457. * Get the name of the default queue connection.
  7458. *
  7459. * @return string
  7460. * @static
  7461. */
  7462. public static function getDefaultDriver()
  7463. {
  7464. /** @var \Illuminate\Queue\QueueManager $instance */
  7465. return $instance->getDefaultDriver();
  7466. }
  7467. /**
  7468. * Set the name of the default queue connection.
  7469. *
  7470. * @param string $name
  7471. * @return void
  7472. * @static
  7473. */
  7474. public static function setDefaultDriver($name)
  7475. {
  7476. /** @var \Illuminate\Queue\QueueManager $instance */
  7477. $instance->setDefaultDriver($name);
  7478. }
  7479. /**
  7480. * Get the full name for the given connection.
  7481. *
  7482. * @param string|null $connection
  7483. * @return string
  7484. * @static
  7485. */
  7486. public static function getName($connection = null)
  7487. {
  7488. /** @var \Illuminate\Queue\QueueManager $instance */
  7489. return $instance->getName($connection);
  7490. }
  7491. /**
  7492. * Assert if a job was pushed based on a truth-test callback.
  7493. *
  7494. * @param string|\Closure $job
  7495. * @param callable|int|null $callback
  7496. * @return void
  7497. * @static
  7498. */
  7499. public static function assertPushed($job, $callback = null)
  7500. {
  7501. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7502. $instance->assertPushed($job, $callback);
  7503. }
  7504. /**
  7505. * Assert if a job was pushed based on a truth-test callback.
  7506. *
  7507. * @param string $queue
  7508. * @param string|\Closure $job
  7509. * @param callable|null $callback
  7510. * @return void
  7511. * @static
  7512. */
  7513. public static function assertPushedOn($queue, $job, $callback = null)
  7514. {
  7515. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7516. $instance->assertPushedOn($queue, $job, $callback);
  7517. }
  7518. /**
  7519. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  7520. *
  7521. * @param string $job
  7522. * @param array $expectedChain
  7523. * @param callable|null $callback
  7524. * @return void
  7525. * @static
  7526. */
  7527. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  7528. {
  7529. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7530. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  7531. }
  7532. /**
  7533. * Assert if a job was pushed with an empty chain based on a truth-test callback.
  7534. *
  7535. * @param string $job
  7536. * @param callable|null $callback
  7537. * @return void
  7538. * @static
  7539. */
  7540. public static function assertPushedWithoutChain($job, $callback = null)
  7541. {
  7542. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7543. $instance->assertPushedWithoutChain($job, $callback);
  7544. }
  7545. /**
  7546. * Determine if a job was pushed based on a truth-test callback.
  7547. *
  7548. * @param string|\Closure $job
  7549. * @param callable|null $callback
  7550. * @return void
  7551. * @static
  7552. */
  7553. public static function assertNotPushed($job, $callback = null)
  7554. {
  7555. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7556. $instance->assertNotPushed($job, $callback);
  7557. }
  7558. /**
  7559. * Assert that no jobs were pushed.
  7560. *
  7561. * @return void
  7562. * @static
  7563. */
  7564. public static function assertNothingPushed()
  7565. {
  7566. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7567. $instance->assertNothingPushed();
  7568. }
  7569. /**
  7570. * Get all of the jobs matching a truth-test callback.
  7571. *
  7572. * @param string $job
  7573. * @param callable|null $callback
  7574. * @return \Illuminate\Support\Collection
  7575. * @static
  7576. */
  7577. public static function pushed($job, $callback = null)
  7578. {
  7579. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7580. return $instance->pushed($job, $callback);
  7581. }
  7582. /**
  7583. * Determine if there are any stored jobs for a given class.
  7584. *
  7585. * @param string $job
  7586. * @return bool
  7587. * @static
  7588. */
  7589. public static function hasPushed($job)
  7590. {
  7591. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7592. return $instance->hasPushed($job);
  7593. }
  7594. /**
  7595. * Get the size of the queue.
  7596. *
  7597. * @param string|null $queue
  7598. * @return int
  7599. * @static
  7600. */
  7601. public static function size($queue = null)
  7602. {
  7603. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7604. return $instance->size($queue);
  7605. }
  7606. /**
  7607. * Push a new job onto the queue.
  7608. *
  7609. * @param string $job
  7610. * @param mixed $data
  7611. * @param string|null $queue
  7612. * @return mixed
  7613. * @static
  7614. */
  7615. public static function push($job, $data = '', $queue = null)
  7616. {
  7617. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7618. return $instance->push($job, $data, $queue);
  7619. }
  7620. /**
  7621. * Push a raw payload onto the queue.
  7622. *
  7623. * @param string $payload
  7624. * @param string|null $queue
  7625. * @param array $options
  7626. * @return mixed
  7627. * @static
  7628. */
  7629. public static function pushRaw($payload, $queue = null, $options = [])
  7630. {
  7631. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7632. return $instance->pushRaw($payload, $queue, $options);
  7633. }
  7634. /**
  7635. * Push a new job onto the queue after a delay.
  7636. *
  7637. * @param \DateTimeInterface|\DateInterval|int $delay
  7638. * @param string $job
  7639. * @param mixed $data
  7640. * @param string|null $queue
  7641. * @return mixed
  7642. * @static
  7643. */
  7644. public static function later($delay, $job, $data = '', $queue = null)
  7645. {
  7646. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7647. return $instance->later($delay, $job, $data, $queue);
  7648. }
  7649. /**
  7650. * Push a new job onto the queue.
  7651. *
  7652. * @param string $queue
  7653. * @param string $job
  7654. * @param mixed $data
  7655. * @return mixed
  7656. * @static
  7657. */
  7658. public static function pushOn($queue, $job, $data = '')
  7659. {
  7660. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7661. return $instance->pushOn($queue, $job, $data);
  7662. }
  7663. /**
  7664. * Push a new job onto the queue after a delay.
  7665. *
  7666. * @param string $queue
  7667. * @param \DateTimeInterface|\DateInterval|int $delay
  7668. * @param string $job
  7669. * @param mixed $data
  7670. * @return mixed
  7671. * @static
  7672. */
  7673. public static function laterOn($queue, $delay, $job, $data = '')
  7674. {
  7675. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7676. return $instance->laterOn($queue, $delay, $job, $data);
  7677. }
  7678. /**
  7679. * Pop the next job off of the queue.
  7680. *
  7681. * @param string|null $queue
  7682. * @return \Illuminate\Contracts\Queue\Job|null
  7683. * @static
  7684. */
  7685. public static function pop($queue = null)
  7686. {
  7687. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7688. return $instance->pop($queue);
  7689. }
  7690. /**
  7691. * Push an array of jobs onto the queue.
  7692. *
  7693. * @param array $jobs
  7694. * @param mixed $data
  7695. * @param string|null $queue
  7696. * @return mixed
  7697. * @static
  7698. */
  7699. public static function bulk($jobs, $data = '', $queue = null)
  7700. {
  7701. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7702. return $instance->bulk($jobs, $data, $queue);
  7703. }
  7704. /**
  7705. * Get the jobs that have been pushed.
  7706. *
  7707. * @return array
  7708. * @static
  7709. */
  7710. public static function pushedJobs()
  7711. {
  7712. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7713. return $instance->pushedJobs();
  7714. }
  7715. /**
  7716. * Get the connection name for the queue.
  7717. *
  7718. * @return string
  7719. * @static
  7720. */
  7721. public static function getConnectionName()
  7722. {
  7723. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7724. return $instance->getConnectionName();
  7725. }
  7726. /**
  7727. * Set the connection name for the queue.
  7728. *
  7729. * @param string $name
  7730. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  7731. * @static
  7732. */
  7733. public static function setConnectionName($name)
  7734. {
  7735. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7736. return $instance->setConnectionName($name);
  7737. }
  7738. /**
  7739. * Get the retry delay for an object-based queue handler.
  7740. *
  7741. * @param mixed $job
  7742. * @return mixed
  7743. * @static
  7744. */
  7745. public static function getJobRetryDelay($job)
  7746. { //Method inherited from \Illuminate\Queue\Queue
  7747. /** @var \Illuminate\Queue\SyncQueue $instance */
  7748. return $instance->getJobRetryDelay($job);
  7749. }
  7750. /**
  7751. * Get the expiration timestamp for an object-based queue handler.
  7752. *
  7753. * @param mixed $job
  7754. * @return mixed
  7755. * @static
  7756. */
  7757. public static function getJobExpiration($job)
  7758. { //Method inherited from \Illuminate\Queue\Queue
  7759. /** @var \Illuminate\Queue\SyncQueue $instance */
  7760. return $instance->getJobExpiration($job);
  7761. }
  7762. /**
  7763. * Register a callback to be executed when creating job payloads.
  7764. *
  7765. * @param callable $callback
  7766. * @return void
  7767. * @static
  7768. */
  7769. public static function createPayloadUsing($callback)
  7770. { //Method inherited from \Illuminate\Queue\Queue
  7771. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  7772. }
  7773. /**
  7774. * Set the IoC container instance.
  7775. *
  7776. * @param \Illuminate\Container\Container $container
  7777. * @return void
  7778. * @static
  7779. */
  7780. public static function setContainer($container)
  7781. { //Method inherited from \Illuminate\Queue\Queue
  7782. /** @var \Illuminate\Queue\SyncQueue $instance */
  7783. $instance->setContainer($container);
  7784. }
  7785. }
  7786. /**
  7787. *
  7788. *
  7789. * @see \Illuminate\Routing\Redirector
  7790. */
  7791. class Redirect {
  7792. /**
  7793. * Create a new redirect response to the "home" route.
  7794. *
  7795. * @param int $status
  7796. * @return \Illuminate\Http\RedirectResponse
  7797. * @static
  7798. */
  7799. public static function home($status = 302)
  7800. {
  7801. /** @var \Illuminate\Routing\Redirector $instance */
  7802. return $instance->home($status);
  7803. }
  7804. /**
  7805. * Create a new redirect response to the previous location.
  7806. *
  7807. * @param int $status
  7808. * @param array $headers
  7809. * @param mixed $fallback
  7810. * @return \Illuminate\Http\RedirectResponse
  7811. * @static
  7812. */
  7813. public static function back($status = 302, $headers = [], $fallback = false)
  7814. {
  7815. /** @var \Illuminate\Routing\Redirector $instance */
  7816. return $instance->back($status, $headers, $fallback);
  7817. }
  7818. /**
  7819. * Create a new redirect response to the current URI.
  7820. *
  7821. * @param int $status
  7822. * @param array $headers
  7823. * @return \Illuminate\Http\RedirectResponse
  7824. * @static
  7825. */
  7826. public static function refresh($status = 302, $headers = [])
  7827. {
  7828. /** @var \Illuminate\Routing\Redirector $instance */
  7829. return $instance->refresh($status, $headers);
  7830. }
  7831. /**
  7832. * Create a new redirect response, while putting the current URL in the session.
  7833. *
  7834. * @param string $path
  7835. * @param int $status
  7836. * @param array $headers
  7837. * @param bool|null $secure
  7838. * @return \Illuminate\Http\RedirectResponse
  7839. * @static
  7840. */
  7841. public static function guest($path, $status = 302, $headers = [], $secure = null)
  7842. {
  7843. /** @var \Illuminate\Routing\Redirector $instance */
  7844. return $instance->guest($path, $status, $headers, $secure);
  7845. }
  7846. /**
  7847. * Create a new redirect response to the previously intended location.
  7848. *
  7849. * @param string $default
  7850. * @param int $status
  7851. * @param array $headers
  7852. * @param bool|null $secure
  7853. * @return \Illuminate\Http\RedirectResponse
  7854. * @static
  7855. */
  7856. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  7857. {
  7858. /** @var \Illuminate\Routing\Redirector $instance */
  7859. return $instance->intended($default, $status, $headers, $secure);
  7860. }
  7861. /**
  7862. * Set the intended url.
  7863. *
  7864. * @param string $url
  7865. * @return void
  7866. * @static
  7867. */
  7868. public static function setIntendedUrl($url)
  7869. {
  7870. /** @var \Illuminate\Routing\Redirector $instance */
  7871. $instance->setIntendedUrl($url);
  7872. }
  7873. /**
  7874. * Create a new redirect response to the given path.
  7875. *
  7876. * @param string $path
  7877. * @param int $status
  7878. * @param array $headers
  7879. * @param bool|null $secure
  7880. * @return \Illuminate\Http\RedirectResponse
  7881. * @static
  7882. */
  7883. public static function to($path, $status = 302, $headers = [], $secure = null)
  7884. {
  7885. /** @var \Illuminate\Routing\Redirector $instance */
  7886. return $instance->to($path, $status, $headers, $secure);
  7887. }
  7888. /**
  7889. * Create a new redirect response to an external URL (no validation).
  7890. *
  7891. * @param string $path
  7892. * @param int $status
  7893. * @param array $headers
  7894. * @return \Illuminate\Http\RedirectResponse
  7895. * @static
  7896. */
  7897. public static function away($path, $status = 302, $headers = [])
  7898. {
  7899. /** @var \Illuminate\Routing\Redirector $instance */
  7900. return $instance->away($path, $status, $headers);
  7901. }
  7902. /**
  7903. * Create a new redirect response to the given HTTPS path.
  7904. *
  7905. * @param string $path
  7906. * @param int $status
  7907. * @param array $headers
  7908. * @return \Illuminate\Http\RedirectResponse
  7909. * @static
  7910. */
  7911. public static function secure($path, $status = 302, $headers = [])
  7912. {
  7913. /** @var \Illuminate\Routing\Redirector $instance */
  7914. return $instance->secure($path, $status, $headers);
  7915. }
  7916. /**
  7917. * Create a new redirect response to a named route.
  7918. *
  7919. * @param string $route
  7920. * @param mixed $parameters
  7921. * @param int $status
  7922. * @param array $headers
  7923. * @return \Illuminate\Http\RedirectResponse
  7924. * @static
  7925. */
  7926. public static function route($route, $parameters = [], $status = 302, $headers = [])
  7927. {
  7928. /** @var \Illuminate\Routing\Redirector $instance */
  7929. return $instance->route($route, $parameters, $status, $headers);
  7930. }
  7931. /**
  7932. * Create a new redirect response to a signed named route.
  7933. *
  7934. * @param string $route
  7935. * @param mixed $parameters
  7936. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  7937. * @param int $status
  7938. * @param array $headers
  7939. * @return \Illuminate\Http\RedirectResponse
  7940. * @static
  7941. */
  7942. public static function signedRoute($route, $parameters = [], $expiration = null, $status = 302, $headers = [])
  7943. {
  7944. /** @var \Illuminate\Routing\Redirector $instance */
  7945. return $instance->signedRoute($route, $parameters, $expiration, $status, $headers);
  7946. }
  7947. /**
  7948. * Create a new redirect response to a signed named route.
  7949. *
  7950. * @param string $route
  7951. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  7952. * @param mixed $parameters
  7953. * @param int $status
  7954. * @param array $headers
  7955. * @return \Illuminate\Http\RedirectResponse
  7956. * @static
  7957. */
  7958. public static function temporarySignedRoute($route, $expiration, $parameters = [], $status = 302, $headers = [])
  7959. {
  7960. /** @var \Illuminate\Routing\Redirector $instance */
  7961. return $instance->temporarySignedRoute($route, $expiration, $parameters, $status, $headers);
  7962. }
  7963. /**
  7964. * Create a new redirect response to a controller action.
  7965. *
  7966. * @param string|array $action
  7967. * @param mixed $parameters
  7968. * @param int $status
  7969. * @param array $headers
  7970. * @return \Illuminate\Http\RedirectResponse
  7971. * @static
  7972. */
  7973. public static function action($action, $parameters = [], $status = 302, $headers = [])
  7974. {
  7975. /** @var \Illuminate\Routing\Redirector $instance */
  7976. return $instance->action($action, $parameters, $status, $headers);
  7977. }
  7978. /**
  7979. * Get the URL generator instance.
  7980. *
  7981. * @return \Illuminate\Routing\UrlGenerator
  7982. * @static
  7983. */
  7984. public static function getUrlGenerator()
  7985. {
  7986. /** @var \Illuminate\Routing\Redirector $instance */
  7987. return $instance->getUrlGenerator();
  7988. }
  7989. /**
  7990. * Set the active session store.
  7991. *
  7992. * @param \Illuminate\Session\Store $session
  7993. * @return void
  7994. * @static
  7995. */
  7996. public static function setSession($session)
  7997. {
  7998. /** @var \Illuminate\Routing\Redirector $instance */
  7999. $instance->setSession($session);
  8000. }
  8001. /**
  8002. * Register a custom macro.
  8003. *
  8004. * @param string $name
  8005. * @param object|callable $macro
  8006. * @return void
  8007. * @static
  8008. */
  8009. public static function macro($name, $macro)
  8010. {
  8011. \Illuminate\Routing\Redirector::macro($name, $macro);
  8012. }
  8013. /**
  8014. * Mix another object into the class.
  8015. *
  8016. * @param object $mixin
  8017. * @param bool $replace
  8018. * @return void
  8019. * @throws \ReflectionException
  8020. * @static
  8021. */
  8022. public static function mixin($mixin, $replace = true)
  8023. {
  8024. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  8025. }
  8026. /**
  8027. * Checks if macro is registered.
  8028. *
  8029. * @param string $name
  8030. * @return bool
  8031. * @static
  8032. */
  8033. public static function hasMacro($name)
  8034. {
  8035. return \Illuminate\Routing\Redirector::hasMacro($name);
  8036. }
  8037. }
  8038. /**
  8039. *
  8040. *
  8041. * @method static \Illuminate\Redis\Limiters\ConcurrencyLimiterBuilder funnel(string $name)
  8042. * @method static \Illuminate\Redis\Limiters\DurationLimiterBuilder throttle(string $name)
  8043. * @see \Illuminate\Redis\RedisManager
  8044. * @see \Illuminate\Contracts\Redis\Factory
  8045. */
  8046. class Redis {
  8047. /**
  8048. * Get a Redis connection by name.
  8049. *
  8050. * @param string|null $name
  8051. * @return \Illuminate\Redis\Connections\Connection
  8052. * @static
  8053. */
  8054. public static function connection($name = null)
  8055. {
  8056. /** @var \Illuminate\Redis\RedisManager $instance */
  8057. return $instance->connection($name);
  8058. }
  8059. /**
  8060. * Resolve the given connection by name.
  8061. *
  8062. * @param string|null $name
  8063. * @return \Illuminate\Redis\Connections\Connection
  8064. * @throws \InvalidArgumentException
  8065. * @static
  8066. */
  8067. public static function resolve($name = null)
  8068. {
  8069. /** @var \Illuminate\Redis\RedisManager $instance */
  8070. return $instance->resolve($name);
  8071. }
  8072. /**
  8073. * Return all of the created connections.
  8074. *
  8075. * @return array
  8076. * @static
  8077. */
  8078. public static function connections()
  8079. {
  8080. /** @var \Illuminate\Redis\RedisManager $instance */
  8081. return $instance->connections();
  8082. }
  8083. /**
  8084. * Enable the firing of Redis command events.
  8085. *
  8086. * @return void
  8087. * @static
  8088. */
  8089. public static function enableEvents()
  8090. {
  8091. /** @var \Illuminate\Redis\RedisManager $instance */
  8092. $instance->enableEvents();
  8093. }
  8094. /**
  8095. * Disable the firing of Redis command events.
  8096. *
  8097. * @return void
  8098. * @static
  8099. */
  8100. public static function disableEvents()
  8101. {
  8102. /** @var \Illuminate\Redis\RedisManager $instance */
  8103. $instance->disableEvents();
  8104. }
  8105. /**
  8106. * Set the default driver.
  8107. *
  8108. * @param string $driver
  8109. * @return void
  8110. * @static
  8111. */
  8112. public static function setDriver($driver)
  8113. {
  8114. /** @var \Illuminate\Redis\RedisManager $instance */
  8115. $instance->setDriver($driver);
  8116. }
  8117. /**
  8118. * Register a custom driver creator Closure.
  8119. *
  8120. * @param string $driver
  8121. * @param \Closure $callback
  8122. * @return \Illuminate\Redis\RedisManager
  8123. * @static
  8124. */
  8125. public static function extend($driver, $callback)
  8126. {
  8127. /** @var \Illuminate\Redis\RedisManager $instance */
  8128. return $instance->extend($driver, $callback);
  8129. }
  8130. }
  8131. /**
  8132. *
  8133. *
  8134. * @method static mixed filterFiles(mixed $files)
  8135. * @see \Illuminate\Http\Request
  8136. */
  8137. class Request {
  8138. /**
  8139. * Create a new Illuminate HTTP request from server variables.
  8140. *
  8141. * @return static
  8142. * @static
  8143. */
  8144. public static function capture()
  8145. {
  8146. return \Illuminate\Http\Request::capture();
  8147. }
  8148. /**
  8149. * Return the Request instance.
  8150. *
  8151. * @return \Illuminate\Http\Request
  8152. * @static
  8153. */
  8154. public static function instance()
  8155. {
  8156. /** @var \Illuminate\Http\Request $instance */
  8157. return $instance->instance();
  8158. }
  8159. /**
  8160. * Get the request method.
  8161. *
  8162. * @return string
  8163. * @static
  8164. */
  8165. public static function method()
  8166. {
  8167. /** @var \Illuminate\Http\Request $instance */
  8168. return $instance->method();
  8169. }
  8170. /**
  8171. * Get the root URL for the application.
  8172. *
  8173. * @return string
  8174. * @static
  8175. */
  8176. public static function root()
  8177. {
  8178. /** @var \Illuminate\Http\Request $instance */
  8179. return $instance->root();
  8180. }
  8181. /**
  8182. * Get the URL (no query string) for the request.
  8183. *
  8184. * @return string
  8185. * @static
  8186. */
  8187. public static function url()
  8188. {
  8189. /** @var \Illuminate\Http\Request $instance */
  8190. return $instance->url();
  8191. }
  8192. /**
  8193. * Get the full URL for the request.
  8194. *
  8195. * @return string
  8196. * @static
  8197. */
  8198. public static function fullUrl()
  8199. {
  8200. /** @var \Illuminate\Http\Request $instance */
  8201. return $instance->fullUrl();
  8202. }
  8203. /**
  8204. * Get the full URL for the request with the added query string parameters.
  8205. *
  8206. * @param array $query
  8207. * @return string
  8208. * @static
  8209. */
  8210. public static function fullUrlWithQuery($query)
  8211. {
  8212. /** @var \Illuminate\Http\Request $instance */
  8213. return $instance->fullUrlWithQuery($query);
  8214. }
  8215. /**
  8216. * Get the current path info for the request.
  8217. *
  8218. * @return string
  8219. * @static
  8220. */
  8221. public static function path()
  8222. {
  8223. /** @var \Illuminate\Http\Request $instance */
  8224. return $instance->path();
  8225. }
  8226. /**
  8227. * Get the current decoded path info for the request.
  8228. *
  8229. * @return string
  8230. * @static
  8231. */
  8232. public static function decodedPath()
  8233. {
  8234. /** @var \Illuminate\Http\Request $instance */
  8235. return $instance->decodedPath();
  8236. }
  8237. /**
  8238. * Get a segment from the URI (1 based index).
  8239. *
  8240. * @param int $index
  8241. * @param string|null $default
  8242. * @return string|null
  8243. * @static
  8244. */
  8245. public static function segment($index, $default = null)
  8246. {
  8247. /** @var \Illuminate\Http\Request $instance */
  8248. return $instance->segment($index, $default);
  8249. }
  8250. /**
  8251. * Get all of the segments for the request path.
  8252. *
  8253. * @return array
  8254. * @static
  8255. */
  8256. public static function segments()
  8257. {
  8258. /** @var \Illuminate\Http\Request $instance */
  8259. return $instance->segments();
  8260. }
  8261. /**
  8262. * Determine if the current request URI matches a pattern.
  8263. *
  8264. * @param mixed $patterns
  8265. * @return bool
  8266. * @static
  8267. */
  8268. public static function is(...$patterns)
  8269. {
  8270. /** @var \Illuminate\Http\Request $instance */
  8271. return $instance->is(...$patterns);
  8272. }
  8273. /**
  8274. * Determine if the route name matches a given pattern.
  8275. *
  8276. * @param mixed $patterns
  8277. * @return bool
  8278. * @static
  8279. */
  8280. public static function routeIs(...$patterns)
  8281. {
  8282. /** @var \Illuminate\Http\Request $instance */
  8283. return $instance->routeIs(...$patterns);
  8284. }
  8285. /**
  8286. * Determine if the current request URL and query string matches a pattern.
  8287. *
  8288. * @param mixed $patterns
  8289. * @return bool
  8290. * @static
  8291. */
  8292. public static function fullUrlIs(...$patterns)
  8293. {
  8294. /** @var \Illuminate\Http\Request $instance */
  8295. return $instance->fullUrlIs(...$patterns);
  8296. }
  8297. /**
  8298. * Determine if the request is the result of an AJAX call.
  8299. *
  8300. * @return bool
  8301. * @static
  8302. */
  8303. public static function ajax()
  8304. {
  8305. /** @var \Illuminate\Http\Request $instance */
  8306. return $instance->ajax();
  8307. }
  8308. /**
  8309. * Determine if the request is the result of an PJAX call.
  8310. *
  8311. * @return bool
  8312. * @static
  8313. */
  8314. public static function pjax()
  8315. {
  8316. /** @var \Illuminate\Http\Request $instance */
  8317. return $instance->pjax();
  8318. }
  8319. /**
  8320. * Determine if the request is the result of an prefetch call.
  8321. *
  8322. * @return bool
  8323. * @static
  8324. */
  8325. public static function prefetch()
  8326. {
  8327. /** @var \Illuminate\Http\Request $instance */
  8328. return $instance->prefetch();
  8329. }
  8330. /**
  8331. * Determine if the request is over HTTPS.
  8332. *
  8333. * @return bool
  8334. * @static
  8335. */
  8336. public static function secure()
  8337. {
  8338. /** @var \Illuminate\Http\Request $instance */
  8339. return $instance->secure();
  8340. }
  8341. /**
  8342. * Get the client IP address.
  8343. *
  8344. * @return string|null
  8345. * @static
  8346. */
  8347. public static function ip()
  8348. {
  8349. /** @var \Illuminate\Http\Request $instance */
  8350. return $instance->ip();
  8351. }
  8352. /**
  8353. * Get the client IP addresses.
  8354. *
  8355. * @return array
  8356. * @static
  8357. */
  8358. public static function ips()
  8359. {
  8360. /** @var \Illuminate\Http\Request $instance */
  8361. return $instance->ips();
  8362. }
  8363. /**
  8364. * Get the client user agent.
  8365. *
  8366. * @return string|null
  8367. * @static
  8368. */
  8369. public static function userAgent()
  8370. {
  8371. /** @var \Illuminate\Http\Request $instance */
  8372. return $instance->userAgent();
  8373. }
  8374. /**
  8375. * Merge new input into the current request's input array.
  8376. *
  8377. * @param array $input
  8378. * @return \Illuminate\Http\Request
  8379. * @static
  8380. */
  8381. public static function merge($input)
  8382. {
  8383. /** @var \Illuminate\Http\Request $instance */
  8384. return $instance->merge($input);
  8385. }
  8386. /**
  8387. * Replace the input for the current request.
  8388. *
  8389. * @param array $input
  8390. * @return \Illuminate\Http\Request
  8391. * @static
  8392. */
  8393. public static function replace($input)
  8394. {
  8395. /** @var \Illuminate\Http\Request $instance */
  8396. return $instance->replace($input);
  8397. }
  8398. /**
  8399. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  8400. *
  8401. * Instead, you may use the "input" method.
  8402. *
  8403. * @param string $key
  8404. * @param mixed $default
  8405. * @return mixed
  8406. * @static
  8407. */
  8408. public static function get($key, $default = null)
  8409. {
  8410. /** @var \Illuminate\Http\Request $instance */
  8411. return $instance->get($key, $default);
  8412. }
  8413. /**
  8414. * Get the JSON payload for the request.
  8415. *
  8416. * @param string|null $key
  8417. * @param mixed $default
  8418. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  8419. * @static
  8420. */
  8421. public static function json($key = null, $default = null)
  8422. {
  8423. /** @var \Illuminate\Http\Request $instance */
  8424. return $instance->json($key, $default);
  8425. }
  8426. /**
  8427. * Create a new request instance from the given Laravel request.
  8428. *
  8429. * @param \Illuminate\Http\Request $from
  8430. * @param \Illuminate\Http\Request|null $to
  8431. * @return static
  8432. * @static
  8433. */
  8434. public static function createFrom($from, $to = null)
  8435. {
  8436. return \Illuminate\Http\Request::createFrom($from, $to);
  8437. }
  8438. /**
  8439. * Create an Illuminate request from a Symfony instance.
  8440. *
  8441. * @param \Symfony\Component\HttpFoundation\Request $request
  8442. * @return static
  8443. * @static
  8444. */
  8445. public static function createFromBase($request)
  8446. {
  8447. return \Illuminate\Http\Request::createFromBase($request);
  8448. }
  8449. /**
  8450. * Clones a request and overrides some of its parameters.
  8451. *
  8452. * @param array $query The GET parameters
  8453. * @param array $request The POST parameters
  8454. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8455. * @param array $cookies The COOKIE parameters
  8456. * @param array $files The FILES parameters
  8457. * @param array $server The SERVER parameters
  8458. * @return static
  8459. * @static
  8460. */
  8461. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  8462. {
  8463. /** @var \Illuminate\Http\Request $instance */
  8464. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  8465. }
  8466. /**
  8467. * Get the session associated with the request.
  8468. *
  8469. * @return \Illuminate\Session\Store
  8470. * @throws \RuntimeException
  8471. * @static
  8472. */
  8473. public static function session()
  8474. {
  8475. /** @var \Illuminate\Http\Request $instance */
  8476. return $instance->session();
  8477. }
  8478. /**
  8479. * Get the session associated with the request.
  8480. *
  8481. * @return \Illuminate\Session\Store|null
  8482. * @static
  8483. */
  8484. public static function getSession()
  8485. {
  8486. /** @var \Illuminate\Http\Request $instance */
  8487. return $instance->getSession();
  8488. }
  8489. /**
  8490. * Set the session instance on the request.
  8491. *
  8492. * @param \Illuminate\Contracts\Session\Session $session
  8493. * @return void
  8494. * @static
  8495. */
  8496. public static function setLaravelSession($session)
  8497. {
  8498. /** @var \Illuminate\Http\Request $instance */
  8499. $instance->setLaravelSession($session);
  8500. }
  8501. /**
  8502. * Get the user making the request.
  8503. *
  8504. * @param string|null $guard
  8505. * @return mixed
  8506. * @static
  8507. */
  8508. public static function user($guard = null)
  8509. {
  8510. /** @var \Illuminate\Http\Request $instance */
  8511. return $instance->user($guard);
  8512. }
  8513. /**
  8514. * Get the route handling the request.
  8515. *
  8516. * @param string|null $param
  8517. * @param mixed $default
  8518. * @return \Illuminate\Routing\Route|object|string|null
  8519. * @static
  8520. */
  8521. public static function route($param = null, $default = null)
  8522. {
  8523. /** @var \Illuminate\Http\Request $instance */
  8524. return $instance->route($param, $default);
  8525. }
  8526. /**
  8527. * Get a unique fingerprint for the request / route / IP address.
  8528. *
  8529. * @return string
  8530. * @throws \RuntimeException
  8531. * @static
  8532. */
  8533. public static function fingerprint()
  8534. {
  8535. /** @var \Illuminate\Http\Request $instance */
  8536. return $instance->fingerprint();
  8537. }
  8538. /**
  8539. * Set the JSON payload for the request.
  8540. *
  8541. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  8542. * @return \Illuminate\Http\Request
  8543. * @static
  8544. */
  8545. public static function setJson($json)
  8546. {
  8547. /** @var \Illuminate\Http\Request $instance */
  8548. return $instance->setJson($json);
  8549. }
  8550. /**
  8551. * Get the user resolver callback.
  8552. *
  8553. * @return \Closure
  8554. * @static
  8555. */
  8556. public static function getUserResolver()
  8557. {
  8558. /** @var \Illuminate\Http\Request $instance */
  8559. return $instance->getUserResolver();
  8560. }
  8561. /**
  8562. * Set the user resolver callback.
  8563. *
  8564. * @param \Closure $callback
  8565. * @return \Illuminate\Http\Request
  8566. * @static
  8567. */
  8568. public static function setUserResolver($callback)
  8569. {
  8570. /** @var \Illuminate\Http\Request $instance */
  8571. return $instance->setUserResolver($callback);
  8572. }
  8573. /**
  8574. * Get the route resolver callback.
  8575. *
  8576. * @return \Closure
  8577. * @static
  8578. */
  8579. public static function getRouteResolver()
  8580. {
  8581. /** @var \Illuminate\Http\Request $instance */
  8582. return $instance->getRouteResolver();
  8583. }
  8584. /**
  8585. * Set the route resolver callback.
  8586. *
  8587. * @param \Closure $callback
  8588. * @return \Illuminate\Http\Request
  8589. * @static
  8590. */
  8591. public static function setRouteResolver($callback)
  8592. {
  8593. /** @var \Illuminate\Http\Request $instance */
  8594. return $instance->setRouteResolver($callback);
  8595. }
  8596. /**
  8597. * Get all of the input and files for the request.
  8598. *
  8599. * @return array
  8600. * @static
  8601. */
  8602. public static function toArray()
  8603. {
  8604. /** @var \Illuminate\Http\Request $instance */
  8605. return $instance->toArray();
  8606. }
  8607. /**
  8608. * Determine if the given offset exists.
  8609. *
  8610. * @param string $offset
  8611. * @return bool
  8612. * @static
  8613. */
  8614. public static function offsetExists($offset)
  8615. {
  8616. /** @var \Illuminate\Http\Request $instance */
  8617. return $instance->offsetExists($offset);
  8618. }
  8619. /**
  8620. * Get the value at the given offset.
  8621. *
  8622. * @param string $offset
  8623. * @return mixed
  8624. * @static
  8625. */
  8626. public static function offsetGet($offset)
  8627. {
  8628. /** @var \Illuminate\Http\Request $instance */
  8629. return $instance->offsetGet($offset);
  8630. }
  8631. /**
  8632. * Set the value at the given offset.
  8633. *
  8634. * @param string $offset
  8635. * @param mixed $value
  8636. * @return void
  8637. * @static
  8638. */
  8639. public static function offsetSet($offset, $value)
  8640. {
  8641. /** @var \Illuminate\Http\Request $instance */
  8642. $instance->offsetSet($offset, $value);
  8643. }
  8644. /**
  8645. * Remove the value at the given offset.
  8646. *
  8647. * @param string $offset
  8648. * @return void
  8649. * @static
  8650. */
  8651. public static function offsetUnset($offset)
  8652. {
  8653. /** @var \Illuminate\Http\Request $instance */
  8654. $instance->offsetUnset($offset);
  8655. }
  8656. /**
  8657. * Sets the parameters for this request.
  8658. *
  8659. * This method also re-initializes all properties.
  8660. *
  8661. * @param array $query The GET parameters
  8662. * @param array $request The POST parameters
  8663. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8664. * @param array $cookies The COOKIE parameters
  8665. * @param array $files The FILES parameters
  8666. * @param array $server The SERVER parameters
  8667. * @param string|resource|null $content The raw body data
  8668. * @static
  8669. */
  8670. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  8671. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8672. /** @var \Illuminate\Http\Request $instance */
  8673. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  8674. }
  8675. /**
  8676. * Creates a new request with values from PHP's super globals.
  8677. *
  8678. * @return static
  8679. * @static
  8680. */
  8681. public static function createFromGlobals()
  8682. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8683. return \Illuminate\Http\Request::createFromGlobals();
  8684. }
  8685. /**
  8686. * Creates a Request based on a given URI and configuration.
  8687. *
  8688. * The information contained in the URI always take precedence
  8689. * over the other information (server and parameters).
  8690. *
  8691. * @param string $uri The URI
  8692. * @param string $method The HTTP method
  8693. * @param array $parameters The query (GET) or request (POST) parameters
  8694. * @param array $cookies The request cookies ($_COOKIE)
  8695. * @param array $files The request files ($_FILES)
  8696. * @param array $server The server parameters ($_SERVER)
  8697. * @param string|resource|null $content The raw body data
  8698. * @return static
  8699. * @static
  8700. */
  8701. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  8702. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8703. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  8704. }
  8705. /**
  8706. * Sets a callable able to create a Request instance.
  8707. *
  8708. * This is mainly useful when you need to override the Request class
  8709. * to keep BC with an existing system. It should not be used for any
  8710. * other purpose.
  8711. *
  8712. * @static
  8713. */
  8714. public static function setFactory($callable)
  8715. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8716. return \Illuminate\Http\Request::setFactory($callable);
  8717. }
  8718. /**
  8719. * Overrides the PHP global variables according to this request instance.
  8720. *
  8721. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  8722. * $_FILES is never overridden, see rfc1867
  8723. *
  8724. * @static
  8725. */
  8726. public static function overrideGlobals()
  8727. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8728. /** @var \Illuminate\Http\Request $instance */
  8729. return $instance->overrideGlobals();
  8730. }
  8731. /**
  8732. * Sets a list of trusted proxies.
  8733. *
  8734. * You should only list the reverse proxies that you manage directly.
  8735. *
  8736. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  8737. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  8738. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  8739. * @static
  8740. */
  8741. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8742. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8743. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8744. }
  8745. /**
  8746. * Gets the list of trusted proxies.
  8747. *
  8748. * @return array An array of trusted proxies
  8749. * @static
  8750. */
  8751. public static function getTrustedProxies()
  8752. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8753. return \Illuminate\Http\Request::getTrustedProxies();
  8754. }
  8755. /**
  8756. * Gets the set of trusted headers from trusted proxies.
  8757. *
  8758. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8759. * @static
  8760. */
  8761. public static function getTrustedHeaderSet()
  8762. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8763. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8764. }
  8765. /**
  8766. * Sets a list of trusted host patterns.
  8767. *
  8768. * You should only list the hosts you manage using regexs.
  8769. *
  8770. * @param array $hostPatterns A list of trusted host patterns
  8771. * @static
  8772. */
  8773. public static function setTrustedHosts($hostPatterns)
  8774. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8775. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8776. }
  8777. /**
  8778. * Gets the list of trusted host patterns.
  8779. *
  8780. * @return array An array of trusted host patterns
  8781. * @static
  8782. */
  8783. public static function getTrustedHosts()
  8784. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8785. return \Illuminate\Http\Request::getTrustedHosts();
  8786. }
  8787. /**
  8788. * Normalizes a query string.
  8789. *
  8790. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8791. * have consistent escaping and unneeded delimiters are removed.
  8792. *
  8793. * @return string A normalized query string for the Request
  8794. * @static
  8795. */
  8796. public static function normalizeQueryString($qs)
  8797. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8798. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8799. }
  8800. /**
  8801. * Enables support for the _method request parameter to determine the intended HTTP method.
  8802. *
  8803. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8804. * Check that you are using CSRF tokens when required.
  8805. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8806. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8807. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8808. *
  8809. * The HTTP method can only be overridden when the real HTTP method is POST.
  8810. *
  8811. * @static
  8812. */
  8813. public static function enableHttpMethodParameterOverride()
  8814. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8815. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8816. }
  8817. /**
  8818. * Checks whether support for the _method request parameter is enabled.
  8819. *
  8820. * @return bool True when the _method request parameter is enabled, false otherwise
  8821. * @static
  8822. */
  8823. public static function getHttpMethodParameterOverride()
  8824. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8825. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8826. }
  8827. /**
  8828. * Whether the request contains a Session which was started in one of the
  8829. * previous requests.
  8830. *
  8831. * @return bool
  8832. * @static
  8833. */
  8834. public static function hasPreviousSession()
  8835. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8836. /** @var \Illuminate\Http\Request $instance */
  8837. return $instance->hasPreviousSession();
  8838. }
  8839. /**
  8840. * Whether the request contains a Session object.
  8841. *
  8842. * This method does not give any information about the state of the session object,
  8843. * like whether the session is started or not. It is just a way to check if this Request
  8844. * is associated with a Session instance.
  8845. *
  8846. * @return bool true when the Request contains a Session object, false otherwise
  8847. * @static
  8848. */
  8849. public static function hasSession()
  8850. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8851. /** @var \Illuminate\Http\Request $instance */
  8852. return $instance->hasSession();
  8853. }
  8854. /**
  8855. *
  8856. *
  8857. * @static
  8858. */
  8859. public static function setSession($session)
  8860. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8861. /** @var \Illuminate\Http\Request $instance */
  8862. return $instance->setSession($session);
  8863. }
  8864. /**
  8865. *
  8866. *
  8867. * @internal
  8868. * @static
  8869. */
  8870. public static function setSessionFactory($factory)
  8871. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8872. /** @var \Illuminate\Http\Request $instance */
  8873. return $instance->setSessionFactory($factory);
  8874. }
  8875. /**
  8876. * Returns the client IP addresses.
  8877. *
  8878. * In the returned array the most trusted IP address is first, and the
  8879. * least trusted one last. The "real" client IP address is the last one,
  8880. * but this is also the least trusted one. Trusted proxies are stripped.
  8881. *
  8882. * Use this method carefully; you should use getClientIp() instead.
  8883. *
  8884. * @return array The client IP addresses
  8885. * @see getClientIp()
  8886. * @static
  8887. */
  8888. public static function getClientIps()
  8889. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8890. /** @var \Illuminate\Http\Request $instance */
  8891. return $instance->getClientIps();
  8892. }
  8893. /**
  8894. * Returns the client IP address.
  8895. *
  8896. * This method can read the client IP address from the "X-Forwarded-For" header
  8897. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8898. * header value is a comma+space separated list of IP addresses, the left-most
  8899. * being the original client, and each successive proxy that passed the request
  8900. * adding the IP address where it received the request from.
  8901. *
  8902. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  8903. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  8904. * argument of the Request::setTrustedProxies() method instead.
  8905. *
  8906. * @return string|null The client IP address
  8907. * @see getClientIps()
  8908. * @see https://wikipedia.org/wiki/X-Forwarded-For
  8909. * @static
  8910. */
  8911. public static function getClientIp()
  8912. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8913. /** @var \Illuminate\Http\Request $instance */
  8914. return $instance->getClientIp();
  8915. }
  8916. /**
  8917. * Returns current script name.
  8918. *
  8919. * @return string
  8920. * @static
  8921. */
  8922. public static function getScriptName()
  8923. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8924. /** @var \Illuminate\Http\Request $instance */
  8925. return $instance->getScriptName();
  8926. }
  8927. /**
  8928. * Returns the path being requested relative to the executed script.
  8929. *
  8930. * The path info always starts with a /.
  8931. *
  8932. * Suppose this request is instantiated from /mysite on localhost:
  8933. *
  8934. * * http://localhost/mysite returns an empty string
  8935. * * http://localhost/mysite/about returns '/about'
  8936. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8937. * * http://localhost/mysite/about?var=1 returns '/about'
  8938. *
  8939. * @return string The raw path (i.e. not urldecoded)
  8940. * @static
  8941. */
  8942. public static function getPathInfo()
  8943. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8944. /** @var \Illuminate\Http\Request $instance */
  8945. return $instance->getPathInfo();
  8946. }
  8947. /**
  8948. * Returns the root path from which this request is executed.
  8949. *
  8950. * Suppose that an index.php file instantiates this request object:
  8951. *
  8952. * * http://localhost/index.php returns an empty string
  8953. * * http://localhost/index.php/page returns an empty string
  8954. * * http://localhost/web/index.php returns '/web'
  8955. * * http://localhost/we%20b/index.php returns '/we%20b'
  8956. *
  8957. * @return string The raw path (i.e. not urldecoded)
  8958. * @static
  8959. */
  8960. public static function getBasePath()
  8961. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8962. /** @var \Illuminate\Http\Request $instance */
  8963. return $instance->getBasePath();
  8964. }
  8965. /**
  8966. * Returns the root URL from which this request is executed.
  8967. *
  8968. * The base URL never ends with a /.
  8969. *
  8970. * This is similar to getBasePath(), except that it also includes the
  8971. * script filename (e.g. index.php) if one exists.
  8972. *
  8973. * @return string The raw URL (i.e. not urldecoded)
  8974. * @static
  8975. */
  8976. public static function getBaseUrl()
  8977. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8978. /** @var \Illuminate\Http\Request $instance */
  8979. return $instance->getBaseUrl();
  8980. }
  8981. /**
  8982. * Gets the request's scheme.
  8983. *
  8984. * @return string
  8985. * @static
  8986. */
  8987. public static function getScheme()
  8988. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  8989. /** @var \Illuminate\Http\Request $instance */
  8990. return $instance->getScheme();
  8991. }
  8992. /**
  8993. * Returns the port on which the request is made.
  8994. *
  8995. * This method can read the client port from the "X-Forwarded-Port" header
  8996. * when trusted proxies were set via "setTrustedProxies()".
  8997. *
  8998. * The "X-Forwarded-Port" header must contain the client port.
  8999. *
  9000. * @return int|string can be a string if fetched from the server bag
  9001. * @static
  9002. */
  9003. public static function getPort()
  9004. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9005. /** @var \Illuminate\Http\Request $instance */
  9006. return $instance->getPort();
  9007. }
  9008. /**
  9009. * Returns the user.
  9010. *
  9011. * @return string|null
  9012. * @static
  9013. */
  9014. public static function getUser()
  9015. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9016. /** @var \Illuminate\Http\Request $instance */
  9017. return $instance->getUser();
  9018. }
  9019. /**
  9020. * Returns the password.
  9021. *
  9022. * @return string|null
  9023. * @static
  9024. */
  9025. public static function getPassword()
  9026. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9027. /** @var \Illuminate\Http\Request $instance */
  9028. return $instance->getPassword();
  9029. }
  9030. /**
  9031. * Gets the user info.
  9032. *
  9033. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  9034. * @static
  9035. */
  9036. public static function getUserInfo()
  9037. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9038. /** @var \Illuminate\Http\Request $instance */
  9039. return $instance->getUserInfo();
  9040. }
  9041. /**
  9042. * Returns the HTTP host being requested.
  9043. *
  9044. * The port name will be appended to the host if it's non-standard.
  9045. *
  9046. * @return string
  9047. * @static
  9048. */
  9049. public static function getHttpHost()
  9050. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9051. /** @var \Illuminate\Http\Request $instance */
  9052. return $instance->getHttpHost();
  9053. }
  9054. /**
  9055. * Returns the requested URI (path and query string).
  9056. *
  9057. * @return string The raw URI (i.e. not URI decoded)
  9058. * @static
  9059. */
  9060. public static function getRequestUri()
  9061. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9062. /** @var \Illuminate\Http\Request $instance */
  9063. return $instance->getRequestUri();
  9064. }
  9065. /**
  9066. * Gets the scheme and HTTP host.
  9067. *
  9068. * If the URL was called with basic authentication, the user
  9069. * and the password are not added to the generated string.
  9070. *
  9071. * @return string The scheme and HTTP host
  9072. * @static
  9073. */
  9074. public static function getSchemeAndHttpHost()
  9075. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9076. /** @var \Illuminate\Http\Request $instance */
  9077. return $instance->getSchemeAndHttpHost();
  9078. }
  9079. /**
  9080. * Generates a normalized URI (URL) for the Request.
  9081. *
  9082. * @return string A normalized URI (URL) for the Request
  9083. * @see getQueryString()
  9084. * @static
  9085. */
  9086. public static function getUri()
  9087. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9088. /** @var \Illuminate\Http\Request $instance */
  9089. return $instance->getUri();
  9090. }
  9091. /**
  9092. * Generates a normalized URI for the given path.
  9093. *
  9094. * @param string $path A path to use instead of the current one
  9095. * @return string The normalized URI for the path
  9096. * @static
  9097. */
  9098. public static function getUriForPath($path)
  9099. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9100. /** @var \Illuminate\Http\Request $instance */
  9101. return $instance->getUriForPath($path);
  9102. }
  9103. /**
  9104. * Returns the path as relative reference from the current Request path.
  9105. *
  9106. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  9107. * Both paths must be absolute and not contain relative parts.
  9108. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  9109. * Furthermore, they can be used to reduce the link size in documents.
  9110. *
  9111. * Example target paths, given a base path of "/a/b/c/d":
  9112. * - "/a/b/c/d" -> ""
  9113. * - "/a/b/c/" -> "./"
  9114. * - "/a/b/" -> "../"
  9115. * - "/a/b/c/other" -> "other"
  9116. * - "/a/x/y" -> "../../x/y"
  9117. *
  9118. * @return string The relative target path
  9119. * @static
  9120. */
  9121. public static function getRelativeUriForPath($path)
  9122. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9123. /** @var \Illuminate\Http\Request $instance */
  9124. return $instance->getRelativeUriForPath($path);
  9125. }
  9126. /**
  9127. * Generates the normalized query string for the Request.
  9128. *
  9129. * It builds a normalized query string, where keys/value pairs are alphabetized
  9130. * and have consistent escaping.
  9131. *
  9132. * @return string|null A normalized query string for the Request
  9133. * @static
  9134. */
  9135. public static function getQueryString()
  9136. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9137. /** @var \Illuminate\Http\Request $instance */
  9138. return $instance->getQueryString();
  9139. }
  9140. /**
  9141. * Checks whether the request is secure or not.
  9142. *
  9143. * This method can read the client protocol from the "X-Forwarded-Proto" header
  9144. * when trusted proxies were set via "setTrustedProxies()".
  9145. *
  9146. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  9147. *
  9148. * @return bool
  9149. * @static
  9150. */
  9151. public static function isSecure()
  9152. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9153. /** @var \Illuminate\Http\Request $instance */
  9154. return $instance->isSecure();
  9155. }
  9156. /**
  9157. * Returns the host name.
  9158. *
  9159. * This method can read the client host name from the "X-Forwarded-Host" header
  9160. * when trusted proxies were set via "setTrustedProxies()".
  9161. *
  9162. * The "X-Forwarded-Host" header must contain the client host name.
  9163. *
  9164. * @return string
  9165. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  9166. * @static
  9167. */
  9168. public static function getHost()
  9169. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9170. /** @var \Illuminate\Http\Request $instance */
  9171. return $instance->getHost();
  9172. }
  9173. /**
  9174. * Sets the request method.
  9175. *
  9176. * @static
  9177. */
  9178. public static function setMethod($method)
  9179. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9180. /** @var \Illuminate\Http\Request $instance */
  9181. return $instance->setMethod($method);
  9182. }
  9183. /**
  9184. * Gets the request "intended" method.
  9185. *
  9186. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  9187. * then it is used to determine the "real" intended HTTP method.
  9188. *
  9189. * The _method request parameter can also be used to determine the HTTP method,
  9190. * but only if enableHttpMethodParameterOverride() has been called.
  9191. *
  9192. * The method is always an uppercased string.
  9193. *
  9194. * @return string The request method
  9195. * @see getRealMethod()
  9196. * @static
  9197. */
  9198. public static function getMethod()
  9199. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9200. /** @var \Illuminate\Http\Request $instance */
  9201. return $instance->getMethod();
  9202. }
  9203. /**
  9204. * Gets the "real" request method.
  9205. *
  9206. * @return string The request method
  9207. * @see getMethod()
  9208. * @static
  9209. */
  9210. public static function getRealMethod()
  9211. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9212. /** @var \Illuminate\Http\Request $instance */
  9213. return $instance->getRealMethod();
  9214. }
  9215. /**
  9216. * Gets the mime type associated with the format.
  9217. *
  9218. * @return string|null The associated mime type (null if not found)
  9219. * @static
  9220. */
  9221. public static function getMimeType($format)
  9222. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9223. /** @var \Illuminate\Http\Request $instance */
  9224. return $instance->getMimeType($format);
  9225. }
  9226. /**
  9227. * Gets the mime types associated with the format.
  9228. *
  9229. * @return array The associated mime types
  9230. * @static
  9231. */
  9232. public static function getMimeTypes($format)
  9233. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9234. return \Illuminate\Http\Request::getMimeTypes($format);
  9235. }
  9236. /**
  9237. * Gets the format associated with the mime type.
  9238. *
  9239. * @return string|null The format (null if not found)
  9240. * @static
  9241. */
  9242. public static function getFormat($mimeType)
  9243. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9244. /** @var \Illuminate\Http\Request $instance */
  9245. return $instance->getFormat($mimeType);
  9246. }
  9247. /**
  9248. * Associates a format with mime types.
  9249. *
  9250. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  9251. * @static
  9252. */
  9253. public static function setFormat($format, $mimeTypes)
  9254. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9255. /** @var \Illuminate\Http\Request $instance */
  9256. return $instance->setFormat($format, $mimeTypes);
  9257. }
  9258. /**
  9259. * Gets the request format.
  9260. *
  9261. * Here is the process to determine the format:
  9262. *
  9263. * * format defined by the user (with setRequestFormat())
  9264. * * _format request attribute
  9265. * * $default
  9266. *
  9267. * @see getPreferredFormat
  9268. * @return string|null The request format
  9269. * @static
  9270. */
  9271. public static function getRequestFormat($default = 'html')
  9272. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9273. /** @var \Illuminate\Http\Request $instance */
  9274. return $instance->getRequestFormat($default);
  9275. }
  9276. /**
  9277. * Sets the request format.
  9278. *
  9279. * @static
  9280. */
  9281. public static function setRequestFormat($format)
  9282. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9283. /** @var \Illuminate\Http\Request $instance */
  9284. return $instance->setRequestFormat($format);
  9285. }
  9286. /**
  9287. * Gets the format associated with the request.
  9288. *
  9289. * @return string|null The format (null if no content type is present)
  9290. * @static
  9291. */
  9292. public static function getContentType()
  9293. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9294. /** @var \Illuminate\Http\Request $instance */
  9295. return $instance->getContentType();
  9296. }
  9297. /**
  9298. * Sets the default locale.
  9299. *
  9300. * @static
  9301. */
  9302. public static function setDefaultLocale($locale)
  9303. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9304. /** @var \Illuminate\Http\Request $instance */
  9305. return $instance->setDefaultLocale($locale);
  9306. }
  9307. /**
  9308. * Get the default locale.
  9309. *
  9310. * @return string
  9311. * @static
  9312. */
  9313. public static function getDefaultLocale()
  9314. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9315. /** @var \Illuminate\Http\Request $instance */
  9316. return $instance->getDefaultLocale();
  9317. }
  9318. /**
  9319. * Sets the locale.
  9320. *
  9321. * @static
  9322. */
  9323. public static function setLocale($locale)
  9324. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9325. /** @var \Illuminate\Http\Request $instance */
  9326. return $instance->setLocale($locale);
  9327. }
  9328. /**
  9329. * Get the locale.
  9330. *
  9331. * @return string
  9332. * @static
  9333. */
  9334. public static function getLocale()
  9335. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9336. /** @var \Illuminate\Http\Request $instance */
  9337. return $instance->getLocale();
  9338. }
  9339. /**
  9340. * Checks if the request method is of specified type.
  9341. *
  9342. * @param string $method Uppercase request method (GET, POST etc)
  9343. * @return bool
  9344. * @static
  9345. */
  9346. public static function isMethod($method)
  9347. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9348. /** @var \Illuminate\Http\Request $instance */
  9349. return $instance->isMethod($method);
  9350. }
  9351. /**
  9352. * Checks whether or not the method is safe.
  9353. *
  9354. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  9355. * @return bool
  9356. * @static
  9357. */
  9358. public static function isMethodSafe()
  9359. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9360. /** @var \Illuminate\Http\Request $instance */
  9361. return $instance->isMethodSafe();
  9362. }
  9363. /**
  9364. * Checks whether or not the method is idempotent.
  9365. *
  9366. * @return bool
  9367. * @static
  9368. */
  9369. public static function isMethodIdempotent()
  9370. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9371. /** @var \Illuminate\Http\Request $instance */
  9372. return $instance->isMethodIdempotent();
  9373. }
  9374. /**
  9375. * Checks whether the method is cacheable or not.
  9376. *
  9377. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  9378. * @return bool True for GET and HEAD, false otherwise
  9379. * @static
  9380. */
  9381. public static function isMethodCacheable()
  9382. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9383. /** @var \Illuminate\Http\Request $instance */
  9384. return $instance->isMethodCacheable();
  9385. }
  9386. /**
  9387. * Returns the protocol version.
  9388. *
  9389. * If the application is behind a proxy, the protocol version used in the
  9390. * requests between the client and the proxy and between the proxy and the
  9391. * server might be different. This returns the former (from the "Via" header)
  9392. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  9393. * the latter (from the "SERVER_PROTOCOL" server parameter).
  9394. *
  9395. * @return string
  9396. * @static
  9397. */
  9398. public static function getProtocolVersion()
  9399. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9400. /** @var \Illuminate\Http\Request $instance */
  9401. return $instance->getProtocolVersion();
  9402. }
  9403. /**
  9404. * Returns the request body content.
  9405. *
  9406. * @param bool $asResource If true, a resource will be returned
  9407. * @return string|resource The request body content or a resource to read the body stream
  9408. * @throws \LogicException
  9409. * @static
  9410. */
  9411. public static function getContent($asResource = false)
  9412. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9413. /** @var \Illuminate\Http\Request $instance */
  9414. return $instance->getContent($asResource);
  9415. }
  9416. /**
  9417. * Gets the Etags.
  9418. *
  9419. * @return array The entity tags
  9420. * @static
  9421. */
  9422. public static function getETags()
  9423. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9424. /** @var \Illuminate\Http\Request $instance */
  9425. return $instance->getETags();
  9426. }
  9427. /**
  9428. *
  9429. *
  9430. * @return bool
  9431. * @static
  9432. */
  9433. public static function isNoCache()
  9434. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9435. /** @var \Illuminate\Http\Request $instance */
  9436. return $instance->isNoCache();
  9437. }
  9438. /**
  9439. * Gets the preferred format for the response by inspecting, in the following order:
  9440. * * the request format set using setRequestFormat;
  9441. * * the values of the Accept HTTP header.
  9442. *
  9443. * Note that if you use this method, you should send the "Vary: Accept" header
  9444. * in the response to prevent any issues with intermediary HTTP caches.
  9445. *
  9446. * @static
  9447. */
  9448. public static function getPreferredFormat($default = 'html')
  9449. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9450. /** @var \Illuminate\Http\Request $instance */
  9451. return $instance->getPreferredFormat($default);
  9452. }
  9453. /**
  9454. * Returns the preferred language.
  9455. *
  9456. * @param string[] $locales An array of ordered available locales
  9457. * @return string|null The preferred locale
  9458. * @static
  9459. */
  9460. public static function getPreferredLanguage($locales = null)
  9461. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9462. /** @var \Illuminate\Http\Request $instance */
  9463. return $instance->getPreferredLanguage($locales);
  9464. }
  9465. /**
  9466. * Gets a list of languages acceptable by the client browser.
  9467. *
  9468. * @return array Languages ordered in the user browser preferences
  9469. * @static
  9470. */
  9471. public static function getLanguages()
  9472. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9473. /** @var \Illuminate\Http\Request $instance */
  9474. return $instance->getLanguages();
  9475. }
  9476. /**
  9477. * Gets a list of charsets acceptable by the client browser.
  9478. *
  9479. * @return array List of charsets in preferable order
  9480. * @static
  9481. */
  9482. public static function getCharsets()
  9483. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9484. /** @var \Illuminate\Http\Request $instance */
  9485. return $instance->getCharsets();
  9486. }
  9487. /**
  9488. * Gets a list of encodings acceptable by the client browser.
  9489. *
  9490. * @return array List of encodings in preferable order
  9491. * @static
  9492. */
  9493. public static function getEncodings()
  9494. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9495. /** @var \Illuminate\Http\Request $instance */
  9496. return $instance->getEncodings();
  9497. }
  9498. /**
  9499. * Gets a list of content types acceptable by the client browser.
  9500. *
  9501. * @return array List of content types in preferable order
  9502. * @static
  9503. */
  9504. public static function getAcceptableContentTypes()
  9505. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9506. /** @var \Illuminate\Http\Request $instance */
  9507. return $instance->getAcceptableContentTypes();
  9508. }
  9509. /**
  9510. * Returns true if the request is a XMLHttpRequest.
  9511. *
  9512. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  9513. * It is known to work with common JavaScript frameworks:
  9514. *
  9515. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  9516. * @return bool true if the request is an XMLHttpRequest, false otherwise
  9517. * @static
  9518. */
  9519. public static function isXmlHttpRequest()
  9520. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9521. /** @var \Illuminate\Http\Request $instance */
  9522. return $instance->isXmlHttpRequest();
  9523. }
  9524. /**
  9525. * Checks whether the client browser prefers safe content or not according to RFC8674.
  9526. *
  9527. * @see https://tools.ietf.org/html/rfc8674
  9528. * @static
  9529. */
  9530. public static function preferSafeContent()
  9531. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9532. /** @var \Illuminate\Http\Request $instance */
  9533. return $instance->preferSafeContent();
  9534. }
  9535. /**
  9536. * Indicates whether this request originated from a trusted proxy.
  9537. *
  9538. * This can be useful to determine whether or not to trust the
  9539. * contents of a proxy-specific header.
  9540. *
  9541. * @return bool true if the request came from a trusted proxy, false otherwise
  9542. * @static
  9543. */
  9544. public static function isFromTrustedProxy()
  9545. { //Method inherited from \Symfony\Component\HttpFoundation\Request
  9546. /** @var \Illuminate\Http\Request $instance */
  9547. return $instance->isFromTrustedProxy();
  9548. }
  9549. /**
  9550. * Determine if the given content types match.
  9551. *
  9552. * @param string $actual
  9553. * @param string $type
  9554. * @return bool
  9555. * @static
  9556. */
  9557. public static function matchesType($actual, $type)
  9558. {
  9559. return \Illuminate\Http\Request::matchesType($actual, $type);
  9560. }
  9561. /**
  9562. * Determine if the request is sending JSON.
  9563. *
  9564. * @return bool
  9565. * @static
  9566. */
  9567. public static function isJson()
  9568. {
  9569. /** @var \Illuminate\Http\Request $instance */
  9570. return $instance->isJson();
  9571. }
  9572. /**
  9573. * Determine if the current request probably expects a JSON response.
  9574. *
  9575. * @return bool
  9576. * @static
  9577. */
  9578. public static function expectsJson()
  9579. {
  9580. /** @var \Illuminate\Http\Request $instance */
  9581. return $instance->expectsJson();
  9582. }
  9583. /**
  9584. * Determine if the current request is asking for JSON.
  9585. *
  9586. * @return bool
  9587. * @static
  9588. */
  9589. public static function wantsJson()
  9590. {
  9591. /** @var \Illuminate\Http\Request $instance */
  9592. return $instance->wantsJson();
  9593. }
  9594. /**
  9595. * Determines whether the current requests accepts a given content type.
  9596. *
  9597. * @param string|array $contentTypes
  9598. * @return bool
  9599. * @static
  9600. */
  9601. public static function accepts($contentTypes)
  9602. {
  9603. /** @var \Illuminate\Http\Request $instance */
  9604. return $instance->accepts($contentTypes);
  9605. }
  9606. /**
  9607. * Return the most suitable content type from the given array based on content negotiation.
  9608. *
  9609. * @param string|array $contentTypes
  9610. * @return string|null
  9611. * @static
  9612. */
  9613. public static function prefers($contentTypes)
  9614. {
  9615. /** @var \Illuminate\Http\Request $instance */
  9616. return $instance->prefers($contentTypes);
  9617. }
  9618. /**
  9619. * Determine if the current request accepts any content type.
  9620. *
  9621. * @return bool
  9622. * @static
  9623. */
  9624. public static function acceptsAnyContentType()
  9625. {
  9626. /** @var \Illuminate\Http\Request $instance */
  9627. return $instance->acceptsAnyContentType();
  9628. }
  9629. /**
  9630. * Determines whether a request accepts JSON.
  9631. *
  9632. * @return bool
  9633. * @static
  9634. */
  9635. public static function acceptsJson()
  9636. {
  9637. /** @var \Illuminate\Http\Request $instance */
  9638. return $instance->acceptsJson();
  9639. }
  9640. /**
  9641. * Determines whether a request accepts HTML.
  9642. *
  9643. * @return bool
  9644. * @static
  9645. */
  9646. public static function acceptsHtml()
  9647. {
  9648. /** @var \Illuminate\Http\Request $instance */
  9649. return $instance->acceptsHtml();
  9650. }
  9651. /**
  9652. * Get the data format expected in the response.
  9653. *
  9654. * @param string $default
  9655. * @return string
  9656. * @static
  9657. */
  9658. public static function format($default = 'html')
  9659. {
  9660. /** @var \Illuminate\Http\Request $instance */
  9661. return $instance->format($default);
  9662. }
  9663. /**
  9664. * Retrieve an old input item.
  9665. *
  9666. * @param string|null $key
  9667. * @param string|array|null $default
  9668. * @return string|array
  9669. * @static
  9670. */
  9671. public static function old($key = null, $default = null)
  9672. {
  9673. /** @var \Illuminate\Http\Request $instance */
  9674. return $instance->old($key, $default);
  9675. }
  9676. /**
  9677. * Flash the input for the current request to the session.
  9678. *
  9679. * @return void
  9680. * @static
  9681. */
  9682. public static function flash()
  9683. {
  9684. /** @var \Illuminate\Http\Request $instance */
  9685. $instance->flash();
  9686. }
  9687. /**
  9688. * Flash only some of the input to the session.
  9689. *
  9690. * @param array|mixed $keys
  9691. * @return void
  9692. * @static
  9693. */
  9694. public static function flashOnly($keys)
  9695. {
  9696. /** @var \Illuminate\Http\Request $instance */
  9697. $instance->flashOnly($keys);
  9698. }
  9699. /**
  9700. * Flash only some of the input to the session.
  9701. *
  9702. * @param array|mixed $keys
  9703. * @return void
  9704. * @static
  9705. */
  9706. public static function flashExcept($keys)
  9707. {
  9708. /** @var \Illuminate\Http\Request $instance */
  9709. $instance->flashExcept($keys);
  9710. }
  9711. /**
  9712. * Flush all of the old input from the session.
  9713. *
  9714. * @return void
  9715. * @static
  9716. */
  9717. public static function flush()
  9718. {
  9719. /** @var \Illuminate\Http\Request $instance */
  9720. $instance->flush();
  9721. }
  9722. /**
  9723. * Retrieve a server variable from the request.
  9724. *
  9725. * @param string|null $key
  9726. * @param string|array|null $default
  9727. * @return string|array|null
  9728. * @static
  9729. */
  9730. public static function server($key = null, $default = null)
  9731. {
  9732. /** @var \Illuminate\Http\Request $instance */
  9733. return $instance->server($key, $default);
  9734. }
  9735. /**
  9736. * Determine if a header is set on the request.
  9737. *
  9738. * @param string $key
  9739. * @return bool
  9740. * @static
  9741. */
  9742. public static function hasHeader($key)
  9743. {
  9744. /** @var \Illuminate\Http\Request $instance */
  9745. return $instance->hasHeader($key);
  9746. }
  9747. /**
  9748. * Retrieve a header from the request.
  9749. *
  9750. * @param string|null $key
  9751. * @param string|array|null $default
  9752. * @return string|array|null
  9753. * @static
  9754. */
  9755. public static function header($key = null, $default = null)
  9756. {
  9757. /** @var \Illuminate\Http\Request $instance */
  9758. return $instance->header($key, $default);
  9759. }
  9760. /**
  9761. * Get the bearer token from the request headers.
  9762. *
  9763. * @return string|null
  9764. * @static
  9765. */
  9766. public static function bearerToken()
  9767. {
  9768. /** @var \Illuminate\Http\Request $instance */
  9769. return $instance->bearerToken();
  9770. }
  9771. /**
  9772. * Determine if the request contains a given input item key.
  9773. *
  9774. * @param string|array $key
  9775. * @return bool
  9776. * @static
  9777. */
  9778. public static function exists($key)
  9779. {
  9780. /** @var \Illuminate\Http\Request $instance */
  9781. return $instance->exists($key);
  9782. }
  9783. /**
  9784. * Determine if the request contains a given input item key.
  9785. *
  9786. * @param string|array $key
  9787. * @return bool
  9788. * @static
  9789. */
  9790. public static function has($key)
  9791. {
  9792. /** @var \Illuminate\Http\Request $instance */
  9793. return $instance->has($key);
  9794. }
  9795. /**
  9796. * Determine if the request contains any of the given inputs.
  9797. *
  9798. * @param string|array $keys
  9799. * @return bool
  9800. * @static
  9801. */
  9802. public static function hasAny($keys)
  9803. {
  9804. /** @var \Illuminate\Http\Request $instance */
  9805. return $instance->hasAny($keys);
  9806. }
  9807. /**
  9808. * Apply the callback if the request contains the given input item key.
  9809. *
  9810. * @param string $key
  9811. * @param callable $callback
  9812. * @return $this|mixed
  9813. * @static
  9814. */
  9815. public static function whenHas($key, $callback)
  9816. {
  9817. /** @var \Illuminate\Http\Request $instance */
  9818. return $instance->whenHas($key, $callback);
  9819. }
  9820. /**
  9821. * Determine if the request contains a non-empty value for an input item.
  9822. *
  9823. * @param string|array $key
  9824. * @return bool
  9825. * @static
  9826. */
  9827. public static function filled($key)
  9828. {
  9829. /** @var \Illuminate\Http\Request $instance */
  9830. return $instance->filled($key);
  9831. }
  9832. /**
  9833. * Determine if the request contains an empty value for an input item.
  9834. *
  9835. * @param string|array $key
  9836. * @return bool
  9837. * @static
  9838. */
  9839. public static function isNotFilled($key)
  9840. {
  9841. /** @var \Illuminate\Http\Request $instance */
  9842. return $instance->isNotFilled($key);
  9843. }
  9844. /**
  9845. * Determine if the request contains a non-empty value for any of the given inputs.
  9846. *
  9847. * @param string|array $keys
  9848. * @return bool
  9849. * @static
  9850. */
  9851. public static function anyFilled($keys)
  9852. {
  9853. /** @var \Illuminate\Http\Request $instance */
  9854. return $instance->anyFilled($keys);
  9855. }
  9856. /**
  9857. * Apply the callback if the request contains a non-empty value for the given input item key.
  9858. *
  9859. * @param string $key
  9860. * @param callable $callback
  9861. * @return $this|mixed
  9862. * @static
  9863. */
  9864. public static function whenFilled($key, $callback)
  9865. {
  9866. /** @var \Illuminate\Http\Request $instance */
  9867. return $instance->whenFilled($key, $callback);
  9868. }
  9869. /**
  9870. * Determine if the request is missing a given input item key.
  9871. *
  9872. * @param string|array $key
  9873. * @return bool
  9874. * @static
  9875. */
  9876. public static function missing($key)
  9877. {
  9878. /** @var \Illuminate\Http\Request $instance */
  9879. return $instance->missing($key);
  9880. }
  9881. /**
  9882. * Get the keys for all of the input and files.
  9883. *
  9884. * @return array
  9885. * @static
  9886. */
  9887. public static function keys()
  9888. {
  9889. /** @var \Illuminate\Http\Request $instance */
  9890. return $instance->keys();
  9891. }
  9892. /**
  9893. * Get all of the input and files for the request.
  9894. *
  9895. * @param array|mixed|null $keys
  9896. * @return array
  9897. * @static
  9898. */
  9899. public static function all($keys = null)
  9900. {
  9901. /** @var \Illuminate\Http\Request $instance */
  9902. return $instance->all($keys);
  9903. }
  9904. /**
  9905. * Retrieve an input item from the request.
  9906. *
  9907. * @param string|null $key
  9908. * @param mixed $default
  9909. * @return mixed
  9910. * @static
  9911. */
  9912. public static function input($key = null, $default = null)
  9913. {
  9914. /** @var \Illuminate\Http\Request $instance */
  9915. return $instance->input($key, $default);
  9916. }
  9917. /**
  9918. * Retrieve input as a boolean value.
  9919. *
  9920. * Returns true when value is "1", "true", "on", and "yes". Otherwise, returns false.
  9921. *
  9922. * @param string|null $key
  9923. * @param bool $default
  9924. * @return bool
  9925. * @static
  9926. */
  9927. public static function boolean($key = null, $default = false)
  9928. {
  9929. /** @var \Illuminate\Http\Request $instance */
  9930. return $instance->boolean($key, $default);
  9931. }
  9932. /**
  9933. * Get a subset containing the provided keys with values from the input data.
  9934. *
  9935. * @param array|mixed $keys
  9936. * @return array
  9937. * @static
  9938. */
  9939. public static function only($keys)
  9940. {
  9941. /** @var \Illuminate\Http\Request $instance */
  9942. return $instance->only($keys);
  9943. }
  9944. /**
  9945. * Get all of the input except for a specified array of items.
  9946. *
  9947. * @param array|mixed $keys
  9948. * @return array
  9949. * @static
  9950. */
  9951. public static function except($keys)
  9952. {
  9953. /** @var \Illuminate\Http\Request $instance */
  9954. return $instance->except($keys);
  9955. }
  9956. /**
  9957. * Retrieve a query string item from the request.
  9958. *
  9959. * @param string|null $key
  9960. * @param string|array|null $default
  9961. * @return string|array|null
  9962. * @static
  9963. */
  9964. public static function query($key = null, $default = null)
  9965. {
  9966. /** @var \Illuminate\Http\Request $instance */
  9967. return $instance->query($key, $default);
  9968. }
  9969. /**
  9970. * Retrieve a request payload item from the request.
  9971. *
  9972. * @param string|null $key
  9973. * @param string|array|null $default
  9974. * @return string|array|null
  9975. * @static
  9976. */
  9977. public static function post($key = null, $default = null)
  9978. {
  9979. /** @var \Illuminate\Http\Request $instance */
  9980. return $instance->post($key, $default);
  9981. }
  9982. /**
  9983. * Determine if a cookie is set on the request.
  9984. *
  9985. * @param string $key
  9986. * @return bool
  9987. * @static
  9988. */
  9989. public static function hasCookie($key)
  9990. {
  9991. /** @var \Illuminate\Http\Request $instance */
  9992. return $instance->hasCookie($key);
  9993. }
  9994. /**
  9995. * Retrieve a cookie from the request.
  9996. *
  9997. * @param string|null $key
  9998. * @param string|array|null $default
  9999. * @return string|array|null
  10000. * @static
  10001. */
  10002. public static function cookie($key = null, $default = null)
  10003. {
  10004. /** @var \Illuminate\Http\Request $instance */
  10005. return $instance->cookie($key, $default);
  10006. }
  10007. /**
  10008. * Get an array of all of the files on the request.
  10009. *
  10010. * @return array
  10011. * @static
  10012. */
  10013. public static function allFiles()
  10014. {
  10015. /** @var \Illuminate\Http\Request $instance */
  10016. return $instance->allFiles();
  10017. }
  10018. /**
  10019. * Determine if the uploaded data contains a file.
  10020. *
  10021. * @param string $key
  10022. * @return bool
  10023. * @static
  10024. */
  10025. public static function hasFile($key)
  10026. {
  10027. /** @var \Illuminate\Http\Request $instance */
  10028. return $instance->hasFile($key);
  10029. }
  10030. /**
  10031. * Retrieve a file from the request.
  10032. *
  10033. * @param string|null $key
  10034. * @param mixed $default
  10035. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  10036. * @static
  10037. */
  10038. public static function file($key = null, $default = null)
  10039. {
  10040. /** @var \Illuminate\Http\Request $instance */
  10041. return $instance->file($key, $default);
  10042. }
  10043. /**
  10044. * Register a custom macro.
  10045. *
  10046. * @param string $name
  10047. * @param object|callable $macro
  10048. * @return void
  10049. * @static
  10050. */
  10051. public static function macro($name, $macro)
  10052. {
  10053. \Illuminate\Http\Request::macro($name, $macro);
  10054. }
  10055. /**
  10056. * Mix another object into the class.
  10057. *
  10058. * @param object $mixin
  10059. * @param bool $replace
  10060. * @return void
  10061. * @throws \ReflectionException
  10062. * @static
  10063. */
  10064. public static function mixin($mixin, $replace = true)
  10065. {
  10066. \Illuminate\Http\Request::mixin($mixin, $replace);
  10067. }
  10068. /**
  10069. * Checks if macro is registered.
  10070. *
  10071. * @param string $name
  10072. * @return bool
  10073. * @static
  10074. */
  10075. public static function hasMacro($name)
  10076. {
  10077. return \Illuminate\Http\Request::hasMacro($name);
  10078. }
  10079. /**
  10080. *
  10081. *
  10082. * @static
  10083. */
  10084. public static function validate($rules, ...$params)
  10085. {
  10086. return \Illuminate\Http\Request::validate($rules, ...$params);
  10087. }
  10088. /**
  10089. *
  10090. *
  10091. * @static
  10092. */
  10093. public static function validateWithBag($errorBag, $rules, ...$params)
  10094. {
  10095. return \Illuminate\Http\Request::validateWithBag($errorBag, $rules, ...$params);
  10096. }
  10097. /**
  10098. *
  10099. *
  10100. * @static
  10101. */
  10102. public static function hasValidSignature($absolute = true)
  10103. {
  10104. return \Illuminate\Http\Request::hasValidSignature($absolute);
  10105. }
  10106. }
  10107. /**
  10108. *
  10109. *
  10110. * @see \Illuminate\Contracts\Routing\ResponseFactory
  10111. */
  10112. class Response {
  10113. /**
  10114. * Create a new response instance.
  10115. *
  10116. * @param string $content
  10117. * @param int $status
  10118. * @param array $headers
  10119. * @return \Illuminate\Http\Response
  10120. * @static
  10121. */
  10122. public static function make($content = '', $status = 200, $headers = [])
  10123. {
  10124. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10125. return $instance->make($content, $status, $headers);
  10126. }
  10127. /**
  10128. * Create a new "no content" response.
  10129. *
  10130. * @param int $status
  10131. * @param array $headers
  10132. * @return \Illuminate\Http\Response
  10133. * @static
  10134. */
  10135. public static function noContent($status = 204, $headers = [])
  10136. {
  10137. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10138. return $instance->noContent($status, $headers);
  10139. }
  10140. /**
  10141. * Create a new response for a given view.
  10142. *
  10143. * @param string|array $view
  10144. * @param array $data
  10145. * @param int $status
  10146. * @param array $headers
  10147. * @return \Illuminate\Http\Response
  10148. * @static
  10149. */
  10150. public static function view($view, $data = [], $status = 200, $headers = [])
  10151. {
  10152. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10153. return $instance->view($view, $data, $status, $headers);
  10154. }
  10155. /**
  10156. * Create a new JSON response instance.
  10157. *
  10158. * @param mixed $data
  10159. * @param int $status
  10160. * @param array $headers
  10161. * @param int $options
  10162. * @return \Illuminate\Http\JsonResponse
  10163. * @static
  10164. */
  10165. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  10166. {
  10167. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10168. return $instance->json($data, $status, $headers, $options);
  10169. }
  10170. /**
  10171. * Create a new JSONP response instance.
  10172. *
  10173. * @param string $callback
  10174. * @param mixed $data
  10175. * @param int $status
  10176. * @param array $headers
  10177. * @param int $options
  10178. * @return \Illuminate\Http\JsonResponse
  10179. * @static
  10180. */
  10181. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  10182. {
  10183. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10184. return $instance->jsonp($callback, $data, $status, $headers, $options);
  10185. }
  10186. /**
  10187. * Create a new streamed response instance.
  10188. *
  10189. * @param \Closure $callback
  10190. * @param int $status
  10191. * @param array $headers
  10192. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  10193. * @static
  10194. */
  10195. public static function stream($callback, $status = 200, $headers = [])
  10196. {
  10197. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10198. return $instance->stream($callback, $status, $headers);
  10199. }
  10200. /**
  10201. * Create a new streamed response instance as a file download.
  10202. *
  10203. * @param \Closure $callback
  10204. * @param string|null $name
  10205. * @param array $headers
  10206. * @param string|null $disposition
  10207. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  10208. * @static
  10209. */
  10210. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  10211. {
  10212. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10213. return $instance->streamDownload($callback, $name, $headers, $disposition);
  10214. }
  10215. /**
  10216. * Create a new file download response.
  10217. *
  10218. * @param \SplFileInfo|string $file
  10219. * @param string|null $name
  10220. * @param array $headers
  10221. * @param string|null $disposition
  10222. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  10223. * @static
  10224. */
  10225. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  10226. {
  10227. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10228. return $instance->download($file, $name, $headers, $disposition);
  10229. }
  10230. /**
  10231. * Return the raw contents of a binary file.
  10232. *
  10233. * @param \SplFileInfo|string $file
  10234. * @param array $headers
  10235. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  10236. * @static
  10237. */
  10238. public static function file($file, $headers = [])
  10239. {
  10240. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10241. return $instance->file($file, $headers);
  10242. }
  10243. /**
  10244. * Create a new redirect response to the given path.
  10245. *
  10246. * @param string $path
  10247. * @param int $status
  10248. * @param array $headers
  10249. * @param bool|null $secure
  10250. * @return \Illuminate\Http\RedirectResponse
  10251. * @static
  10252. */
  10253. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  10254. {
  10255. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10256. return $instance->redirectTo($path, $status, $headers, $secure);
  10257. }
  10258. /**
  10259. * Create a new redirect response to a named route.
  10260. *
  10261. * @param string $route
  10262. * @param mixed $parameters
  10263. * @param int $status
  10264. * @param array $headers
  10265. * @return \Illuminate\Http\RedirectResponse
  10266. * @static
  10267. */
  10268. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  10269. {
  10270. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10271. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  10272. }
  10273. /**
  10274. * Create a new redirect response to a controller action.
  10275. *
  10276. * @param string $action
  10277. * @param mixed $parameters
  10278. * @param int $status
  10279. * @param array $headers
  10280. * @return \Illuminate\Http\RedirectResponse
  10281. * @static
  10282. */
  10283. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  10284. {
  10285. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10286. return $instance->redirectToAction($action, $parameters, $status, $headers);
  10287. }
  10288. /**
  10289. * Create a new redirect response, while putting the current URL in the session.
  10290. *
  10291. * @param string $path
  10292. * @param int $status
  10293. * @param array $headers
  10294. * @param bool|null $secure
  10295. * @return \Illuminate\Http\RedirectResponse
  10296. * @static
  10297. */
  10298. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  10299. {
  10300. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10301. return $instance->redirectGuest($path, $status, $headers, $secure);
  10302. }
  10303. /**
  10304. * Create a new redirect response to the previously intended location.
  10305. *
  10306. * @param string $default
  10307. * @param int $status
  10308. * @param array $headers
  10309. * @param bool|null $secure
  10310. * @return \Illuminate\Http\RedirectResponse
  10311. * @static
  10312. */
  10313. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  10314. {
  10315. /** @var \Illuminate\Routing\ResponseFactory $instance */
  10316. return $instance->redirectToIntended($default, $status, $headers, $secure);
  10317. }
  10318. /**
  10319. * Register a custom macro.
  10320. *
  10321. * @param string $name
  10322. * @param object|callable $macro
  10323. * @return void
  10324. * @static
  10325. */
  10326. public static function macro($name, $macro)
  10327. {
  10328. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  10329. }
  10330. /**
  10331. * Mix another object into the class.
  10332. *
  10333. * @param object $mixin
  10334. * @param bool $replace
  10335. * @return void
  10336. * @throws \ReflectionException
  10337. * @static
  10338. */
  10339. public static function mixin($mixin, $replace = true)
  10340. {
  10341. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  10342. }
  10343. /**
  10344. * Checks if macro is registered.
  10345. *
  10346. * @param string $name
  10347. * @return bool
  10348. * @static
  10349. */
  10350. public static function hasMacro($name)
  10351. {
  10352. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  10353. }
  10354. }
  10355. /**
  10356. *
  10357. *
  10358. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  10359. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  10360. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  10361. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  10362. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  10363. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  10364. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  10365. * @see \Illuminate\Routing\Router
  10366. */
  10367. class Route {
  10368. /**
  10369. * Register a new GET route with the router.
  10370. *
  10371. * @param string $uri
  10372. * @param array|string|callable|null $action
  10373. * @return \Illuminate\Routing\Route
  10374. * @static
  10375. */
  10376. public static function get($uri, $action = null)
  10377. {
  10378. /** @var \Illuminate\Routing\Router $instance */
  10379. return $instance->get($uri, $action);
  10380. }
  10381. /**
  10382. * Register a new POST route with the router.
  10383. *
  10384. * @param string $uri
  10385. * @param array|string|callable|null $action
  10386. * @return \Illuminate\Routing\Route
  10387. * @static
  10388. */
  10389. public static function post($uri, $action = null)
  10390. {
  10391. /** @var \Illuminate\Routing\Router $instance */
  10392. return $instance->post($uri, $action);
  10393. }
  10394. /**
  10395. * Register a new PUT route with the router.
  10396. *
  10397. * @param string $uri
  10398. * @param array|string|callable|null $action
  10399. * @return \Illuminate\Routing\Route
  10400. * @static
  10401. */
  10402. public static function put($uri, $action = null)
  10403. {
  10404. /** @var \Illuminate\Routing\Router $instance */
  10405. return $instance->put($uri, $action);
  10406. }
  10407. /**
  10408. * Register a new PATCH route with the router.
  10409. *
  10410. * @param string $uri
  10411. * @param array|string|callable|null $action
  10412. * @return \Illuminate\Routing\Route
  10413. * @static
  10414. */
  10415. public static function patch($uri, $action = null)
  10416. {
  10417. /** @var \Illuminate\Routing\Router $instance */
  10418. return $instance->patch($uri, $action);
  10419. }
  10420. /**
  10421. * Register a new DELETE route with the router.
  10422. *
  10423. * @param string $uri
  10424. * @param array|string|callable|null $action
  10425. * @return \Illuminate\Routing\Route
  10426. * @static
  10427. */
  10428. public static function delete($uri, $action = null)
  10429. {
  10430. /** @var \Illuminate\Routing\Router $instance */
  10431. return $instance->delete($uri, $action);
  10432. }
  10433. /**
  10434. * Register a new OPTIONS route with the router.
  10435. *
  10436. * @param string $uri
  10437. * @param array|string|callable|null $action
  10438. * @return \Illuminate\Routing\Route
  10439. * @static
  10440. */
  10441. public static function options($uri, $action = null)
  10442. {
  10443. /** @var \Illuminate\Routing\Router $instance */
  10444. return $instance->options($uri, $action);
  10445. }
  10446. /**
  10447. * Register a new route responding to all verbs.
  10448. *
  10449. * @param string $uri
  10450. * @param array|string|callable|null $action
  10451. * @return \Illuminate\Routing\Route
  10452. * @static
  10453. */
  10454. public static function any($uri, $action = null)
  10455. {
  10456. /** @var \Illuminate\Routing\Router $instance */
  10457. return $instance->any($uri, $action);
  10458. }
  10459. /**
  10460. * Register a new Fallback route with the router.
  10461. *
  10462. * @param array|string|callable|null $action
  10463. * @return \Illuminate\Routing\Route
  10464. * @static
  10465. */
  10466. public static function fallback($action)
  10467. {
  10468. /** @var \Illuminate\Routing\Router $instance */
  10469. return $instance->fallback($action);
  10470. }
  10471. /**
  10472. * Create a redirect from one URI to another.
  10473. *
  10474. * @param string $uri
  10475. * @param string $destination
  10476. * @param int $status
  10477. * @return \Illuminate\Routing\Route
  10478. * @static
  10479. */
  10480. public static function redirect($uri, $destination, $status = 302)
  10481. {
  10482. /** @var \Illuminate\Routing\Router $instance */
  10483. return $instance->redirect($uri, $destination, $status);
  10484. }
  10485. /**
  10486. * Create a permanent redirect from one URI to another.
  10487. *
  10488. * @param string $uri
  10489. * @param string $destination
  10490. * @return \Illuminate\Routing\Route
  10491. * @static
  10492. */
  10493. public static function permanentRedirect($uri, $destination)
  10494. {
  10495. /** @var \Illuminate\Routing\Router $instance */
  10496. return $instance->permanentRedirect($uri, $destination);
  10497. }
  10498. /**
  10499. * Register a new route that returns a view.
  10500. *
  10501. * @param string $uri
  10502. * @param string $view
  10503. * @param array $data
  10504. * @return \Illuminate\Routing\Route
  10505. * @static
  10506. */
  10507. public static function view($uri, $view, $data = [])
  10508. {
  10509. /** @var \Illuminate\Routing\Router $instance */
  10510. return $instance->view($uri, $view, $data);
  10511. }
  10512. /**
  10513. * Register a new route with the given verbs.
  10514. *
  10515. * @param array|string $methods
  10516. * @param string $uri
  10517. * @param array|string|callable|null $action
  10518. * @return \Illuminate\Routing\Route
  10519. * @static
  10520. */
  10521. public static function match($methods, $uri, $action = null)
  10522. {
  10523. /** @var \Illuminate\Routing\Router $instance */
  10524. return $instance->match($methods, $uri, $action);
  10525. }
  10526. /**
  10527. * Register an array of resource controllers.
  10528. *
  10529. * @param array $resources
  10530. * @param array $options
  10531. * @return void
  10532. * @static
  10533. */
  10534. public static function resources($resources, $options = [])
  10535. {
  10536. /** @var \Illuminate\Routing\Router $instance */
  10537. $instance->resources($resources, $options);
  10538. }
  10539. /**
  10540. * Route a resource to a controller.
  10541. *
  10542. * @param string $name
  10543. * @param string $controller
  10544. * @param array $options
  10545. * @return \Illuminate\Routing\PendingResourceRegistration
  10546. * @static
  10547. */
  10548. public static function resource($name, $controller, $options = [])
  10549. {
  10550. /** @var \Illuminate\Routing\Router $instance */
  10551. return $instance->resource($name, $controller, $options);
  10552. }
  10553. /**
  10554. * Register an array of API resource controllers.
  10555. *
  10556. * @param array $resources
  10557. * @param array $options
  10558. * @return void
  10559. * @static
  10560. */
  10561. public static function apiResources($resources, $options = [])
  10562. {
  10563. /** @var \Illuminate\Routing\Router $instance */
  10564. $instance->apiResources($resources, $options);
  10565. }
  10566. /**
  10567. * Route an API resource to a controller.
  10568. *
  10569. * @param string $name
  10570. * @param string $controller
  10571. * @param array $options
  10572. * @return \Illuminate\Routing\PendingResourceRegistration
  10573. * @static
  10574. */
  10575. public static function apiResource($name, $controller, $options = [])
  10576. {
  10577. /** @var \Illuminate\Routing\Router $instance */
  10578. return $instance->apiResource($name, $controller, $options);
  10579. }
  10580. /**
  10581. * Create a route group with shared attributes.
  10582. *
  10583. * @param array $attributes
  10584. * @param \Closure|string $routes
  10585. * @return void
  10586. * @static
  10587. */
  10588. public static function group($attributes, $routes)
  10589. {
  10590. /** @var \Illuminate\Routing\Router $instance */
  10591. $instance->group($attributes, $routes);
  10592. }
  10593. /**
  10594. * Merge the given array with the last group stack.
  10595. *
  10596. * @param array $new
  10597. * @param bool $prependExistingPrefix
  10598. * @return array
  10599. * @static
  10600. */
  10601. public static function mergeWithLastGroup($new, $prependExistingPrefix = true)
  10602. {
  10603. /** @var \Illuminate\Routing\Router $instance */
  10604. return $instance->mergeWithLastGroup($new, $prependExistingPrefix);
  10605. }
  10606. /**
  10607. * Get the prefix from the last group on the stack.
  10608. *
  10609. * @return string
  10610. * @static
  10611. */
  10612. public static function getLastGroupPrefix()
  10613. {
  10614. /** @var \Illuminate\Routing\Router $instance */
  10615. return $instance->getLastGroupPrefix();
  10616. }
  10617. /**
  10618. * Add a route to the underlying route collection.
  10619. *
  10620. * @param array|string $methods
  10621. * @param string $uri
  10622. * @param array|string|callable|null $action
  10623. * @return \Illuminate\Routing\Route
  10624. * @static
  10625. */
  10626. public static function addRoute($methods, $uri, $action)
  10627. {
  10628. /** @var \Illuminate\Routing\Router $instance */
  10629. return $instance->addRoute($methods, $uri, $action);
  10630. }
  10631. /**
  10632. * Create a new Route object.
  10633. *
  10634. * @param array|string $methods
  10635. * @param string $uri
  10636. * @param mixed $action
  10637. * @return \Illuminate\Routing\Route
  10638. * @static
  10639. */
  10640. public static function newRoute($methods, $uri, $action)
  10641. {
  10642. /** @var \Illuminate\Routing\Router $instance */
  10643. return $instance->newRoute($methods, $uri, $action);
  10644. }
  10645. /**
  10646. * Return the response returned by the given route.
  10647. *
  10648. * @param string $name
  10649. * @return \Symfony\Component\HttpFoundation\Response
  10650. * @static
  10651. */
  10652. public static function respondWithRoute($name)
  10653. {
  10654. /** @var \Illuminate\Routing\Router $instance */
  10655. return $instance->respondWithRoute($name);
  10656. }
  10657. /**
  10658. * Dispatch the request to the application.
  10659. *
  10660. * @param \Illuminate\Http\Request $request
  10661. * @return \Symfony\Component\HttpFoundation\Response
  10662. * @static
  10663. */
  10664. public static function dispatch($request)
  10665. {
  10666. /** @var \Illuminate\Routing\Router $instance */
  10667. return $instance->dispatch($request);
  10668. }
  10669. /**
  10670. * Dispatch the request to a route and return the response.
  10671. *
  10672. * @param \Illuminate\Http\Request $request
  10673. * @return \Symfony\Component\HttpFoundation\Response
  10674. * @static
  10675. */
  10676. public static function dispatchToRoute($request)
  10677. {
  10678. /** @var \Illuminate\Routing\Router $instance */
  10679. return $instance->dispatchToRoute($request);
  10680. }
  10681. /**
  10682. * Gather the middleware for the given route with resolved class names.
  10683. *
  10684. * @param \Illuminate\Routing\Route $route
  10685. * @return array
  10686. * @static
  10687. */
  10688. public static function gatherRouteMiddleware($route)
  10689. {
  10690. /** @var \Illuminate\Routing\Router $instance */
  10691. return $instance->gatherRouteMiddleware($route);
  10692. }
  10693. /**
  10694. * Create a response instance from the given value.
  10695. *
  10696. * @param \Symfony\Component\HttpFoundation\Request $request
  10697. * @param mixed $response
  10698. * @return \Symfony\Component\HttpFoundation\Response
  10699. * @static
  10700. */
  10701. public static function prepareResponse($request, $response)
  10702. {
  10703. /** @var \Illuminate\Routing\Router $instance */
  10704. return $instance->prepareResponse($request, $response);
  10705. }
  10706. /**
  10707. * Static version of prepareResponse.
  10708. *
  10709. * @param \Symfony\Component\HttpFoundation\Request $request
  10710. * @param mixed $response
  10711. * @return \Symfony\Component\HttpFoundation\Response
  10712. * @static
  10713. */
  10714. public static function toResponse($request, $response)
  10715. {
  10716. return \Illuminate\Routing\Router::toResponse($request, $response);
  10717. }
  10718. /**
  10719. * Substitute the route bindings onto the route.
  10720. *
  10721. * @param \Illuminate\Routing\Route $route
  10722. * @return \Illuminate\Routing\Route
  10723. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10724. * @static
  10725. */
  10726. public static function substituteBindings($route)
  10727. {
  10728. /** @var \Illuminate\Routing\Router $instance */
  10729. return $instance->substituteBindings($route);
  10730. }
  10731. /**
  10732. * Substitute the implicit Eloquent model bindings for the route.
  10733. *
  10734. * @param \Illuminate\Routing\Route $route
  10735. * @return void
  10736. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10737. * @static
  10738. */
  10739. public static function substituteImplicitBindings($route)
  10740. {
  10741. /** @var \Illuminate\Routing\Router $instance */
  10742. $instance->substituteImplicitBindings($route);
  10743. }
  10744. /**
  10745. * Register a route matched event listener.
  10746. *
  10747. * @param string|callable $callback
  10748. * @return void
  10749. * @static
  10750. */
  10751. public static function matched($callback)
  10752. {
  10753. /** @var \Illuminate\Routing\Router $instance */
  10754. $instance->matched($callback);
  10755. }
  10756. /**
  10757. * Get all of the defined middleware short-hand names.
  10758. *
  10759. * @return array
  10760. * @static
  10761. */
  10762. public static function getMiddleware()
  10763. {
  10764. /** @var \Illuminate\Routing\Router $instance */
  10765. return $instance->getMiddleware();
  10766. }
  10767. /**
  10768. * Register a short-hand name for a middleware.
  10769. *
  10770. * @param string $name
  10771. * @param string $class
  10772. * @return \Illuminate\Routing\Router
  10773. * @static
  10774. */
  10775. public static function aliasMiddleware($name, $class)
  10776. {
  10777. /** @var \Illuminate\Routing\Router $instance */
  10778. return $instance->aliasMiddleware($name, $class);
  10779. }
  10780. /**
  10781. * Check if a middlewareGroup with the given name exists.
  10782. *
  10783. * @param string $name
  10784. * @return bool
  10785. * @static
  10786. */
  10787. public static function hasMiddlewareGroup($name)
  10788. {
  10789. /** @var \Illuminate\Routing\Router $instance */
  10790. return $instance->hasMiddlewareGroup($name);
  10791. }
  10792. /**
  10793. * Get all of the defined middleware groups.
  10794. *
  10795. * @return array
  10796. * @static
  10797. */
  10798. public static function getMiddlewareGroups()
  10799. {
  10800. /** @var \Illuminate\Routing\Router $instance */
  10801. return $instance->getMiddlewareGroups();
  10802. }
  10803. /**
  10804. * Register a group of middleware.
  10805. *
  10806. * @param string $name
  10807. * @param array $middleware
  10808. * @return \Illuminate\Routing\Router
  10809. * @static
  10810. */
  10811. public static function middlewareGroup($name, $middleware)
  10812. {
  10813. /** @var \Illuminate\Routing\Router $instance */
  10814. return $instance->middlewareGroup($name, $middleware);
  10815. }
  10816. /**
  10817. * Add a middleware to the beginning of a middleware group.
  10818. *
  10819. * If the middleware is already in the group, it will not be added again.
  10820. *
  10821. * @param string $group
  10822. * @param string $middleware
  10823. * @return \Illuminate\Routing\Router
  10824. * @static
  10825. */
  10826. public static function prependMiddlewareToGroup($group, $middleware)
  10827. {
  10828. /** @var \Illuminate\Routing\Router $instance */
  10829. return $instance->prependMiddlewareToGroup($group, $middleware);
  10830. }
  10831. /**
  10832. * Add a middleware to the end of a middleware group.
  10833. *
  10834. * If the middleware is already in the group, it will not be added again.
  10835. *
  10836. * @param string $group
  10837. * @param string $middleware
  10838. * @return \Illuminate\Routing\Router
  10839. * @static
  10840. */
  10841. public static function pushMiddlewareToGroup($group, $middleware)
  10842. {
  10843. /** @var \Illuminate\Routing\Router $instance */
  10844. return $instance->pushMiddlewareToGroup($group, $middleware);
  10845. }
  10846. /**
  10847. * Add a new route parameter binder.
  10848. *
  10849. * @param string $key
  10850. * @param string|callable $binder
  10851. * @return void
  10852. * @static
  10853. */
  10854. public static function bind($key, $binder)
  10855. {
  10856. /** @var \Illuminate\Routing\Router $instance */
  10857. $instance->bind($key, $binder);
  10858. }
  10859. /**
  10860. * Register a model binder for a wildcard.
  10861. *
  10862. * @param string $key
  10863. * @param string $class
  10864. * @param \Closure|null $callback
  10865. * @return void
  10866. * @static
  10867. */
  10868. public static function model($key, $class, $callback = null)
  10869. {
  10870. /** @var \Illuminate\Routing\Router $instance */
  10871. $instance->model($key, $class, $callback);
  10872. }
  10873. /**
  10874. * Get the binding callback for a given binding.
  10875. *
  10876. * @param string $key
  10877. * @return \Closure|null
  10878. * @static
  10879. */
  10880. public static function getBindingCallback($key)
  10881. {
  10882. /** @var \Illuminate\Routing\Router $instance */
  10883. return $instance->getBindingCallback($key);
  10884. }
  10885. /**
  10886. * Get the global "where" patterns.
  10887. *
  10888. * @return array
  10889. * @static
  10890. */
  10891. public static function getPatterns()
  10892. {
  10893. /** @var \Illuminate\Routing\Router $instance */
  10894. return $instance->getPatterns();
  10895. }
  10896. /**
  10897. * Set a global where pattern on all routes.
  10898. *
  10899. * @param string $key
  10900. * @param string $pattern
  10901. * @return void
  10902. * @static
  10903. */
  10904. public static function pattern($key, $pattern)
  10905. {
  10906. /** @var \Illuminate\Routing\Router $instance */
  10907. $instance->pattern($key, $pattern);
  10908. }
  10909. /**
  10910. * Set a group of global where patterns on all routes.
  10911. *
  10912. * @param array $patterns
  10913. * @return void
  10914. * @static
  10915. */
  10916. public static function patterns($patterns)
  10917. {
  10918. /** @var \Illuminate\Routing\Router $instance */
  10919. $instance->patterns($patterns);
  10920. }
  10921. /**
  10922. * Determine if the router currently has a group stack.
  10923. *
  10924. * @return bool
  10925. * @static
  10926. */
  10927. public static function hasGroupStack()
  10928. {
  10929. /** @var \Illuminate\Routing\Router $instance */
  10930. return $instance->hasGroupStack();
  10931. }
  10932. /**
  10933. * Get the current group stack for the router.
  10934. *
  10935. * @return array
  10936. * @static
  10937. */
  10938. public static function getGroupStack()
  10939. {
  10940. /** @var \Illuminate\Routing\Router $instance */
  10941. return $instance->getGroupStack();
  10942. }
  10943. /**
  10944. * Get a route parameter for the current route.
  10945. *
  10946. * @param string $key
  10947. * @param string|null $default
  10948. * @return mixed
  10949. * @static
  10950. */
  10951. public static function input($key, $default = null)
  10952. {
  10953. /** @var \Illuminate\Routing\Router $instance */
  10954. return $instance->input($key, $default);
  10955. }
  10956. /**
  10957. * Get the request currently being dispatched.
  10958. *
  10959. * @return \Illuminate\Http\Request
  10960. * @static
  10961. */
  10962. public static function getCurrentRequest()
  10963. {
  10964. /** @var \Illuminate\Routing\Router $instance */
  10965. return $instance->getCurrentRequest();
  10966. }
  10967. /**
  10968. * Get the currently dispatched route instance.
  10969. *
  10970. * @return \Illuminate\Routing\Route
  10971. * @static
  10972. */
  10973. public static function getCurrentRoute()
  10974. {
  10975. /** @var \Illuminate\Routing\Router $instance */
  10976. return $instance->getCurrentRoute();
  10977. }
  10978. /**
  10979. * Get the currently dispatched route instance.
  10980. *
  10981. * @return \Illuminate\Routing\Route|null
  10982. * @static
  10983. */
  10984. public static function current()
  10985. {
  10986. /** @var \Illuminate\Routing\Router $instance */
  10987. return $instance->current();
  10988. }
  10989. /**
  10990. * Check if a route with the given name exists.
  10991. *
  10992. * @param string $name
  10993. * @return bool
  10994. * @static
  10995. */
  10996. public static function has($name)
  10997. {
  10998. /** @var \Illuminate\Routing\Router $instance */
  10999. return $instance->has($name);
  11000. }
  11001. /**
  11002. * Get the current route name.
  11003. *
  11004. * @return string|null
  11005. * @static
  11006. */
  11007. public static function currentRouteName()
  11008. {
  11009. /** @var \Illuminate\Routing\Router $instance */
  11010. return $instance->currentRouteName();
  11011. }
  11012. /**
  11013. * Alias for the "currentRouteNamed" method.
  11014. *
  11015. * @param mixed $patterns
  11016. * @return bool
  11017. * @static
  11018. */
  11019. public static function is(...$patterns)
  11020. {
  11021. /** @var \Illuminate\Routing\Router $instance */
  11022. return $instance->is(...$patterns);
  11023. }
  11024. /**
  11025. * Determine if the current route matches a pattern.
  11026. *
  11027. * @param mixed $patterns
  11028. * @return bool
  11029. * @static
  11030. */
  11031. public static function currentRouteNamed(...$patterns)
  11032. {
  11033. /** @var \Illuminate\Routing\Router $instance */
  11034. return $instance->currentRouteNamed(...$patterns);
  11035. }
  11036. /**
  11037. * Get the current route action.
  11038. *
  11039. * @return string|null
  11040. * @static
  11041. */
  11042. public static function currentRouteAction()
  11043. {
  11044. /** @var \Illuminate\Routing\Router $instance */
  11045. return $instance->currentRouteAction();
  11046. }
  11047. /**
  11048. * Alias for the "currentRouteUses" method.
  11049. *
  11050. * @param array $patterns
  11051. * @return bool
  11052. * @static
  11053. */
  11054. public static function uses(...$patterns)
  11055. {
  11056. /** @var \Illuminate\Routing\Router $instance */
  11057. return $instance->uses(...$patterns);
  11058. }
  11059. /**
  11060. * Determine if the current route action matches a given action.
  11061. *
  11062. * @param string $action
  11063. * @return bool
  11064. * @static
  11065. */
  11066. public static function currentRouteUses($action)
  11067. {
  11068. /** @var \Illuminate\Routing\Router $instance */
  11069. return $instance->currentRouteUses($action);
  11070. }
  11071. /**
  11072. * Set the unmapped global resource parameters to singular.
  11073. *
  11074. * @param bool $singular
  11075. * @return void
  11076. * @static
  11077. */
  11078. public static function singularResourceParameters($singular = true)
  11079. {
  11080. /** @var \Illuminate\Routing\Router $instance */
  11081. $instance->singularResourceParameters($singular);
  11082. }
  11083. /**
  11084. * Set the global resource parameter mapping.
  11085. *
  11086. * @param array $parameters
  11087. * @return void
  11088. * @static
  11089. */
  11090. public static function resourceParameters($parameters = [])
  11091. {
  11092. /** @var \Illuminate\Routing\Router $instance */
  11093. $instance->resourceParameters($parameters);
  11094. }
  11095. /**
  11096. * Get or set the verbs used in the resource URIs.
  11097. *
  11098. * @param array $verbs
  11099. * @return array|null
  11100. * @static
  11101. */
  11102. public static function resourceVerbs($verbs = [])
  11103. {
  11104. /** @var \Illuminate\Routing\Router $instance */
  11105. return $instance->resourceVerbs($verbs);
  11106. }
  11107. /**
  11108. * Get the underlying route collection.
  11109. *
  11110. * @return \Illuminate\Routing\RouteCollectionInterface
  11111. * @static
  11112. */
  11113. public static function getRoutes()
  11114. {
  11115. /** @var \Illuminate\Routing\Router $instance */
  11116. return $instance->getRoutes();
  11117. }
  11118. /**
  11119. * Set the route collection instance.
  11120. *
  11121. * @param \Illuminate\Routing\RouteCollection $routes
  11122. * @return void
  11123. * @static
  11124. */
  11125. public static function setRoutes($routes)
  11126. {
  11127. /** @var \Illuminate\Routing\Router $instance */
  11128. $instance->setRoutes($routes);
  11129. }
  11130. /**
  11131. * Set the compiled route collection instance.
  11132. *
  11133. * @param array $routes
  11134. * @return void
  11135. * @static
  11136. */
  11137. public static function setCompiledRoutes($routes)
  11138. {
  11139. /** @var \Illuminate\Routing\Router $instance */
  11140. $instance->setCompiledRoutes($routes);
  11141. }
  11142. /**
  11143. * Register a custom macro.
  11144. *
  11145. * @param string $name
  11146. * @param object|callable $macro
  11147. * @return void
  11148. * @static
  11149. */
  11150. public static function macro($name, $macro)
  11151. {
  11152. \Illuminate\Routing\Router::macro($name, $macro);
  11153. }
  11154. /**
  11155. * Mix another object into the class.
  11156. *
  11157. * @param object $mixin
  11158. * @param bool $replace
  11159. * @return void
  11160. * @throws \ReflectionException
  11161. * @static
  11162. */
  11163. public static function mixin($mixin, $replace = true)
  11164. {
  11165. \Illuminate\Routing\Router::mixin($mixin, $replace);
  11166. }
  11167. /**
  11168. * Checks if macro is registered.
  11169. *
  11170. * @param string $name
  11171. * @return bool
  11172. * @static
  11173. */
  11174. public static function hasMacro($name)
  11175. {
  11176. return \Illuminate\Routing\Router::hasMacro($name);
  11177. }
  11178. /**
  11179. * Dynamically handle calls to the class.
  11180. *
  11181. * @param string $method
  11182. * @param array $parameters
  11183. * @return mixed
  11184. * @throws \BadMethodCallException
  11185. * @static
  11186. */
  11187. public static function macroCall($method, $parameters)
  11188. {
  11189. /** @var \Illuminate\Routing\Router $instance */
  11190. return $instance->macroCall($method, $parameters);
  11191. }
  11192. }
  11193. /**
  11194. *
  11195. *
  11196. * @see \Illuminate\Database\Schema\Builder
  11197. */
  11198. class Schema {
  11199. /**
  11200. * Determine if the given table exists.
  11201. *
  11202. * @param string $table
  11203. * @return bool
  11204. * @static
  11205. */
  11206. public static function hasTable($table)
  11207. {
  11208. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11209. return $instance->hasTable($table);
  11210. }
  11211. /**
  11212. * Get the column listing for a given table.
  11213. *
  11214. * @param string $table
  11215. * @return array
  11216. * @static
  11217. */
  11218. public static function getColumnListing($table)
  11219. {
  11220. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11221. return $instance->getColumnListing($table);
  11222. }
  11223. /**
  11224. * Drop all tables from the database.
  11225. *
  11226. * @return void
  11227. * @static
  11228. */
  11229. public static function dropAllTables()
  11230. {
  11231. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11232. $instance->dropAllTables();
  11233. }
  11234. /**
  11235. * Drop all views from the database.
  11236. *
  11237. * @return void
  11238. * @static
  11239. */
  11240. public static function dropAllViews()
  11241. {
  11242. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11243. $instance->dropAllViews();
  11244. }
  11245. /**
  11246. * Get all of the table names for the database.
  11247. *
  11248. * @return array
  11249. * @static
  11250. */
  11251. public static function getAllTables()
  11252. {
  11253. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11254. return $instance->getAllTables();
  11255. }
  11256. /**
  11257. * Get all of the view names for the database.
  11258. *
  11259. * @return array
  11260. * @static
  11261. */
  11262. public static function getAllViews()
  11263. {
  11264. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11265. return $instance->getAllViews();
  11266. }
  11267. /**
  11268. * Set the default string length for migrations.
  11269. *
  11270. * @param int $length
  11271. * @return void
  11272. * @static
  11273. */
  11274. public static function defaultStringLength($length)
  11275. { //Method inherited from \Illuminate\Database\Schema\Builder
  11276. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  11277. }
  11278. /**
  11279. * Determine if the given table has a given column.
  11280. *
  11281. * @param string $table
  11282. * @param string $column
  11283. * @return bool
  11284. * @static
  11285. */
  11286. public static function hasColumn($table, $column)
  11287. { //Method inherited from \Illuminate\Database\Schema\Builder
  11288. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11289. return $instance->hasColumn($table, $column);
  11290. }
  11291. /**
  11292. * Determine if the given table has given columns.
  11293. *
  11294. * @param string $table
  11295. * @param array $columns
  11296. * @return bool
  11297. * @static
  11298. */
  11299. public static function hasColumns($table, $columns)
  11300. { //Method inherited from \Illuminate\Database\Schema\Builder
  11301. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11302. return $instance->hasColumns($table, $columns);
  11303. }
  11304. /**
  11305. * Get the data type for the given column name.
  11306. *
  11307. * @param string $table
  11308. * @param string $column
  11309. * @return string
  11310. * @static
  11311. */
  11312. public static function getColumnType($table, $column)
  11313. { //Method inherited from \Illuminate\Database\Schema\Builder
  11314. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11315. return $instance->getColumnType($table, $column);
  11316. }
  11317. /**
  11318. * Modify a table on the schema.
  11319. *
  11320. * @param string $table
  11321. * @param \Closure $callback
  11322. * @return void
  11323. * @static
  11324. */
  11325. public static function table($table, $callback)
  11326. { //Method inherited from \Illuminate\Database\Schema\Builder
  11327. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11328. $instance->table($table, $callback);
  11329. }
  11330. /**
  11331. * Create a new table on the schema.
  11332. *
  11333. * @param string $table
  11334. * @param \Closure $callback
  11335. * @return void
  11336. * @static
  11337. */
  11338. public static function create($table, $callback)
  11339. { //Method inherited from \Illuminate\Database\Schema\Builder
  11340. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11341. $instance->create($table, $callback);
  11342. }
  11343. /**
  11344. * Drop a table from the schema.
  11345. *
  11346. * @param string $table
  11347. * @return void
  11348. * @static
  11349. */
  11350. public static function drop($table)
  11351. { //Method inherited from \Illuminate\Database\Schema\Builder
  11352. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11353. $instance->drop($table);
  11354. }
  11355. /**
  11356. * Drop a table from the schema if it exists.
  11357. *
  11358. * @param string $table
  11359. * @return void
  11360. * @static
  11361. */
  11362. public static function dropIfExists($table)
  11363. { //Method inherited from \Illuminate\Database\Schema\Builder
  11364. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11365. $instance->dropIfExists($table);
  11366. }
  11367. /**
  11368. * Drop all types from the database.
  11369. *
  11370. * @return void
  11371. * @throws \LogicException
  11372. * @static
  11373. */
  11374. public static function dropAllTypes()
  11375. { //Method inherited from \Illuminate\Database\Schema\Builder
  11376. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11377. $instance->dropAllTypes();
  11378. }
  11379. /**
  11380. * Rename a table on the schema.
  11381. *
  11382. * @param string $from
  11383. * @param string $to
  11384. * @return void
  11385. * @static
  11386. */
  11387. public static function rename($from, $to)
  11388. { //Method inherited from \Illuminate\Database\Schema\Builder
  11389. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11390. $instance->rename($from, $to);
  11391. }
  11392. /**
  11393. * Enable foreign key constraints.
  11394. *
  11395. * @return bool
  11396. * @static
  11397. */
  11398. public static function enableForeignKeyConstraints()
  11399. { //Method inherited from \Illuminate\Database\Schema\Builder
  11400. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11401. return $instance->enableForeignKeyConstraints();
  11402. }
  11403. /**
  11404. * Disable foreign key constraints.
  11405. *
  11406. * @return bool
  11407. * @static
  11408. */
  11409. public static function disableForeignKeyConstraints()
  11410. { //Method inherited from \Illuminate\Database\Schema\Builder
  11411. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11412. return $instance->disableForeignKeyConstraints();
  11413. }
  11414. /**
  11415. * Register a custom Doctrine mapping type.
  11416. *
  11417. * @param string $class
  11418. * @param string $name
  11419. * @param string $type
  11420. * @return void
  11421. * @throws \Doctrine\DBAL\DBALException
  11422. * @throws \RuntimeException
  11423. * @static
  11424. */
  11425. public static function registerCustomDoctrineType($class, $name, $type)
  11426. { //Method inherited from \Illuminate\Database\Schema\Builder
  11427. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11428. $instance->registerCustomDoctrineType($class, $name, $type);
  11429. }
  11430. /**
  11431. * Get the database connection instance.
  11432. *
  11433. * @return \Illuminate\Database\Connection
  11434. * @static
  11435. */
  11436. public static function getConnection()
  11437. { //Method inherited from \Illuminate\Database\Schema\Builder
  11438. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11439. return $instance->getConnection();
  11440. }
  11441. /**
  11442. * Set the database connection instance.
  11443. *
  11444. * @param \Illuminate\Database\Connection $connection
  11445. * @return \Illuminate\Database\Schema\MySqlBuilder
  11446. * @static
  11447. */
  11448. public static function setConnection($connection)
  11449. { //Method inherited from \Illuminate\Database\Schema\Builder
  11450. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11451. return $instance->setConnection($connection);
  11452. }
  11453. /**
  11454. * Set the Schema Blueprint resolver callback.
  11455. *
  11456. * @param \Closure $resolver
  11457. * @return void
  11458. * @static
  11459. */
  11460. public static function blueprintResolver($resolver)
  11461. { //Method inherited from \Illuminate\Database\Schema\Builder
  11462. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11463. $instance->blueprintResolver($resolver);
  11464. }
  11465. }
  11466. /**
  11467. *
  11468. *
  11469. * @see \Illuminate\Session\SessionManager
  11470. * @see \Illuminate\Session\Store
  11471. */
  11472. class Session {
  11473. /**
  11474. * Determine if requests for the same session should wait for each to finish before executing.
  11475. *
  11476. * @return bool
  11477. * @static
  11478. */
  11479. public static function shouldBlock()
  11480. {
  11481. /** @var \Illuminate\Session\SessionManager $instance */
  11482. return $instance->shouldBlock();
  11483. }
  11484. /**
  11485. * Get the name of the cache store / driver that should be used to acquire session locks.
  11486. *
  11487. * @return string|null
  11488. * @static
  11489. */
  11490. public static function blockDriver()
  11491. {
  11492. /** @var \Illuminate\Session\SessionManager $instance */
  11493. return $instance->blockDriver();
  11494. }
  11495. /**
  11496. * Get the session configuration.
  11497. *
  11498. * @return array
  11499. * @static
  11500. */
  11501. public static function getSessionConfig()
  11502. {
  11503. /** @var \Illuminate\Session\SessionManager $instance */
  11504. return $instance->getSessionConfig();
  11505. }
  11506. /**
  11507. * Get the default session driver name.
  11508. *
  11509. * @return string
  11510. * @static
  11511. */
  11512. public static function getDefaultDriver()
  11513. {
  11514. /** @var \Illuminate\Session\SessionManager $instance */
  11515. return $instance->getDefaultDriver();
  11516. }
  11517. /**
  11518. * Set the default session driver name.
  11519. *
  11520. * @param string $name
  11521. * @return void
  11522. * @static
  11523. */
  11524. public static function setDefaultDriver($name)
  11525. {
  11526. /** @var \Illuminate\Session\SessionManager $instance */
  11527. $instance->setDefaultDriver($name);
  11528. }
  11529. /**
  11530. * Get a driver instance.
  11531. *
  11532. * @param string|null $driver
  11533. * @return mixed
  11534. * @throws \InvalidArgumentException
  11535. * @static
  11536. */
  11537. public static function driver($driver = null)
  11538. { //Method inherited from \Illuminate\Support\Manager
  11539. /** @var \Illuminate\Session\SessionManager $instance */
  11540. return $instance->driver($driver);
  11541. }
  11542. /**
  11543. * Register a custom driver creator Closure.
  11544. *
  11545. * @param string $driver
  11546. * @param \Closure $callback
  11547. * @return \Illuminate\Session\SessionManager
  11548. * @static
  11549. */
  11550. public static function extend($driver, $callback)
  11551. { //Method inherited from \Illuminate\Support\Manager
  11552. /** @var \Illuminate\Session\SessionManager $instance */
  11553. return $instance->extend($driver, $callback);
  11554. }
  11555. /**
  11556. * Get all of the created "drivers".
  11557. *
  11558. * @return array
  11559. * @static
  11560. */
  11561. public static function getDrivers()
  11562. { //Method inherited from \Illuminate\Support\Manager
  11563. /** @var \Illuminate\Session\SessionManager $instance */
  11564. return $instance->getDrivers();
  11565. }
  11566. /**
  11567. * Start the session, reading the data from a handler.
  11568. *
  11569. * @return bool
  11570. * @static
  11571. */
  11572. public static function start()
  11573. {
  11574. /** @var \Illuminate\Session\Store $instance */
  11575. return $instance->start();
  11576. }
  11577. /**
  11578. * Save the session data to storage.
  11579. *
  11580. * @return void
  11581. * @static
  11582. */
  11583. public static function save()
  11584. {
  11585. /** @var \Illuminate\Session\Store $instance */
  11586. $instance->save();
  11587. }
  11588. /**
  11589. * Age the flash data for the session.
  11590. *
  11591. * @return void
  11592. * @static
  11593. */
  11594. public static function ageFlashData()
  11595. {
  11596. /** @var \Illuminate\Session\Store $instance */
  11597. $instance->ageFlashData();
  11598. }
  11599. /**
  11600. * Get all of the session data.
  11601. *
  11602. * @return array
  11603. * @static
  11604. */
  11605. public static function all()
  11606. {
  11607. /** @var \Illuminate\Session\Store $instance */
  11608. return $instance->all();
  11609. }
  11610. /**
  11611. * Get a subset of the session data.
  11612. *
  11613. * @param array $keys
  11614. * @return array
  11615. * @static
  11616. */
  11617. public static function only($keys)
  11618. {
  11619. /** @var \Illuminate\Session\Store $instance */
  11620. return $instance->only($keys);
  11621. }
  11622. /**
  11623. * Checks if a key exists.
  11624. *
  11625. * @param string|array $key
  11626. * @return bool
  11627. * @static
  11628. */
  11629. public static function exists($key)
  11630. {
  11631. /** @var \Illuminate\Session\Store $instance */
  11632. return $instance->exists($key);
  11633. }
  11634. /**
  11635. * Checks if a key is present and not null.
  11636. *
  11637. * @param string|array $key
  11638. * @return bool
  11639. * @static
  11640. */
  11641. public static function has($key)
  11642. {
  11643. /** @var \Illuminate\Session\Store $instance */
  11644. return $instance->has($key);
  11645. }
  11646. /**
  11647. * Get an item from the session.
  11648. *
  11649. * @param string $key
  11650. * @param mixed $default
  11651. * @return mixed
  11652. * @static
  11653. */
  11654. public static function get($key, $default = null)
  11655. {
  11656. /** @var \Illuminate\Session\Store $instance */
  11657. return $instance->get($key, $default);
  11658. }
  11659. /**
  11660. * Get the value of a given key and then forget it.
  11661. *
  11662. * @param string $key
  11663. * @param mixed $default
  11664. * @return mixed
  11665. * @static
  11666. */
  11667. public static function pull($key, $default = null)
  11668. {
  11669. /** @var \Illuminate\Session\Store $instance */
  11670. return $instance->pull($key, $default);
  11671. }
  11672. /**
  11673. * Determine if the session contains old input.
  11674. *
  11675. * @param string|null $key
  11676. * @return bool
  11677. * @static
  11678. */
  11679. public static function hasOldInput($key = null)
  11680. {
  11681. /** @var \Illuminate\Session\Store $instance */
  11682. return $instance->hasOldInput($key);
  11683. }
  11684. /**
  11685. * Get the requested item from the flashed input array.
  11686. *
  11687. * @param string|null $key
  11688. * @param mixed $default
  11689. * @return mixed
  11690. * @static
  11691. */
  11692. public static function getOldInput($key = null, $default = null)
  11693. {
  11694. /** @var \Illuminate\Session\Store $instance */
  11695. return $instance->getOldInput($key, $default);
  11696. }
  11697. /**
  11698. * Replace the given session attributes entirely.
  11699. *
  11700. * @param array $attributes
  11701. * @return void
  11702. * @static
  11703. */
  11704. public static function replace($attributes)
  11705. {
  11706. /** @var \Illuminate\Session\Store $instance */
  11707. $instance->replace($attributes);
  11708. }
  11709. /**
  11710. * Put a key / value pair or array of key / value pairs in the session.
  11711. *
  11712. * @param string|array $key
  11713. * @param mixed $value
  11714. * @return void
  11715. * @static
  11716. */
  11717. public static function put($key, $value = null)
  11718. {
  11719. /** @var \Illuminate\Session\Store $instance */
  11720. $instance->put($key, $value);
  11721. }
  11722. /**
  11723. * Get an item from the session, or store the default value.
  11724. *
  11725. * @param string $key
  11726. * @param \Closure $callback
  11727. * @return mixed
  11728. * @static
  11729. */
  11730. public static function remember($key, $callback)
  11731. {
  11732. /** @var \Illuminate\Session\Store $instance */
  11733. return $instance->remember($key, $callback);
  11734. }
  11735. /**
  11736. * Push a value onto a session array.
  11737. *
  11738. * @param string $key
  11739. * @param mixed $value
  11740. * @return void
  11741. * @static
  11742. */
  11743. public static function push($key, $value)
  11744. {
  11745. /** @var \Illuminate\Session\Store $instance */
  11746. $instance->push($key, $value);
  11747. }
  11748. /**
  11749. * Increment the value of an item in the session.
  11750. *
  11751. * @param string $key
  11752. * @param int $amount
  11753. * @return mixed
  11754. * @static
  11755. */
  11756. public static function increment($key, $amount = 1)
  11757. {
  11758. /** @var \Illuminate\Session\Store $instance */
  11759. return $instance->increment($key, $amount);
  11760. }
  11761. /**
  11762. * Decrement the value of an item in the session.
  11763. *
  11764. * @param string $key
  11765. * @param int $amount
  11766. * @return int
  11767. * @static
  11768. */
  11769. public static function decrement($key, $amount = 1)
  11770. {
  11771. /** @var \Illuminate\Session\Store $instance */
  11772. return $instance->decrement($key, $amount);
  11773. }
  11774. /**
  11775. * Flash a key / value pair to the session.
  11776. *
  11777. * @param string $key
  11778. * @param mixed $value
  11779. * @return void
  11780. * @static
  11781. */
  11782. public static function flash($key, $value = true)
  11783. {
  11784. /** @var \Illuminate\Session\Store $instance */
  11785. $instance->flash($key, $value);
  11786. }
  11787. /**
  11788. * Flash a key / value pair to the session for immediate use.
  11789. *
  11790. * @param string $key
  11791. * @param mixed $value
  11792. * @return void
  11793. * @static
  11794. */
  11795. public static function now($key, $value)
  11796. {
  11797. /** @var \Illuminate\Session\Store $instance */
  11798. $instance->now($key, $value);
  11799. }
  11800. /**
  11801. * Reflash all of the session flash data.
  11802. *
  11803. * @return void
  11804. * @static
  11805. */
  11806. public static function reflash()
  11807. {
  11808. /** @var \Illuminate\Session\Store $instance */
  11809. $instance->reflash();
  11810. }
  11811. /**
  11812. * Reflash a subset of the current flash data.
  11813. *
  11814. * @param array|mixed $keys
  11815. * @return void
  11816. * @static
  11817. */
  11818. public static function keep($keys = null)
  11819. {
  11820. /** @var \Illuminate\Session\Store $instance */
  11821. $instance->keep($keys);
  11822. }
  11823. /**
  11824. * Flash an input array to the session.
  11825. *
  11826. * @param array $value
  11827. * @return void
  11828. * @static
  11829. */
  11830. public static function flashInput($value)
  11831. {
  11832. /** @var \Illuminate\Session\Store $instance */
  11833. $instance->flashInput($value);
  11834. }
  11835. /**
  11836. * Remove an item from the session, returning its value.
  11837. *
  11838. * @param string $key
  11839. * @return mixed
  11840. * @static
  11841. */
  11842. public static function remove($key)
  11843. {
  11844. /** @var \Illuminate\Session\Store $instance */
  11845. return $instance->remove($key);
  11846. }
  11847. /**
  11848. * Remove one or many items from the session.
  11849. *
  11850. * @param string|array $keys
  11851. * @return void
  11852. * @static
  11853. */
  11854. public static function forget($keys)
  11855. {
  11856. /** @var \Illuminate\Session\Store $instance */
  11857. $instance->forget($keys);
  11858. }
  11859. /**
  11860. * Remove all of the items from the session.
  11861. *
  11862. * @return void
  11863. * @static
  11864. */
  11865. public static function flush()
  11866. {
  11867. /** @var \Illuminate\Session\Store $instance */
  11868. $instance->flush();
  11869. }
  11870. /**
  11871. * Flush the session data and regenerate the ID.
  11872. *
  11873. * @return bool
  11874. * @static
  11875. */
  11876. public static function invalidate()
  11877. {
  11878. /** @var \Illuminate\Session\Store $instance */
  11879. return $instance->invalidate();
  11880. }
  11881. /**
  11882. * Generate a new session identifier.
  11883. *
  11884. * @param bool $destroy
  11885. * @return bool
  11886. * @static
  11887. */
  11888. public static function regenerate($destroy = false)
  11889. {
  11890. /** @var \Illuminate\Session\Store $instance */
  11891. return $instance->regenerate($destroy);
  11892. }
  11893. /**
  11894. * Generate a new session ID for the session.
  11895. *
  11896. * @param bool $destroy
  11897. * @return bool
  11898. * @static
  11899. */
  11900. public static function migrate($destroy = false)
  11901. {
  11902. /** @var \Illuminate\Session\Store $instance */
  11903. return $instance->migrate($destroy);
  11904. }
  11905. /**
  11906. * Determine if the session has been started.
  11907. *
  11908. * @return bool
  11909. * @static
  11910. */
  11911. public static function isStarted()
  11912. {
  11913. /** @var \Illuminate\Session\Store $instance */
  11914. return $instance->isStarted();
  11915. }
  11916. /**
  11917. * Get the name of the session.
  11918. *
  11919. * @return string
  11920. * @static
  11921. */
  11922. public static function getName()
  11923. {
  11924. /** @var \Illuminate\Session\Store $instance */
  11925. return $instance->getName();
  11926. }
  11927. /**
  11928. * Set the name of the session.
  11929. *
  11930. * @param string $name
  11931. * @return void
  11932. * @static
  11933. */
  11934. public static function setName($name)
  11935. {
  11936. /** @var \Illuminate\Session\Store $instance */
  11937. $instance->setName($name);
  11938. }
  11939. /**
  11940. * Get the current session ID.
  11941. *
  11942. * @return string
  11943. * @static
  11944. */
  11945. public static function getId()
  11946. {
  11947. /** @var \Illuminate\Session\Store $instance */
  11948. return $instance->getId();
  11949. }
  11950. /**
  11951. * Set the session ID.
  11952. *
  11953. * @param string $id
  11954. * @return void
  11955. * @static
  11956. */
  11957. public static function setId($id)
  11958. {
  11959. /** @var \Illuminate\Session\Store $instance */
  11960. $instance->setId($id);
  11961. }
  11962. /**
  11963. * Determine if this is a valid session ID.
  11964. *
  11965. * @param string $id
  11966. * @return bool
  11967. * @static
  11968. */
  11969. public static function isValidId($id)
  11970. {
  11971. /** @var \Illuminate\Session\Store $instance */
  11972. return $instance->isValidId($id);
  11973. }
  11974. /**
  11975. * Set the existence of the session on the handler if applicable.
  11976. *
  11977. * @param bool $value
  11978. * @return void
  11979. * @static
  11980. */
  11981. public static function setExists($value)
  11982. {
  11983. /** @var \Illuminate\Session\Store $instance */
  11984. $instance->setExists($value);
  11985. }
  11986. /**
  11987. * Get the CSRF token value.
  11988. *
  11989. * @return string
  11990. * @static
  11991. */
  11992. public static function token()
  11993. {
  11994. /** @var \Illuminate\Session\Store $instance */
  11995. return $instance->token();
  11996. }
  11997. /**
  11998. * Regenerate the CSRF token value.
  11999. *
  12000. * @return void
  12001. * @static
  12002. */
  12003. public static function regenerateToken()
  12004. {
  12005. /** @var \Illuminate\Session\Store $instance */
  12006. $instance->regenerateToken();
  12007. }
  12008. /**
  12009. * Get the previous URL from the session.
  12010. *
  12011. * @return string|null
  12012. * @static
  12013. */
  12014. public static function previousUrl()
  12015. {
  12016. /** @var \Illuminate\Session\Store $instance */
  12017. return $instance->previousUrl();
  12018. }
  12019. /**
  12020. * Set the "previous" URL in the session.
  12021. *
  12022. * @param string $url
  12023. * @return void
  12024. * @static
  12025. */
  12026. public static function setPreviousUrl($url)
  12027. {
  12028. /** @var \Illuminate\Session\Store $instance */
  12029. $instance->setPreviousUrl($url);
  12030. }
  12031. /**
  12032. * Get the underlying session handler implementation.
  12033. *
  12034. * @return \SessionHandlerInterface
  12035. * @static
  12036. */
  12037. public static function getHandler()
  12038. {
  12039. /** @var \Illuminate\Session\Store $instance */
  12040. return $instance->getHandler();
  12041. }
  12042. /**
  12043. * Determine if the session handler needs a request.
  12044. *
  12045. * @return bool
  12046. * @static
  12047. */
  12048. public static function handlerNeedsRequest()
  12049. {
  12050. /** @var \Illuminate\Session\Store $instance */
  12051. return $instance->handlerNeedsRequest();
  12052. }
  12053. /**
  12054. * Set the request on the handler instance.
  12055. *
  12056. * @param \Illuminate\Http\Request $request
  12057. * @return void
  12058. * @static
  12059. */
  12060. public static function setRequestOnHandler($request)
  12061. {
  12062. /** @var \Illuminate\Session\Store $instance */
  12063. $instance->setRequestOnHandler($request);
  12064. }
  12065. }
  12066. /**
  12067. *
  12068. *
  12069. * @see \Illuminate\Filesystem\FilesystemManager
  12070. */
  12071. class Storage {
  12072. /**
  12073. * Get a filesystem instance.
  12074. *
  12075. * @param string|null $name
  12076. * @return \Illuminate\Filesystem\FilesystemAdapter
  12077. * @static
  12078. */
  12079. public static function drive($name = null)
  12080. {
  12081. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12082. return $instance->drive($name);
  12083. }
  12084. /**
  12085. * Get a filesystem instance.
  12086. *
  12087. * @param string|null $name
  12088. * @return \Illuminate\Filesystem\FilesystemAdapter
  12089. * @static
  12090. */
  12091. public static function disk($name = null)
  12092. {
  12093. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12094. return $instance->disk($name);
  12095. }
  12096. /**
  12097. * Get a default cloud filesystem instance.
  12098. *
  12099. * @return \Illuminate\Filesystem\FilesystemAdapter
  12100. * @static
  12101. */
  12102. public static function cloud()
  12103. {
  12104. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12105. return $instance->cloud();
  12106. }
  12107. /**
  12108. * Create an instance of the local driver.
  12109. *
  12110. * @param array $config
  12111. * @return \Illuminate\Filesystem\FilesystemAdapter
  12112. * @static
  12113. */
  12114. public static function createLocalDriver($config)
  12115. {
  12116. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12117. return $instance->createLocalDriver($config);
  12118. }
  12119. /**
  12120. * Create an instance of the ftp driver.
  12121. *
  12122. * @param array $config
  12123. * @return \Illuminate\Filesystem\FilesystemAdapter
  12124. * @static
  12125. */
  12126. public static function createFtpDriver($config)
  12127. {
  12128. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12129. return $instance->createFtpDriver($config);
  12130. }
  12131. /**
  12132. * Create an instance of the sftp driver.
  12133. *
  12134. * @param array $config
  12135. * @return \Illuminate\Filesystem\FilesystemAdapter
  12136. * @static
  12137. */
  12138. public static function createSftpDriver($config)
  12139. {
  12140. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12141. return $instance->createSftpDriver($config);
  12142. }
  12143. /**
  12144. * Create an instance of the Amazon S3 driver.
  12145. *
  12146. * @param array $config
  12147. * @return \Illuminate\Contracts\Filesystem\Cloud
  12148. * @static
  12149. */
  12150. public static function createS3Driver($config)
  12151. {
  12152. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12153. return $instance->createS3Driver($config);
  12154. }
  12155. /**
  12156. * Set the given disk instance.
  12157. *
  12158. * @param string $name
  12159. * @param mixed $disk
  12160. * @return \Illuminate\Filesystem\FilesystemManager
  12161. * @static
  12162. */
  12163. public static function set($name, $disk)
  12164. {
  12165. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12166. return $instance->set($name, $disk);
  12167. }
  12168. /**
  12169. * Get the default driver name.
  12170. *
  12171. * @return string
  12172. * @static
  12173. */
  12174. public static function getDefaultDriver()
  12175. {
  12176. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12177. return $instance->getDefaultDriver();
  12178. }
  12179. /**
  12180. * Get the default cloud driver name.
  12181. *
  12182. * @return string
  12183. * @static
  12184. */
  12185. public static function getDefaultCloudDriver()
  12186. {
  12187. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12188. return $instance->getDefaultCloudDriver();
  12189. }
  12190. /**
  12191. * Unset the given disk instances.
  12192. *
  12193. * @param array|string $disk
  12194. * @return \Illuminate\Filesystem\FilesystemManager
  12195. * @static
  12196. */
  12197. public static function forgetDisk($disk)
  12198. {
  12199. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12200. return $instance->forgetDisk($disk);
  12201. }
  12202. /**
  12203. * Register a custom driver creator Closure.
  12204. *
  12205. * @param string $driver
  12206. * @param \Closure $callback
  12207. * @return \Illuminate\Filesystem\FilesystemManager
  12208. * @static
  12209. */
  12210. public static function extend($driver, $callback)
  12211. {
  12212. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  12213. return $instance->extend($driver, $callback);
  12214. }
  12215. /**
  12216. * Assert that the given file exists.
  12217. *
  12218. * @param string|array $path
  12219. * @return \Illuminate\Filesystem\FilesystemAdapter
  12220. * @static
  12221. */
  12222. public static function assertExists($path)
  12223. {
  12224. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12225. return $instance->assertExists($path);
  12226. }
  12227. /**
  12228. * Assert that the given file does not exist.
  12229. *
  12230. * @param string|array $path
  12231. * @return \Illuminate\Filesystem\FilesystemAdapter
  12232. * @static
  12233. */
  12234. public static function assertMissing($path)
  12235. {
  12236. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12237. return $instance->assertMissing($path);
  12238. }
  12239. /**
  12240. * Determine if a file exists.
  12241. *
  12242. * @param string $path
  12243. * @return bool
  12244. * @static
  12245. */
  12246. public static function exists($path)
  12247. {
  12248. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12249. return $instance->exists($path);
  12250. }
  12251. /**
  12252. * Determine if a file or directory is missing.
  12253. *
  12254. * @param string $path
  12255. * @return bool
  12256. * @static
  12257. */
  12258. public static function missing($path)
  12259. {
  12260. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12261. return $instance->missing($path);
  12262. }
  12263. /**
  12264. * Get the full path for the file at the given "short" path.
  12265. *
  12266. * @param string $path
  12267. * @return string
  12268. * @static
  12269. */
  12270. public static function path($path)
  12271. {
  12272. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12273. return $instance->path($path);
  12274. }
  12275. /**
  12276. * Get the contents of a file.
  12277. *
  12278. * @param string $path
  12279. * @return string
  12280. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  12281. * @static
  12282. */
  12283. public static function get($path)
  12284. {
  12285. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12286. return $instance->get($path);
  12287. }
  12288. /**
  12289. * Create a streamed response for a given file.
  12290. *
  12291. * @param string $path
  12292. * @param string|null $name
  12293. * @param array|null $headers
  12294. * @param string|null $disposition
  12295. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12296. * @static
  12297. */
  12298. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  12299. {
  12300. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12301. return $instance->response($path, $name, $headers, $disposition);
  12302. }
  12303. /**
  12304. * Create a streamed download response for a given file.
  12305. *
  12306. * @param string $path
  12307. * @param string|null $name
  12308. * @param array|null $headers
  12309. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  12310. * @static
  12311. */
  12312. public static function download($path, $name = null, $headers = [])
  12313. {
  12314. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12315. return $instance->download($path, $name, $headers);
  12316. }
  12317. /**
  12318. * Write the contents of a file.
  12319. *
  12320. * @param string $path
  12321. * @param string|resource $contents
  12322. * @param mixed $options
  12323. * @return bool
  12324. * @static
  12325. */
  12326. public static function put($path, $contents, $options = [])
  12327. {
  12328. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12329. return $instance->put($path, $contents, $options);
  12330. }
  12331. /**
  12332. * Store the uploaded file on the disk.
  12333. *
  12334. * @param string $path
  12335. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  12336. * @param mixed $options
  12337. * @return string|false
  12338. * @static
  12339. */
  12340. public static function putFile($path, $file, $options = [])
  12341. {
  12342. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12343. return $instance->putFile($path, $file, $options);
  12344. }
  12345. /**
  12346. * Store the uploaded file on the disk with a given name.
  12347. *
  12348. * @param string $path
  12349. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile|string $file
  12350. * @param string $name
  12351. * @param mixed $options
  12352. * @return string|false
  12353. * @static
  12354. */
  12355. public static function putFileAs($path, $file, $name, $options = [])
  12356. {
  12357. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12358. return $instance->putFileAs($path, $file, $name, $options);
  12359. }
  12360. /**
  12361. * Get the visibility for the given path.
  12362. *
  12363. * @param string $path
  12364. * @return string
  12365. * @static
  12366. */
  12367. public static function getVisibility($path)
  12368. {
  12369. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12370. return $instance->getVisibility($path);
  12371. }
  12372. /**
  12373. * Set the visibility for the given path.
  12374. *
  12375. * @param string $path
  12376. * @param string $visibility
  12377. * @return bool
  12378. * @static
  12379. */
  12380. public static function setVisibility($path, $visibility)
  12381. {
  12382. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12383. return $instance->setVisibility($path, $visibility);
  12384. }
  12385. /**
  12386. * Prepend to a file.
  12387. *
  12388. * @param string $path
  12389. * @param string $data
  12390. * @param string $separator
  12391. * @return bool
  12392. * @static
  12393. */
  12394. public static function prepend($path, $data, $separator = '
  12395. ')
  12396. {
  12397. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12398. return $instance->prepend($path, $data, $separator);
  12399. }
  12400. /**
  12401. * Append to a file.
  12402. *
  12403. * @param string $path
  12404. * @param string $data
  12405. * @param string $separator
  12406. * @return bool
  12407. * @static
  12408. */
  12409. public static function append($path, $data, $separator = '
  12410. ')
  12411. {
  12412. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12413. return $instance->append($path, $data, $separator);
  12414. }
  12415. /**
  12416. * Delete the file at a given path.
  12417. *
  12418. * @param string|array $paths
  12419. * @return bool
  12420. * @static
  12421. */
  12422. public static function delete($paths)
  12423. {
  12424. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12425. return $instance->delete($paths);
  12426. }
  12427. /**
  12428. * Copy a file to a new location.
  12429. *
  12430. * @param string $from
  12431. * @param string $to
  12432. * @return bool
  12433. * @static
  12434. */
  12435. public static function copy($from, $to)
  12436. {
  12437. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12438. return $instance->copy($from, $to);
  12439. }
  12440. /**
  12441. * Move a file to a new location.
  12442. *
  12443. * @param string $from
  12444. * @param string $to
  12445. * @return bool
  12446. * @static
  12447. */
  12448. public static function move($from, $to)
  12449. {
  12450. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12451. return $instance->move($from, $to);
  12452. }
  12453. /**
  12454. * Get the file size of a given file.
  12455. *
  12456. * @param string $path
  12457. * @return int
  12458. * @static
  12459. */
  12460. public static function size($path)
  12461. {
  12462. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12463. return $instance->size($path);
  12464. }
  12465. /**
  12466. * Get the mime-type of a given file.
  12467. *
  12468. * @param string $path
  12469. * @return string|false
  12470. * @static
  12471. */
  12472. public static function mimeType($path)
  12473. {
  12474. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12475. return $instance->mimeType($path);
  12476. }
  12477. /**
  12478. * Get the file's last modification time.
  12479. *
  12480. * @param string $path
  12481. * @return int
  12482. * @static
  12483. */
  12484. public static function lastModified($path)
  12485. {
  12486. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12487. return $instance->lastModified($path);
  12488. }
  12489. /**
  12490. * Get the URL for the file at the given path.
  12491. *
  12492. * @param string $path
  12493. * @return string
  12494. * @throws \RuntimeException
  12495. * @static
  12496. */
  12497. public static function url($path)
  12498. {
  12499. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12500. return $instance->url($path);
  12501. }
  12502. /**
  12503. * Get a resource to read the file.
  12504. *
  12505. * @param string $path
  12506. * @return resource|null The path resource or null on failure.
  12507. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  12508. * @static
  12509. */
  12510. public static function readStream($path)
  12511. {
  12512. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12513. return $instance->readStream($path);
  12514. }
  12515. /**
  12516. * Write a new file using a stream.
  12517. *
  12518. * @param string $path
  12519. * @param resource $resource
  12520. * @param array $options
  12521. * @return bool
  12522. * @throws \InvalidArgumentException If $resource is not a file handle.
  12523. * @throws \Illuminate\Contracts\Filesystem\FileExistsException
  12524. * @static
  12525. */
  12526. public static function writeStream($path, $resource, $options = [])
  12527. {
  12528. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12529. return $instance->writeStream($path, $resource, $options);
  12530. }
  12531. /**
  12532. * Get a temporary URL for the file at the given path.
  12533. *
  12534. * @param string $path
  12535. * @param \DateTimeInterface $expiration
  12536. * @param array $options
  12537. * @return string
  12538. * @throws \RuntimeException
  12539. * @static
  12540. */
  12541. public static function temporaryUrl($path, $expiration, $options = [])
  12542. {
  12543. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12544. return $instance->temporaryUrl($path, $expiration, $options);
  12545. }
  12546. /**
  12547. * Get a temporary URL for the file at the given path.
  12548. *
  12549. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  12550. * @param string $path
  12551. * @param \DateTimeInterface $expiration
  12552. * @param array $options
  12553. * @return string
  12554. * @static
  12555. */
  12556. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  12557. {
  12558. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12559. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  12560. }
  12561. /**
  12562. * Get an array of all files in a directory.
  12563. *
  12564. * @param string|null $directory
  12565. * @param bool $recursive
  12566. * @return array
  12567. * @static
  12568. */
  12569. public static function files($directory = null, $recursive = false)
  12570. {
  12571. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12572. return $instance->files($directory, $recursive);
  12573. }
  12574. /**
  12575. * Get all of the files from the given directory (recursive).
  12576. *
  12577. * @param string|null $directory
  12578. * @return array
  12579. * @static
  12580. */
  12581. public static function allFiles($directory = null)
  12582. {
  12583. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12584. return $instance->allFiles($directory);
  12585. }
  12586. /**
  12587. * Get all of the directories within a given directory.
  12588. *
  12589. * @param string|null $directory
  12590. * @param bool $recursive
  12591. * @return array
  12592. * @static
  12593. */
  12594. public static function directories($directory = null, $recursive = false)
  12595. {
  12596. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12597. return $instance->directories($directory, $recursive);
  12598. }
  12599. /**
  12600. * Get all (recursive) of the directories within a given directory.
  12601. *
  12602. * @param string|null $directory
  12603. * @return array
  12604. * @static
  12605. */
  12606. public static function allDirectories($directory = null)
  12607. {
  12608. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12609. return $instance->allDirectories($directory);
  12610. }
  12611. /**
  12612. * Create a directory.
  12613. *
  12614. * @param string $path
  12615. * @return bool
  12616. * @static
  12617. */
  12618. public static function makeDirectory($path)
  12619. {
  12620. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12621. return $instance->makeDirectory($path);
  12622. }
  12623. /**
  12624. * Recursively delete a directory.
  12625. *
  12626. * @param string $directory
  12627. * @return bool
  12628. * @static
  12629. */
  12630. public static function deleteDirectory($directory)
  12631. {
  12632. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12633. return $instance->deleteDirectory($directory);
  12634. }
  12635. /**
  12636. * Flush the Flysystem cache.
  12637. *
  12638. * @return void
  12639. * @static
  12640. */
  12641. public static function flushCache()
  12642. {
  12643. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12644. $instance->flushCache();
  12645. }
  12646. /**
  12647. * Get the Flysystem driver.
  12648. *
  12649. * @return \League\Flysystem\FilesystemInterface
  12650. * @static
  12651. */
  12652. public static function getDriver()
  12653. {
  12654. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12655. return $instance->getDriver();
  12656. }
  12657. }
  12658. /**
  12659. *
  12660. *
  12661. * @see \Illuminate\Routing\UrlGenerator
  12662. */
  12663. class URL {
  12664. /**
  12665. * Get the full URL for the current request.
  12666. *
  12667. * @return string
  12668. * @static
  12669. */
  12670. public static function full()
  12671. {
  12672. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12673. return $instance->full();
  12674. }
  12675. /**
  12676. * Get the current URL for the request.
  12677. *
  12678. * @return string
  12679. * @static
  12680. */
  12681. public static function current()
  12682. {
  12683. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12684. return $instance->current();
  12685. }
  12686. /**
  12687. * Get the URL for the previous request.
  12688. *
  12689. * @param mixed $fallback
  12690. * @return string
  12691. * @static
  12692. */
  12693. public static function previous($fallback = false)
  12694. {
  12695. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12696. return $instance->previous($fallback);
  12697. }
  12698. /**
  12699. * Generate an absolute URL to the given path.
  12700. *
  12701. * @param string $path
  12702. * @param mixed $extra
  12703. * @param bool|null $secure
  12704. * @return string
  12705. * @static
  12706. */
  12707. public static function to($path, $extra = [], $secure = null)
  12708. {
  12709. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12710. return $instance->to($path, $extra, $secure);
  12711. }
  12712. /**
  12713. * Generate a secure, absolute URL to the given path.
  12714. *
  12715. * @param string $path
  12716. * @param array $parameters
  12717. * @return string
  12718. * @static
  12719. */
  12720. public static function secure($path, $parameters = [])
  12721. {
  12722. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12723. return $instance->secure($path, $parameters);
  12724. }
  12725. /**
  12726. * Generate the URL to an application asset.
  12727. *
  12728. * @param string $path
  12729. * @param bool|null $secure
  12730. * @return string
  12731. * @static
  12732. */
  12733. public static function asset($path, $secure = null)
  12734. {
  12735. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12736. return $instance->asset($path, $secure);
  12737. }
  12738. /**
  12739. * Generate the URL to a secure asset.
  12740. *
  12741. * @param string $path
  12742. * @return string
  12743. * @static
  12744. */
  12745. public static function secureAsset($path)
  12746. {
  12747. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12748. return $instance->secureAsset($path);
  12749. }
  12750. /**
  12751. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  12752. *
  12753. * @param string $root
  12754. * @param string $path
  12755. * @param bool|null $secure
  12756. * @return string
  12757. * @static
  12758. */
  12759. public static function assetFrom($root, $path, $secure = null)
  12760. {
  12761. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12762. return $instance->assetFrom($root, $path, $secure);
  12763. }
  12764. /**
  12765. * Get the default scheme for a raw URL.
  12766. *
  12767. * @param bool|null $secure
  12768. * @return string
  12769. * @static
  12770. */
  12771. public static function formatScheme($secure = null)
  12772. {
  12773. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12774. return $instance->formatScheme($secure);
  12775. }
  12776. /**
  12777. * Create a signed route URL for a named route.
  12778. *
  12779. * @param string $name
  12780. * @param array $parameters
  12781. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  12782. * @param bool $absolute
  12783. * @return string
  12784. * @throws \InvalidArgumentException
  12785. * @static
  12786. */
  12787. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  12788. {
  12789. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12790. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  12791. }
  12792. /**
  12793. * Create a temporary signed route URL for a named route.
  12794. *
  12795. * @param string $name
  12796. * @param \DateTimeInterface|\DateInterval|int $expiration
  12797. * @param array $parameters
  12798. * @param bool $absolute
  12799. * @return string
  12800. * @static
  12801. */
  12802. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  12803. {
  12804. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12805. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  12806. }
  12807. /**
  12808. * Determine if the given request has a valid signature.
  12809. *
  12810. * @param \Illuminate\Http\Request $request
  12811. * @param bool $absolute
  12812. * @return bool
  12813. * @static
  12814. */
  12815. public static function hasValidSignature($request, $absolute = true)
  12816. {
  12817. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12818. return $instance->hasValidSignature($request, $absolute);
  12819. }
  12820. /**
  12821. * Determine if the signature from the given request matches the URL.
  12822. *
  12823. * @param \Illuminate\Http\Request $request
  12824. * @param bool $absolute
  12825. * @return bool
  12826. * @static
  12827. */
  12828. public static function hasCorrectSignature($request, $absolute = true)
  12829. {
  12830. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12831. return $instance->hasCorrectSignature($request, $absolute);
  12832. }
  12833. /**
  12834. * Determine if the expires timestamp from the given request is not from the past.
  12835. *
  12836. * @param \Illuminate\Http\Request $request
  12837. * @return bool
  12838. * @static
  12839. */
  12840. public static function signatureHasNotExpired($request)
  12841. {
  12842. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12843. return $instance->signatureHasNotExpired($request);
  12844. }
  12845. /**
  12846. * Get the URL to a named route.
  12847. *
  12848. * @param string $name
  12849. * @param mixed $parameters
  12850. * @param bool $absolute
  12851. * @return string
  12852. * @throws \Symfony\Component\Routing\Exception\RouteNotFoundException
  12853. * @static
  12854. */
  12855. public static function route($name, $parameters = [], $absolute = true)
  12856. {
  12857. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12858. return $instance->route($name, $parameters, $absolute);
  12859. }
  12860. /**
  12861. * Get the URL for a given route instance.
  12862. *
  12863. * @param \Illuminate\Routing\Route $route
  12864. * @param mixed $parameters
  12865. * @param bool $absolute
  12866. * @return string
  12867. * @throws \Illuminate\Routing\Exceptions\UrlGenerationException
  12868. * @static
  12869. */
  12870. public static function toRoute($route, $parameters, $absolute)
  12871. {
  12872. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12873. return $instance->toRoute($route, $parameters, $absolute);
  12874. }
  12875. /**
  12876. * Get the URL to a controller action.
  12877. *
  12878. * @param string|array $action
  12879. * @param mixed $parameters
  12880. * @param bool $absolute
  12881. * @return string
  12882. * @throws \InvalidArgumentException
  12883. * @static
  12884. */
  12885. public static function action($action, $parameters = [], $absolute = true)
  12886. {
  12887. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12888. return $instance->action($action, $parameters, $absolute);
  12889. }
  12890. /**
  12891. * Format the array of URL parameters.
  12892. *
  12893. * @param mixed|array $parameters
  12894. * @return array
  12895. * @static
  12896. */
  12897. public static function formatParameters($parameters)
  12898. {
  12899. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12900. return $instance->formatParameters($parameters);
  12901. }
  12902. /**
  12903. * Get the base URL for the request.
  12904. *
  12905. * @param string $scheme
  12906. * @param string|null $root
  12907. * @return string
  12908. * @static
  12909. */
  12910. public static function formatRoot($scheme, $root = null)
  12911. {
  12912. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12913. return $instance->formatRoot($scheme, $root);
  12914. }
  12915. /**
  12916. * Format the given URL segments into a single URL.
  12917. *
  12918. * @param string $root
  12919. * @param string $path
  12920. * @param \Illuminate\Routing\Route|null $route
  12921. * @return string
  12922. * @static
  12923. */
  12924. public static function format($root, $path, $route = null)
  12925. {
  12926. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12927. return $instance->format($root, $path, $route);
  12928. }
  12929. /**
  12930. * Determine if the given path is a valid URL.
  12931. *
  12932. * @param string $path
  12933. * @return bool
  12934. * @static
  12935. */
  12936. public static function isValidUrl($path)
  12937. {
  12938. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12939. return $instance->isValidUrl($path);
  12940. }
  12941. /**
  12942. * Set the default named parameters used by the URL generator.
  12943. *
  12944. * @param array $defaults
  12945. * @return void
  12946. * @static
  12947. */
  12948. public static function defaults($defaults)
  12949. {
  12950. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12951. $instance->defaults($defaults);
  12952. }
  12953. /**
  12954. * Get the default named parameters used by the URL generator.
  12955. *
  12956. * @return array
  12957. * @static
  12958. */
  12959. public static function getDefaultParameters()
  12960. {
  12961. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12962. return $instance->getDefaultParameters();
  12963. }
  12964. /**
  12965. * Force the scheme for URLs.
  12966. *
  12967. * @param string $scheme
  12968. * @return void
  12969. * @static
  12970. */
  12971. public static function forceScheme($scheme)
  12972. {
  12973. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12974. $instance->forceScheme($scheme);
  12975. }
  12976. /**
  12977. * Set the forced root URL.
  12978. *
  12979. * @param string $root
  12980. * @return void
  12981. * @static
  12982. */
  12983. public static function forceRootUrl($root)
  12984. {
  12985. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12986. $instance->forceRootUrl($root);
  12987. }
  12988. /**
  12989. * Set a callback to be used to format the host of generated URLs.
  12990. *
  12991. * @param \Closure $callback
  12992. * @return \Illuminate\Routing\UrlGenerator
  12993. * @static
  12994. */
  12995. public static function formatHostUsing($callback)
  12996. {
  12997. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12998. return $instance->formatHostUsing($callback);
  12999. }
  13000. /**
  13001. * Set a callback to be used to format the path of generated URLs.
  13002. *
  13003. * @param \Closure $callback
  13004. * @return \Illuminate\Routing\UrlGenerator
  13005. * @static
  13006. */
  13007. public static function formatPathUsing($callback)
  13008. {
  13009. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13010. return $instance->formatPathUsing($callback);
  13011. }
  13012. /**
  13013. * Get the path formatter being used by the URL generator.
  13014. *
  13015. * @return \Closure
  13016. * @static
  13017. */
  13018. public static function pathFormatter()
  13019. {
  13020. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13021. return $instance->pathFormatter();
  13022. }
  13023. /**
  13024. * Get the request instance.
  13025. *
  13026. * @return \Illuminate\Http\Request
  13027. * @static
  13028. */
  13029. public static function getRequest()
  13030. {
  13031. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13032. return $instance->getRequest();
  13033. }
  13034. /**
  13035. * Set the current request instance.
  13036. *
  13037. * @param \Illuminate\Http\Request $request
  13038. * @return void
  13039. * @static
  13040. */
  13041. public static function setRequest($request)
  13042. {
  13043. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13044. $instance->setRequest($request);
  13045. }
  13046. /**
  13047. * Set the route collection.
  13048. *
  13049. * @param \Illuminate\Routing\RouteCollectionInterface $routes
  13050. * @return \Illuminate\Routing\UrlGenerator
  13051. * @static
  13052. */
  13053. public static function setRoutes($routes)
  13054. {
  13055. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13056. return $instance->setRoutes($routes);
  13057. }
  13058. /**
  13059. * Set the session resolver for the generator.
  13060. *
  13061. * @param callable $sessionResolver
  13062. * @return \Illuminate\Routing\UrlGenerator
  13063. * @static
  13064. */
  13065. public static function setSessionResolver($sessionResolver)
  13066. {
  13067. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13068. return $instance->setSessionResolver($sessionResolver);
  13069. }
  13070. /**
  13071. * Set the encryption key resolver.
  13072. *
  13073. * @param callable $keyResolver
  13074. * @return \Illuminate\Routing\UrlGenerator
  13075. * @static
  13076. */
  13077. public static function setKeyResolver($keyResolver)
  13078. {
  13079. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13080. return $instance->setKeyResolver($keyResolver);
  13081. }
  13082. /**
  13083. * Set the root controller namespace.
  13084. *
  13085. * @param string $rootNamespace
  13086. * @return \Illuminate\Routing\UrlGenerator
  13087. * @static
  13088. */
  13089. public static function setRootControllerNamespace($rootNamespace)
  13090. {
  13091. /** @var \Illuminate\Routing\UrlGenerator $instance */
  13092. return $instance->setRootControllerNamespace($rootNamespace);
  13093. }
  13094. /**
  13095. * Register a custom macro.
  13096. *
  13097. * @param string $name
  13098. * @param object|callable $macro
  13099. * @return void
  13100. * @static
  13101. */
  13102. public static function macro($name, $macro)
  13103. {
  13104. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  13105. }
  13106. /**
  13107. * Mix another object into the class.
  13108. *
  13109. * @param object $mixin
  13110. * @param bool $replace
  13111. * @return void
  13112. * @throws \ReflectionException
  13113. * @static
  13114. */
  13115. public static function mixin($mixin, $replace = true)
  13116. {
  13117. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  13118. }
  13119. /**
  13120. * Checks if macro is registered.
  13121. *
  13122. * @param string $name
  13123. * @return bool
  13124. * @static
  13125. */
  13126. public static function hasMacro($name)
  13127. {
  13128. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  13129. }
  13130. }
  13131. /**
  13132. *
  13133. *
  13134. * @see \Illuminate\Validation\Factory
  13135. */
  13136. class Validator {
  13137. /**
  13138. * Create a new Validator instance.
  13139. *
  13140. * @param array $data
  13141. * @param array $rules
  13142. * @param array $messages
  13143. * @param array $customAttributes
  13144. * @return \Illuminate\Validation\Validator
  13145. * @static
  13146. */
  13147. public static function make($data, $rules, $messages = [], $customAttributes = [])
  13148. {
  13149. /** @var \Illuminate\Validation\Factory $instance */
  13150. return $instance->make($data, $rules, $messages, $customAttributes);
  13151. }
  13152. /**
  13153. * Validate the given data against the provided rules.
  13154. *
  13155. * @param array $data
  13156. * @param array $rules
  13157. * @param array $messages
  13158. * @param array $customAttributes
  13159. * @return array
  13160. * @throws \Illuminate\Validation\ValidationException
  13161. * @static
  13162. */
  13163. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  13164. {
  13165. /** @var \Illuminate\Validation\Factory $instance */
  13166. return $instance->validate($data, $rules, $messages, $customAttributes);
  13167. }
  13168. /**
  13169. * Register a custom validator extension.
  13170. *
  13171. * @param string $rule
  13172. * @param \Closure|string $extension
  13173. * @param string|null $message
  13174. * @return void
  13175. * @static
  13176. */
  13177. public static function extend($rule, $extension, $message = null)
  13178. {
  13179. /** @var \Illuminate\Validation\Factory $instance */
  13180. $instance->extend($rule, $extension, $message);
  13181. }
  13182. /**
  13183. * Register a custom implicit validator extension.
  13184. *
  13185. * @param string $rule
  13186. * @param \Closure|string $extension
  13187. * @param string|null $message
  13188. * @return void
  13189. * @static
  13190. */
  13191. public static function extendImplicit($rule, $extension, $message = null)
  13192. {
  13193. /** @var \Illuminate\Validation\Factory $instance */
  13194. $instance->extendImplicit($rule, $extension, $message);
  13195. }
  13196. /**
  13197. * Register a custom dependent validator extension.
  13198. *
  13199. * @param string $rule
  13200. * @param \Closure|string $extension
  13201. * @param string|null $message
  13202. * @return void
  13203. * @static
  13204. */
  13205. public static function extendDependent($rule, $extension, $message = null)
  13206. {
  13207. /** @var \Illuminate\Validation\Factory $instance */
  13208. $instance->extendDependent($rule, $extension, $message);
  13209. }
  13210. /**
  13211. * Register a custom validator message replacer.
  13212. *
  13213. * @param string $rule
  13214. * @param \Closure|string $replacer
  13215. * @return void
  13216. * @static
  13217. */
  13218. public static function replacer($rule, $replacer)
  13219. {
  13220. /** @var \Illuminate\Validation\Factory $instance */
  13221. $instance->replacer($rule, $replacer);
  13222. }
  13223. /**
  13224. * Set the Validator instance resolver.
  13225. *
  13226. * @param \Closure $resolver
  13227. * @return void
  13228. * @static
  13229. */
  13230. public static function resolver($resolver)
  13231. {
  13232. /** @var \Illuminate\Validation\Factory $instance */
  13233. $instance->resolver($resolver);
  13234. }
  13235. /**
  13236. * Get the Translator implementation.
  13237. *
  13238. * @return \Illuminate\Contracts\Translation\Translator
  13239. * @static
  13240. */
  13241. public static function getTranslator()
  13242. {
  13243. /** @var \Illuminate\Validation\Factory $instance */
  13244. return $instance->getTranslator();
  13245. }
  13246. /**
  13247. * Get the Presence Verifier implementation.
  13248. *
  13249. * @return \Illuminate\Validation\PresenceVerifierInterface
  13250. * @static
  13251. */
  13252. public static function getPresenceVerifier()
  13253. {
  13254. /** @var \Illuminate\Validation\Factory $instance */
  13255. return $instance->getPresenceVerifier();
  13256. }
  13257. /**
  13258. * Set the Presence Verifier implementation.
  13259. *
  13260. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  13261. * @return void
  13262. * @static
  13263. */
  13264. public static function setPresenceVerifier($presenceVerifier)
  13265. {
  13266. /** @var \Illuminate\Validation\Factory $instance */
  13267. $instance->setPresenceVerifier($presenceVerifier);
  13268. }
  13269. }
  13270. /**
  13271. *
  13272. *
  13273. * @see \Illuminate\View\Factory
  13274. */
  13275. class View {
  13276. /**
  13277. * Get the evaluated view contents for the given view.
  13278. *
  13279. * @param string $path
  13280. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  13281. * @param array $mergeData
  13282. * @return \Illuminate\Contracts\View\View
  13283. * @static
  13284. */
  13285. public static function file($path, $data = [], $mergeData = [])
  13286. {
  13287. /** @var \Illuminate\View\Factory $instance */
  13288. return $instance->file($path, $data, $mergeData);
  13289. }
  13290. /**
  13291. * Get the evaluated view contents for the given view.
  13292. *
  13293. * @param string $view
  13294. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  13295. * @param array $mergeData
  13296. * @return \Illuminate\Contracts\View\View
  13297. * @static
  13298. */
  13299. public static function make($view, $data = [], $mergeData = [])
  13300. {
  13301. /** @var \Illuminate\View\Factory $instance */
  13302. return $instance->make($view, $data, $mergeData);
  13303. }
  13304. /**
  13305. * Get the first view that actually exists from the given list.
  13306. *
  13307. * @param array $views
  13308. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  13309. * @param array $mergeData
  13310. * @return \Illuminate\Contracts\View\View
  13311. * @throws \InvalidArgumentException
  13312. * @static
  13313. */
  13314. public static function first($views, $data = [], $mergeData = [])
  13315. {
  13316. /** @var \Illuminate\View\Factory $instance */
  13317. return $instance->first($views, $data, $mergeData);
  13318. }
  13319. /**
  13320. * Get the rendered content of the view based on a given condition.
  13321. *
  13322. * @param bool $condition
  13323. * @param string $view
  13324. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  13325. * @param array $mergeData
  13326. * @return string
  13327. * @static
  13328. */
  13329. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  13330. {
  13331. /** @var \Illuminate\View\Factory $instance */
  13332. return $instance->renderWhen($condition, $view, $data, $mergeData);
  13333. }
  13334. /**
  13335. * Get the rendered contents of a partial from a loop.
  13336. *
  13337. * @param string $view
  13338. * @param array $data
  13339. * @param string $iterator
  13340. * @param string $empty
  13341. * @return string
  13342. * @static
  13343. */
  13344. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  13345. {
  13346. /** @var \Illuminate\View\Factory $instance */
  13347. return $instance->renderEach($view, $data, $iterator, $empty);
  13348. }
  13349. /**
  13350. * Determine if a given view exists.
  13351. *
  13352. * @param string $view
  13353. * @return bool
  13354. * @static
  13355. */
  13356. public static function exists($view)
  13357. {
  13358. /** @var \Illuminate\View\Factory $instance */
  13359. return $instance->exists($view);
  13360. }
  13361. /**
  13362. * Get the appropriate view engine for the given path.
  13363. *
  13364. * @param string $path
  13365. * @return \Illuminate\Contracts\View\Engine
  13366. * @throws \InvalidArgumentException
  13367. * @static
  13368. */
  13369. public static function getEngineFromPath($path)
  13370. {
  13371. /** @var \Illuminate\View\Factory $instance */
  13372. return $instance->getEngineFromPath($path);
  13373. }
  13374. /**
  13375. * Add a piece of shared data to the environment.
  13376. *
  13377. * @param array|string $key
  13378. * @param mixed|null $value
  13379. * @return mixed
  13380. * @static
  13381. */
  13382. public static function share($key, $value = null)
  13383. {
  13384. /** @var \Illuminate\View\Factory $instance */
  13385. return $instance->share($key, $value);
  13386. }
  13387. /**
  13388. * Increment the rendering counter.
  13389. *
  13390. * @return void
  13391. * @static
  13392. */
  13393. public static function incrementRender()
  13394. {
  13395. /** @var \Illuminate\View\Factory $instance */
  13396. $instance->incrementRender();
  13397. }
  13398. /**
  13399. * Decrement the rendering counter.
  13400. *
  13401. * @return void
  13402. * @static
  13403. */
  13404. public static function decrementRender()
  13405. {
  13406. /** @var \Illuminate\View\Factory $instance */
  13407. $instance->decrementRender();
  13408. }
  13409. /**
  13410. * Check if there are no active render operations.
  13411. *
  13412. * @return bool
  13413. * @static
  13414. */
  13415. public static function doneRendering()
  13416. {
  13417. /** @var \Illuminate\View\Factory $instance */
  13418. return $instance->doneRendering();
  13419. }
  13420. /**
  13421. * Determine if the given once token has been rendered.
  13422. *
  13423. * @param string $id
  13424. * @return bool
  13425. * @static
  13426. */
  13427. public static function hasRenderedOnce($id)
  13428. {
  13429. /** @var \Illuminate\View\Factory $instance */
  13430. return $instance->hasRenderedOnce($id);
  13431. }
  13432. /**
  13433. * Mark the given once token as having been rendered.
  13434. *
  13435. * @param string $id
  13436. * @return void
  13437. * @static
  13438. */
  13439. public static function markAsRenderedOnce($id)
  13440. {
  13441. /** @var \Illuminate\View\Factory $instance */
  13442. $instance->markAsRenderedOnce($id);
  13443. }
  13444. /**
  13445. * Add a location to the array of view locations.
  13446. *
  13447. * @param string $location
  13448. * @return void
  13449. * @static
  13450. */
  13451. public static function addLocation($location)
  13452. {
  13453. /** @var \Illuminate\View\Factory $instance */
  13454. $instance->addLocation($location);
  13455. }
  13456. /**
  13457. * Add a new namespace to the loader.
  13458. *
  13459. * @param string $namespace
  13460. * @param string|array $hints
  13461. * @return \Illuminate\View\Factory
  13462. * @static
  13463. */
  13464. public static function addNamespace($namespace, $hints)
  13465. {
  13466. /** @var \Illuminate\View\Factory $instance */
  13467. return $instance->addNamespace($namespace, $hints);
  13468. }
  13469. /**
  13470. * Prepend a new namespace to the loader.
  13471. *
  13472. * @param string $namespace
  13473. * @param string|array $hints
  13474. * @return \Illuminate\View\Factory
  13475. * @static
  13476. */
  13477. public static function prependNamespace($namespace, $hints)
  13478. {
  13479. /** @var \Illuminate\View\Factory $instance */
  13480. return $instance->prependNamespace($namespace, $hints);
  13481. }
  13482. /**
  13483. * Replace the namespace hints for the given namespace.
  13484. *
  13485. * @param string $namespace
  13486. * @param string|array $hints
  13487. * @return \Illuminate\View\Factory
  13488. * @static
  13489. */
  13490. public static function replaceNamespace($namespace, $hints)
  13491. {
  13492. /** @var \Illuminate\View\Factory $instance */
  13493. return $instance->replaceNamespace($namespace, $hints);
  13494. }
  13495. /**
  13496. * Register a valid view extension and its engine.
  13497. *
  13498. * @param string $extension
  13499. * @param string $engine
  13500. * @param \Closure|null $resolver
  13501. * @return void
  13502. * @static
  13503. */
  13504. public static function addExtension($extension, $engine, $resolver = null)
  13505. {
  13506. /** @var \Illuminate\View\Factory $instance */
  13507. $instance->addExtension($extension, $engine, $resolver);
  13508. }
  13509. /**
  13510. * Flush all of the factory state like sections and stacks.
  13511. *
  13512. * @return void
  13513. * @static
  13514. */
  13515. public static function flushState()
  13516. {
  13517. /** @var \Illuminate\View\Factory $instance */
  13518. $instance->flushState();
  13519. }
  13520. /**
  13521. * Flush all of the section contents if done rendering.
  13522. *
  13523. * @return void
  13524. * @static
  13525. */
  13526. public static function flushStateIfDoneRendering()
  13527. {
  13528. /** @var \Illuminate\View\Factory $instance */
  13529. $instance->flushStateIfDoneRendering();
  13530. }
  13531. /**
  13532. * Get the extension to engine bindings.
  13533. *
  13534. * @return array
  13535. * @static
  13536. */
  13537. public static function getExtensions()
  13538. {
  13539. /** @var \Illuminate\View\Factory $instance */
  13540. return $instance->getExtensions();
  13541. }
  13542. /**
  13543. * Get the engine resolver instance.
  13544. *
  13545. * @return \Illuminate\View\Engines\EngineResolver
  13546. * @static
  13547. */
  13548. public static function getEngineResolver()
  13549. {
  13550. /** @var \Illuminate\View\Factory $instance */
  13551. return $instance->getEngineResolver();
  13552. }
  13553. /**
  13554. * Get the view finder instance.
  13555. *
  13556. * @return \Illuminate\View\ViewFinderInterface
  13557. * @static
  13558. */
  13559. public static function getFinder()
  13560. {
  13561. /** @var \Illuminate\View\Factory $instance */
  13562. return $instance->getFinder();
  13563. }
  13564. /**
  13565. * Set the view finder instance.
  13566. *
  13567. * @param \Illuminate\View\ViewFinderInterface $finder
  13568. * @return void
  13569. * @static
  13570. */
  13571. public static function setFinder($finder)
  13572. {
  13573. /** @var \Illuminate\View\Factory $instance */
  13574. $instance->setFinder($finder);
  13575. }
  13576. /**
  13577. * Flush the cache of views located by the finder.
  13578. *
  13579. * @return void
  13580. * @static
  13581. */
  13582. public static function flushFinderCache()
  13583. {
  13584. /** @var \Illuminate\View\Factory $instance */
  13585. $instance->flushFinderCache();
  13586. }
  13587. /**
  13588. * Get the event dispatcher instance.
  13589. *
  13590. * @return \Illuminate\Contracts\Events\Dispatcher
  13591. * @static
  13592. */
  13593. public static function getDispatcher()
  13594. {
  13595. /** @var \Illuminate\View\Factory $instance */
  13596. return $instance->getDispatcher();
  13597. }
  13598. /**
  13599. * Set the event dispatcher instance.
  13600. *
  13601. * @param \Illuminate\Contracts\Events\Dispatcher $events
  13602. * @return void
  13603. * @static
  13604. */
  13605. public static function setDispatcher($events)
  13606. {
  13607. /** @var \Illuminate\View\Factory $instance */
  13608. $instance->setDispatcher($events);
  13609. }
  13610. /**
  13611. * Get the IoC container instance.
  13612. *
  13613. * @return \Illuminate\Contracts\Container\Container
  13614. * @static
  13615. */
  13616. public static function getContainer()
  13617. {
  13618. /** @var \Illuminate\View\Factory $instance */
  13619. return $instance->getContainer();
  13620. }
  13621. /**
  13622. * Set the IoC container instance.
  13623. *
  13624. * @param \Illuminate\Contracts\Container\Container $container
  13625. * @return void
  13626. * @static
  13627. */
  13628. public static function setContainer($container)
  13629. {
  13630. /** @var \Illuminate\View\Factory $instance */
  13631. $instance->setContainer($container);
  13632. }
  13633. /**
  13634. * Get an item from the shared data.
  13635. *
  13636. * @param string $key
  13637. * @param mixed $default
  13638. * @return mixed
  13639. * @static
  13640. */
  13641. public static function shared($key, $default = null)
  13642. {
  13643. /** @var \Illuminate\View\Factory $instance */
  13644. return $instance->shared($key, $default);
  13645. }
  13646. /**
  13647. * Get all of the shared data for the environment.
  13648. *
  13649. * @return array
  13650. * @static
  13651. */
  13652. public static function getShared()
  13653. {
  13654. /** @var \Illuminate\View\Factory $instance */
  13655. return $instance->getShared();
  13656. }
  13657. /**
  13658. * Register a custom macro.
  13659. *
  13660. * @param string $name
  13661. * @param object|callable $macro
  13662. * @return void
  13663. * @static
  13664. */
  13665. public static function macro($name, $macro)
  13666. {
  13667. \Illuminate\View\Factory::macro($name, $macro);
  13668. }
  13669. /**
  13670. * Mix another object into the class.
  13671. *
  13672. * @param object $mixin
  13673. * @param bool $replace
  13674. * @return void
  13675. * @throws \ReflectionException
  13676. * @static
  13677. */
  13678. public static function mixin($mixin, $replace = true)
  13679. {
  13680. \Illuminate\View\Factory::mixin($mixin, $replace);
  13681. }
  13682. /**
  13683. * Checks if macro is registered.
  13684. *
  13685. * @param string $name
  13686. * @return bool
  13687. * @static
  13688. */
  13689. public static function hasMacro($name)
  13690. {
  13691. return \Illuminate\View\Factory::hasMacro($name);
  13692. }
  13693. /**
  13694. * Start a component rendering process.
  13695. *
  13696. * @param \Illuminate\View\View|\Closure|string $view
  13697. * @param array $data
  13698. * @return void
  13699. * @static
  13700. */
  13701. public static function startComponent($view, $data = [])
  13702. {
  13703. /** @var \Illuminate\View\Factory $instance */
  13704. $instance->startComponent($view, $data);
  13705. }
  13706. /**
  13707. * Get the first view that actually exists from the given list, and start a component.
  13708. *
  13709. * @param array $names
  13710. * @param array $data
  13711. * @return void
  13712. * @static
  13713. */
  13714. public static function startComponentFirst($names, $data = [])
  13715. {
  13716. /** @var \Illuminate\View\Factory $instance */
  13717. $instance->startComponentFirst($names, $data);
  13718. }
  13719. /**
  13720. * Render the current component.
  13721. *
  13722. * @return string
  13723. * @static
  13724. */
  13725. public static function renderComponent()
  13726. {
  13727. /** @var \Illuminate\View\Factory $instance */
  13728. return $instance->renderComponent();
  13729. }
  13730. /**
  13731. * Start the slot rendering process.
  13732. *
  13733. * @param string $name
  13734. * @param string|null $content
  13735. * @return void
  13736. * @static
  13737. */
  13738. public static function slot($name, $content = null)
  13739. {
  13740. /** @var \Illuminate\View\Factory $instance */
  13741. $instance->slot($name, $content);
  13742. }
  13743. /**
  13744. * Save the slot content for rendering.
  13745. *
  13746. * @return void
  13747. * @static
  13748. */
  13749. public static function endSlot()
  13750. {
  13751. /** @var \Illuminate\View\Factory $instance */
  13752. $instance->endSlot();
  13753. }
  13754. /**
  13755. * Register a view creator event.
  13756. *
  13757. * @param array|string $views
  13758. * @param \Closure|string $callback
  13759. * @return array
  13760. * @static
  13761. */
  13762. public static function creator($views, $callback)
  13763. {
  13764. /** @var \Illuminate\View\Factory $instance */
  13765. return $instance->creator($views, $callback);
  13766. }
  13767. /**
  13768. * Register multiple view composers via an array.
  13769. *
  13770. * @param array $composers
  13771. * @return array
  13772. * @static
  13773. */
  13774. public static function composers($composers)
  13775. {
  13776. /** @var \Illuminate\View\Factory $instance */
  13777. return $instance->composers($composers);
  13778. }
  13779. /**
  13780. * Register a view composer event.
  13781. *
  13782. * @param array|string $views
  13783. * @param \Closure|string $callback
  13784. * @return array
  13785. * @static
  13786. */
  13787. public static function composer($views, $callback)
  13788. {
  13789. /** @var \Illuminate\View\Factory $instance */
  13790. return $instance->composer($views, $callback);
  13791. }
  13792. /**
  13793. * Call the composer for a given view.
  13794. *
  13795. * @param \Illuminate\Contracts\View\View $view
  13796. * @return void
  13797. * @static
  13798. */
  13799. public static function callComposer($view)
  13800. {
  13801. /** @var \Illuminate\View\Factory $instance */
  13802. $instance->callComposer($view);
  13803. }
  13804. /**
  13805. * Call the creator for a given view.
  13806. *
  13807. * @param \Illuminate\Contracts\View\View $view
  13808. * @return void
  13809. * @static
  13810. */
  13811. public static function callCreator($view)
  13812. {
  13813. /** @var \Illuminate\View\Factory $instance */
  13814. $instance->callCreator($view);
  13815. }
  13816. /**
  13817. * Start injecting content into a section.
  13818. *
  13819. * @param string $section
  13820. * @param string|null $content
  13821. * @return void
  13822. * @static
  13823. */
  13824. public static function startSection($section, $content = null)
  13825. {
  13826. /** @var \Illuminate\View\Factory $instance */
  13827. $instance->startSection($section, $content);
  13828. }
  13829. /**
  13830. * Inject inline content into a section.
  13831. *
  13832. * @param string $section
  13833. * @param string $content
  13834. * @return void
  13835. * @static
  13836. */
  13837. public static function inject($section, $content)
  13838. {
  13839. /** @var \Illuminate\View\Factory $instance */
  13840. $instance->inject($section, $content);
  13841. }
  13842. /**
  13843. * Stop injecting content into a section and return its contents.
  13844. *
  13845. * @return string
  13846. * @static
  13847. */
  13848. public static function yieldSection()
  13849. {
  13850. /** @var \Illuminate\View\Factory $instance */
  13851. return $instance->yieldSection();
  13852. }
  13853. /**
  13854. * Stop injecting content into a section.
  13855. *
  13856. * @param bool $overwrite
  13857. * @return string
  13858. * @throws \InvalidArgumentException
  13859. * @static
  13860. */
  13861. public static function stopSection($overwrite = false)
  13862. {
  13863. /** @var \Illuminate\View\Factory $instance */
  13864. return $instance->stopSection($overwrite);
  13865. }
  13866. /**
  13867. * Stop injecting content into a section and append it.
  13868. *
  13869. * @return string
  13870. * @throws \InvalidArgumentException
  13871. * @static
  13872. */
  13873. public static function appendSection()
  13874. {
  13875. /** @var \Illuminate\View\Factory $instance */
  13876. return $instance->appendSection();
  13877. }
  13878. /**
  13879. * Get the string contents of a section.
  13880. *
  13881. * @param string $section
  13882. * @param string $default
  13883. * @return string
  13884. * @static
  13885. */
  13886. public static function yieldContent($section, $default = '')
  13887. {
  13888. /** @var \Illuminate\View\Factory $instance */
  13889. return $instance->yieldContent($section, $default);
  13890. }
  13891. /**
  13892. * Get the parent placeholder for the current request.
  13893. *
  13894. * @param string $section
  13895. * @return string
  13896. * @static
  13897. */
  13898. public static function parentPlaceholder($section = '')
  13899. {
  13900. return \Illuminate\View\Factory::parentPlaceholder($section);
  13901. }
  13902. /**
  13903. * Check if section exists.
  13904. *
  13905. * @param string $name
  13906. * @return bool
  13907. * @static
  13908. */
  13909. public static function hasSection($name)
  13910. {
  13911. /** @var \Illuminate\View\Factory $instance */
  13912. return $instance->hasSection($name);
  13913. }
  13914. /**
  13915. * Check if section does not exist.
  13916. *
  13917. * @param string $name
  13918. * @return bool
  13919. * @static
  13920. */
  13921. public static function sectionMissing($name)
  13922. {
  13923. /** @var \Illuminate\View\Factory $instance */
  13924. return $instance->sectionMissing($name);
  13925. }
  13926. /**
  13927. * Get the contents of a section.
  13928. *
  13929. * @param string $name
  13930. * @param string|null $default
  13931. * @return mixed
  13932. * @static
  13933. */
  13934. public static function getSection($name, $default = null)
  13935. {
  13936. /** @var \Illuminate\View\Factory $instance */
  13937. return $instance->getSection($name, $default);
  13938. }
  13939. /**
  13940. * Get the entire array of sections.
  13941. *
  13942. * @return array
  13943. * @static
  13944. */
  13945. public static function getSections()
  13946. {
  13947. /** @var \Illuminate\View\Factory $instance */
  13948. return $instance->getSections();
  13949. }
  13950. /**
  13951. * Flush all of the sections.
  13952. *
  13953. * @return void
  13954. * @static
  13955. */
  13956. public static function flushSections()
  13957. {
  13958. /** @var \Illuminate\View\Factory $instance */
  13959. $instance->flushSections();
  13960. }
  13961. /**
  13962. * Add new loop to the stack.
  13963. *
  13964. * @param \Countable|array $data
  13965. * @return void
  13966. * @static
  13967. */
  13968. public static function addLoop($data)
  13969. {
  13970. /** @var \Illuminate\View\Factory $instance */
  13971. $instance->addLoop($data);
  13972. }
  13973. /**
  13974. * Increment the top loop's indices.
  13975. *
  13976. * @return void
  13977. * @static
  13978. */
  13979. public static function incrementLoopIndices()
  13980. {
  13981. /** @var \Illuminate\View\Factory $instance */
  13982. $instance->incrementLoopIndices();
  13983. }
  13984. /**
  13985. * Pop a loop from the top of the loop stack.
  13986. *
  13987. * @return void
  13988. * @static
  13989. */
  13990. public static function popLoop()
  13991. {
  13992. /** @var \Illuminate\View\Factory $instance */
  13993. $instance->popLoop();
  13994. }
  13995. /**
  13996. * Get an instance of the last loop in the stack.
  13997. *
  13998. * @return \stdClass|null
  13999. * @static
  14000. */
  14001. public static function getLastLoop()
  14002. {
  14003. /** @var \Illuminate\View\Factory $instance */
  14004. return $instance->getLastLoop();
  14005. }
  14006. /**
  14007. * Get the entire loop stack.
  14008. *
  14009. * @return array
  14010. * @static
  14011. */
  14012. public static function getLoopStack()
  14013. {
  14014. /** @var \Illuminate\View\Factory $instance */
  14015. return $instance->getLoopStack();
  14016. }
  14017. /**
  14018. * Start injecting content into a push section.
  14019. *
  14020. * @param string $section
  14021. * @param string $content
  14022. * @return void
  14023. * @static
  14024. */
  14025. public static function startPush($section, $content = '')
  14026. {
  14027. /** @var \Illuminate\View\Factory $instance */
  14028. $instance->startPush($section, $content);
  14029. }
  14030. /**
  14031. * Stop injecting content into a push section.
  14032. *
  14033. * @return string
  14034. * @throws \InvalidArgumentException
  14035. * @static
  14036. */
  14037. public static function stopPush()
  14038. {
  14039. /** @var \Illuminate\View\Factory $instance */
  14040. return $instance->stopPush();
  14041. }
  14042. /**
  14043. * Start prepending content into a push section.
  14044. *
  14045. * @param string $section
  14046. * @param string $content
  14047. * @return void
  14048. * @static
  14049. */
  14050. public static function startPrepend($section, $content = '')
  14051. {
  14052. /** @var \Illuminate\View\Factory $instance */
  14053. $instance->startPrepend($section, $content);
  14054. }
  14055. /**
  14056. * Stop prepending content into a push section.
  14057. *
  14058. * @return string
  14059. * @throws \InvalidArgumentException
  14060. * @static
  14061. */
  14062. public static function stopPrepend()
  14063. {
  14064. /** @var \Illuminate\View\Factory $instance */
  14065. return $instance->stopPrepend();
  14066. }
  14067. /**
  14068. * Get the string contents of a push section.
  14069. *
  14070. * @param string $section
  14071. * @param string $default
  14072. * @return string
  14073. * @static
  14074. */
  14075. public static function yieldPushContent($section, $default = '')
  14076. {
  14077. /** @var \Illuminate\View\Factory $instance */
  14078. return $instance->yieldPushContent($section, $default);
  14079. }
  14080. /**
  14081. * Flush all of the stacks.
  14082. *
  14083. * @return void
  14084. * @static
  14085. */
  14086. public static function flushStacks()
  14087. {
  14088. /** @var \Illuminate\View\Factory $instance */
  14089. $instance->flushStacks();
  14090. }
  14091. /**
  14092. * Start a translation block.
  14093. *
  14094. * @param array $replacements
  14095. * @return void
  14096. * @static
  14097. */
  14098. public static function startTranslation($replacements = [])
  14099. {
  14100. /** @var \Illuminate\View\Factory $instance */
  14101. $instance->startTranslation($replacements);
  14102. }
  14103. /**
  14104. * Render the current translation.
  14105. *
  14106. * @return string
  14107. * @static
  14108. */
  14109. public static function renderTranslation()
  14110. {
  14111. /** @var \Illuminate\View\Factory $instance */
  14112. return $instance->renderTranslation();
  14113. }
  14114. }
  14115. }
  14116. namespace Illuminate\Support {
  14117. /**
  14118. *
  14119. *
  14120. */
  14121. class Arr {
  14122. }
  14123. /**
  14124. *
  14125. *
  14126. */
  14127. class Str {
  14128. }
  14129. }
  14130. namespace Facade\Ignition\Facades {
  14131. /**
  14132. * Class Flare.
  14133. *
  14134. * @see \Facade\FlareClient\Flare
  14135. */
  14136. class Flare {
  14137. /**
  14138. *
  14139. *
  14140. * @static
  14141. */
  14142. public static function register($apiKey, $apiSecret = null, $contextDetector = null, $container = null)
  14143. {
  14144. return \Facade\FlareClient\Flare::register($apiKey, $apiSecret, $contextDetector, $container);
  14145. }
  14146. /**
  14147. *
  14148. *
  14149. * @static
  14150. */
  14151. public static function getMiddleware()
  14152. {
  14153. /** @var \Facade\FlareClient\Flare $instance */
  14154. return $instance->getMiddleware();
  14155. }
  14156. /**
  14157. *
  14158. *
  14159. * @static
  14160. */
  14161. public static function registerFlareHandlers()
  14162. {
  14163. /** @var \Facade\FlareClient\Flare $instance */
  14164. return $instance->registerFlareHandlers();
  14165. }
  14166. /**
  14167. *
  14168. *
  14169. * @static
  14170. */
  14171. public static function registerExceptionHandler()
  14172. {
  14173. /** @var \Facade\FlareClient\Flare $instance */
  14174. return $instance->registerExceptionHandler();
  14175. }
  14176. /**
  14177. *
  14178. *
  14179. * @static
  14180. */
  14181. public static function registerErrorHandler()
  14182. {
  14183. /** @var \Facade\FlareClient\Flare $instance */
  14184. return $instance->registerErrorHandler();
  14185. }
  14186. /**
  14187. *
  14188. *
  14189. * @static
  14190. */
  14191. public static function registerMiddleware($callable)
  14192. {
  14193. /** @var \Facade\FlareClient\Flare $instance */
  14194. return $instance->registerMiddleware($callable);
  14195. }
  14196. /**
  14197. *
  14198. *
  14199. * @static
  14200. */
  14201. public static function getMiddlewares()
  14202. {
  14203. /** @var \Facade\FlareClient\Flare $instance */
  14204. return $instance->getMiddlewares();
  14205. }
  14206. /**
  14207. *
  14208. *
  14209. * @static
  14210. */
  14211. public static function glow($name, $messageLevel = 'info', $metaData = [])
  14212. {
  14213. /** @var \Facade\FlareClient\Flare $instance */
  14214. return $instance->glow($name, $messageLevel, $metaData);
  14215. }
  14216. /**
  14217. *
  14218. *
  14219. * @static
  14220. */
  14221. public static function handleException($throwable)
  14222. {
  14223. /** @var \Facade\FlareClient\Flare $instance */
  14224. return $instance->handleException($throwable);
  14225. }
  14226. /**
  14227. *
  14228. *
  14229. * @static
  14230. */
  14231. public static function handleError($code, $message, $file = '', $line = 0)
  14232. {
  14233. /** @var \Facade\FlareClient\Flare $instance */
  14234. return $instance->handleError($code, $message, $file, $line);
  14235. }
  14236. /**
  14237. *
  14238. *
  14239. * @static
  14240. */
  14241. public static function applicationPath($applicationPath)
  14242. {
  14243. /** @var \Facade\FlareClient\Flare $instance */
  14244. return $instance->applicationPath($applicationPath);
  14245. }
  14246. /**
  14247. *
  14248. *
  14249. * @static
  14250. */
  14251. public static function report($throwable, $callback = null)
  14252. {
  14253. /** @var \Facade\FlareClient\Flare $instance */
  14254. return $instance->report($throwable, $callback);
  14255. }
  14256. /**
  14257. *
  14258. *
  14259. * @static
  14260. */
  14261. public static function reportMessage($message, $logLevel, $callback = null)
  14262. {
  14263. /** @var \Facade\FlareClient\Flare $instance */
  14264. return $instance->reportMessage($message, $logLevel, $callback);
  14265. }
  14266. /**
  14267. *
  14268. *
  14269. * @static
  14270. */
  14271. public static function sendTestReport($throwable)
  14272. {
  14273. /** @var \Facade\FlareClient\Flare $instance */
  14274. return $instance->sendTestReport($throwable);
  14275. }
  14276. /**
  14277. *
  14278. *
  14279. * @static
  14280. */
  14281. public static function reset()
  14282. {
  14283. /** @var \Facade\FlareClient\Flare $instance */
  14284. return $instance->reset();
  14285. }
  14286. /**
  14287. *
  14288. *
  14289. * @static
  14290. */
  14291. public static function anonymizeIp()
  14292. {
  14293. /** @var \Facade\FlareClient\Flare $instance */
  14294. return $instance->anonymizeIp();
  14295. }
  14296. /**
  14297. *
  14298. *
  14299. * @static
  14300. */
  14301. public static function createReport($throwable)
  14302. {
  14303. /** @var \Facade\FlareClient\Flare $instance */
  14304. return $instance->createReport($throwable);
  14305. }
  14306. /**
  14307. *
  14308. *
  14309. * @static
  14310. */
  14311. public static function createReportFromMessage($message, $logLevel)
  14312. {
  14313. /** @var \Facade\FlareClient\Flare $instance */
  14314. return $instance->createReportFromMessage($message, $logLevel);
  14315. }
  14316. /**
  14317. *
  14318. *
  14319. * @static
  14320. */
  14321. public static function stage($stage)
  14322. {
  14323. /** @var \Facade\FlareClient\Flare $instance */
  14324. return $instance->stage($stage);
  14325. }
  14326. /**
  14327. *
  14328. *
  14329. * @static
  14330. */
  14331. public static function messageLevel($messageLevel)
  14332. {
  14333. /** @var \Facade\FlareClient\Flare $instance */
  14334. return $instance->messageLevel($messageLevel);
  14335. }
  14336. /**
  14337. *
  14338. *
  14339. * @static
  14340. */
  14341. public static function getGroup($groupName = 'context', $default = [])
  14342. {
  14343. /** @var \Facade\FlareClient\Flare $instance */
  14344. return $instance->getGroup($groupName, $default);
  14345. }
  14346. /**
  14347. *
  14348. *
  14349. * @static
  14350. */
  14351. public static function context($key, $value)
  14352. {
  14353. /** @var \Facade\FlareClient\Flare $instance */
  14354. return $instance->context($key, $value);
  14355. }
  14356. /**
  14357. *
  14358. *
  14359. * @static
  14360. */
  14361. public static function group($groupName, $properties)
  14362. {
  14363. /** @var \Facade\FlareClient\Flare $instance */
  14364. return $instance->group($groupName, $properties);
  14365. }
  14366. }
  14367. }
  14368. namespace Maatwebsite\Excel\Facades {
  14369. /**
  14370. *
  14371. *
  14372. */
  14373. class Excel {
  14374. /**
  14375. *
  14376. *
  14377. * @param object $export
  14378. * @param string|null $fileName
  14379. * @param string $writerType
  14380. * @param array $headers
  14381. * @throws \PhpOffice\PhpSpreadsheet\Exception
  14382. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  14383. * @return \Maatwebsite\Excel\BinaryFileResponse
  14384. * @static
  14385. */
  14386. public static function download($export, $fileName, $writerType = null, $headers = [])
  14387. {
  14388. /** @var \Maatwebsite\Excel\Excel $instance */
  14389. return $instance->download($export, $fileName, $writerType, $headers);
  14390. }
  14391. /**
  14392. *
  14393. *
  14394. * @param object $export
  14395. * @param string $filePath
  14396. * @param string|null $disk
  14397. * @param string $writerType
  14398. * @param mixed $diskOptions
  14399. * @throws \PhpOffice\PhpSpreadsheet\Exception
  14400. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  14401. * @return bool
  14402. * @static
  14403. */
  14404. public static function store($export, $filePath, $diskName = null, $writerType = null, $diskOptions = [])
  14405. {
  14406. /** @var \Maatwebsite\Excel\Excel $instance */
  14407. return $instance->store($export, $filePath, $diskName, $writerType, $diskOptions);
  14408. }
  14409. /**
  14410. *
  14411. *
  14412. * @param object $export
  14413. * @param string $filePath
  14414. * @param string|null $disk
  14415. * @param string $writerType
  14416. * @param mixed $diskOptions
  14417. * @return \Maatwebsite\Excel\PendingDispatch
  14418. * @static
  14419. */
  14420. public static function queue($export, $filePath, $disk = null, $writerType = null, $diskOptions = [])
  14421. {
  14422. /** @var \Maatwebsite\Excel\Excel $instance */
  14423. return $instance->queue($export, $filePath, $disk, $writerType, $diskOptions);
  14424. }
  14425. /**
  14426. *
  14427. *
  14428. * @param object $export
  14429. * @param string $writerType
  14430. * @return string
  14431. * @static
  14432. */
  14433. public static function raw($export, $writerType)
  14434. {
  14435. /** @var \Maatwebsite\Excel\Excel $instance */
  14436. return $instance->raw($export, $writerType);
  14437. }
  14438. /**
  14439. *
  14440. *
  14441. * @param object $import
  14442. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  14443. * @param string|null $disk
  14444. * @param string|null $readerType
  14445. * @return \Maatwebsite\Excel\Reader|\Maatwebsite\Excel\PendingDispatch
  14446. * @static
  14447. */
  14448. public static function import($import, $filePath, $disk = null, $readerType = null)
  14449. {
  14450. /** @var \Maatwebsite\Excel\Excel $instance */
  14451. return $instance->import($import, $filePath, $disk, $readerType);
  14452. }
  14453. /**
  14454. *
  14455. *
  14456. * @param object $import
  14457. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  14458. * @param string|null $disk
  14459. * @param string|null $readerType
  14460. * @return array
  14461. * @static
  14462. */
  14463. public static function toArray($import, $filePath, $disk = null, $readerType = null)
  14464. {
  14465. /** @var \Maatwebsite\Excel\Excel $instance */
  14466. return $instance->toArray($import, $filePath, $disk, $readerType);
  14467. }
  14468. /**
  14469. *
  14470. *
  14471. * @param object $import
  14472. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  14473. * @param string|null $disk
  14474. * @param string|null $readerType
  14475. * @return \Maatwebsite\Excel\Collection
  14476. * @static
  14477. */
  14478. public static function toCollection($import, $filePath, $disk = null, $readerType = null)
  14479. {
  14480. /** @var \Maatwebsite\Excel\Excel $instance */
  14481. return $instance->toCollection($import, $filePath, $disk, $readerType);
  14482. }
  14483. /**
  14484. *
  14485. *
  14486. * @param \Maatwebsite\Excel\ShouldQueue $import
  14487. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  14488. * @param string|null $disk
  14489. * @param string $readerType
  14490. * @return \Maatwebsite\Excel\PendingDispatch
  14491. * @static
  14492. */
  14493. public static function queueImport($import, $filePath, $disk = null, $readerType = null)
  14494. {
  14495. /** @var \Maatwebsite\Excel\Excel $instance */
  14496. return $instance->queueImport($import, $filePath, $disk, $readerType);
  14497. }
  14498. /**
  14499. *
  14500. *
  14501. * @param string $concern
  14502. * @param callable $handler
  14503. * @param string $event
  14504. * @static
  14505. */
  14506. public static function extend($concern, $handler, $event = 'Maatwebsite\\Excel\\Events\\BeforeWriting')
  14507. {
  14508. return \Maatwebsite\Excel\Excel::extend($concern, $handler, $event);
  14509. }
  14510. /**
  14511. * When asserting downloaded, stored, queued or imported, use regular expression
  14512. * to look for a matching file path.
  14513. *
  14514. * @return void
  14515. * @static
  14516. */
  14517. public static function matchByRegex()
  14518. {
  14519. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14520. $instance->matchByRegex();
  14521. }
  14522. /**
  14523. * When asserting downloaded, stored, queued or imported, use regular string
  14524. * comparison for matching file path.
  14525. *
  14526. * @return void
  14527. * @static
  14528. */
  14529. public static function doNotMatchByRegex()
  14530. {
  14531. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14532. $instance->doNotMatchByRegex();
  14533. }
  14534. /**
  14535. *
  14536. *
  14537. * @param string $fileName
  14538. * @param callable|null $callback
  14539. * @static
  14540. */
  14541. public static function assertDownloaded($fileName, $callback = null)
  14542. {
  14543. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14544. return $instance->assertDownloaded($fileName, $callback);
  14545. }
  14546. /**
  14547. *
  14548. *
  14549. * @param string $filePath
  14550. * @param string|callable|null $disk
  14551. * @param callable|null $callback
  14552. * @static
  14553. */
  14554. public static function assertStored($filePath, $disk = null, $callback = null)
  14555. {
  14556. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14557. return $instance->assertStored($filePath, $disk, $callback);
  14558. }
  14559. /**
  14560. *
  14561. *
  14562. * @param string $filePath
  14563. * @param string|callable|null $disk
  14564. * @param callable|null $callback
  14565. * @static
  14566. */
  14567. public static function assertQueued($filePath, $disk = null, $callback = null)
  14568. {
  14569. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14570. return $instance->assertQueued($filePath, $disk, $callback);
  14571. }
  14572. /**
  14573. *
  14574. *
  14575. * @static
  14576. */
  14577. public static function assertQueuedWithChain($chain)
  14578. {
  14579. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14580. return $instance->assertQueuedWithChain($chain);
  14581. }
  14582. /**
  14583. *
  14584. *
  14585. * @param string $filePath
  14586. * @param string|callable|null $disk
  14587. * @param callable|null $callback
  14588. * @static
  14589. */
  14590. public static function assertImported($filePath, $disk = null, $callback = null)
  14591. {
  14592. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  14593. return $instance->assertImported($filePath, $disk, $callback);
  14594. }
  14595. }
  14596. }
  14597. namespace Madnest\Madzipper\Facades {
  14598. /**
  14599. *
  14600. *
  14601. */
  14602. class Madzipper {
  14603. /**
  14604. * Create a new zip Archive if the file does not exists
  14605. * opens a zip archive if the file exists
  14606. *
  14607. * @param $pathToFile string The file to open
  14608. * @param \Madnest\Madzipper\RepositoryInterface|string $type The type of the archive, defaults to zip, possible are zip, phar
  14609. * @throws \RuntimeException
  14610. * @throws \Exception
  14611. * @throws \InvalidArgumentException
  14612. * @return \Madnest\Madzipper\Madzipper Madzipper instance
  14613. * @static
  14614. */
  14615. public static function make($pathToFile, $type = 'zip')
  14616. {
  14617. /** @var \Madnest\Madzipper\Madzipper $instance */
  14618. return $instance->make($pathToFile, $type);
  14619. }
  14620. /**
  14621. * Create a new zip archive or open an existing one
  14622. *
  14623. * @param $pathToFile
  14624. * @throws \Exception
  14625. * @return \Madnest\Madzipper\Madzipper
  14626. * @static
  14627. */
  14628. public static function zip($pathToFile)
  14629. {
  14630. /** @var \Madnest\Madzipper\Madzipper $instance */
  14631. return $instance->zip($pathToFile);
  14632. }
  14633. /**
  14634. * Create a new phar file or open one
  14635. *
  14636. * @param $pathToFile
  14637. * @throws \Exception
  14638. * @return \Madnest\Madzipper\Madzipper
  14639. * @static
  14640. */
  14641. public static function phar($pathToFile)
  14642. {
  14643. /** @var \Madnest\Madzipper\Madzipper $instance */
  14644. return $instance->phar($pathToFile);
  14645. }
  14646. /**
  14647. * Create a new rar file or open one
  14648. *
  14649. * @param $pathToFile
  14650. * @throws \Exception
  14651. * @return \Madnest\Madzipper\Madzipper
  14652. * @static
  14653. */
  14654. public static function rar($pathToFile)
  14655. {
  14656. /** @var \Madnest\Madzipper\Madzipper $instance */
  14657. return $instance->rar($pathToFile);
  14658. }
  14659. /**
  14660. * Extracts the opened zip archive to the specified location <br/>
  14661. * you can provide an array of files and folders and define if they should be a white list
  14662. * or a black list to extract. By default this method compares file names using "string starts with" logic
  14663. *
  14664. * @param $path string The path to extract to
  14665. * @param array $files An array of files
  14666. * @param int $methodFlags The Method the files should be treated
  14667. * @throws \Exception
  14668. * @static
  14669. */
  14670. public static function extractTo($path, $files = [], $methodFlags = 2)
  14671. {
  14672. /** @var \Madnest\Madzipper\Madzipper $instance */
  14673. return $instance->extractTo($path, $files, $methodFlags);
  14674. }
  14675. /**
  14676. * Extracts matching files/folders from the opened zip archive to the specified location.
  14677. *
  14678. * @param string $extractToPath The path to extract to
  14679. * @param string $regex regular expression used to match files. See @link http://php.net/manual/en/reference.pcre.pattern.syntax.php
  14680. * @throws \InvalidArgumentException
  14681. * @throws \RuntimeException
  14682. * @static
  14683. */
  14684. public static function extractMatchingRegex($extractToPath, $regex)
  14685. {
  14686. /** @var \Madnest\Madzipper\Madzipper $instance */
  14687. return $instance->extractMatchingRegex($extractToPath, $regex);
  14688. }
  14689. /**
  14690. * Gets the content of a single file if available
  14691. *
  14692. * @param $filePath string The full path (including all folders) of the file in the zip
  14693. * @throws \Exception
  14694. * @return mixed returns the content or throws an exception
  14695. * @static
  14696. */
  14697. public static function getFileContent($filePath)
  14698. {
  14699. /** @var \Madnest\Madzipper\Madzipper $instance */
  14700. return $instance->getFileContent($filePath);
  14701. }
  14702. /**
  14703. * Add one or multiple files to the zip.
  14704. *
  14705. * @param $pathToAdd array|string An array or string of files and folders to add
  14706. * @param null|mixed $fileName
  14707. * @return \Madnest\Madzipper\Madzipper Madzipper instance
  14708. * @static
  14709. */
  14710. public static function add($pathToAdd, $fileName = null)
  14711. {
  14712. /** @var \Madnest\Madzipper\Madzipper $instance */
  14713. return $instance->add($pathToAdd, $fileName);
  14714. }
  14715. /**
  14716. * Add an empty directory
  14717. *
  14718. * @param $dirName
  14719. * @return \Madzipper
  14720. * @static
  14721. */
  14722. public static function addEmptyDir($dirName)
  14723. {
  14724. /** @var \Madnest\Madzipper\Madzipper $instance */
  14725. return $instance->addEmptyDir($dirName);
  14726. }
  14727. /**
  14728. * Add a file to the zip using its contents
  14729. *
  14730. * @param $filename string The name of the file to create
  14731. * @param $content string The file contents
  14732. * @return \Madnest\Madzipper\Madzipper Madzipper instance
  14733. * @static
  14734. */
  14735. public static function addString($filename, $content)
  14736. {
  14737. /** @var \Madnest\Madzipper\Madzipper $instance */
  14738. return $instance->addString($filename, $content);
  14739. }
  14740. /**
  14741. * Gets the status of the zip.
  14742. *
  14743. * @return int The status of the internal zip file
  14744. * @static
  14745. */
  14746. public static function getStatus()
  14747. {
  14748. /** @var \Madnest\Madzipper\Madzipper $instance */
  14749. return $instance->getStatus();
  14750. }
  14751. /**
  14752. * Remove a file or array of files and folders from the zip archive
  14753. *
  14754. * @param $fileToRemove array|string The path/array to the files in the zip
  14755. * @return \Madnest\Madzipper\Madzipper Madzipper instance
  14756. * @static
  14757. */
  14758. public static function remove($fileToRemove)
  14759. {
  14760. /** @var \Madnest\Madzipper\Madzipper $instance */
  14761. return $instance->remove($fileToRemove);
  14762. }
  14763. /**
  14764. * Returns the path of the current zip file if there is one.
  14765. *
  14766. * @return string The path to the file
  14767. * @static
  14768. */
  14769. public static function getFilePath()
  14770. {
  14771. /** @var \Madnest\Madzipper\Madzipper $instance */
  14772. return $instance->getFilePath();
  14773. }
  14774. /**
  14775. * Sets the password to be used for decompressing
  14776. *
  14777. * @param $password
  14778. * @return bool
  14779. * @static
  14780. */
  14781. public static function usePassword($password)
  14782. {
  14783. /** @var \Madnest\Madzipper\Madzipper $instance */
  14784. return $instance->usePassword($password);
  14785. }
  14786. /**
  14787. * Closes the zip file and frees all handles
  14788. *
  14789. * @static
  14790. */
  14791. public static function close()
  14792. {
  14793. /** @var \Madnest\Madzipper\Madzipper $instance */
  14794. return $instance->close();
  14795. }
  14796. /**
  14797. * Sets the internal folder to the given path.<br/>
  14798. * Useful for extracting only a segment of a zip file.
  14799. *
  14800. * @param $path
  14801. * @return \Madnest\Madzipper\Madzipper
  14802. * @static
  14803. */
  14804. public static function folder($path)
  14805. {
  14806. /** @var \Madnest\Madzipper\Madzipper $instance */
  14807. return $instance->folder($path);
  14808. }
  14809. /**
  14810. * Resets the internal folder to the root of the zip file.
  14811. *
  14812. * @return \Madnest\Madzipper\Madzipper
  14813. * @static
  14814. */
  14815. public static function home()
  14816. {
  14817. /** @var \Madnest\Madzipper\Madzipper $instance */
  14818. return $instance->home();
  14819. }
  14820. /**
  14821. * Deletes the archive file
  14822. *
  14823. * @static
  14824. */
  14825. public static function delete()
  14826. {
  14827. /** @var \Madnest\Madzipper\Madzipper $instance */
  14828. return $instance->delete();
  14829. }
  14830. /**
  14831. * Get the type of the Archive
  14832. *
  14833. * @return string
  14834. * @static
  14835. */
  14836. public static function getArchiveType()
  14837. {
  14838. /** @var \Madnest\Madzipper\Madzipper $instance */
  14839. return $instance->getArchiveType();
  14840. }
  14841. /**
  14842. * Get the current internal folder pointer
  14843. *
  14844. * @return string
  14845. * @static
  14846. */
  14847. public static function getCurrentFolderPath()
  14848. {
  14849. /** @var \Madnest\Madzipper\Madzipper $instance */
  14850. return $instance->getCurrentFolderPath();
  14851. }
  14852. /**
  14853. * Checks if a file is present in the archive
  14854. *
  14855. * @param $fileInArchive
  14856. * @return bool
  14857. * @static
  14858. */
  14859. public static function contains($fileInArchive)
  14860. {
  14861. /** @var \Madnest\Madzipper\Madzipper $instance */
  14862. return $instance->contains($fileInArchive);
  14863. }
  14864. /**
  14865. *
  14866. *
  14867. * @return \Madnest\Madzipper\RepositoryInterface
  14868. * @static
  14869. */
  14870. public static function getRepository()
  14871. {
  14872. /** @var \Madnest\Madzipper\Madzipper $instance */
  14873. return $instance->getRepository();
  14874. }
  14875. /**
  14876. *
  14877. *
  14878. * @return \Madnest\Madzipper\Filesystem
  14879. * @static
  14880. */
  14881. public static function getFileHandler()
  14882. {
  14883. /** @var \Madnest\Madzipper\Madzipper $instance */
  14884. return $instance->getFileHandler();
  14885. }
  14886. /**
  14887. * Gets the path to the internal folder
  14888. *
  14889. * @return string
  14890. * @static
  14891. */
  14892. public static function getInternalPath()
  14893. {
  14894. /** @var \Madnest\Madzipper\Madzipper $instance */
  14895. return $instance->getInternalPath();
  14896. }
  14897. /**
  14898. * List all files that are within the archive
  14899. *
  14900. * @param string|null $regexFilter regular expression to filter returned files/folders. See @link http://php.net/manual/en/reference.pcre.pattern.syntax.php
  14901. * @throws \RuntimeException
  14902. * @return array
  14903. * @static
  14904. */
  14905. public static function listFiles($regexFilter = null)
  14906. {
  14907. /** @var \Madnest\Madzipper\Madzipper $instance */
  14908. return $instance->listFiles($regexFilter);
  14909. }
  14910. }
  14911. }
  14912. namespace Orangehill\Iseed\Facades {
  14913. /**
  14914. *
  14915. *
  14916. */
  14917. class Iseed {
  14918. /**
  14919. *
  14920. *
  14921. * @static
  14922. */
  14923. public static function readStubFile($file)
  14924. {
  14925. /** @var \Orangehill\Iseed\Iseed $instance */
  14926. return $instance->readStubFile($file);
  14927. }
  14928. /**
  14929. * Generates a seed file.
  14930. *
  14931. * @param string $table
  14932. * @param string $prefix
  14933. * @param string $suffix
  14934. * @param string $database
  14935. * @param int $max
  14936. * @param string $prerunEvent
  14937. * @param string $postunEvent
  14938. * @return bool
  14939. * @throws Orangehill\Iseed\TableNotFoundException
  14940. * @static
  14941. */
  14942. public static function generateSeed($table, $prefix = null, $suffix = null, $database = null, $max = 0, $chunkSize = 0, $exclude = null, $prerunEvent = null, $postrunEvent = null, $dumpAuto = true, $indexed = true, $orderBy = null, $direction = 'ASC')
  14943. {
  14944. /** @var \Orangehill\Iseed\Iseed $instance */
  14945. return $instance->generateSeed($table, $prefix, $suffix, $database, $max, $chunkSize, $exclude, $prerunEvent, $postrunEvent, $dumpAuto, $indexed, $orderBy, $direction);
  14946. }
  14947. /**
  14948. * Get a seed folder path
  14949. *
  14950. * @return string
  14951. * @static
  14952. */
  14953. public static function getSeedPath()
  14954. {
  14955. /** @var \Orangehill\Iseed\Iseed $instance */
  14956. return $instance->getSeedPath();
  14957. }
  14958. /**
  14959. * Get the Data
  14960. *
  14961. * @param string $table
  14962. * @return Array
  14963. * @static
  14964. */
  14965. public static function getData($table, $max, $exclude = null, $orderBy = null, $direction = 'ASC')
  14966. {
  14967. /** @var \Orangehill\Iseed\Iseed $instance */
  14968. return $instance->getData($table, $max, $exclude, $orderBy, $direction);
  14969. }
  14970. /**
  14971. * Repacks data read from the database
  14972. *
  14973. * @param array|object $data
  14974. * @return array
  14975. * @static
  14976. */
  14977. public static function repackSeedData($data)
  14978. {
  14979. /** @var \Orangehill\Iseed\Iseed $instance */
  14980. return $instance->repackSeedData($data);
  14981. }
  14982. /**
  14983. * Checks if a database table exists
  14984. *
  14985. * @param string $table
  14986. * @return boolean
  14987. * @static
  14988. */
  14989. public static function hasTable($table)
  14990. {
  14991. /** @var \Orangehill\Iseed\Iseed $instance */
  14992. return $instance->hasTable($table);
  14993. }
  14994. /**
  14995. * Generates a seed class name (also used as a filename)
  14996. *
  14997. * @param string $table
  14998. * @param string $prefix
  14999. * @param string $suffix
  15000. * @return string
  15001. * @static
  15002. */
  15003. public static function generateClassName($table, $prefix = null, $suffix = null)
  15004. {
  15005. /** @var \Orangehill\Iseed\Iseed $instance */
  15006. return $instance->generateClassName($table, $prefix, $suffix);
  15007. }
  15008. /**
  15009. * Get the path to the stub file.
  15010. *
  15011. * @return string
  15012. * @static
  15013. */
  15014. public static function getStubPath()
  15015. {
  15016. /** @var \Orangehill\Iseed\Iseed $instance */
  15017. return $instance->getStubPath();
  15018. }
  15019. /**
  15020. * Populate the place-holders in the seed stub.
  15021. *
  15022. * @param string $class
  15023. * @param string $stub
  15024. * @param string $table
  15025. * @param string $data
  15026. * @param int $chunkSize
  15027. * @param string $prerunEvent
  15028. * @param string $postunEvent
  15029. * @return string
  15030. * @static
  15031. */
  15032. public static function populateStub($class, $stub, $table, $data, $chunkSize = null, $prerunEvent = null, $postrunEvent = null, $indexed = true)
  15033. {
  15034. /** @var \Orangehill\Iseed\Iseed $instance */
  15035. return $instance->populateStub($class, $stub, $table, $data, $chunkSize, $prerunEvent, $postrunEvent, $indexed);
  15036. }
  15037. /**
  15038. * Create the full path name to the seed file.
  15039. *
  15040. * @param string $name
  15041. * @param string $path
  15042. * @return string
  15043. * @static
  15044. */
  15045. public static function getPath($name, $path)
  15046. {
  15047. /** @var \Orangehill\Iseed\Iseed $instance */
  15048. return $instance->getPath($name, $path);
  15049. }
  15050. /**
  15051. * Cleans the iSeed section
  15052. *
  15053. * @return bool
  15054. * @static
  15055. */
  15056. public static function cleanSection()
  15057. {
  15058. /** @var \Orangehill\Iseed\Iseed $instance */
  15059. return $instance->cleanSection();
  15060. }
  15061. /**
  15062. * Updates the DatabaseSeeder file's run method (kudoz to: https://github.com/JeffreyWay/Laravel-4-Generators)
  15063. *
  15064. * @param string $className
  15065. * @return bool
  15066. * @static
  15067. */
  15068. public static function updateDatabaseSeederRunMethod($className)
  15069. {
  15070. /** @var \Orangehill\Iseed\Iseed $instance */
  15071. return $instance->updateDatabaseSeederRunMethod($className);
  15072. }
  15073. }
  15074. }
  15075. namespace {
  15076. class App extends \Illuminate\Support\Facades\App {}
  15077. class Arr extends \Illuminate\Support\Arr {}
  15078. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  15079. class Auth extends \Illuminate\Support\Facades\Auth {}
  15080. class Blade extends \Illuminate\Support\Facades\Blade {}
  15081. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  15082. class Bus extends \Illuminate\Support\Facades\Bus {}
  15083. class Cache extends \Illuminate\Support\Facades\Cache {}
  15084. class Config extends \Illuminate\Support\Facades\Config {}
  15085. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  15086. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  15087. class DB extends \Illuminate\Support\Facades\DB {}
  15088. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  15089. /**
  15090. * Create and return an un-saved model instance.
  15091. *
  15092. * @param array $attributes
  15093. * @return \Illuminate\Database\Eloquent\Model|static
  15094. * @static
  15095. */
  15096. public static function make($attributes = [])
  15097. {
  15098. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15099. return $instance->make($attributes);
  15100. }
  15101. /**
  15102. * Register a new global scope.
  15103. *
  15104. * @param string $identifier
  15105. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  15106. * @return \Illuminate\Database\Eloquent\Builder|static
  15107. * @static
  15108. */
  15109. public static function withGlobalScope($identifier, $scope)
  15110. {
  15111. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15112. return $instance->withGlobalScope($identifier, $scope);
  15113. }
  15114. /**
  15115. * Remove a registered global scope.
  15116. *
  15117. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  15118. * @return \Illuminate\Database\Eloquent\Builder|static
  15119. * @static
  15120. */
  15121. public static function withoutGlobalScope($scope)
  15122. {
  15123. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15124. return $instance->withoutGlobalScope($scope);
  15125. }
  15126. /**
  15127. * Remove all or passed registered global scopes.
  15128. *
  15129. * @param array|null $scopes
  15130. * @return \Illuminate\Database\Eloquent\Builder|static
  15131. * @static
  15132. */
  15133. public static function withoutGlobalScopes($scopes = null)
  15134. {
  15135. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15136. return $instance->withoutGlobalScopes($scopes);
  15137. }
  15138. /**
  15139. * Get an array of global scopes that were removed from the query.
  15140. *
  15141. * @return array
  15142. * @static
  15143. */
  15144. public static function removedScopes()
  15145. {
  15146. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15147. return $instance->removedScopes();
  15148. }
  15149. /**
  15150. * Add a where clause on the primary key to the query.
  15151. *
  15152. * @param mixed $id
  15153. * @return \Illuminate\Database\Eloquent\Builder|static
  15154. * @static
  15155. */
  15156. public static function whereKey($id)
  15157. {
  15158. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15159. return $instance->whereKey($id);
  15160. }
  15161. /**
  15162. * Add a where clause on the primary key to the query.
  15163. *
  15164. * @param mixed $id
  15165. * @return \Illuminate\Database\Eloquent\Builder|static
  15166. * @static
  15167. */
  15168. public static function whereKeyNot($id)
  15169. {
  15170. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15171. return $instance->whereKeyNot($id);
  15172. }
  15173. /**
  15174. * Add a basic where clause to the query.
  15175. *
  15176. * @param \Closure|string|array $column
  15177. * @param mixed $operator
  15178. * @param mixed $value
  15179. * @param string $boolean
  15180. * @return \Illuminate\Database\Eloquent\Builder|static
  15181. * @static
  15182. */
  15183. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  15184. {
  15185. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15186. return $instance->where($column, $operator, $value, $boolean);
  15187. }
  15188. /**
  15189. * Add a basic where clause to the query, and return the first result.
  15190. *
  15191. * @param \Closure|string|array $column
  15192. * @param mixed $operator
  15193. * @param mixed $value
  15194. * @param string $boolean
  15195. * @return \Illuminate\Database\Eloquent\Model|static
  15196. * @static
  15197. */
  15198. public static function firstWhere($column, $operator = null, $value = null, $boolean = 'and')
  15199. {
  15200. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15201. return $instance->firstWhere($column, $operator, $value, $boolean);
  15202. }
  15203. /**
  15204. * Add an "or where" clause to the query.
  15205. *
  15206. * @param \Closure|array|string $column
  15207. * @param mixed $operator
  15208. * @param mixed $value
  15209. * @return \Illuminate\Database\Eloquent\Builder|static
  15210. * @static
  15211. */
  15212. public static function orWhere($column, $operator = null, $value = null)
  15213. {
  15214. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15215. return $instance->orWhere($column, $operator, $value);
  15216. }
  15217. /**
  15218. * Add an "order by" clause for a timestamp to the query.
  15219. *
  15220. * @param string $column
  15221. * @return \Illuminate\Database\Eloquent\Builder|static
  15222. * @static
  15223. */
  15224. public static function latest($column = null)
  15225. {
  15226. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15227. return $instance->latest($column);
  15228. }
  15229. /**
  15230. * Add an "order by" clause for a timestamp to the query.
  15231. *
  15232. * @param string $column
  15233. * @return \Illuminate\Database\Eloquent\Builder|static
  15234. * @static
  15235. */
  15236. public static function oldest($column = null)
  15237. {
  15238. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15239. return $instance->oldest($column);
  15240. }
  15241. /**
  15242. * Create a collection of models from plain arrays.
  15243. *
  15244. * @param array $items
  15245. * @return \Illuminate\Database\Eloquent\Collection
  15246. * @static
  15247. */
  15248. public static function hydrate($items)
  15249. {
  15250. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15251. return $instance->hydrate($items);
  15252. }
  15253. /**
  15254. * Create a collection of models from a raw query.
  15255. *
  15256. * @param string $query
  15257. * @param array $bindings
  15258. * @return \Illuminate\Database\Eloquent\Collection
  15259. * @static
  15260. */
  15261. public static function fromQuery($query, $bindings = [])
  15262. {
  15263. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15264. return $instance->fromQuery($query, $bindings);
  15265. }
  15266. /**
  15267. * Find a model by its primary key.
  15268. *
  15269. * @param mixed $id
  15270. * @param array $columns
  15271. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  15272. * @static
  15273. */
  15274. public static function find($id, $columns = [])
  15275. {
  15276. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15277. return $instance->find($id, $columns);
  15278. }
  15279. /**
  15280. * Find multiple models by their primary keys.
  15281. *
  15282. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  15283. * @param array $columns
  15284. * @return \Illuminate\Database\Eloquent\Collection
  15285. * @static
  15286. */
  15287. public static function findMany($ids, $columns = [])
  15288. {
  15289. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15290. return $instance->findMany($ids, $columns);
  15291. }
  15292. /**
  15293. * Find a model by its primary key or throw an exception.
  15294. *
  15295. * @param mixed $id
  15296. * @param array $columns
  15297. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  15298. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  15299. * @static
  15300. */
  15301. public static function findOrFail($id, $columns = [])
  15302. {
  15303. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15304. return $instance->findOrFail($id, $columns);
  15305. }
  15306. /**
  15307. * Find a model by its primary key or return fresh model instance.
  15308. *
  15309. * @param mixed $id
  15310. * @param array $columns
  15311. * @return \Illuminate\Database\Eloquent\Model|static
  15312. * @static
  15313. */
  15314. public static function findOrNew($id, $columns = [])
  15315. {
  15316. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15317. return $instance->findOrNew($id, $columns);
  15318. }
  15319. /**
  15320. * Get the first record matching the attributes or instantiate it.
  15321. *
  15322. * @param array $attributes
  15323. * @param array $values
  15324. * @return \Illuminate\Database\Eloquent\Model|static
  15325. * @static
  15326. */
  15327. public static function firstOrNew($attributes = [], $values = [])
  15328. {
  15329. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15330. return $instance->firstOrNew($attributes, $values);
  15331. }
  15332. /**
  15333. * Get the first record matching the attributes or create it.
  15334. *
  15335. * @param array $attributes
  15336. * @param array $values
  15337. * @return \Illuminate\Database\Eloquent\Model|static
  15338. * @static
  15339. */
  15340. public static function firstOrCreate($attributes, $values = [])
  15341. {
  15342. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15343. return $instance->firstOrCreate($attributes, $values);
  15344. }
  15345. /**
  15346. * Create or update a record matching the attributes, and fill it with values.
  15347. *
  15348. * @param array $attributes
  15349. * @param array $values
  15350. * @return \Illuminate\Database\Eloquent\Model|static
  15351. * @static
  15352. */
  15353. public static function updateOrCreate($attributes, $values = [])
  15354. {
  15355. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15356. return $instance->updateOrCreate($attributes, $values);
  15357. }
  15358. /**
  15359. * Execute the query and get the first result or throw an exception.
  15360. *
  15361. * @param array $columns
  15362. * @return \Illuminate\Database\Eloquent\Model|static
  15363. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  15364. * @static
  15365. */
  15366. public static function firstOrFail($columns = [])
  15367. {
  15368. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15369. return $instance->firstOrFail($columns);
  15370. }
  15371. /**
  15372. * Execute the query and get the first result or call a callback.
  15373. *
  15374. * @param \Closure|array $columns
  15375. * @param \Closure|null $callback
  15376. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  15377. * @static
  15378. */
  15379. public static function firstOr($columns = [], $callback = null)
  15380. {
  15381. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15382. return $instance->firstOr($columns, $callback);
  15383. }
  15384. /**
  15385. * Get a single column's value from the first result of a query.
  15386. *
  15387. * @param string $column
  15388. * @return mixed
  15389. * @static
  15390. */
  15391. public static function value($column)
  15392. {
  15393. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15394. return $instance->value($column);
  15395. }
  15396. /**
  15397. * Execute the query as a "select" statement.
  15398. *
  15399. * @param array|string $columns
  15400. * @return \Illuminate\Database\Eloquent\Collection|static[]
  15401. * @static
  15402. */
  15403. public static function get($columns = [])
  15404. {
  15405. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15406. return $instance->get($columns);
  15407. }
  15408. /**
  15409. * Get the hydrated models without eager loading.
  15410. *
  15411. * @param array|string $columns
  15412. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  15413. * @static
  15414. */
  15415. public static function getModels($columns = [])
  15416. {
  15417. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15418. return $instance->getModels($columns);
  15419. }
  15420. /**
  15421. * Eager load the relationships for the models.
  15422. *
  15423. * @param array $models
  15424. * @return array
  15425. * @static
  15426. */
  15427. public static function eagerLoadRelations($models)
  15428. {
  15429. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15430. return $instance->eagerLoadRelations($models);
  15431. }
  15432. /**
  15433. * Get a lazy collection for the given query.
  15434. *
  15435. * @return \Illuminate\Support\LazyCollection
  15436. * @static
  15437. */
  15438. public static function cursor()
  15439. {
  15440. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15441. return $instance->cursor();
  15442. }
  15443. /**
  15444. * Get an array with the values of a given column.
  15445. *
  15446. * @param string $column
  15447. * @param string|null $key
  15448. * @return \Illuminate\Support\Collection
  15449. * @static
  15450. */
  15451. public static function pluck($column, $key = null)
  15452. {
  15453. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15454. return $instance->pluck($column, $key);
  15455. }
  15456. /**
  15457. * Paginate the given query.
  15458. *
  15459. * @param int|null $perPage
  15460. * @param array $columns
  15461. * @param string $pageName
  15462. * @param int|null $page
  15463. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  15464. * @throws \InvalidArgumentException
  15465. * @static
  15466. */
  15467. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15468. {
  15469. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15470. return $instance->paginate($perPage, $columns, $pageName, $page);
  15471. }
  15472. /**
  15473. * Paginate the given query into a simple paginator.
  15474. *
  15475. * @param int|null $perPage
  15476. * @param array $columns
  15477. * @param string $pageName
  15478. * @param int|null $page
  15479. * @return \Illuminate\Contracts\Pagination\Paginator
  15480. * @static
  15481. */
  15482. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15483. {
  15484. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15485. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  15486. }
  15487. /**
  15488. * Save a new model and return the instance.
  15489. *
  15490. * @param array $attributes
  15491. * @return \Illuminate\Database\Eloquent\Model|$this
  15492. * @static
  15493. */
  15494. public static function create($attributes = [])
  15495. {
  15496. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15497. return $instance->create($attributes);
  15498. }
  15499. /**
  15500. * Save a new model and return the instance. Allow mass-assignment.
  15501. *
  15502. * @param array $attributes
  15503. * @return \Illuminate\Database\Eloquent\Model|$this
  15504. * @static
  15505. */
  15506. public static function forceCreate($attributes)
  15507. {
  15508. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15509. return $instance->forceCreate($attributes);
  15510. }
  15511. /**
  15512. * Register a replacement for the default delete function.
  15513. *
  15514. * @param \Closure $callback
  15515. * @return void
  15516. * @static
  15517. */
  15518. public static function onDelete($callback)
  15519. {
  15520. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15521. $instance->onDelete($callback);
  15522. }
  15523. /**
  15524. * Call the given local model scopes.
  15525. *
  15526. * @param array|string $scopes
  15527. * @return static|mixed
  15528. * @static
  15529. */
  15530. public static function scopes($scopes)
  15531. {
  15532. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15533. return $instance->scopes($scopes);
  15534. }
  15535. /**
  15536. * Apply the scopes to the Eloquent builder instance and return it.
  15537. *
  15538. * @return static
  15539. * @static
  15540. */
  15541. public static function applyScopes()
  15542. {
  15543. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15544. return $instance->applyScopes();
  15545. }
  15546. /**
  15547. * Prevent the specified relations from being eager loaded.
  15548. *
  15549. * @param mixed $relations
  15550. * @return \Illuminate\Database\Eloquent\Builder|static
  15551. * @static
  15552. */
  15553. public static function without($relations)
  15554. {
  15555. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15556. return $instance->without($relations);
  15557. }
  15558. /**
  15559. * Create a new instance of the model being queried.
  15560. *
  15561. * @param array $attributes
  15562. * @return \Illuminate\Database\Eloquent\Model|static
  15563. * @static
  15564. */
  15565. public static function newModelInstance($attributes = [])
  15566. {
  15567. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15568. return $instance->newModelInstance($attributes);
  15569. }
  15570. /**
  15571. * Apply query-time casts to the model instance.
  15572. *
  15573. * @param array $casts
  15574. * @return \Illuminate\Database\Eloquent\Builder|static
  15575. * @static
  15576. */
  15577. public static function withCasts($casts)
  15578. {
  15579. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15580. return $instance->withCasts($casts);
  15581. }
  15582. /**
  15583. * Get the underlying query builder instance.
  15584. *
  15585. * @return \Illuminate\Database\Query\Builder
  15586. * @static
  15587. */
  15588. public static function getQuery()
  15589. {
  15590. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15591. return $instance->getQuery();
  15592. }
  15593. /**
  15594. * Set the underlying query builder instance.
  15595. *
  15596. * @param \Illuminate\Database\Query\Builder $query
  15597. * @return \Illuminate\Database\Eloquent\Builder|static
  15598. * @static
  15599. */
  15600. public static function setQuery($query)
  15601. {
  15602. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15603. return $instance->setQuery($query);
  15604. }
  15605. /**
  15606. * Get a base query builder instance.
  15607. *
  15608. * @return \Illuminate\Database\Query\Builder
  15609. * @static
  15610. */
  15611. public static function toBase()
  15612. {
  15613. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15614. return $instance->toBase();
  15615. }
  15616. /**
  15617. * Get the relationships being eagerly loaded.
  15618. *
  15619. * @return array
  15620. * @static
  15621. */
  15622. public static function getEagerLoads()
  15623. {
  15624. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15625. return $instance->getEagerLoads();
  15626. }
  15627. /**
  15628. * Set the relationships being eagerly loaded.
  15629. *
  15630. * @param array $eagerLoad
  15631. * @return \Illuminate\Database\Eloquent\Builder|static
  15632. * @static
  15633. */
  15634. public static function setEagerLoads($eagerLoad)
  15635. {
  15636. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15637. return $instance->setEagerLoads($eagerLoad);
  15638. }
  15639. /**
  15640. * Get the model instance being queried.
  15641. *
  15642. * @return \Illuminate\Database\Eloquent\Model|static
  15643. * @static
  15644. */
  15645. public static function getModel()
  15646. {
  15647. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15648. return $instance->getModel();
  15649. }
  15650. /**
  15651. * Set a model instance for the model being queried.
  15652. *
  15653. * @param \Illuminate\Database\Eloquent\Model $model
  15654. * @return \Illuminate\Database\Eloquent\Builder|static
  15655. * @static
  15656. */
  15657. public static function setModel($model)
  15658. {
  15659. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15660. return $instance->setModel($model);
  15661. }
  15662. /**
  15663. * Get the given macro by name.
  15664. *
  15665. * @param string $name
  15666. * @return \Closure
  15667. * @static
  15668. */
  15669. public static function getMacro($name)
  15670. {
  15671. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15672. return $instance->getMacro($name);
  15673. }
  15674. /**
  15675. * Checks if a macro is registered.
  15676. *
  15677. * @param string $name
  15678. * @return bool
  15679. * @static
  15680. */
  15681. public static function hasMacro($name)
  15682. {
  15683. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15684. return $instance->hasMacro($name);
  15685. }
  15686. /**
  15687. * Get the given global macro by name.
  15688. *
  15689. * @param string $name
  15690. * @return \Closure
  15691. * @static
  15692. */
  15693. public static function getGlobalMacro($name)
  15694. {
  15695. return \Illuminate\Database\Eloquent\Builder::getGlobalMacro($name);
  15696. }
  15697. /**
  15698. * Checks if a global macro is registered.
  15699. *
  15700. * @param string $name
  15701. * @return bool
  15702. * @static
  15703. */
  15704. public static function hasGlobalMacro($name)
  15705. {
  15706. return \Illuminate\Database\Eloquent\Builder::hasGlobalMacro($name);
  15707. }
  15708. /**
  15709. * Chunk the results of the query.
  15710. *
  15711. * @param int $count
  15712. * @param callable $callback
  15713. * @return bool
  15714. * @static
  15715. */
  15716. public static function chunk($count, $callback)
  15717. {
  15718. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15719. return $instance->chunk($count, $callback);
  15720. }
  15721. /**
  15722. * Execute a callback over each item while chunking.
  15723. *
  15724. * @param callable $callback
  15725. * @param int $count
  15726. * @return bool
  15727. * @static
  15728. */
  15729. public static function each($callback, $count = 1000)
  15730. {
  15731. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15732. return $instance->each($callback, $count);
  15733. }
  15734. /**
  15735. * Chunk the results of a query by comparing IDs.
  15736. *
  15737. * @param int $count
  15738. * @param callable $callback
  15739. * @param string|null $column
  15740. * @param string|null $alias
  15741. * @return bool
  15742. * @static
  15743. */
  15744. public static function chunkById($count, $callback, $column = null, $alias = null)
  15745. {
  15746. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15747. return $instance->chunkById($count, $callback, $column, $alias);
  15748. }
  15749. /**
  15750. * Execute a callback over each item while chunking by ID.
  15751. *
  15752. * @param callable $callback
  15753. * @param int $count
  15754. * @param string|null $column
  15755. * @param string|null $alias
  15756. * @return bool
  15757. * @static
  15758. */
  15759. public static function eachById($callback, $count = 1000, $column = null, $alias = null)
  15760. {
  15761. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15762. return $instance->eachById($callback, $count, $column, $alias);
  15763. }
  15764. /**
  15765. * Execute the query and get the first result.
  15766. *
  15767. * @param array|string $columns
  15768. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15769. * @static
  15770. */
  15771. public static function first($columns = [])
  15772. {
  15773. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15774. return $instance->first($columns);
  15775. }
  15776. /**
  15777. * Apply the callback's query changes if the given "value" is true.
  15778. *
  15779. * @param mixed $value
  15780. * @param callable $callback
  15781. * @param callable|null $default
  15782. * @return mixed|$this
  15783. * @static
  15784. */
  15785. public static function when($value, $callback, $default = null)
  15786. {
  15787. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15788. return $instance->when($value, $callback, $default);
  15789. }
  15790. /**
  15791. * Pass the query to a given callback.
  15792. *
  15793. * @param callable $callback
  15794. * @return \Illuminate\Database\Eloquent\Builder|static
  15795. * @static
  15796. */
  15797. public static function tap($callback)
  15798. {
  15799. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15800. return $instance->tap($callback);
  15801. }
  15802. /**
  15803. * Apply the callback's query changes if the given "value" is false.
  15804. *
  15805. * @param mixed $value
  15806. * @param callable $callback
  15807. * @param callable|null $default
  15808. * @return mixed|$this
  15809. * @static
  15810. */
  15811. public static function unless($value, $callback, $default = null)
  15812. {
  15813. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15814. return $instance->unless($value, $callback, $default);
  15815. }
  15816. /**
  15817. * Add a relationship count / exists condition to the query.
  15818. *
  15819. * @param \Illuminate\Database\Eloquent\Relations\Relation|string $relation
  15820. * @param string $operator
  15821. * @param int $count
  15822. * @param string $boolean
  15823. * @param \Closure|null $callback
  15824. * @return \Illuminate\Database\Eloquent\Builder|static
  15825. * @throws \RuntimeException
  15826. * @static
  15827. */
  15828. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15829. {
  15830. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15831. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15832. }
  15833. /**
  15834. * Add a relationship count / exists condition to the query with an "or".
  15835. *
  15836. * @param string $relation
  15837. * @param string $operator
  15838. * @param int $count
  15839. * @return \Illuminate\Database\Eloquent\Builder|static
  15840. * @static
  15841. */
  15842. public static function orHas($relation, $operator = '>=', $count = 1)
  15843. {
  15844. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15845. return $instance->orHas($relation, $operator, $count);
  15846. }
  15847. /**
  15848. * Add a relationship count / exists condition to the query.
  15849. *
  15850. * @param string $relation
  15851. * @param string $boolean
  15852. * @param \Closure|null $callback
  15853. * @return \Illuminate\Database\Eloquent\Builder|static
  15854. * @static
  15855. */
  15856. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15857. {
  15858. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15859. return $instance->doesntHave($relation, $boolean, $callback);
  15860. }
  15861. /**
  15862. * Add a relationship count / exists condition to the query with an "or".
  15863. *
  15864. * @param string $relation
  15865. * @return \Illuminate\Database\Eloquent\Builder|static
  15866. * @static
  15867. */
  15868. public static function orDoesntHave($relation)
  15869. {
  15870. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15871. return $instance->orDoesntHave($relation);
  15872. }
  15873. /**
  15874. * Add a relationship count / exists condition to the query with where clauses.
  15875. *
  15876. * @param string $relation
  15877. * @param \Closure|null $callback
  15878. * @param string $operator
  15879. * @param int $count
  15880. * @return \Illuminate\Database\Eloquent\Builder|static
  15881. * @static
  15882. */
  15883. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15884. {
  15885. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15886. return $instance->whereHas($relation, $callback, $operator, $count);
  15887. }
  15888. /**
  15889. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15890. *
  15891. * @param string $relation
  15892. * @param \Closure|null $callback
  15893. * @param string $operator
  15894. * @param int $count
  15895. * @return \Illuminate\Database\Eloquent\Builder|static
  15896. * @static
  15897. */
  15898. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15899. {
  15900. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15901. return $instance->orWhereHas($relation, $callback, $operator, $count);
  15902. }
  15903. /**
  15904. * Add a relationship count / exists condition to the query with where clauses.
  15905. *
  15906. * @param string $relation
  15907. * @param \Closure|null $callback
  15908. * @return \Illuminate\Database\Eloquent\Builder|static
  15909. * @static
  15910. */
  15911. public static function whereDoesntHave($relation, $callback = null)
  15912. {
  15913. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15914. return $instance->whereDoesntHave($relation, $callback);
  15915. }
  15916. /**
  15917. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15918. *
  15919. * @param string $relation
  15920. * @param \Closure|null $callback
  15921. * @return \Illuminate\Database\Eloquent\Builder|static
  15922. * @static
  15923. */
  15924. public static function orWhereDoesntHave($relation, $callback = null)
  15925. {
  15926. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15927. return $instance->orWhereDoesntHave($relation, $callback);
  15928. }
  15929. /**
  15930. * Add a polymorphic relationship count / exists condition to the query.
  15931. *
  15932. * @param string $relation
  15933. * @param string|array $types
  15934. * @param string $operator
  15935. * @param int $count
  15936. * @param string $boolean
  15937. * @param \Closure|null $callback
  15938. * @return \Illuminate\Database\Eloquent\Builder|static
  15939. * @static
  15940. */
  15941. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15942. {
  15943. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15944. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  15945. }
  15946. /**
  15947. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15948. *
  15949. * @param string $relation
  15950. * @param string|array $types
  15951. * @param string $operator
  15952. * @param int $count
  15953. * @return \Illuminate\Database\Eloquent\Builder|static
  15954. * @static
  15955. */
  15956. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  15957. {
  15958. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15959. return $instance->orHasMorph($relation, $types, $operator, $count);
  15960. }
  15961. /**
  15962. * Add a polymorphic relationship count / exists condition to the query.
  15963. *
  15964. * @param string $relation
  15965. * @param string|array $types
  15966. * @param string $boolean
  15967. * @param \Closure|null $callback
  15968. * @return \Illuminate\Database\Eloquent\Builder|static
  15969. * @static
  15970. */
  15971. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  15972. {
  15973. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15974. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  15975. }
  15976. /**
  15977. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15978. *
  15979. * @param string $relation
  15980. * @param string|array $types
  15981. * @return \Illuminate\Database\Eloquent\Builder|static
  15982. * @static
  15983. */
  15984. public static function orDoesntHaveMorph($relation, $types)
  15985. {
  15986. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15987. return $instance->orDoesntHaveMorph($relation, $types);
  15988. }
  15989. /**
  15990. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15991. *
  15992. * @param string $relation
  15993. * @param string|array $types
  15994. * @param \Closure|null $callback
  15995. * @param string $operator
  15996. * @param int $count
  15997. * @return \Illuminate\Database\Eloquent\Builder|static
  15998. * @static
  15999. */
  16000. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  16001. {
  16002. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16003. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  16004. }
  16005. /**
  16006. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  16007. *
  16008. * @param string $relation
  16009. * @param string|array $types
  16010. * @param \Closure|null $callback
  16011. * @param string $operator
  16012. * @param int $count
  16013. * @return \Illuminate\Database\Eloquent\Builder|static
  16014. * @static
  16015. */
  16016. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  16017. {
  16018. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16019. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  16020. }
  16021. /**
  16022. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  16023. *
  16024. * @param string $relation
  16025. * @param string|array $types
  16026. * @param \Closure|null $callback
  16027. * @return \Illuminate\Database\Eloquent\Builder|static
  16028. * @static
  16029. */
  16030. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  16031. {
  16032. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16033. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  16034. }
  16035. /**
  16036. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  16037. *
  16038. * @param string $relation
  16039. * @param string|array $types
  16040. * @param \Closure|null $callback
  16041. * @return \Illuminate\Database\Eloquent\Builder|static
  16042. * @static
  16043. */
  16044. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  16045. {
  16046. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16047. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  16048. }
  16049. /**
  16050. * Add subselect queries to count the relations.
  16051. *
  16052. * @param mixed $relations
  16053. * @return \Illuminate\Database\Eloquent\Builder|static
  16054. * @static
  16055. */
  16056. public static function withCount($relations)
  16057. {
  16058. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16059. return $instance->withCount($relations);
  16060. }
  16061. /**
  16062. * Merge the where constraints from another query to the current query.
  16063. *
  16064. * @param \Illuminate\Database\Eloquent\Builder $from
  16065. * @return \Illuminate\Database\Eloquent\Builder|static
  16066. * @static
  16067. */
  16068. public static function mergeConstraintsFrom($from)
  16069. {
  16070. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16071. return $instance->mergeConstraintsFrom($from);
  16072. }
  16073. /**
  16074. * Set the columns to be selected.
  16075. *
  16076. * @param array|mixed $columns
  16077. * @return \Illuminate\Database\Query\Builder
  16078. * @static
  16079. */
  16080. public static function select($columns = [])
  16081. {
  16082. /** @var \Illuminate\Database\Query\Builder $instance */
  16083. return $instance->select($columns);
  16084. }
  16085. /**
  16086. * Add a subselect expression to the query.
  16087. *
  16088. * @param \Closure|$this|string $query
  16089. * @param string $as
  16090. * @return \Illuminate\Database\Query\Builder
  16091. * @throws \InvalidArgumentException
  16092. * @static
  16093. */
  16094. public static function selectSub($query, $as)
  16095. {
  16096. /** @var \Illuminate\Database\Query\Builder $instance */
  16097. return $instance->selectSub($query, $as);
  16098. }
  16099. /**
  16100. * Add a new "raw" select expression to the query.
  16101. *
  16102. * @param string $expression
  16103. * @param array $bindings
  16104. * @return \Illuminate\Database\Query\Builder
  16105. * @static
  16106. */
  16107. public static function selectRaw($expression, $bindings = [])
  16108. {
  16109. /** @var \Illuminate\Database\Query\Builder $instance */
  16110. return $instance->selectRaw($expression, $bindings);
  16111. }
  16112. /**
  16113. * Makes "from" fetch from a subquery.
  16114. *
  16115. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16116. * @param string $as
  16117. * @return \Illuminate\Database\Query\Builder
  16118. * @throws \InvalidArgumentException
  16119. * @static
  16120. */
  16121. public static function fromSub($query, $as)
  16122. {
  16123. /** @var \Illuminate\Database\Query\Builder $instance */
  16124. return $instance->fromSub($query, $as);
  16125. }
  16126. /**
  16127. * Add a raw from clause to the query.
  16128. *
  16129. * @param string $expression
  16130. * @param mixed $bindings
  16131. * @return \Illuminate\Database\Query\Builder
  16132. * @static
  16133. */
  16134. public static function fromRaw($expression, $bindings = [])
  16135. {
  16136. /** @var \Illuminate\Database\Query\Builder $instance */
  16137. return $instance->fromRaw($expression, $bindings);
  16138. }
  16139. /**
  16140. * Add a new select column to the query.
  16141. *
  16142. * @param array|mixed $column
  16143. * @return \Illuminate\Database\Query\Builder
  16144. * @static
  16145. */
  16146. public static function addSelect($column)
  16147. {
  16148. /** @var \Illuminate\Database\Query\Builder $instance */
  16149. return $instance->addSelect($column);
  16150. }
  16151. /**
  16152. * Force the query to only return distinct results.
  16153. *
  16154. * @return \Illuminate\Database\Query\Builder
  16155. * @static
  16156. */
  16157. public static function distinct()
  16158. {
  16159. /** @var \Illuminate\Database\Query\Builder $instance */
  16160. return $instance->distinct();
  16161. }
  16162. /**
  16163. * Set the table which the query is targeting.
  16164. *
  16165. * @param \Closure|\Illuminate\Database\Query\Builder|string $table
  16166. * @param string|null $as
  16167. * @return \Illuminate\Database\Query\Builder
  16168. * @static
  16169. */
  16170. public static function from($table, $as = null)
  16171. {
  16172. /** @var \Illuminate\Database\Query\Builder $instance */
  16173. return $instance->from($table, $as);
  16174. }
  16175. /**
  16176. * Add a join clause to the query.
  16177. *
  16178. * @param string $table
  16179. * @param \Closure|string $first
  16180. * @param string|null $operator
  16181. * @param string|null $second
  16182. * @param string $type
  16183. * @param bool $where
  16184. * @return \Illuminate\Database\Query\Builder
  16185. * @static
  16186. */
  16187. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  16188. {
  16189. /** @var \Illuminate\Database\Query\Builder $instance */
  16190. return $instance->join($table, $first, $operator, $second, $type, $where);
  16191. }
  16192. /**
  16193. * Add a "join where" clause to the query.
  16194. *
  16195. * @param string $table
  16196. * @param \Closure|string $first
  16197. * @param string $operator
  16198. * @param string $second
  16199. * @param string $type
  16200. * @return \Illuminate\Database\Query\Builder
  16201. * @static
  16202. */
  16203. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  16204. {
  16205. /** @var \Illuminate\Database\Query\Builder $instance */
  16206. return $instance->joinWhere($table, $first, $operator, $second, $type);
  16207. }
  16208. /**
  16209. * Add a subquery join clause to the query.
  16210. *
  16211. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16212. * @param string $as
  16213. * @param \Closure|string $first
  16214. * @param string|null $operator
  16215. * @param string|null $second
  16216. * @param string $type
  16217. * @param bool $where
  16218. * @return \Illuminate\Database\Query\Builder
  16219. * @throws \InvalidArgumentException
  16220. * @static
  16221. */
  16222. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  16223. {
  16224. /** @var \Illuminate\Database\Query\Builder $instance */
  16225. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  16226. }
  16227. /**
  16228. * Add a left join to the query.
  16229. *
  16230. * @param string $table
  16231. * @param \Closure|string $first
  16232. * @param string|null $operator
  16233. * @param string|null $second
  16234. * @return \Illuminate\Database\Query\Builder
  16235. * @static
  16236. */
  16237. public static function leftJoin($table, $first, $operator = null, $second = null)
  16238. {
  16239. /** @var \Illuminate\Database\Query\Builder $instance */
  16240. return $instance->leftJoin($table, $first, $operator, $second);
  16241. }
  16242. /**
  16243. * Add a "join where" clause to the query.
  16244. *
  16245. * @param string $table
  16246. * @param \Closure|string $first
  16247. * @param string $operator
  16248. * @param string $second
  16249. * @return \Illuminate\Database\Query\Builder
  16250. * @static
  16251. */
  16252. public static function leftJoinWhere($table, $first, $operator, $second)
  16253. {
  16254. /** @var \Illuminate\Database\Query\Builder $instance */
  16255. return $instance->leftJoinWhere($table, $first, $operator, $second);
  16256. }
  16257. /**
  16258. * Add a subquery left join to the query.
  16259. *
  16260. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16261. * @param string $as
  16262. * @param \Closure|string $first
  16263. * @param string|null $operator
  16264. * @param string|null $second
  16265. * @return \Illuminate\Database\Query\Builder
  16266. * @static
  16267. */
  16268. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  16269. {
  16270. /** @var \Illuminate\Database\Query\Builder $instance */
  16271. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  16272. }
  16273. /**
  16274. * Add a right join to the query.
  16275. *
  16276. * @param string $table
  16277. * @param \Closure|string $first
  16278. * @param string|null $operator
  16279. * @param string|null $second
  16280. * @return \Illuminate\Database\Query\Builder
  16281. * @static
  16282. */
  16283. public static function rightJoin($table, $first, $operator = null, $second = null)
  16284. {
  16285. /** @var \Illuminate\Database\Query\Builder $instance */
  16286. return $instance->rightJoin($table, $first, $operator, $second);
  16287. }
  16288. /**
  16289. * Add a "right join where" clause to the query.
  16290. *
  16291. * @param string $table
  16292. * @param \Closure|string $first
  16293. * @param string $operator
  16294. * @param string $second
  16295. * @return \Illuminate\Database\Query\Builder
  16296. * @static
  16297. */
  16298. public static function rightJoinWhere($table, $first, $operator, $second)
  16299. {
  16300. /** @var \Illuminate\Database\Query\Builder $instance */
  16301. return $instance->rightJoinWhere($table, $first, $operator, $second);
  16302. }
  16303. /**
  16304. * Add a subquery right join to the query.
  16305. *
  16306. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16307. * @param string $as
  16308. * @param \Closure|string $first
  16309. * @param string|null $operator
  16310. * @param string|null $second
  16311. * @return \Illuminate\Database\Query\Builder
  16312. * @static
  16313. */
  16314. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  16315. {
  16316. /** @var \Illuminate\Database\Query\Builder $instance */
  16317. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  16318. }
  16319. /**
  16320. * Add a "cross join" clause to the query.
  16321. *
  16322. * @param string $table
  16323. * @param \Closure|string|null $first
  16324. * @param string|null $operator
  16325. * @param string|null $second
  16326. * @return \Illuminate\Database\Query\Builder
  16327. * @static
  16328. */
  16329. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  16330. {
  16331. /** @var \Illuminate\Database\Query\Builder $instance */
  16332. return $instance->crossJoin($table, $first, $operator, $second);
  16333. }
  16334. /**
  16335. * Merge an array of where clauses and bindings.
  16336. *
  16337. * @param array $wheres
  16338. * @param array $bindings
  16339. * @return void
  16340. * @static
  16341. */
  16342. public static function mergeWheres($wheres, $bindings)
  16343. {
  16344. /** @var \Illuminate\Database\Query\Builder $instance */
  16345. $instance->mergeWheres($wheres, $bindings);
  16346. }
  16347. /**
  16348. * Prepare the value and operator for a where clause.
  16349. *
  16350. * @param string $value
  16351. * @param string $operator
  16352. * @param bool $useDefault
  16353. * @return array
  16354. * @throws \InvalidArgumentException
  16355. * @static
  16356. */
  16357. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  16358. {
  16359. /** @var \Illuminate\Database\Query\Builder $instance */
  16360. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  16361. }
  16362. /**
  16363. * Add a "where" clause comparing two columns to the query.
  16364. *
  16365. * @param string|array $first
  16366. * @param string|null $operator
  16367. * @param string|null $second
  16368. * @param string|null $boolean
  16369. * @return \Illuminate\Database\Query\Builder
  16370. * @static
  16371. */
  16372. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  16373. {
  16374. /** @var \Illuminate\Database\Query\Builder $instance */
  16375. return $instance->whereColumn($first, $operator, $second, $boolean);
  16376. }
  16377. /**
  16378. * Add an "or where" clause comparing two columns to the query.
  16379. *
  16380. * @param string|array $first
  16381. * @param string|null $operator
  16382. * @param string|null $second
  16383. * @return \Illuminate\Database\Query\Builder
  16384. * @static
  16385. */
  16386. public static function orWhereColumn($first, $operator = null, $second = null)
  16387. {
  16388. /** @var \Illuminate\Database\Query\Builder $instance */
  16389. return $instance->orWhereColumn($first, $operator, $second);
  16390. }
  16391. /**
  16392. * Add a raw where clause to the query.
  16393. *
  16394. * @param string $sql
  16395. * @param mixed $bindings
  16396. * @param string $boolean
  16397. * @return \Illuminate\Database\Query\Builder
  16398. * @static
  16399. */
  16400. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  16401. {
  16402. /** @var \Illuminate\Database\Query\Builder $instance */
  16403. return $instance->whereRaw($sql, $bindings, $boolean);
  16404. }
  16405. /**
  16406. * Add a raw or where clause to the query.
  16407. *
  16408. * @param string $sql
  16409. * @param mixed $bindings
  16410. * @return \Illuminate\Database\Query\Builder
  16411. * @static
  16412. */
  16413. public static function orWhereRaw($sql, $bindings = [])
  16414. {
  16415. /** @var \Illuminate\Database\Query\Builder $instance */
  16416. return $instance->orWhereRaw($sql, $bindings);
  16417. }
  16418. /**
  16419. * Add a "where in" clause to the query.
  16420. *
  16421. * @param string $column
  16422. * @param mixed $values
  16423. * @param string $boolean
  16424. * @param bool $not
  16425. * @return \Illuminate\Database\Query\Builder
  16426. * @static
  16427. */
  16428. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  16429. {
  16430. /** @var \Illuminate\Database\Query\Builder $instance */
  16431. return $instance->whereIn($column, $values, $boolean, $not);
  16432. }
  16433. /**
  16434. * Add an "or where in" clause to the query.
  16435. *
  16436. * @param string $column
  16437. * @param mixed $values
  16438. * @return \Illuminate\Database\Query\Builder
  16439. * @static
  16440. */
  16441. public static function orWhereIn($column, $values)
  16442. {
  16443. /** @var \Illuminate\Database\Query\Builder $instance */
  16444. return $instance->orWhereIn($column, $values);
  16445. }
  16446. /**
  16447. * Add a "where not in" clause to the query.
  16448. *
  16449. * @param string $column
  16450. * @param mixed $values
  16451. * @param string $boolean
  16452. * @return \Illuminate\Database\Query\Builder
  16453. * @static
  16454. */
  16455. public static function whereNotIn($column, $values, $boolean = 'and')
  16456. {
  16457. /** @var \Illuminate\Database\Query\Builder $instance */
  16458. return $instance->whereNotIn($column, $values, $boolean);
  16459. }
  16460. /**
  16461. * Add an "or where not in" clause to the query.
  16462. *
  16463. * @param string $column
  16464. * @param mixed $values
  16465. * @return \Illuminate\Database\Query\Builder
  16466. * @static
  16467. */
  16468. public static function orWhereNotIn($column, $values)
  16469. {
  16470. /** @var \Illuminate\Database\Query\Builder $instance */
  16471. return $instance->orWhereNotIn($column, $values);
  16472. }
  16473. /**
  16474. * Add a "where in raw" clause for integer values to the query.
  16475. *
  16476. * @param string $column
  16477. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16478. * @param string $boolean
  16479. * @param bool $not
  16480. * @return \Illuminate\Database\Query\Builder
  16481. * @static
  16482. */
  16483. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  16484. {
  16485. /** @var \Illuminate\Database\Query\Builder $instance */
  16486. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  16487. }
  16488. /**
  16489. * Add an "or where in raw" clause for integer values to the query.
  16490. *
  16491. * @param string $column
  16492. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16493. * @return \Illuminate\Database\Query\Builder
  16494. * @static
  16495. */
  16496. public static function orWhereIntegerInRaw($column, $values)
  16497. {
  16498. /** @var \Illuminate\Database\Query\Builder $instance */
  16499. return $instance->orWhereIntegerInRaw($column, $values);
  16500. }
  16501. /**
  16502. * Add a "where not in raw" clause for integer values to the query.
  16503. *
  16504. * @param string $column
  16505. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16506. * @param string $boolean
  16507. * @return \Illuminate\Database\Query\Builder
  16508. * @static
  16509. */
  16510. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  16511. {
  16512. /** @var \Illuminate\Database\Query\Builder $instance */
  16513. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  16514. }
  16515. /**
  16516. * Add an "or where not in raw" clause for integer values to the query.
  16517. *
  16518. * @param string $column
  16519. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16520. * @return \Illuminate\Database\Query\Builder
  16521. * @static
  16522. */
  16523. public static function orWhereIntegerNotInRaw($column, $values)
  16524. {
  16525. /** @var \Illuminate\Database\Query\Builder $instance */
  16526. return $instance->orWhereIntegerNotInRaw($column, $values);
  16527. }
  16528. /**
  16529. * Add a "where null" clause to the query.
  16530. *
  16531. * @param string|array $columns
  16532. * @param string $boolean
  16533. * @param bool $not
  16534. * @return \Illuminate\Database\Query\Builder
  16535. * @static
  16536. */
  16537. public static function whereNull($columns, $boolean = 'and', $not = false)
  16538. {
  16539. /** @var \Illuminate\Database\Query\Builder $instance */
  16540. return $instance->whereNull($columns, $boolean, $not);
  16541. }
  16542. /**
  16543. * Add an "or where null" clause to the query.
  16544. *
  16545. * @param string $column
  16546. * @return \Illuminate\Database\Query\Builder
  16547. * @static
  16548. */
  16549. public static function orWhereNull($column)
  16550. {
  16551. /** @var \Illuminate\Database\Query\Builder $instance */
  16552. return $instance->orWhereNull($column);
  16553. }
  16554. /**
  16555. * Add a "where not null" clause to the query.
  16556. *
  16557. * @param string|array $columns
  16558. * @param string $boolean
  16559. * @return \Illuminate\Database\Query\Builder
  16560. * @static
  16561. */
  16562. public static function whereNotNull($columns, $boolean = 'and')
  16563. {
  16564. /** @var \Illuminate\Database\Query\Builder $instance */
  16565. return $instance->whereNotNull($columns, $boolean);
  16566. }
  16567. /**
  16568. * Add a where between statement to the query.
  16569. *
  16570. * @param string $column
  16571. * @param array $values
  16572. * @param string $boolean
  16573. * @param bool $not
  16574. * @return \Illuminate\Database\Query\Builder
  16575. * @static
  16576. */
  16577. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  16578. {
  16579. /** @var \Illuminate\Database\Query\Builder $instance */
  16580. return $instance->whereBetween($column, $values, $boolean, $not);
  16581. }
  16582. /**
  16583. * Add a where between statement using columns to the query.
  16584. *
  16585. * @param string $column
  16586. * @param array $values
  16587. * @param string $boolean
  16588. * @param bool $not
  16589. * @return \Illuminate\Database\Query\Builder
  16590. * @static
  16591. */
  16592. public static function whereBetweenColumns($column, $values, $boolean = 'and', $not = false)
  16593. {
  16594. /** @var \Illuminate\Database\Query\Builder $instance */
  16595. return $instance->whereBetweenColumns($column, $values, $boolean, $not);
  16596. }
  16597. /**
  16598. * Add an or where between statement to the query.
  16599. *
  16600. * @param string $column
  16601. * @param array $values
  16602. * @return \Illuminate\Database\Query\Builder
  16603. * @static
  16604. */
  16605. public static function orWhereBetween($column, $values)
  16606. {
  16607. /** @var \Illuminate\Database\Query\Builder $instance */
  16608. return $instance->orWhereBetween($column, $values);
  16609. }
  16610. /**
  16611. * Add an or where between statement using columns to the query.
  16612. *
  16613. * @param string $column
  16614. * @param array $values
  16615. * @return \Illuminate\Database\Query\Builder
  16616. * @static
  16617. */
  16618. public static function orWhereBetweenColumns($column, $values)
  16619. {
  16620. /** @var \Illuminate\Database\Query\Builder $instance */
  16621. return $instance->orWhereBetweenColumns($column, $values);
  16622. }
  16623. /**
  16624. * Add a where not between statement to the query.
  16625. *
  16626. * @param string $column
  16627. * @param array $values
  16628. * @param string $boolean
  16629. * @return \Illuminate\Database\Query\Builder
  16630. * @static
  16631. */
  16632. public static function whereNotBetween($column, $values, $boolean = 'and')
  16633. {
  16634. /** @var \Illuminate\Database\Query\Builder $instance */
  16635. return $instance->whereNotBetween($column, $values, $boolean);
  16636. }
  16637. /**
  16638. * Add a where not between statement using columns to the query.
  16639. *
  16640. * @param string $column
  16641. * @param array $values
  16642. * @param string $boolean
  16643. * @return \Illuminate\Database\Query\Builder
  16644. * @static
  16645. */
  16646. public static function whereNotBetweenColumns($column, $values, $boolean = 'and')
  16647. {
  16648. /** @var \Illuminate\Database\Query\Builder $instance */
  16649. return $instance->whereNotBetweenColumns($column, $values, $boolean);
  16650. }
  16651. /**
  16652. * Add an or where not between statement to the query.
  16653. *
  16654. * @param string $column
  16655. * @param array $values
  16656. * @return \Illuminate\Database\Query\Builder
  16657. * @static
  16658. */
  16659. public static function orWhereNotBetween($column, $values)
  16660. {
  16661. /** @var \Illuminate\Database\Query\Builder $instance */
  16662. return $instance->orWhereNotBetween($column, $values);
  16663. }
  16664. /**
  16665. * Add an or where not between statement using columns to the query.
  16666. *
  16667. * @param string $column
  16668. * @param array $values
  16669. * @return \Illuminate\Database\Query\Builder
  16670. * @static
  16671. */
  16672. public static function orWhereNotBetweenColumns($column, $values)
  16673. {
  16674. /** @var \Illuminate\Database\Query\Builder $instance */
  16675. return $instance->orWhereNotBetweenColumns($column, $values);
  16676. }
  16677. /**
  16678. * Add an "or where not null" clause to the query.
  16679. *
  16680. * @param string $column
  16681. * @return \Illuminate\Database\Query\Builder
  16682. * @static
  16683. */
  16684. public static function orWhereNotNull($column)
  16685. {
  16686. /** @var \Illuminate\Database\Query\Builder $instance */
  16687. return $instance->orWhereNotNull($column);
  16688. }
  16689. /**
  16690. * Add a "where date" statement to the query.
  16691. *
  16692. * @param string $column
  16693. * @param string $operator
  16694. * @param \DateTimeInterface|string|null $value
  16695. * @param string $boolean
  16696. * @return \Illuminate\Database\Query\Builder
  16697. * @static
  16698. */
  16699. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  16700. {
  16701. /** @var \Illuminate\Database\Query\Builder $instance */
  16702. return $instance->whereDate($column, $operator, $value, $boolean);
  16703. }
  16704. /**
  16705. * Add an "or where date" statement to the query.
  16706. *
  16707. * @param string $column
  16708. * @param string $operator
  16709. * @param \DateTimeInterface|string|null $value
  16710. * @return \Illuminate\Database\Query\Builder
  16711. * @static
  16712. */
  16713. public static function orWhereDate($column, $operator, $value = null)
  16714. {
  16715. /** @var \Illuminate\Database\Query\Builder $instance */
  16716. return $instance->orWhereDate($column, $operator, $value);
  16717. }
  16718. /**
  16719. * Add a "where time" statement to the query.
  16720. *
  16721. * @param string $column
  16722. * @param string $operator
  16723. * @param \DateTimeInterface|string|null $value
  16724. * @param string $boolean
  16725. * @return \Illuminate\Database\Query\Builder
  16726. * @static
  16727. */
  16728. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  16729. {
  16730. /** @var \Illuminate\Database\Query\Builder $instance */
  16731. return $instance->whereTime($column, $operator, $value, $boolean);
  16732. }
  16733. /**
  16734. * Add an "or where time" statement to the query.
  16735. *
  16736. * @param string $column
  16737. * @param string $operator
  16738. * @param \DateTimeInterface|string|null $value
  16739. * @return \Illuminate\Database\Query\Builder
  16740. * @static
  16741. */
  16742. public static function orWhereTime($column, $operator, $value = null)
  16743. {
  16744. /** @var \Illuminate\Database\Query\Builder $instance */
  16745. return $instance->orWhereTime($column, $operator, $value);
  16746. }
  16747. /**
  16748. * Add a "where day" statement to the query.
  16749. *
  16750. * @param string $column
  16751. * @param string $operator
  16752. * @param \DateTimeInterface|string|null $value
  16753. * @param string $boolean
  16754. * @return \Illuminate\Database\Query\Builder
  16755. * @static
  16756. */
  16757. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  16758. {
  16759. /** @var \Illuminate\Database\Query\Builder $instance */
  16760. return $instance->whereDay($column, $operator, $value, $boolean);
  16761. }
  16762. /**
  16763. * Add an "or where day" statement to the query.
  16764. *
  16765. * @param string $column
  16766. * @param string $operator
  16767. * @param \DateTimeInterface|string|null $value
  16768. * @return \Illuminate\Database\Query\Builder
  16769. * @static
  16770. */
  16771. public static function orWhereDay($column, $operator, $value = null)
  16772. {
  16773. /** @var \Illuminate\Database\Query\Builder $instance */
  16774. return $instance->orWhereDay($column, $operator, $value);
  16775. }
  16776. /**
  16777. * Add a "where month" statement to the query.
  16778. *
  16779. * @param string $column
  16780. * @param string $operator
  16781. * @param \DateTimeInterface|string|null $value
  16782. * @param string $boolean
  16783. * @return \Illuminate\Database\Query\Builder
  16784. * @static
  16785. */
  16786. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  16787. {
  16788. /** @var \Illuminate\Database\Query\Builder $instance */
  16789. return $instance->whereMonth($column, $operator, $value, $boolean);
  16790. }
  16791. /**
  16792. * Add an "or where month" statement to the query.
  16793. *
  16794. * @param string $column
  16795. * @param string $operator
  16796. * @param \DateTimeInterface|string|null $value
  16797. * @return \Illuminate\Database\Query\Builder
  16798. * @static
  16799. */
  16800. public static function orWhereMonth($column, $operator, $value = null)
  16801. {
  16802. /** @var \Illuminate\Database\Query\Builder $instance */
  16803. return $instance->orWhereMonth($column, $operator, $value);
  16804. }
  16805. /**
  16806. * Add a "where year" statement to the query.
  16807. *
  16808. * @param string $column
  16809. * @param string $operator
  16810. * @param \DateTimeInterface|string|int|null $value
  16811. * @param string $boolean
  16812. * @return \Illuminate\Database\Query\Builder
  16813. * @static
  16814. */
  16815. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  16816. {
  16817. /** @var \Illuminate\Database\Query\Builder $instance */
  16818. return $instance->whereYear($column, $operator, $value, $boolean);
  16819. }
  16820. /**
  16821. * Add an "or where year" statement to the query.
  16822. *
  16823. * @param string $column
  16824. * @param string $operator
  16825. * @param \DateTimeInterface|string|int|null $value
  16826. * @return \Illuminate\Database\Query\Builder
  16827. * @static
  16828. */
  16829. public static function orWhereYear($column, $operator, $value = null)
  16830. {
  16831. /** @var \Illuminate\Database\Query\Builder $instance */
  16832. return $instance->orWhereYear($column, $operator, $value);
  16833. }
  16834. /**
  16835. * Add a nested where statement to the query.
  16836. *
  16837. * @param \Closure $callback
  16838. * @param string $boolean
  16839. * @return \Illuminate\Database\Query\Builder
  16840. * @static
  16841. */
  16842. public static function whereNested($callback, $boolean = 'and')
  16843. {
  16844. /** @var \Illuminate\Database\Query\Builder $instance */
  16845. return $instance->whereNested($callback, $boolean);
  16846. }
  16847. /**
  16848. * Create a new query instance for nested where condition.
  16849. *
  16850. * @return \Illuminate\Database\Query\Builder
  16851. * @static
  16852. */
  16853. public static function forNestedWhere()
  16854. {
  16855. /** @var \Illuminate\Database\Query\Builder $instance */
  16856. return $instance->forNestedWhere();
  16857. }
  16858. /**
  16859. * Add another query builder as a nested where to the query builder.
  16860. *
  16861. * @param \Illuminate\Database\Query\Builder $query
  16862. * @param string $boolean
  16863. * @return \Illuminate\Database\Query\Builder
  16864. * @static
  16865. */
  16866. public static function addNestedWhereQuery($query, $boolean = 'and')
  16867. {
  16868. /** @var \Illuminate\Database\Query\Builder $instance */
  16869. return $instance->addNestedWhereQuery($query, $boolean);
  16870. }
  16871. /**
  16872. * Add an exists clause to the query.
  16873. *
  16874. * @param \Closure $callback
  16875. * @param string $boolean
  16876. * @param bool $not
  16877. * @return \Illuminate\Database\Query\Builder
  16878. * @static
  16879. */
  16880. public static function whereExists($callback, $boolean = 'and', $not = false)
  16881. {
  16882. /** @var \Illuminate\Database\Query\Builder $instance */
  16883. return $instance->whereExists($callback, $boolean, $not);
  16884. }
  16885. /**
  16886. * Add an or exists clause to the query.
  16887. *
  16888. * @param \Closure $callback
  16889. * @param bool $not
  16890. * @return \Illuminate\Database\Query\Builder
  16891. * @static
  16892. */
  16893. public static function orWhereExists($callback, $not = false)
  16894. {
  16895. /** @var \Illuminate\Database\Query\Builder $instance */
  16896. return $instance->orWhereExists($callback, $not);
  16897. }
  16898. /**
  16899. * Add a where not exists clause to the query.
  16900. *
  16901. * @param \Closure $callback
  16902. * @param string $boolean
  16903. * @return \Illuminate\Database\Query\Builder
  16904. * @static
  16905. */
  16906. public static function whereNotExists($callback, $boolean = 'and')
  16907. {
  16908. /** @var \Illuminate\Database\Query\Builder $instance */
  16909. return $instance->whereNotExists($callback, $boolean);
  16910. }
  16911. /**
  16912. * Add a where not exists clause to the query.
  16913. *
  16914. * @param \Closure $callback
  16915. * @return \Illuminate\Database\Query\Builder
  16916. * @static
  16917. */
  16918. public static function orWhereNotExists($callback)
  16919. {
  16920. /** @var \Illuminate\Database\Query\Builder $instance */
  16921. return $instance->orWhereNotExists($callback);
  16922. }
  16923. /**
  16924. * Add an exists clause to the query.
  16925. *
  16926. * @param \Illuminate\Database\Query\Builder $query
  16927. * @param string $boolean
  16928. * @param bool $not
  16929. * @return \Illuminate\Database\Query\Builder
  16930. * @static
  16931. */
  16932. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16933. {
  16934. /** @var \Illuminate\Database\Query\Builder $instance */
  16935. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16936. }
  16937. /**
  16938. * Adds a where condition using row values.
  16939. *
  16940. * @param array $columns
  16941. * @param string $operator
  16942. * @param array $values
  16943. * @param string $boolean
  16944. * @return \Illuminate\Database\Query\Builder
  16945. * @throws \InvalidArgumentException
  16946. * @static
  16947. */
  16948. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16949. {
  16950. /** @var \Illuminate\Database\Query\Builder $instance */
  16951. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16952. }
  16953. /**
  16954. * Adds an or where condition using row values.
  16955. *
  16956. * @param array $columns
  16957. * @param string $operator
  16958. * @param array $values
  16959. * @return \Illuminate\Database\Query\Builder
  16960. * @static
  16961. */
  16962. public static function orWhereRowValues($columns, $operator, $values)
  16963. {
  16964. /** @var \Illuminate\Database\Query\Builder $instance */
  16965. return $instance->orWhereRowValues($columns, $operator, $values);
  16966. }
  16967. /**
  16968. * Add a "where JSON contains" clause to the query.
  16969. *
  16970. * @param string $column
  16971. * @param mixed $value
  16972. * @param string $boolean
  16973. * @param bool $not
  16974. * @return \Illuminate\Database\Query\Builder
  16975. * @static
  16976. */
  16977. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16978. {
  16979. /** @var \Illuminate\Database\Query\Builder $instance */
  16980. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16981. }
  16982. /**
  16983. * Add an "or where JSON contains" clause to the query.
  16984. *
  16985. * @param string $column
  16986. * @param mixed $value
  16987. * @return \Illuminate\Database\Query\Builder
  16988. * @static
  16989. */
  16990. public static function orWhereJsonContains($column, $value)
  16991. {
  16992. /** @var \Illuminate\Database\Query\Builder $instance */
  16993. return $instance->orWhereJsonContains($column, $value);
  16994. }
  16995. /**
  16996. * Add a "where JSON not contains" clause to the query.
  16997. *
  16998. * @param string $column
  16999. * @param mixed $value
  17000. * @param string $boolean
  17001. * @return \Illuminate\Database\Query\Builder
  17002. * @static
  17003. */
  17004. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  17005. {
  17006. /** @var \Illuminate\Database\Query\Builder $instance */
  17007. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  17008. }
  17009. /**
  17010. * Add an "or where JSON not contains" clause to the query.
  17011. *
  17012. * @param string $column
  17013. * @param mixed $value
  17014. * @return \Illuminate\Database\Query\Builder
  17015. * @static
  17016. */
  17017. public static function orWhereJsonDoesntContain($column, $value)
  17018. {
  17019. /** @var \Illuminate\Database\Query\Builder $instance */
  17020. return $instance->orWhereJsonDoesntContain($column, $value);
  17021. }
  17022. /**
  17023. * Add a "where JSON length" clause to the query.
  17024. *
  17025. * @param string $column
  17026. * @param mixed $operator
  17027. * @param mixed $value
  17028. * @param string $boolean
  17029. * @return \Illuminate\Database\Query\Builder
  17030. * @static
  17031. */
  17032. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  17033. {
  17034. /** @var \Illuminate\Database\Query\Builder $instance */
  17035. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  17036. }
  17037. /**
  17038. * Add an "or where JSON length" clause to the query.
  17039. *
  17040. * @param string $column
  17041. * @param mixed $operator
  17042. * @param mixed $value
  17043. * @return \Illuminate\Database\Query\Builder
  17044. * @static
  17045. */
  17046. public static function orWhereJsonLength($column, $operator, $value = null)
  17047. {
  17048. /** @var \Illuminate\Database\Query\Builder $instance */
  17049. return $instance->orWhereJsonLength($column, $operator, $value);
  17050. }
  17051. /**
  17052. * Handles dynamic "where" clauses to the query.
  17053. *
  17054. * @param string $method
  17055. * @param array $parameters
  17056. * @return \Illuminate\Database\Query\Builder
  17057. * @static
  17058. */
  17059. public static function dynamicWhere($method, $parameters)
  17060. {
  17061. /** @var \Illuminate\Database\Query\Builder $instance */
  17062. return $instance->dynamicWhere($method, $parameters);
  17063. }
  17064. /**
  17065. * Add a "group by" clause to the query.
  17066. *
  17067. * @param array|string $groups
  17068. * @return \Illuminate\Database\Query\Builder
  17069. * @static
  17070. */
  17071. public static function groupBy(...$groups)
  17072. {
  17073. /** @var \Illuminate\Database\Query\Builder $instance */
  17074. return $instance->groupBy(...$groups);
  17075. }
  17076. /**
  17077. * Add a raw groupBy clause to the query.
  17078. *
  17079. * @param string $sql
  17080. * @param array $bindings
  17081. * @return \Illuminate\Database\Query\Builder
  17082. * @static
  17083. */
  17084. public static function groupByRaw($sql, $bindings = [])
  17085. {
  17086. /** @var \Illuminate\Database\Query\Builder $instance */
  17087. return $instance->groupByRaw($sql, $bindings);
  17088. }
  17089. /**
  17090. * Add a "having" clause to the query.
  17091. *
  17092. * @param string $column
  17093. * @param string|null $operator
  17094. * @param string|null $value
  17095. * @param string $boolean
  17096. * @return \Illuminate\Database\Query\Builder
  17097. * @static
  17098. */
  17099. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  17100. {
  17101. /** @var \Illuminate\Database\Query\Builder $instance */
  17102. return $instance->having($column, $operator, $value, $boolean);
  17103. }
  17104. /**
  17105. * Add an "or having" clause to the query.
  17106. *
  17107. * @param string $column
  17108. * @param string|null $operator
  17109. * @param string|null $value
  17110. * @return \Illuminate\Database\Query\Builder
  17111. * @static
  17112. */
  17113. public static function orHaving($column, $operator = null, $value = null)
  17114. {
  17115. /** @var \Illuminate\Database\Query\Builder $instance */
  17116. return $instance->orHaving($column, $operator, $value);
  17117. }
  17118. /**
  17119. * Add a "having between " clause to the query.
  17120. *
  17121. * @param string $column
  17122. * @param array $values
  17123. * @param string $boolean
  17124. * @param bool $not
  17125. * @return \Illuminate\Database\Query\Builder
  17126. * @static
  17127. */
  17128. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  17129. {
  17130. /** @var \Illuminate\Database\Query\Builder $instance */
  17131. return $instance->havingBetween($column, $values, $boolean, $not);
  17132. }
  17133. /**
  17134. * Add a raw having clause to the query.
  17135. *
  17136. * @param string $sql
  17137. * @param array $bindings
  17138. * @param string $boolean
  17139. * @return \Illuminate\Database\Query\Builder
  17140. * @static
  17141. */
  17142. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  17143. {
  17144. /** @var \Illuminate\Database\Query\Builder $instance */
  17145. return $instance->havingRaw($sql, $bindings, $boolean);
  17146. }
  17147. /**
  17148. * Add a raw or having clause to the query.
  17149. *
  17150. * @param string $sql
  17151. * @param array $bindings
  17152. * @return \Illuminate\Database\Query\Builder
  17153. * @static
  17154. */
  17155. public static function orHavingRaw($sql, $bindings = [])
  17156. {
  17157. /** @var \Illuminate\Database\Query\Builder $instance */
  17158. return $instance->orHavingRaw($sql, $bindings);
  17159. }
  17160. /**
  17161. * Add an "order by" clause to the query.
  17162. *
  17163. * @param \Closure|\Illuminate\Database\Query\Builder|\Illuminate\Database\Query\Expression|string $column
  17164. * @param string $direction
  17165. * @return \Illuminate\Database\Query\Builder
  17166. * @throws \InvalidArgumentException
  17167. * @static
  17168. */
  17169. public static function orderBy($column, $direction = 'asc')
  17170. {
  17171. /** @var \Illuminate\Database\Query\Builder $instance */
  17172. return $instance->orderBy($column, $direction);
  17173. }
  17174. /**
  17175. * Add a descending "order by" clause to the query.
  17176. *
  17177. * @param string $column
  17178. * @return \Illuminate\Database\Query\Builder
  17179. * @static
  17180. */
  17181. public static function orderByDesc($column)
  17182. {
  17183. /** @var \Illuminate\Database\Query\Builder $instance */
  17184. return $instance->orderByDesc($column);
  17185. }
  17186. /**
  17187. * Put the query's results in random order.
  17188. *
  17189. * @param string $seed
  17190. * @return \Illuminate\Database\Query\Builder
  17191. * @static
  17192. */
  17193. public static function inRandomOrder($seed = '')
  17194. {
  17195. /** @var \Illuminate\Database\Query\Builder $instance */
  17196. return $instance->inRandomOrder($seed);
  17197. }
  17198. /**
  17199. * Add a raw "order by" clause to the query.
  17200. *
  17201. * @param string $sql
  17202. * @param array $bindings
  17203. * @return \Illuminate\Database\Query\Builder
  17204. * @static
  17205. */
  17206. public static function orderByRaw($sql, $bindings = [])
  17207. {
  17208. /** @var \Illuminate\Database\Query\Builder $instance */
  17209. return $instance->orderByRaw($sql, $bindings);
  17210. }
  17211. /**
  17212. * Alias to set the "offset" value of the query.
  17213. *
  17214. * @param int $value
  17215. * @return \Illuminate\Database\Query\Builder
  17216. * @static
  17217. */
  17218. public static function skip($value)
  17219. {
  17220. /** @var \Illuminate\Database\Query\Builder $instance */
  17221. return $instance->skip($value);
  17222. }
  17223. /**
  17224. * Set the "offset" value of the query.
  17225. *
  17226. * @param int $value
  17227. * @return \Illuminate\Database\Query\Builder
  17228. * @static
  17229. */
  17230. public static function offset($value)
  17231. {
  17232. /** @var \Illuminate\Database\Query\Builder $instance */
  17233. return $instance->offset($value);
  17234. }
  17235. /**
  17236. * Alias to set the "limit" value of the query.
  17237. *
  17238. * @param int $value
  17239. * @return \Illuminate\Database\Query\Builder
  17240. * @static
  17241. */
  17242. public static function take($value)
  17243. {
  17244. /** @var \Illuminate\Database\Query\Builder $instance */
  17245. return $instance->take($value);
  17246. }
  17247. /**
  17248. * Set the "limit" value of the query.
  17249. *
  17250. * @param int $value
  17251. * @return \Illuminate\Database\Query\Builder
  17252. * @static
  17253. */
  17254. public static function limit($value)
  17255. {
  17256. /** @var \Illuminate\Database\Query\Builder $instance */
  17257. return $instance->limit($value);
  17258. }
  17259. /**
  17260. * Set the limit and offset for a given page.
  17261. *
  17262. * @param int $page
  17263. * @param int $perPage
  17264. * @return \Illuminate\Database\Query\Builder
  17265. * @static
  17266. */
  17267. public static function forPage($page, $perPage = 15)
  17268. {
  17269. /** @var \Illuminate\Database\Query\Builder $instance */
  17270. return $instance->forPage($page, $perPage);
  17271. }
  17272. /**
  17273. * Constrain the query to the previous "page" of results before a given ID.
  17274. *
  17275. * @param int $perPage
  17276. * @param int|null $lastId
  17277. * @param string $column
  17278. * @return \Illuminate\Database\Query\Builder
  17279. * @static
  17280. */
  17281. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  17282. {
  17283. /** @var \Illuminate\Database\Query\Builder $instance */
  17284. return $instance->forPageBeforeId($perPage, $lastId, $column);
  17285. }
  17286. /**
  17287. * Constrain the query to the next "page" of results after a given ID.
  17288. *
  17289. * @param int $perPage
  17290. * @param int|null $lastId
  17291. * @param string $column
  17292. * @return \Illuminate\Database\Query\Builder
  17293. * @static
  17294. */
  17295. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  17296. {
  17297. /** @var \Illuminate\Database\Query\Builder $instance */
  17298. return $instance->forPageAfterId($perPage, $lastId, $column);
  17299. }
  17300. /**
  17301. * Remove all existing orders and optionally add a new order.
  17302. *
  17303. * @param string|null $column
  17304. * @param string $direction
  17305. * @return \Illuminate\Database\Query\Builder
  17306. * @static
  17307. */
  17308. public static function reorder($column = null, $direction = 'asc')
  17309. {
  17310. /** @var \Illuminate\Database\Query\Builder $instance */
  17311. return $instance->reorder($column, $direction);
  17312. }
  17313. /**
  17314. * Add a union statement to the query.
  17315. *
  17316. * @param \Illuminate\Database\Query\Builder|\Closure $query
  17317. * @param bool $all
  17318. * @return \Illuminate\Database\Query\Builder
  17319. * @static
  17320. */
  17321. public static function union($query, $all = false)
  17322. {
  17323. /** @var \Illuminate\Database\Query\Builder $instance */
  17324. return $instance->union($query, $all);
  17325. }
  17326. /**
  17327. * Add a union all statement to the query.
  17328. *
  17329. * @param \Illuminate\Database\Query\Builder|\Closure $query
  17330. * @return \Illuminate\Database\Query\Builder
  17331. * @static
  17332. */
  17333. public static function unionAll($query)
  17334. {
  17335. /** @var \Illuminate\Database\Query\Builder $instance */
  17336. return $instance->unionAll($query);
  17337. }
  17338. /**
  17339. * Lock the selected rows in the table.
  17340. *
  17341. * @param string|bool $value
  17342. * @return \Illuminate\Database\Query\Builder
  17343. * @static
  17344. */
  17345. public static function lock($value = true)
  17346. {
  17347. /** @var \Illuminate\Database\Query\Builder $instance */
  17348. return $instance->lock($value);
  17349. }
  17350. /**
  17351. * Lock the selected rows in the table for updating.
  17352. *
  17353. * @return \Illuminate\Database\Query\Builder
  17354. * @static
  17355. */
  17356. public static function lockForUpdate()
  17357. {
  17358. /** @var \Illuminate\Database\Query\Builder $instance */
  17359. return $instance->lockForUpdate();
  17360. }
  17361. /**
  17362. * Share lock the selected rows in the table.
  17363. *
  17364. * @return \Illuminate\Database\Query\Builder
  17365. * @static
  17366. */
  17367. public static function sharedLock()
  17368. {
  17369. /** @var \Illuminate\Database\Query\Builder $instance */
  17370. return $instance->sharedLock();
  17371. }
  17372. /**
  17373. * Get the SQL representation of the query.
  17374. *
  17375. * @return string
  17376. * @static
  17377. */
  17378. public static function toSql()
  17379. {
  17380. /** @var \Illuminate\Database\Query\Builder $instance */
  17381. return $instance->toSql();
  17382. }
  17383. /**
  17384. * Get the count of the total records for the paginator.
  17385. *
  17386. * @param array $columns
  17387. * @return int
  17388. * @static
  17389. */
  17390. public static function getCountForPagination($columns = [])
  17391. {
  17392. /** @var \Illuminate\Database\Query\Builder $instance */
  17393. return $instance->getCountForPagination($columns);
  17394. }
  17395. /**
  17396. * Concatenate values of a given column as a string.
  17397. *
  17398. * @param string $column
  17399. * @param string $glue
  17400. * @return string
  17401. * @static
  17402. */
  17403. public static function implode($column, $glue = '')
  17404. {
  17405. /** @var \Illuminate\Database\Query\Builder $instance */
  17406. return $instance->implode($column, $glue);
  17407. }
  17408. /**
  17409. * Determine if any rows exist for the current query.
  17410. *
  17411. * @return bool
  17412. * @static
  17413. */
  17414. public static function exists()
  17415. {
  17416. /** @var \Illuminate\Database\Query\Builder $instance */
  17417. return $instance->exists();
  17418. }
  17419. /**
  17420. * Determine if no rows exist for the current query.
  17421. *
  17422. * @return bool
  17423. * @static
  17424. */
  17425. public static function doesntExist()
  17426. {
  17427. /** @var \Illuminate\Database\Query\Builder $instance */
  17428. return $instance->doesntExist();
  17429. }
  17430. /**
  17431. * Execute the given callback if no rows exist for the current query.
  17432. *
  17433. * @param \Closure $callback
  17434. * @return mixed
  17435. * @static
  17436. */
  17437. public static function existsOr($callback)
  17438. {
  17439. /** @var \Illuminate\Database\Query\Builder $instance */
  17440. return $instance->existsOr($callback);
  17441. }
  17442. /**
  17443. * Execute the given callback if rows exist for the current query.
  17444. *
  17445. * @param \Closure $callback
  17446. * @return mixed
  17447. * @static
  17448. */
  17449. public static function doesntExistOr($callback)
  17450. {
  17451. /** @var \Illuminate\Database\Query\Builder $instance */
  17452. return $instance->doesntExistOr($callback);
  17453. }
  17454. /**
  17455. * Retrieve the "count" result of the query.
  17456. *
  17457. * @param string $columns
  17458. * @return int
  17459. * @static
  17460. */
  17461. public static function count($columns = '*')
  17462. {
  17463. /** @var \Illuminate\Database\Query\Builder $instance */
  17464. return $instance->count($columns);
  17465. }
  17466. /**
  17467. * Retrieve the minimum value of a given column.
  17468. *
  17469. * @param string $column
  17470. * @return mixed
  17471. * @static
  17472. */
  17473. public static function min($column)
  17474. {
  17475. /** @var \Illuminate\Database\Query\Builder $instance */
  17476. return $instance->min($column);
  17477. }
  17478. /**
  17479. * Retrieve the maximum value of a given column.
  17480. *
  17481. * @param string $column
  17482. * @return mixed
  17483. * @static
  17484. */
  17485. public static function max($column)
  17486. {
  17487. /** @var \Illuminate\Database\Query\Builder $instance */
  17488. return $instance->max($column);
  17489. }
  17490. /**
  17491. * Retrieve the sum of the values of a given column.
  17492. *
  17493. * @param string $column
  17494. * @return mixed
  17495. * @static
  17496. */
  17497. public static function sum($column)
  17498. {
  17499. /** @var \Illuminate\Database\Query\Builder $instance */
  17500. return $instance->sum($column);
  17501. }
  17502. /**
  17503. * Retrieve the average of the values of a given column.
  17504. *
  17505. * @param string $column
  17506. * @return mixed
  17507. * @static
  17508. */
  17509. public static function avg($column)
  17510. {
  17511. /** @var \Illuminate\Database\Query\Builder $instance */
  17512. return $instance->avg($column);
  17513. }
  17514. /**
  17515. * Alias for the "avg" method.
  17516. *
  17517. * @param string $column
  17518. * @return mixed
  17519. * @static
  17520. */
  17521. public static function average($column)
  17522. {
  17523. /** @var \Illuminate\Database\Query\Builder $instance */
  17524. return $instance->average($column);
  17525. }
  17526. /**
  17527. * Execute an aggregate function on the database.
  17528. *
  17529. * @param string $function
  17530. * @param array $columns
  17531. * @return mixed
  17532. * @static
  17533. */
  17534. public static function aggregate($function, $columns = [])
  17535. {
  17536. /** @var \Illuminate\Database\Query\Builder $instance */
  17537. return $instance->aggregate($function, $columns);
  17538. }
  17539. /**
  17540. * Execute a numeric aggregate function on the database.
  17541. *
  17542. * @param string $function
  17543. * @param array $columns
  17544. * @return float|int
  17545. * @static
  17546. */
  17547. public static function numericAggregate($function, $columns = [])
  17548. {
  17549. /** @var \Illuminate\Database\Query\Builder $instance */
  17550. return $instance->numericAggregate($function, $columns);
  17551. }
  17552. /**
  17553. * Insert a new record into the database.
  17554. *
  17555. * @param array $values
  17556. * @return bool
  17557. * @static
  17558. */
  17559. public static function insert($values)
  17560. {
  17561. /** @var \Illuminate\Database\Query\Builder $instance */
  17562. return $instance->insert($values);
  17563. }
  17564. /**
  17565. * Insert a new record into the database while ignoring errors.
  17566. *
  17567. * @param array $values
  17568. * @return int
  17569. * @static
  17570. */
  17571. public static function insertOrIgnore($values)
  17572. {
  17573. /** @var \Illuminate\Database\Query\Builder $instance */
  17574. return $instance->insertOrIgnore($values);
  17575. }
  17576. /**
  17577. * Insert a new record and get the value of the primary key.
  17578. *
  17579. * @param array $values
  17580. * @param string|null $sequence
  17581. * @return int
  17582. * @static
  17583. */
  17584. public static function insertGetId($values, $sequence = null)
  17585. {
  17586. /** @var \Illuminate\Database\Query\Builder $instance */
  17587. return $instance->insertGetId($values, $sequence);
  17588. }
  17589. /**
  17590. * Insert new records into the table using a subquery.
  17591. *
  17592. * @param array $columns
  17593. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17594. * @return int
  17595. * @static
  17596. */
  17597. public static function insertUsing($columns, $query)
  17598. {
  17599. /** @var \Illuminate\Database\Query\Builder $instance */
  17600. return $instance->insertUsing($columns, $query);
  17601. }
  17602. /**
  17603. * Insert or update a record matching the attributes, and fill it with values.
  17604. *
  17605. * @param array $attributes
  17606. * @param array $values
  17607. * @return bool
  17608. * @static
  17609. */
  17610. public static function updateOrInsert($attributes, $values = [])
  17611. {
  17612. /** @var \Illuminate\Database\Query\Builder $instance */
  17613. return $instance->updateOrInsert($attributes, $values);
  17614. }
  17615. /**
  17616. * Run a truncate statement on the table.
  17617. *
  17618. * @return void
  17619. * @static
  17620. */
  17621. public static function truncate()
  17622. {
  17623. /** @var \Illuminate\Database\Query\Builder $instance */
  17624. $instance->truncate();
  17625. }
  17626. /**
  17627. * Create a raw database expression.
  17628. *
  17629. * @param mixed $value
  17630. * @return \Illuminate\Database\Query\Expression
  17631. * @static
  17632. */
  17633. public static function raw($value)
  17634. {
  17635. /** @var \Illuminate\Database\Query\Builder $instance */
  17636. return $instance->raw($value);
  17637. }
  17638. /**
  17639. * Get the current query value bindings in a flattened array.
  17640. *
  17641. * @return array
  17642. * @static
  17643. */
  17644. public static function getBindings()
  17645. {
  17646. /** @var \Illuminate\Database\Query\Builder $instance */
  17647. return $instance->getBindings();
  17648. }
  17649. /**
  17650. * Get the raw array of bindings.
  17651. *
  17652. * @return array
  17653. * @static
  17654. */
  17655. public static function getRawBindings()
  17656. {
  17657. /** @var \Illuminate\Database\Query\Builder $instance */
  17658. return $instance->getRawBindings();
  17659. }
  17660. /**
  17661. * Set the bindings on the query builder.
  17662. *
  17663. * @param array $bindings
  17664. * @param string $type
  17665. * @return \Illuminate\Database\Query\Builder
  17666. * @throws \InvalidArgumentException
  17667. * @static
  17668. */
  17669. public static function setBindings($bindings, $type = 'where')
  17670. {
  17671. /** @var \Illuminate\Database\Query\Builder $instance */
  17672. return $instance->setBindings($bindings, $type);
  17673. }
  17674. /**
  17675. * Add a binding to the query.
  17676. *
  17677. * @param mixed $value
  17678. * @param string $type
  17679. * @return \Illuminate\Database\Query\Builder
  17680. * @throws \InvalidArgumentException
  17681. * @static
  17682. */
  17683. public static function addBinding($value, $type = 'where')
  17684. {
  17685. /** @var \Illuminate\Database\Query\Builder $instance */
  17686. return $instance->addBinding($value, $type);
  17687. }
  17688. /**
  17689. * Merge an array of bindings into our bindings.
  17690. *
  17691. * @param \Illuminate\Database\Query\Builder $query
  17692. * @return \Illuminate\Database\Query\Builder
  17693. * @static
  17694. */
  17695. public static function mergeBindings($query)
  17696. {
  17697. /** @var \Illuminate\Database\Query\Builder $instance */
  17698. return $instance->mergeBindings($query);
  17699. }
  17700. /**
  17701. * Get the database query processor instance.
  17702. *
  17703. * @return \Illuminate\Database\Query\Processors\Processor
  17704. * @static
  17705. */
  17706. public static function getProcessor()
  17707. {
  17708. /** @var \Illuminate\Database\Query\Builder $instance */
  17709. return $instance->getProcessor();
  17710. }
  17711. /**
  17712. * Get the query grammar instance.
  17713. *
  17714. * @return \Illuminate\Database\Query\Grammars\Grammar
  17715. * @static
  17716. */
  17717. public static function getGrammar()
  17718. {
  17719. /** @var \Illuminate\Database\Query\Builder $instance */
  17720. return $instance->getGrammar();
  17721. }
  17722. /**
  17723. * Use the write pdo for query.
  17724. *
  17725. * @return \Illuminate\Database\Query\Builder
  17726. * @static
  17727. */
  17728. public static function useWritePdo()
  17729. {
  17730. /** @var \Illuminate\Database\Query\Builder $instance */
  17731. return $instance->useWritePdo();
  17732. }
  17733. /**
  17734. * Clone the query without the given properties.
  17735. *
  17736. * @param array $properties
  17737. * @return static
  17738. * @static
  17739. */
  17740. public static function cloneWithout($properties)
  17741. {
  17742. /** @var \Illuminate\Database\Query\Builder $instance */
  17743. return $instance->cloneWithout($properties);
  17744. }
  17745. /**
  17746. * Clone the query without the given bindings.
  17747. *
  17748. * @param array $except
  17749. * @return static
  17750. * @static
  17751. */
  17752. public static function cloneWithoutBindings($except)
  17753. {
  17754. /** @var \Illuminate\Database\Query\Builder $instance */
  17755. return $instance->cloneWithoutBindings($except);
  17756. }
  17757. /**
  17758. * Dump the current SQL and bindings.
  17759. *
  17760. * @return \Illuminate\Database\Query\Builder
  17761. * @static
  17762. */
  17763. public static function dump()
  17764. {
  17765. /** @var \Illuminate\Database\Query\Builder $instance */
  17766. return $instance->dump();
  17767. }
  17768. /**
  17769. * Die and dump the current SQL and bindings.
  17770. *
  17771. * @return void
  17772. * @static
  17773. */
  17774. public static function dd()
  17775. {
  17776. /** @var \Illuminate\Database\Query\Builder $instance */
  17777. $instance->dd();
  17778. }
  17779. /**
  17780. * Register a custom macro.
  17781. *
  17782. * @param string $name
  17783. * @param object|callable $macro
  17784. * @return void
  17785. * @static
  17786. */
  17787. public static function macro($name, $macro)
  17788. {
  17789. \Illuminate\Database\Query\Builder::macro($name, $macro);
  17790. }
  17791. /**
  17792. * Mix another object into the class.
  17793. *
  17794. * @param object $mixin
  17795. * @param bool $replace
  17796. * @return void
  17797. * @throws \ReflectionException
  17798. * @static
  17799. */
  17800. public static function mixin($mixin, $replace = true)
  17801. {
  17802. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  17803. }
  17804. /**
  17805. * Dynamically handle calls to the class.
  17806. *
  17807. * @param string $method
  17808. * @param array $parameters
  17809. * @return mixed
  17810. * @throws \BadMethodCallException
  17811. * @static
  17812. */
  17813. public static function macroCall($method, $parameters)
  17814. {
  17815. /** @var \Illuminate\Database\Query\Builder $instance */
  17816. return $instance->macroCall($method, $parameters);
  17817. }
  17818. }
  17819. class Event extends \Illuminate\Support\Facades\Event {}
  17820. class File extends \Illuminate\Support\Facades\File {}
  17821. class Gate extends \Illuminate\Support\Facades\Gate {}
  17822. class Hash extends \Illuminate\Support\Facades\Hash {}
  17823. class Http extends \Illuminate\Support\Facades\Http {}
  17824. class Lang extends \Illuminate\Support\Facades\Lang {}
  17825. class Log extends \Illuminate\Support\Facades\Log {}
  17826. class Mail extends \Illuminate\Support\Facades\Mail {}
  17827. class Notification extends \Illuminate\Support\Facades\Notification {}
  17828. class Password extends \Illuminate\Support\Facades\Password {}
  17829. class Queue extends \Illuminate\Support\Facades\Queue {}
  17830. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  17831. class Redis extends \Illuminate\Support\Facades\Redis {}
  17832. class Request extends \Illuminate\Support\Facades\Request {}
  17833. class Response extends \Illuminate\Support\Facades\Response {}
  17834. class Route extends \Illuminate\Support\Facades\Route {}
  17835. class Schema extends \Illuminate\Support\Facades\Schema {}
  17836. class Session extends \Illuminate\Support\Facades\Session {}
  17837. class Storage extends \Illuminate\Support\Facades\Storage {}
  17838. class Str extends \Illuminate\Support\Str {}
  17839. class URL extends \Illuminate\Support\Facades\URL {}
  17840. class Validator extends \Illuminate\Support\Facades\Validator {}
  17841. class View extends \Illuminate\Support\Facades\View {}
  17842. class Flare extends \Facade\Ignition\Facades\Flare {}
  17843. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  17844. class Madzipper extends \Madnest\Madzipper\Facades\Madzipper {}
  17845. class Iseed extends \Orangehill\Iseed\Facades\Iseed {}
  17846. }