_ide_helper.php 625 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel 5, to provide autocomplete information to your IDE
  5. * Generated for Laravel 5.8.38 on 2020-04-15 08:22:37.
  6. *
  7. * This file should not be included in your code, only analyzed by your IDE!
  8. *
  9. * @author Barry vd. Heuvel <barryvdh@gmail.com>
  10. * @see https://github.com/barryvdh/laravel-ide-helper
  11. */
  12. namespace Illuminate\Support\Facades {
  13. /**
  14. *
  15. *
  16. * @see \Illuminate\Contracts\Foundation\Application
  17. */
  18. class App {
  19. /**
  20. * Get the version number of the application.
  21. *
  22. * @return string
  23. * @static
  24. */
  25. public static function version()
  26. {
  27. /** @var \Illuminate\Foundation\Application $instance */
  28. return $instance->version();
  29. }
  30. /**
  31. * Run the given array of bootstrap classes.
  32. *
  33. * @param string[] $bootstrappers
  34. * @return void
  35. * @static
  36. */
  37. public static function bootstrapWith($bootstrappers)
  38. {
  39. /** @var \Illuminate\Foundation\Application $instance */
  40. $instance->bootstrapWith($bootstrappers);
  41. }
  42. /**
  43. * Register a callback to run after loading the environment.
  44. *
  45. * @param \Closure $callback
  46. * @return void
  47. * @static
  48. */
  49. public static function afterLoadingEnvironment($callback)
  50. {
  51. /** @var \Illuminate\Foundation\Application $instance */
  52. $instance->afterLoadingEnvironment($callback);
  53. }
  54. /**
  55. * Register a callback to run before a bootstrapper.
  56. *
  57. * @param string $bootstrapper
  58. * @param \Closure $callback
  59. * @return void
  60. * @static
  61. */
  62. public static function beforeBootstrapping($bootstrapper, $callback)
  63. {
  64. /** @var \Illuminate\Foundation\Application $instance */
  65. $instance->beforeBootstrapping($bootstrapper, $callback);
  66. }
  67. /**
  68. * Register a callback to run after a bootstrapper.
  69. *
  70. * @param string $bootstrapper
  71. * @param \Closure $callback
  72. * @return void
  73. * @static
  74. */
  75. public static function afterBootstrapping($bootstrapper, $callback)
  76. {
  77. /** @var \Illuminate\Foundation\Application $instance */
  78. $instance->afterBootstrapping($bootstrapper, $callback);
  79. }
  80. /**
  81. * Determine if the application has been bootstrapped before.
  82. *
  83. * @return bool
  84. * @static
  85. */
  86. public static function hasBeenBootstrapped()
  87. {
  88. /** @var \Illuminate\Foundation\Application $instance */
  89. return $instance->hasBeenBootstrapped();
  90. }
  91. /**
  92. * Set the base path for the application.
  93. *
  94. * @param string $basePath
  95. * @return \Illuminate\Foundation\Application
  96. * @static
  97. */
  98. public static function setBasePath($basePath)
  99. {
  100. /** @var \Illuminate\Foundation\Application $instance */
  101. return $instance->setBasePath($basePath);
  102. }
  103. /**
  104. * Get the path to the application "app" directory.
  105. *
  106. * @param string $path
  107. * @return string
  108. * @static
  109. */
  110. public static function path($path = '')
  111. {
  112. /** @var \Illuminate\Foundation\Application $instance */
  113. return $instance->path($path);
  114. }
  115. /**
  116. * Set the application directory.
  117. *
  118. * @param string $path
  119. * @return \Illuminate\Foundation\Application
  120. * @static
  121. */
  122. public static function useAppPath($path)
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->useAppPath($path);
  126. }
  127. /**
  128. * Get the base path of the Laravel installation.
  129. *
  130. * @param string $path Optionally, a path to append to the base path
  131. * @return string
  132. * @static
  133. */
  134. public static function basePath($path = '')
  135. {
  136. /** @var \Illuminate\Foundation\Application $instance */
  137. return $instance->basePath($path);
  138. }
  139. /**
  140. * Get the path to the bootstrap directory.
  141. *
  142. * @param string $path Optionally, a path to append to the bootstrap path
  143. * @return string
  144. * @static
  145. */
  146. public static function bootstrapPath($path = '')
  147. {
  148. /** @var \Illuminate\Foundation\Application $instance */
  149. return $instance->bootstrapPath($path);
  150. }
  151. /**
  152. * Get the path to the application configuration files.
  153. *
  154. * @param string $path Optionally, a path to append to the config path
  155. * @return string
  156. * @static
  157. */
  158. public static function configPath($path = '')
  159. {
  160. /** @var \Illuminate\Foundation\Application $instance */
  161. return $instance->configPath($path);
  162. }
  163. /**
  164. * Get the path to the database directory.
  165. *
  166. * @param string $path Optionally, a path to append to the database path
  167. * @return string
  168. * @static
  169. */
  170. public static function databasePath($path = '')
  171. {
  172. /** @var \Illuminate\Foundation\Application $instance */
  173. return $instance->databasePath($path);
  174. }
  175. /**
  176. * Set the database directory.
  177. *
  178. * @param string $path
  179. * @return \Illuminate\Foundation\Application
  180. * @static
  181. */
  182. public static function useDatabasePath($path)
  183. {
  184. /** @var \Illuminate\Foundation\Application $instance */
  185. return $instance->useDatabasePath($path);
  186. }
  187. /**
  188. * Get the path to the language files.
  189. *
  190. * @return string
  191. * @static
  192. */
  193. public static function langPath()
  194. {
  195. /** @var \Illuminate\Foundation\Application $instance */
  196. return $instance->langPath();
  197. }
  198. /**
  199. * Get the path to the public / web directory.
  200. *
  201. * @return string
  202. * @static
  203. */
  204. public static function publicPath()
  205. {
  206. /** @var \Illuminate\Foundation\Application $instance */
  207. return $instance->publicPath();
  208. }
  209. /**
  210. * Get the path to the storage directory.
  211. *
  212. * @return string
  213. * @static
  214. */
  215. public static function storagePath()
  216. {
  217. /** @var \Illuminate\Foundation\Application $instance */
  218. return $instance->storagePath();
  219. }
  220. /**
  221. * Set the storage directory.
  222. *
  223. * @param string $path
  224. * @return \Illuminate\Foundation\Application
  225. * @static
  226. */
  227. public static function useStoragePath($path)
  228. {
  229. /** @var \Illuminate\Foundation\Application $instance */
  230. return $instance->useStoragePath($path);
  231. }
  232. /**
  233. * Get the path to the resources directory.
  234. *
  235. * @param string $path
  236. * @return string
  237. * @static
  238. */
  239. public static function resourcePath($path = '')
  240. {
  241. /** @var \Illuminate\Foundation\Application $instance */
  242. return $instance->resourcePath($path);
  243. }
  244. /**
  245. * Get the path to the environment file directory.
  246. *
  247. * @return string
  248. * @static
  249. */
  250. public static function environmentPath()
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->environmentPath();
  254. }
  255. /**
  256. * Set the directory for the environment file.
  257. *
  258. * @param string $path
  259. * @return \Illuminate\Foundation\Application
  260. * @static
  261. */
  262. public static function useEnvironmentPath($path)
  263. {
  264. /** @var \Illuminate\Foundation\Application $instance */
  265. return $instance->useEnvironmentPath($path);
  266. }
  267. /**
  268. * Set the environment file to be loaded during bootstrapping.
  269. *
  270. * @param string $file
  271. * @return \Illuminate\Foundation\Application
  272. * @static
  273. */
  274. public static function loadEnvironmentFrom($file)
  275. {
  276. /** @var \Illuminate\Foundation\Application $instance */
  277. return $instance->loadEnvironmentFrom($file);
  278. }
  279. /**
  280. * Get the environment file the application is using.
  281. *
  282. * @return string
  283. * @static
  284. */
  285. public static function environmentFile()
  286. {
  287. /** @var \Illuminate\Foundation\Application $instance */
  288. return $instance->environmentFile();
  289. }
  290. /**
  291. * Get the fully qualified path to the environment file.
  292. *
  293. * @return string
  294. * @static
  295. */
  296. public static function environmentFilePath()
  297. {
  298. /** @var \Illuminate\Foundation\Application $instance */
  299. return $instance->environmentFilePath();
  300. }
  301. /**
  302. * Get or check the current application environment.
  303. *
  304. * @param string|array $environments
  305. * @return string|bool
  306. * @static
  307. */
  308. public static function environment(...$environments)
  309. {
  310. /** @var \Illuminate\Foundation\Application $instance */
  311. return $instance->environment(...$environments);
  312. }
  313. /**
  314. * Determine if application is in local environment.
  315. *
  316. * @return bool
  317. * @static
  318. */
  319. public static function isLocal()
  320. {
  321. /** @var \Illuminate\Foundation\Application $instance */
  322. return $instance->isLocal();
  323. }
  324. /**
  325. * Determine if application is in production environment.
  326. *
  327. * @return bool
  328. * @static
  329. */
  330. public static function isProduction()
  331. {
  332. /** @var \Illuminate\Foundation\Application $instance */
  333. return $instance->isProduction();
  334. }
  335. /**
  336. * Detect the application's current environment.
  337. *
  338. * @param \Closure $callback
  339. * @return string
  340. * @static
  341. */
  342. public static function detectEnvironment($callback)
  343. {
  344. /** @var \Illuminate\Foundation\Application $instance */
  345. return $instance->detectEnvironment($callback);
  346. }
  347. /**
  348. * Determine if the application is running in the console.
  349. *
  350. * @return bool
  351. * @static
  352. */
  353. public static function runningInConsole()
  354. {
  355. /** @var \Illuminate\Foundation\Application $instance */
  356. return $instance->runningInConsole();
  357. }
  358. /**
  359. * Determine if the application is running unit tests.
  360. *
  361. * @return bool
  362. * @static
  363. */
  364. public static function runningUnitTests()
  365. {
  366. /** @var \Illuminate\Foundation\Application $instance */
  367. return $instance->runningUnitTests();
  368. }
  369. /**
  370. * Register all of the configured providers.
  371. *
  372. * @return void
  373. * @static
  374. */
  375. public static function registerConfiguredProviders()
  376. {
  377. /** @var \Illuminate\Foundation\Application $instance */
  378. $instance->registerConfiguredProviders();
  379. }
  380. /**
  381. * Register a service provider with the application.
  382. *
  383. * @param \Illuminate\Support\ServiceProvider|string $provider
  384. * @param bool $force
  385. * @return \Illuminate\Support\ServiceProvider
  386. * @static
  387. */
  388. public static function register($provider, $force = false)
  389. {
  390. /** @var \Illuminate\Foundation\Application $instance */
  391. return $instance->register($provider, $force);
  392. }
  393. /**
  394. * Get the registered service provider instance if it exists.
  395. *
  396. * @param \Illuminate\Support\ServiceProvider|string $provider
  397. * @return \Illuminate\Support\ServiceProvider|null
  398. * @static
  399. */
  400. public static function getProvider($provider)
  401. {
  402. /** @var \Illuminate\Foundation\Application $instance */
  403. return $instance->getProvider($provider);
  404. }
  405. /**
  406. * Get the registered service provider instances if any exist.
  407. *
  408. * @param \Illuminate\Support\ServiceProvider|string $provider
  409. * @return array
  410. * @static
  411. */
  412. public static function getProviders($provider)
  413. {
  414. /** @var \Illuminate\Foundation\Application $instance */
  415. return $instance->getProviders($provider);
  416. }
  417. /**
  418. * Resolve a service provider instance from the class name.
  419. *
  420. * @param string $provider
  421. * @return \Illuminate\Support\ServiceProvider
  422. * @static
  423. */
  424. public static function resolveProvider($provider)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. return $instance->resolveProvider($provider);
  428. }
  429. /**
  430. * Load and boot all of the remaining deferred providers.
  431. *
  432. * @return void
  433. * @static
  434. */
  435. public static function loadDeferredProviders()
  436. {
  437. /** @var \Illuminate\Foundation\Application $instance */
  438. $instance->loadDeferredProviders();
  439. }
  440. /**
  441. * Load the provider for a deferred service.
  442. *
  443. * @param string $service
  444. * @return void
  445. * @static
  446. */
  447. public static function loadDeferredProvider($service)
  448. {
  449. /** @var \Illuminate\Foundation\Application $instance */
  450. $instance->loadDeferredProvider($service);
  451. }
  452. /**
  453. * Register a deferred provider and service.
  454. *
  455. * @param string $provider
  456. * @param string|null $service
  457. * @return void
  458. * @static
  459. */
  460. public static function registerDeferredProvider($provider, $service = null)
  461. {
  462. /** @var \Illuminate\Foundation\Application $instance */
  463. $instance->registerDeferredProvider($provider, $service);
  464. }
  465. /**
  466. * Resolve the given type from the container.
  467. *
  468. * (Overriding Container::make)
  469. *
  470. * @param string $abstract
  471. * @param array $parameters
  472. * @return mixed
  473. * @static
  474. */
  475. public static function make($abstract, $parameters = [])
  476. {
  477. /** @var \Illuminate\Foundation\Application $instance */
  478. return $instance->make($abstract, $parameters);
  479. }
  480. /**
  481. * Determine if the given abstract type has been bound.
  482. *
  483. * (Overriding Container::bound)
  484. *
  485. * @param string $abstract
  486. * @return bool
  487. * @static
  488. */
  489. public static function bound($abstract)
  490. {
  491. /** @var \Illuminate\Foundation\Application $instance */
  492. return $instance->bound($abstract);
  493. }
  494. /**
  495. * Determine if the application has booted.
  496. *
  497. * @return bool
  498. * @static
  499. */
  500. public static function isBooted()
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. return $instance->isBooted();
  504. }
  505. /**
  506. * Boot the application's service providers.
  507. *
  508. * @return void
  509. * @static
  510. */
  511. public static function boot()
  512. {
  513. /** @var \Illuminate\Foundation\Application $instance */
  514. $instance->boot();
  515. }
  516. /**
  517. * Register a new boot listener.
  518. *
  519. * @param callable $callback
  520. * @return void
  521. * @static
  522. */
  523. public static function booting($callback)
  524. {
  525. /** @var \Illuminate\Foundation\Application $instance */
  526. $instance->booting($callback);
  527. }
  528. /**
  529. * Register a new "booted" listener.
  530. *
  531. * @param callable $callback
  532. * @return void
  533. * @static
  534. */
  535. public static function booted($callback)
  536. {
  537. /** @var \Illuminate\Foundation\Application $instance */
  538. $instance->booted($callback);
  539. }
  540. /**
  541. * {@inheritdoc}
  542. *
  543. * @static
  544. */
  545. public static function handle($request, $type = 1, $catch = true)
  546. {
  547. /** @var \Illuminate\Foundation\Application $instance */
  548. return $instance->handle($request, $type, $catch);
  549. }
  550. /**
  551. * Determine if middleware has been disabled for the application.
  552. *
  553. * @return bool
  554. * @static
  555. */
  556. public static function shouldSkipMiddleware()
  557. {
  558. /** @var \Illuminate\Foundation\Application $instance */
  559. return $instance->shouldSkipMiddleware();
  560. }
  561. /**
  562. * Get the path to the cached services.php file.
  563. *
  564. * @return string
  565. * @static
  566. */
  567. public static function getCachedServicesPath()
  568. {
  569. /** @var \Illuminate\Foundation\Application $instance */
  570. return $instance->getCachedServicesPath();
  571. }
  572. /**
  573. * Get the path to the cached packages.php file.
  574. *
  575. * @return string
  576. * @static
  577. */
  578. public static function getCachedPackagesPath()
  579. {
  580. /** @var \Illuminate\Foundation\Application $instance */
  581. return $instance->getCachedPackagesPath();
  582. }
  583. /**
  584. * Determine if the application configuration is cached.
  585. *
  586. * @return bool
  587. * @static
  588. */
  589. public static function configurationIsCached()
  590. {
  591. /** @var \Illuminate\Foundation\Application $instance */
  592. return $instance->configurationIsCached();
  593. }
  594. /**
  595. * Get the path to the configuration cache file.
  596. *
  597. * @return string
  598. * @static
  599. */
  600. public static function getCachedConfigPath()
  601. {
  602. /** @var \Illuminate\Foundation\Application $instance */
  603. return $instance->getCachedConfigPath();
  604. }
  605. /**
  606. * Determine if the application routes are cached.
  607. *
  608. * @return bool
  609. * @static
  610. */
  611. public static function routesAreCached()
  612. {
  613. /** @var \Illuminate\Foundation\Application $instance */
  614. return $instance->routesAreCached();
  615. }
  616. /**
  617. * Get the path to the routes cache file.
  618. *
  619. * @return string
  620. * @static
  621. */
  622. public static function getCachedRoutesPath()
  623. {
  624. /** @var \Illuminate\Foundation\Application $instance */
  625. return $instance->getCachedRoutesPath();
  626. }
  627. /**
  628. * Determine if the application events are cached.
  629. *
  630. * @return bool
  631. * @static
  632. */
  633. public static function eventsAreCached()
  634. {
  635. /** @var \Illuminate\Foundation\Application $instance */
  636. return $instance->eventsAreCached();
  637. }
  638. /**
  639. * Get the path to the events cache file.
  640. *
  641. * @return string
  642. * @static
  643. */
  644. public static function getCachedEventsPath()
  645. {
  646. /** @var \Illuminate\Foundation\Application $instance */
  647. return $instance->getCachedEventsPath();
  648. }
  649. /**
  650. * Determine if the application is currently down for maintenance.
  651. *
  652. * @return bool
  653. * @static
  654. */
  655. public static function isDownForMaintenance()
  656. {
  657. /** @var \Illuminate\Foundation\Application $instance */
  658. return $instance->isDownForMaintenance();
  659. }
  660. /**
  661. * Throw an HttpException with the given data.
  662. *
  663. * @param int $code
  664. * @param string $message
  665. * @param array $headers
  666. * @return void
  667. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  668. * @static
  669. */
  670. public static function abort($code, $message = '', $headers = [])
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. $instance->abort($code, $message, $headers);
  674. }
  675. /**
  676. * Register a terminating callback with the application.
  677. *
  678. * @param callable|string $callback
  679. * @return \Illuminate\Foundation\Application
  680. * @static
  681. */
  682. public static function terminating($callback)
  683. {
  684. /** @var \Illuminate\Foundation\Application $instance */
  685. return $instance->terminating($callback);
  686. }
  687. /**
  688. * Terminate the application.
  689. *
  690. * @return void
  691. * @static
  692. */
  693. public static function terminate()
  694. {
  695. /** @var \Illuminate\Foundation\Application $instance */
  696. $instance->terminate();
  697. }
  698. /**
  699. * Get the service providers that have been loaded.
  700. *
  701. * @return array
  702. * @static
  703. */
  704. public static function getLoadedProviders()
  705. {
  706. /** @var \Illuminate\Foundation\Application $instance */
  707. return $instance->getLoadedProviders();
  708. }
  709. /**
  710. * Get the application's deferred services.
  711. *
  712. * @return array
  713. * @static
  714. */
  715. public static function getDeferredServices()
  716. {
  717. /** @var \Illuminate\Foundation\Application $instance */
  718. return $instance->getDeferredServices();
  719. }
  720. /**
  721. * Set the application's deferred services.
  722. *
  723. * @param array $services
  724. * @return void
  725. * @static
  726. */
  727. public static function setDeferredServices($services)
  728. {
  729. /** @var \Illuminate\Foundation\Application $instance */
  730. $instance->setDeferredServices($services);
  731. }
  732. /**
  733. * Add an array of services to the application's deferred services.
  734. *
  735. * @param array $services
  736. * @return void
  737. * @static
  738. */
  739. public static function addDeferredServices($services)
  740. {
  741. /** @var \Illuminate\Foundation\Application $instance */
  742. $instance->addDeferredServices($services);
  743. }
  744. /**
  745. * Determine if the given service is a deferred service.
  746. *
  747. * @param string $service
  748. * @return bool
  749. * @static
  750. */
  751. public static function isDeferredService($service)
  752. {
  753. /** @var \Illuminate\Foundation\Application $instance */
  754. return $instance->isDeferredService($service);
  755. }
  756. /**
  757. * Configure the real-time facade namespace.
  758. *
  759. * @param string $namespace
  760. * @return void
  761. * @static
  762. */
  763. public static function provideFacades($namespace)
  764. {
  765. /** @var \Illuminate\Foundation\Application $instance */
  766. $instance->provideFacades($namespace);
  767. }
  768. /**
  769. * Get the current application locale.
  770. *
  771. * @return string
  772. * @static
  773. */
  774. public static function getLocale()
  775. {
  776. /** @var \Illuminate\Foundation\Application $instance */
  777. return $instance->getLocale();
  778. }
  779. /**
  780. * Set the current application locale.
  781. *
  782. * @param string $locale
  783. * @return void
  784. * @static
  785. */
  786. public static function setLocale($locale)
  787. {
  788. /** @var \Illuminate\Foundation\Application $instance */
  789. $instance->setLocale($locale);
  790. }
  791. /**
  792. * Determine if application locale is the given locale.
  793. *
  794. * @param string $locale
  795. * @return bool
  796. * @static
  797. */
  798. public static function isLocale($locale)
  799. {
  800. /** @var \Illuminate\Foundation\Application $instance */
  801. return $instance->isLocale($locale);
  802. }
  803. /**
  804. * Register the core class aliases in the container.
  805. *
  806. * @return void
  807. * @static
  808. */
  809. public static function registerCoreContainerAliases()
  810. {
  811. /** @var \Illuminate\Foundation\Application $instance */
  812. $instance->registerCoreContainerAliases();
  813. }
  814. /**
  815. * Flush the container of all bindings and resolved instances.
  816. *
  817. * @return void
  818. * @static
  819. */
  820. public static function flush()
  821. {
  822. /** @var \Illuminate\Foundation\Application $instance */
  823. $instance->flush();
  824. }
  825. /**
  826. * Get the application namespace.
  827. *
  828. * @return string
  829. * @throws \RuntimeException
  830. * @static
  831. */
  832. public static function getNamespace()
  833. {
  834. /** @var \Illuminate\Foundation\Application $instance */
  835. return $instance->getNamespace();
  836. }
  837. /**
  838. * Define a contextual binding.
  839. *
  840. * @param array|string $concrete
  841. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  842. * @static
  843. */
  844. public static function when($concrete)
  845. {
  846. //Method inherited from \Illuminate\Container\Container
  847. /** @var \Illuminate\Foundation\Application $instance */
  848. return $instance->when($concrete);
  849. }
  850. /**
  851. * Returns true if the container can return an entry for the given identifier.
  852. *
  853. * Returns false otherwise.
  854. *
  855. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  856. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  857. *
  858. * @param string $id Identifier of the entry to look for.
  859. * @return bool
  860. * @static
  861. */
  862. public static function has($id)
  863. {
  864. //Method inherited from \Illuminate\Container\Container
  865. /** @var \Illuminate\Foundation\Application $instance */
  866. return $instance->has($id);
  867. }
  868. /**
  869. * Determine if the given abstract type has been resolved.
  870. *
  871. * @param string $abstract
  872. * @return bool
  873. * @static
  874. */
  875. public static function resolved($abstract)
  876. {
  877. //Method inherited from \Illuminate\Container\Container
  878. /** @var \Illuminate\Foundation\Application $instance */
  879. return $instance->resolved($abstract);
  880. }
  881. /**
  882. * Determine if a given type is shared.
  883. *
  884. * @param string $abstract
  885. * @return bool
  886. * @static
  887. */
  888. public static function isShared($abstract)
  889. {
  890. //Method inherited from \Illuminate\Container\Container
  891. /** @var \Illuminate\Foundation\Application $instance */
  892. return $instance->isShared($abstract);
  893. }
  894. /**
  895. * Determine if a given string is an alias.
  896. *
  897. * @param string $name
  898. * @return bool
  899. * @static
  900. */
  901. public static function isAlias($name)
  902. {
  903. //Method inherited from \Illuminate\Container\Container
  904. /** @var \Illuminate\Foundation\Application $instance */
  905. return $instance->isAlias($name);
  906. }
  907. /**
  908. * Register a binding with the container.
  909. *
  910. * @param string $abstract
  911. * @param \Closure|string|null $concrete
  912. * @param bool $shared
  913. * @return void
  914. * @static
  915. */
  916. public static function bind($abstract, $concrete = null, $shared = false)
  917. {
  918. //Method inherited from \Illuminate\Container\Container
  919. /** @var \Illuminate\Foundation\Application $instance */
  920. $instance->bind($abstract, $concrete, $shared);
  921. }
  922. /**
  923. * Determine if the container has a method binding.
  924. *
  925. * @param string $method
  926. * @return bool
  927. * @static
  928. */
  929. public static function hasMethodBinding($method)
  930. {
  931. //Method inherited from \Illuminate\Container\Container
  932. /** @var \Illuminate\Foundation\Application $instance */
  933. return $instance->hasMethodBinding($method);
  934. }
  935. /**
  936. * Bind a callback to resolve with Container::call.
  937. *
  938. * @param array|string $method
  939. * @param \Closure $callback
  940. * @return void
  941. * @static
  942. */
  943. public static function bindMethod($method, $callback)
  944. {
  945. //Method inherited from \Illuminate\Container\Container
  946. /** @var \Illuminate\Foundation\Application $instance */
  947. $instance->bindMethod($method, $callback);
  948. }
  949. /**
  950. * Get the method binding for the given method.
  951. *
  952. * @param string $method
  953. * @param mixed $instance
  954. * @return mixed
  955. * @static
  956. */
  957. public static function callMethodBinding($method, $instance)
  958. {
  959. //Method inherited from \Illuminate\Container\Container
  960. /** @var \Illuminate\Foundation\Application $instance */
  961. return $instance->callMethodBinding($method, $instance);
  962. }
  963. /**
  964. * Add a contextual binding to the container.
  965. *
  966. * @param string $concrete
  967. * @param string $abstract
  968. * @param \Closure|string $implementation
  969. * @return void
  970. * @static
  971. */
  972. public static function addContextualBinding($concrete, $abstract, $implementation)
  973. {
  974. //Method inherited from \Illuminate\Container\Container
  975. /** @var \Illuminate\Foundation\Application $instance */
  976. $instance->addContextualBinding($concrete, $abstract, $implementation);
  977. }
  978. /**
  979. * Register a binding if it hasn't already been registered.
  980. *
  981. * @param string $abstract
  982. * @param \Closure|string|null $concrete
  983. * @param bool $shared
  984. * @return void
  985. * @static
  986. */
  987. public static function bindIf($abstract, $concrete = null, $shared = false)
  988. {
  989. //Method inherited from \Illuminate\Container\Container
  990. /** @var \Illuminate\Foundation\Application $instance */
  991. $instance->bindIf($abstract, $concrete, $shared);
  992. }
  993. /**
  994. * Register a shared binding in the container.
  995. *
  996. * @param string $abstract
  997. * @param \Closure|string|null $concrete
  998. * @return void
  999. * @static
  1000. */
  1001. public static function singleton($abstract, $concrete = null)
  1002. {
  1003. //Method inherited from \Illuminate\Container\Container
  1004. /** @var \Illuminate\Foundation\Application $instance */
  1005. $instance->singleton($abstract, $concrete);
  1006. }
  1007. /**
  1008. * "Extend" an abstract type in the container.
  1009. *
  1010. * @param string $abstract
  1011. * @param \Closure $closure
  1012. * @return void
  1013. * @throws \InvalidArgumentException
  1014. * @static
  1015. */
  1016. public static function extend($abstract, $closure)
  1017. {
  1018. //Method inherited from \Illuminate\Container\Container
  1019. /** @var \Illuminate\Foundation\Application $instance */
  1020. $instance->extend($abstract, $closure);
  1021. }
  1022. /**
  1023. * Register an existing instance as shared in the container.
  1024. *
  1025. * @param string $abstract
  1026. * @param mixed $instance
  1027. * @return mixed
  1028. * @static
  1029. */
  1030. public static function instance($abstract, $instance)
  1031. {
  1032. //Method inherited from \Illuminate\Container\Container
  1033. /** @var \Illuminate\Foundation\Application $instance */
  1034. return $instance->instance($abstract, $instance);
  1035. }
  1036. /**
  1037. * Assign a set of tags to a given binding.
  1038. *
  1039. * @param array|string $abstracts
  1040. * @param array|mixed $tags
  1041. * @return void
  1042. * @static
  1043. */
  1044. public static function tag($abstracts, $tags)
  1045. {
  1046. //Method inherited from \Illuminate\Container\Container
  1047. /** @var \Illuminate\Foundation\Application $instance */
  1048. $instance->tag($abstracts, $tags);
  1049. }
  1050. /**
  1051. * Resolve all of the bindings for a given tag.
  1052. *
  1053. * @param string $tag
  1054. * @return \Illuminate\Container\iterable
  1055. * @static
  1056. */
  1057. public static function tagged($tag)
  1058. {
  1059. //Method inherited from \Illuminate\Container\Container
  1060. /** @var \Illuminate\Foundation\Application $instance */
  1061. return $instance->tagged($tag);
  1062. }
  1063. /**
  1064. * Alias a type to a different name.
  1065. *
  1066. * @param string $abstract
  1067. * @param string $alias
  1068. * @return void
  1069. * @throws \LogicException
  1070. * @static
  1071. */
  1072. public static function alias($abstract, $alias)
  1073. {
  1074. //Method inherited from \Illuminate\Container\Container
  1075. /** @var \Illuminate\Foundation\Application $instance */
  1076. $instance->alias($abstract, $alias);
  1077. }
  1078. /**
  1079. * Bind a new callback to an abstract's rebind event.
  1080. *
  1081. * @param string $abstract
  1082. * @param \Closure $callback
  1083. * @return mixed
  1084. * @static
  1085. */
  1086. public static function rebinding($abstract, $callback)
  1087. {
  1088. //Method inherited from \Illuminate\Container\Container
  1089. /** @var \Illuminate\Foundation\Application $instance */
  1090. return $instance->rebinding($abstract, $callback);
  1091. }
  1092. /**
  1093. * Refresh an instance on the given target and method.
  1094. *
  1095. * @param string $abstract
  1096. * @param mixed $target
  1097. * @param string $method
  1098. * @return mixed
  1099. * @static
  1100. */
  1101. public static function refresh($abstract, $target, $method)
  1102. {
  1103. //Method inherited from \Illuminate\Container\Container
  1104. /** @var \Illuminate\Foundation\Application $instance */
  1105. return $instance->refresh($abstract, $target, $method);
  1106. }
  1107. /**
  1108. * Wrap the given closure such that its dependencies will be injected when executed.
  1109. *
  1110. * @param \Closure $callback
  1111. * @param array $parameters
  1112. * @return \Closure
  1113. * @static
  1114. */
  1115. public static function wrap($callback, $parameters = [])
  1116. {
  1117. //Method inherited from \Illuminate\Container\Container
  1118. /** @var \Illuminate\Foundation\Application $instance */
  1119. return $instance->wrap($callback, $parameters);
  1120. }
  1121. /**
  1122. * Call the given Closure / class@method and inject its dependencies.
  1123. *
  1124. * @param callable|string $callback
  1125. * @param array $parameters
  1126. * @param string|null $defaultMethod
  1127. * @return mixed
  1128. * @static
  1129. */
  1130. public static function call($callback, $parameters = [], $defaultMethod = null)
  1131. {
  1132. //Method inherited from \Illuminate\Container\Container
  1133. /** @var \Illuminate\Foundation\Application $instance */
  1134. return $instance->call($callback, $parameters, $defaultMethod);
  1135. }
  1136. /**
  1137. * Get a closure to resolve the given type from the container.
  1138. *
  1139. * @param string $abstract
  1140. * @return \Closure
  1141. * @static
  1142. */
  1143. public static function factory($abstract)
  1144. {
  1145. //Method inherited from \Illuminate\Container\Container
  1146. /** @var \Illuminate\Foundation\Application $instance */
  1147. return $instance->factory($abstract);
  1148. }
  1149. /**
  1150. * An alias function name for make().
  1151. *
  1152. * @param string $abstract
  1153. * @param array $parameters
  1154. * @return mixed
  1155. * @static
  1156. */
  1157. public static function makeWith($abstract, $parameters = [])
  1158. {
  1159. //Method inherited from \Illuminate\Container\Container
  1160. /** @var \Illuminate\Foundation\Application $instance */
  1161. return $instance->makeWith($abstract, $parameters);
  1162. }
  1163. /**
  1164. * Finds an entry of the container by its identifier and returns it.
  1165. *
  1166. * @param string $id Identifier of the entry to look for.
  1167. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1168. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1169. * @return mixed Entry.
  1170. * @static
  1171. */
  1172. public static function get($id)
  1173. {
  1174. //Method inherited from \Illuminate\Container\Container
  1175. /** @var \Illuminate\Foundation\Application $instance */
  1176. return $instance->get($id);
  1177. }
  1178. /**
  1179. * Instantiate a concrete instance of the given type.
  1180. *
  1181. * @param string $concrete
  1182. * @return mixed
  1183. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1184. * @static
  1185. */
  1186. public static function build($concrete)
  1187. {
  1188. //Method inherited from \Illuminate\Container\Container
  1189. /** @var \Illuminate\Foundation\Application $instance */
  1190. return $instance->build($concrete);
  1191. }
  1192. /**
  1193. * Register a new resolving callback.
  1194. *
  1195. * @param \Closure|string $abstract
  1196. * @param \Closure|null $callback
  1197. * @return void
  1198. * @static
  1199. */
  1200. public static function resolving($abstract, $callback = null)
  1201. {
  1202. //Method inherited from \Illuminate\Container\Container
  1203. /** @var \Illuminate\Foundation\Application $instance */
  1204. $instance->resolving($abstract, $callback);
  1205. }
  1206. /**
  1207. * Register a new after resolving callback for all types.
  1208. *
  1209. * @param \Closure|string $abstract
  1210. * @param \Closure|null $callback
  1211. * @return void
  1212. * @static
  1213. */
  1214. public static function afterResolving($abstract, $callback = null)
  1215. {
  1216. //Method inherited from \Illuminate\Container\Container
  1217. /** @var \Illuminate\Foundation\Application $instance */
  1218. $instance->afterResolving($abstract, $callback);
  1219. }
  1220. /**
  1221. * Get the container's bindings.
  1222. *
  1223. * @return array
  1224. * @static
  1225. */
  1226. public static function getBindings()
  1227. {
  1228. //Method inherited from \Illuminate\Container\Container
  1229. /** @var \Illuminate\Foundation\Application $instance */
  1230. return $instance->getBindings();
  1231. }
  1232. /**
  1233. * Get the alias for an abstract if available.
  1234. *
  1235. * @param string $abstract
  1236. * @return string
  1237. * @static
  1238. */
  1239. public static function getAlias($abstract)
  1240. {
  1241. //Method inherited from \Illuminate\Container\Container
  1242. /** @var \Illuminate\Foundation\Application $instance */
  1243. return $instance->getAlias($abstract);
  1244. }
  1245. /**
  1246. * Remove all of the extender callbacks for a given type.
  1247. *
  1248. * @param string $abstract
  1249. * @return void
  1250. * @static
  1251. */
  1252. public static function forgetExtenders($abstract)
  1253. {
  1254. //Method inherited from \Illuminate\Container\Container
  1255. /** @var \Illuminate\Foundation\Application $instance */
  1256. $instance->forgetExtenders($abstract);
  1257. }
  1258. /**
  1259. * Remove a resolved instance from the instance cache.
  1260. *
  1261. * @param string $abstract
  1262. * @return void
  1263. * @static
  1264. */
  1265. public static function forgetInstance($abstract)
  1266. {
  1267. //Method inherited from \Illuminate\Container\Container
  1268. /** @var \Illuminate\Foundation\Application $instance */
  1269. $instance->forgetInstance($abstract);
  1270. }
  1271. /**
  1272. * Clear all of the instances from the container.
  1273. *
  1274. * @return void
  1275. * @static
  1276. */
  1277. public static function forgetInstances()
  1278. {
  1279. //Method inherited from \Illuminate\Container\Container
  1280. /** @var \Illuminate\Foundation\Application $instance */
  1281. $instance->forgetInstances();
  1282. }
  1283. /**
  1284. * Get the globally available instance of the container.
  1285. *
  1286. * @return static
  1287. * @static
  1288. */
  1289. public static function getInstance()
  1290. {
  1291. //Method inherited from \Illuminate\Container\Container
  1292. return \Illuminate\Foundation\Application::getInstance();
  1293. }
  1294. /**
  1295. * Set the shared instance of the container.
  1296. *
  1297. * @param \Illuminate\Contracts\Container\Container|null $container
  1298. * @return \Illuminate\Contracts\Container\Container|static
  1299. * @static
  1300. */
  1301. public static function setInstance($container = null)
  1302. {
  1303. //Method inherited from \Illuminate\Container\Container
  1304. return \Illuminate\Foundation\Application::setInstance($container);
  1305. }
  1306. /**
  1307. * Determine if a given offset exists.
  1308. *
  1309. * @param string $key
  1310. * @return bool
  1311. * @static
  1312. */
  1313. public static function offsetExists($key)
  1314. {
  1315. //Method inherited from \Illuminate\Container\Container
  1316. /** @var \Illuminate\Foundation\Application $instance */
  1317. return $instance->offsetExists($key);
  1318. }
  1319. /**
  1320. * Get the value at a given offset.
  1321. *
  1322. * @param string $key
  1323. * @return mixed
  1324. * @static
  1325. */
  1326. public static function offsetGet($key)
  1327. {
  1328. //Method inherited from \Illuminate\Container\Container
  1329. /** @var \Illuminate\Foundation\Application $instance */
  1330. return $instance->offsetGet($key);
  1331. }
  1332. /**
  1333. * Set the value at a given offset.
  1334. *
  1335. * @param string $key
  1336. * @param mixed $value
  1337. * @return void
  1338. * @static
  1339. */
  1340. public static function offsetSet($key, $value)
  1341. {
  1342. //Method inherited from \Illuminate\Container\Container
  1343. /** @var \Illuminate\Foundation\Application $instance */
  1344. $instance->offsetSet($key, $value);
  1345. }
  1346. /**
  1347. * Unset the value at a given offset.
  1348. *
  1349. * @param string $key
  1350. * @return void
  1351. * @static
  1352. */
  1353. public static function offsetUnset($key)
  1354. {
  1355. //Method inherited from \Illuminate\Container\Container
  1356. /** @var \Illuminate\Foundation\Application $instance */
  1357. $instance->offsetUnset($key);
  1358. }
  1359. }
  1360. /**
  1361. *
  1362. *
  1363. * @see \Illuminate\Contracts\Console\Kernel
  1364. */
  1365. class Artisan {
  1366. /**
  1367. * Run the console application.
  1368. *
  1369. * @param \Symfony\Component\Console\Input\InputInterface $input
  1370. * @param \Symfony\Component\Console\Output\OutputInterface|null $output
  1371. * @return int
  1372. * @static
  1373. */
  1374. public static function handle($input, $output = null)
  1375. {
  1376. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1377. /** @var \App\Console\Kernel $instance */
  1378. return $instance->handle($input, $output);
  1379. }
  1380. /**
  1381. * Terminate the application.
  1382. *
  1383. * @param \Symfony\Component\Console\Input\InputInterface $input
  1384. * @param int $status
  1385. * @return void
  1386. * @static
  1387. */
  1388. public static function terminate($input, $status)
  1389. {
  1390. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1391. /** @var \App\Console\Kernel $instance */
  1392. $instance->terminate($input, $status);
  1393. }
  1394. /**
  1395. * Register a Closure based command with the application.
  1396. *
  1397. * @param string $signature
  1398. * @param \Closure $callback
  1399. * @return \Illuminate\Foundation\Console\ClosureCommand
  1400. * @static
  1401. */
  1402. public static function command($signature, $callback)
  1403. {
  1404. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1405. /** @var \App\Console\Kernel $instance */
  1406. return $instance->command($signature, $callback);
  1407. }
  1408. /**
  1409. * Register the given command with the console application.
  1410. *
  1411. * @param \Symfony\Component\Console\Command\Command $command
  1412. * @return void
  1413. * @static
  1414. */
  1415. public static function registerCommand($command)
  1416. {
  1417. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1418. /** @var \App\Console\Kernel $instance */
  1419. $instance->registerCommand($command);
  1420. }
  1421. /**
  1422. * Run an Artisan console command by name.
  1423. *
  1424. * @param string $command
  1425. * @param array $parameters
  1426. * @param \Symfony\Component\Console\Output\OutputInterface|null $outputBuffer
  1427. * @return int
  1428. * @throws \Symfony\Component\Console\Exception\CommandNotFoundException
  1429. * @static
  1430. */
  1431. public static function call($command, $parameters = [], $outputBuffer = null)
  1432. {
  1433. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1434. /** @var \App\Console\Kernel $instance */
  1435. return $instance->call($command, $parameters, $outputBuffer);
  1436. }
  1437. /**
  1438. * Queue the given console command.
  1439. *
  1440. * @param string $command
  1441. * @param array $parameters
  1442. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1443. * @static
  1444. */
  1445. public static function queue($command, $parameters = [])
  1446. {
  1447. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1448. /** @var \App\Console\Kernel $instance */
  1449. return $instance->queue($command, $parameters);
  1450. }
  1451. /**
  1452. * Get all of the commands registered with the console.
  1453. *
  1454. * @return array
  1455. * @static
  1456. */
  1457. public static function all()
  1458. {
  1459. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1460. /** @var \App\Console\Kernel $instance */
  1461. return $instance->all();
  1462. }
  1463. /**
  1464. * Get the output for the last run command.
  1465. *
  1466. * @return string
  1467. * @static
  1468. */
  1469. public static function output()
  1470. {
  1471. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1472. /** @var \App\Console\Kernel $instance */
  1473. return $instance->output();
  1474. }
  1475. /**
  1476. * Bootstrap the application for artisan commands.
  1477. *
  1478. * @return void
  1479. * @static
  1480. */
  1481. public static function bootstrap()
  1482. {
  1483. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1484. /** @var \App\Console\Kernel $instance */
  1485. $instance->bootstrap();
  1486. }
  1487. /**
  1488. * Set the Artisan application instance.
  1489. *
  1490. * @param \Illuminate\Console\Application $artisan
  1491. * @return void
  1492. * @static
  1493. */
  1494. public static function setArtisan($artisan)
  1495. {
  1496. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1497. /** @var \App\Console\Kernel $instance */
  1498. $instance->setArtisan($artisan);
  1499. }
  1500. }
  1501. /**
  1502. *
  1503. *
  1504. * @see \Illuminate\Auth\AuthManager
  1505. * @see \Illuminate\Contracts\Auth\Factory
  1506. * @see \Illuminate\Contracts\Auth\Guard
  1507. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1508. */
  1509. class Auth {
  1510. /**
  1511. * Attempt to get the guard from the local cache.
  1512. *
  1513. * @param string|null $name
  1514. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1515. * @static
  1516. */
  1517. public static function guard($name = null)
  1518. {
  1519. /** @var \Illuminate\Auth\AuthManager $instance */
  1520. return $instance->guard($name);
  1521. }
  1522. /**
  1523. * Create a session based authentication guard.
  1524. *
  1525. * @param string $name
  1526. * @param array $config
  1527. * @return \Illuminate\Auth\SessionGuard
  1528. * @static
  1529. */
  1530. public static function createSessionDriver($name, $config)
  1531. {
  1532. /** @var \Illuminate\Auth\AuthManager $instance */
  1533. return $instance->createSessionDriver($name, $config);
  1534. }
  1535. /**
  1536. * Create a token based authentication guard.
  1537. *
  1538. * @param string $name
  1539. * @param array $config
  1540. * @return \Illuminate\Auth\TokenGuard
  1541. * @static
  1542. */
  1543. public static function createTokenDriver($name, $config)
  1544. {
  1545. /** @var \Illuminate\Auth\AuthManager $instance */
  1546. return $instance->createTokenDriver($name, $config);
  1547. }
  1548. /**
  1549. * Get the default authentication driver name.
  1550. *
  1551. * @return string
  1552. * @static
  1553. */
  1554. public static function getDefaultDriver()
  1555. {
  1556. /** @var \Illuminate\Auth\AuthManager $instance */
  1557. return $instance->getDefaultDriver();
  1558. }
  1559. /**
  1560. * Set the default guard driver the factory should serve.
  1561. *
  1562. * @param string $name
  1563. * @return void
  1564. * @static
  1565. */
  1566. public static function shouldUse($name)
  1567. {
  1568. /** @var \Illuminate\Auth\AuthManager $instance */
  1569. $instance->shouldUse($name);
  1570. }
  1571. /**
  1572. * Set the default authentication driver name.
  1573. *
  1574. * @param string $name
  1575. * @return void
  1576. * @static
  1577. */
  1578. public static function setDefaultDriver($name)
  1579. {
  1580. /** @var \Illuminate\Auth\AuthManager $instance */
  1581. $instance->setDefaultDriver($name);
  1582. }
  1583. /**
  1584. * Register a new callback based request guard.
  1585. *
  1586. * @param string $driver
  1587. * @param callable $callback
  1588. * @return \Illuminate\Auth\AuthManager
  1589. * @static
  1590. */
  1591. public static function viaRequest($driver, $callback)
  1592. {
  1593. /** @var \Illuminate\Auth\AuthManager $instance */
  1594. return $instance->viaRequest($driver, $callback);
  1595. }
  1596. /**
  1597. * Get the user resolver callback.
  1598. *
  1599. * @return \Closure
  1600. * @static
  1601. */
  1602. public static function userResolver()
  1603. {
  1604. /** @var \Illuminate\Auth\AuthManager $instance */
  1605. return $instance->userResolver();
  1606. }
  1607. /**
  1608. * Set the callback to be used to resolve users.
  1609. *
  1610. * @param \Closure $userResolver
  1611. * @return \Illuminate\Auth\AuthManager
  1612. * @static
  1613. */
  1614. public static function resolveUsersUsing($userResolver)
  1615. {
  1616. /** @var \Illuminate\Auth\AuthManager $instance */
  1617. return $instance->resolveUsersUsing($userResolver);
  1618. }
  1619. /**
  1620. * Register a custom driver creator Closure.
  1621. *
  1622. * @param string $driver
  1623. * @param \Closure $callback
  1624. * @return \Illuminate\Auth\AuthManager
  1625. * @static
  1626. */
  1627. public static function extend($driver, $callback)
  1628. {
  1629. /** @var \Illuminate\Auth\AuthManager $instance */
  1630. return $instance->extend($driver, $callback);
  1631. }
  1632. /**
  1633. * Register a custom provider creator Closure.
  1634. *
  1635. * @param string $name
  1636. * @param \Closure $callback
  1637. * @return \Illuminate\Auth\AuthManager
  1638. * @static
  1639. */
  1640. public static function provider($name, $callback)
  1641. {
  1642. /** @var \Illuminate\Auth\AuthManager $instance */
  1643. return $instance->provider($name, $callback);
  1644. }
  1645. /**
  1646. * Create the user provider implementation for the driver.
  1647. *
  1648. * @param string|null $provider
  1649. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1650. * @throws \InvalidArgumentException
  1651. * @static
  1652. */
  1653. public static function createUserProvider($provider = null)
  1654. {
  1655. /** @var \Illuminate\Auth\AuthManager $instance */
  1656. return $instance->createUserProvider($provider);
  1657. }
  1658. /**
  1659. * Get the default user provider name.
  1660. *
  1661. * @return string
  1662. * @static
  1663. */
  1664. public static function getDefaultUserProvider()
  1665. {
  1666. /** @var \Illuminate\Auth\AuthManager $instance */
  1667. return $instance->getDefaultUserProvider();
  1668. }
  1669. /**
  1670. * Get the currently authenticated user.
  1671. *
  1672. * @return \App\Http\Models\User|null
  1673. * @static
  1674. */
  1675. public static function user()
  1676. {
  1677. /** @var \Illuminate\Auth\SessionGuard $instance */
  1678. return $instance->user();
  1679. }
  1680. /**
  1681. * Get the ID for the currently authenticated user.
  1682. *
  1683. * @return int|null
  1684. * @static
  1685. */
  1686. public static function id()
  1687. {
  1688. /** @var \Illuminate\Auth\SessionGuard $instance */
  1689. return $instance->id();
  1690. }
  1691. /**
  1692. * Log a user into the application without sessions or cookies.
  1693. *
  1694. * @param array $credentials
  1695. * @return bool
  1696. * @static
  1697. */
  1698. public static function once($credentials = [])
  1699. {
  1700. /** @var \Illuminate\Auth\SessionGuard $instance */
  1701. return $instance->once($credentials);
  1702. }
  1703. /**
  1704. * Log the given user ID into the application without sessions or cookies.
  1705. *
  1706. * @param mixed $id
  1707. * @return \App\Http\Models\User|false
  1708. * @static
  1709. */
  1710. public static function onceUsingId($id)
  1711. {
  1712. /** @var \Illuminate\Auth\SessionGuard $instance */
  1713. return $instance->onceUsingId($id);
  1714. }
  1715. /**
  1716. * Validate a user's credentials.
  1717. *
  1718. * @param array $credentials
  1719. * @return bool
  1720. * @static
  1721. */
  1722. public static function validate($credentials = [])
  1723. {
  1724. /** @var \Illuminate\Auth\SessionGuard $instance */
  1725. return $instance->validate($credentials);
  1726. }
  1727. /**
  1728. * Attempt to authenticate using HTTP Basic Auth.
  1729. *
  1730. * @param string $field
  1731. * @param array $extraConditions
  1732. * @return \Symfony\Component\HttpFoundation\Response|null
  1733. * @static
  1734. */
  1735. public static function basic($field = 'email', $extraConditions = [])
  1736. {
  1737. /** @var \Illuminate\Auth\SessionGuard $instance */
  1738. return $instance->basic($field, $extraConditions);
  1739. }
  1740. /**
  1741. * Perform a stateless HTTP Basic login attempt.
  1742. *
  1743. * @param string $field
  1744. * @param array $extraConditions
  1745. * @return \Symfony\Component\HttpFoundation\Response|null
  1746. * @static
  1747. */
  1748. public static function onceBasic($field = 'email', $extraConditions = [])
  1749. {
  1750. /** @var \Illuminate\Auth\SessionGuard $instance */
  1751. return $instance->onceBasic($field, $extraConditions);
  1752. }
  1753. /**
  1754. * Attempt to authenticate a user using the given credentials.
  1755. *
  1756. * @param array $credentials
  1757. * @param bool $remember
  1758. * @return bool
  1759. * @static
  1760. */
  1761. public static function attempt($credentials = [], $remember = false)
  1762. {
  1763. /** @var \Illuminate\Auth\SessionGuard $instance */
  1764. return $instance->attempt($credentials, $remember);
  1765. }
  1766. /**
  1767. * Log the given user ID into the application.
  1768. *
  1769. * @param mixed $id
  1770. * @param bool $remember
  1771. * @return \App\Http\Models\User|false
  1772. * @static
  1773. */
  1774. public static function loginUsingId($id, $remember = false)
  1775. {
  1776. /** @var \Illuminate\Auth\SessionGuard $instance */
  1777. return $instance->loginUsingId($id, $remember);
  1778. }
  1779. /**
  1780. * Log a user into the application.
  1781. *
  1782. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1783. * @param bool $remember
  1784. * @return void
  1785. * @static
  1786. */
  1787. public static function login($user, $remember = false)
  1788. {
  1789. /** @var \Illuminate\Auth\SessionGuard $instance */
  1790. $instance->login($user, $remember);
  1791. }
  1792. /**
  1793. * Log the user out of the application.
  1794. *
  1795. * @return void
  1796. * @static
  1797. */
  1798. public static function logout()
  1799. {
  1800. /** @var \Illuminate\Auth\SessionGuard $instance */
  1801. $instance->logout();
  1802. }
  1803. /**
  1804. * Invalidate other sessions for the current user.
  1805. *
  1806. * The application must be using the AuthenticateSession middleware.
  1807. *
  1808. * @param string $password
  1809. * @param string $attribute
  1810. * @return bool|null
  1811. * @static
  1812. */
  1813. public static function logoutOtherDevices($password, $attribute = 'password')
  1814. {
  1815. /** @var \Illuminate\Auth\SessionGuard $instance */
  1816. return $instance->logoutOtherDevices($password, $attribute);
  1817. }
  1818. /**
  1819. * Register an authentication attempt event listener.
  1820. *
  1821. * @param mixed $callback
  1822. * @return void
  1823. * @static
  1824. */
  1825. public static function attempting($callback)
  1826. {
  1827. /** @var \Illuminate\Auth\SessionGuard $instance */
  1828. $instance->attempting($callback);
  1829. }
  1830. /**
  1831. * Get the last user we attempted to authenticate.
  1832. *
  1833. * @return \App\Http\Models\User
  1834. * @static
  1835. */
  1836. public static function getLastAttempted()
  1837. {
  1838. /** @var \Illuminate\Auth\SessionGuard $instance */
  1839. return $instance->getLastAttempted();
  1840. }
  1841. /**
  1842. * Get a unique identifier for the auth session value.
  1843. *
  1844. * @return string
  1845. * @static
  1846. */
  1847. public static function getName()
  1848. {
  1849. /** @var \Illuminate\Auth\SessionGuard $instance */
  1850. return $instance->getName();
  1851. }
  1852. /**
  1853. * Get the name of the cookie used to store the "recaller".
  1854. *
  1855. * @return string
  1856. * @static
  1857. */
  1858. public static function getRecallerName()
  1859. {
  1860. /** @var \Illuminate\Auth\SessionGuard $instance */
  1861. return $instance->getRecallerName();
  1862. }
  1863. /**
  1864. * Determine if the user was authenticated via "remember me" cookie.
  1865. *
  1866. * @return bool
  1867. * @static
  1868. */
  1869. public static function viaRemember()
  1870. {
  1871. /** @var \Illuminate\Auth\SessionGuard $instance */
  1872. return $instance->viaRemember();
  1873. }
  1874. /**
  1875. * Get the cookie creator instance used by the guard.
  1876. *
  1877. * @return \Illuminate\Contracts\Cookie\QueueingFactory
  1878. * @throws \RuntimeException
  1879. * @static
  1880. */
  1881. public static function getCookieJar()
  1882. {
  1883. /** @var \Illuminate\Auth\SessionGuard $instance */
  1884. return $instance->getCookieJar();
  1885. }
  1886. /**
  1887. * Set the cookie creator instance used by the guard.
  1888. *
  1889. * @param \Illuminate\Contracts\Cookie\QueueingFactory $cookie
  1890. * @return void
  1891. * @static
  1892. */
  1893. public static function setCookieJar($cookie)
  1894. {
  1895. /** @var \Illuminate\Auth\SessionGuard $instance */
  1896. $instance->setCookieJar($cookie);
  1897. }
  1898. /**
  1899. * Get the event dispatcher instance.
  1900. *
  1901. * @return \Illuminate\Contracts\Events\Dispatcher
  1902. * @static
  1903. */
  1904. public static function getDispatcher()
  1905. {
  1906. /** @var \Illuminate\Auth\SessionGuard $instance */
  1907. return $instance->getDispatcher();
  1908. }
  1909. /**
  1910. * Set the event dispatcher instance.
  1911. *
  1912. * @param \Illuminate\Contracts\Events\Dispatcher $events
  1913. * @return void
  1914. * @static
  1915. */
  1916. public static function setDispatcher($events)
  1917. {
  1918. /** @var \Illuminate\Auth\SessionGuard $instance */
  1919. $instance->setDispatcher($events);
  1920. }
  1921. /**
  1922. * Get the session store used by the guard.
  1923. *
  1924. * @return \Illuminate\Contracts\Session\Session
  1925. * @static
  1926. */
  1927. public static function getSession()
  1928. {
  1929. /** @var \Illuminate\Auth\SessionGuard $instance */
  1930. return $instance->getSession();
  1931. }
  1932. /**
  1933. * Return the currently cached user.
  1934. *
  1935. * @return \App\Http\Models\User|null
  1936. * @static
  1937. */
  1938. public static function getUser()
  1939. {
  1940. /** @var \Illuminate\Auth\SessionGuard $instance */
  1941. return $instance->getUser();
  1942. }
  1943. /**
  1944. * Set the current user.
  1945. *
  1946. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1947. * @return \Illuminate\Auth\SessionGuard
  1948. * @static
  1949. */
  1950. public static function setUser($user)
  1951. {
  1952. /** @var \Illuminate\Auth\SessionGuard $instance */
  1953. return $instance->setUser($user);
  1954. }
  1955. /**
  1956. * Get the current request instance.
  1957. *
  1958. * @return \Symfony\Component\HttpFoundation\Request
  1959. * @static
  1960. */
  1961. public static function getRequest()
  1962. {
  1963. /** @var \Illuminate\Auth\SessionGuard $instance */
  1964. return $instance->getRequest();
  1965. }
  1966. /**
  1967. * Set the current request instance.
  1968. *
  1969. * @param \Symfony\Component\HttpFoundation\Request $request
  1970. * @return \Illuminate\Auth\SessionGuard
  1971. * @static
  1972. */
  1973. public static function setRequest($request)
  1974. {
  1975. /** @var \Illuminate\Auth\SessionGuard $instance */
  1976. return $instance->setRequest($request);
  1977. }
  1978. /**
  1979. * Determine if current user is authenticated. If not, throw an exception.
  1980. *
  1981. * @return \App\Http\Models\User
  1982. * @throws \Illuminate\Auth\AuthenticationException
  1983. * @static
  1984. */
  1985. public static function authenticate()
  1986. {
  1987. /** @var \Illuminate\Auth\SessionGuard $instance */
  1988. return $instance->authenticate();
  1989. }
  1990. /**
  1991. * Determine if the guard has a user instance.
  1992. *
  1993. * @return bool
  1994. * @static
  1995. */
  1996. public static function hasUser()
  1997. {
  1998. /** @var \Illuminate\Auth\SessionGuard $instance */
  1999. return $instance->hasUser();
  2000. }
  2001. /**
  2002. * Determine if the current user is authenticated.
  2003. *
  2004. * @return bool
  2005. * @static
  2006. */
  2007. public static function check()
  2008. {
  2009. /** @var \Illuminate\Auth\SessionGuard $instance */
  2010. return $instance->check();
  2011. }
  2012. /**
  2013. * Determine if the current user is a guest.
  2014. *
  2015. * @return bool
  2016. * @static
  2017. */
  2018. public static function guest()
  2019. {
  2020. /** @var \Illuminate\Auth\SessionGuard $instance */
  2021. return $instance->guest();
  2022. }
  2023. /**
  2024. * Get the user provider used by the guard.
  2025. *
  2026. * @return \Illuminate\Contracts\Auth\UserProvider
  2027. * @static
  2028. */
  2029. public static function getProvider()
  2030. {
  2031. /** @var \Illuminate\Auth\SessionGuard $instance */
  2032. return $instance->getProvider();
  2033. }
  2034. /**
  2035. * Set the user provider used by the guard.
  2036. *
  2037. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  2038. * @return void
  2039. * @static
  2040. */
  2041. public static function setProvider($provider)
  2042. {
  2043. /** @var \Illuminate\Auth\SessionGuard $instance */
  2044. $instance->setProvider($provider);
  2045. }
  2046. /**
  2047. * Register a custom macro.
  2048. *
  2049. * @param string $name
  2050. * @param object|callable $macro
  2051. * @return void
  2052. * @static
  2053. */
  2054. public static function macro($name, $macro)
  2055. {
  2056. \Illuminate\Auth\SessionGuard::macro($name, $macro);
  2057. }
  2058. /**
  2059. * Mix another object into the class.
  2060. *
  2061. * @param object $mixin
  2062. * @param bool $replace
  2063. * @return void
  2064. * @throws \ReflectionException
  2065. * @static
  2066. */
  2067. public static function mixin($mixin, $replace = true)
  2068. {
  2069. \Illuminate\Auth\SessionGuard::mixin($mixin, $replace);
  2070. }
  2071. /**
  2072. * Checks if macro is registered.
  2073. *
  2074. * @param string $name
  2075. * @return bool
  2076. * @static
  2077. */
  2078. public static function hasMacro($name)
  2079. {
  2080. return \Illuminate\Auth\SessionGuard::hasMacro($name);
  2081. }
  2082. }
  2083. /**
  2084. *
  2085. *
  2086. * @see \Illuminate\View\Compilers\BladeCompiler
  2087. */
  2088. class Blade {
  2089. /**
  2090. * Compile the view at the given path.
  2091. *
  2092. * @param string|null $path
  2093. * @return void
  2094. * @static
  2095. */
  2096. public static function compile($path = null)
  2097. {
  2098. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2099. $instance->compile($path);
  2100. }
  2101. /**
  2102. * Get the path currently being compiled.
  2103. *
  2104. * @return string
  2105. * @static
  2106. */
  2107. public static function getPath()
  2108. {
  2109. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2110. return $instance->getPath();
  2111. }
  2112. /**
  2113. * Set the path currently being compiled.
  2114. *
  2115. * @param string $path
  2116. * @return void
  2117. * @static
  2118. */
  2119. public static function setPath($path)
  2120. {
  2121. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2122. $instance->setPath($path);
  2123. }
  2124. /**
  2125. * Compile the given Blade template contents.
  2126. *
  2127. * @param string $value
  2128. * @return string
  2129. * @static
  2130. */
  2131. public static function compileString($value)
  2132. {
  2133. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2134. return $instance->compileString($value);
  2135. }
  2136. /**
  2137. * Strip the parentheses from the given expression.
  2138. *
  2139. * @param string $expression
  2140. * @return string
  2141. * @static
  2142. */
  2143. public static function stripParentheses($expression)
  2144. {
  2145. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2146. return $instance->stripParentheses($expression);
  2147. }
  2148. /**
  2149. * Register a custom Blade compiler.
  2150. *
  2151. * @param callable $compiler
  2152. * @return void
  2153. * @static
  2154. */
  2155. public static function extend($compiler)
  2156. {
  2157. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2158. $instance->extend($compiler);
  2159. }
  2160. /**
  2161. * Get the extensions used by the compiler.
  2162. *
  2163. * @return array
  2164. * @static
  2165. */
  2166. public static function getExtensions()
  2167. {
  2168. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2169. return $instance->getExtensions();
  2170. }
  2171. /**
  2172. * Register an "if" statement directive.
  2173. *
  2174. * @param string $name
  2175. * @param callable $callback
  2176. * @return void
  2177. * @static
  2178. */
  2179. public static function if($name, $callback)
  2180. {
  2181. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2182. $instance->if($name, $callback);
  2183. }
  2184. /**
  2185. * Check the result of a condition.
  2186. *
  2187. * @param string $name
  2188. * @param array $parameters
  2189. * @return bool
  2190. * @static
  2191. */
  2192. public static function check($name, ...$parameters)
  2193. {
  2194. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2195. return $instance->check($name, ...$parameters);
  2196. }
  2197. /**
  2198. * Register a component alias directive.
  2199. *
  2200. * @param string $path
  2201. * @param string|null $alias
  2202. * @return void
  2203. * @static
  2204. */
  2205. public static function component($path, $alias = null)
  2206. {
  2207. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2208. $instance->component($path, $alias);
  2209. }
  2210. /**
  2211. * Register an include alias directive.
  2212. *
  2213. * @param string $path
  2214. * @param string|null $alias
  2215. * @return void
  2216. * @static
  2217. */
  2218. public static function include($path, $alias = null)
  2219. {
  2220. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2221. $instance->include($path, $alias);
  2222. }
  2223. /**
  2224. * Register a handler for custom directives.
  2225. *
  2226. * @param string $name
  2227. * @param callable $handler
  2228. * @return void
  2229. * @static
  2230. */
  2231. public static function directive($name, $handler)
  2232. {
  2233. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2234. $instance->directive($name, $handler);
  2235. }
  2236. /**
  2237. * Get the list of custom directives.
  2238. *
  2239. * @return array
  2240. * @static
  2241. */
  2242. public static function getCustomDirectives()
  2243. {
  2244. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2245. return $instance->getCustomDirectives();
  2246. }
  2247. /**
  2248. * Set the echo format to be used by the compiler.
  2249. *
  2250. * @param string $format
  2251. * @return void
  2252. * @static
  2253. */
  2254. public static function setEchoFormat($format)
  2255. {
  2256. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2257. $instance->setEchoFormat($format);
  2258. }
  2259. /**
  2260. * Set the "echo" format to double encode entities.
  2261. *
  2262. * @return void
  2263. * @static
  2264. */
  2265. public static function withDoubleEncoding()
  2266. {
  2267. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2268. $instance->withDoubleEncoding();
  2269. }
  2270. /**
  2271. * Set the "echo" format to not double encode entities.
  2272. *
  2273. * @return void
  2274. * @static
  2275. */
  2276. public static function withoutDoubleEncoding()
  2277. {
  2278. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2279. $instance->withoutDoubleEncoding();
  2280. }
  2281. /**
  2282. * Get the path to the compiled version of a view.
  2283. *
  2284. * @param string $path
  2285. * @return string
  2286. * @static
  2287. */
  2288. public static function getCompiledPath($path)
  2289. {
  2290. //Method inherited from \Illuminate\View\Compilers\Compiler
  2291. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2292. return $instance->getCompiledPath($path);
  2293. }
  2294. /**
  2295. * Determine if the view at the given path is expired.
  2296. *
  2297. * @param string $path
  2298. * @return bool
  2299. * @static
  2300. */
  2301. public static function isExpired($path)
  2302. {
  2303. //Method inherited from \Illuminate\View\Compilers\Compiler
  2304. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2305. return $instance->isExpired($path);
  2306. }
  2307. }
  2308. /**
  2309. *
  2310. *
  2311. * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback)
  2312. * @method static mixed auth(\Illuminate\Http\Request $request)
  2313. * @see \Illuminate\Contracts\Broadcasting\Factory
  2314. */
  2315. class Broadcast {
  2316. /**
  2317. * Register the routes for handling broadcast authentication and sockets.
  2318. *
  2319. * @param array|null $attributes
  2320. * @return void
  2321. * @static
  2322. */
  2323. public static function routes($attributes = null)
  2324. {
  2325. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2326. $instance->routes($attributes);
  2327. }
  2328. /**
  2329. * Get the socket ID for the given request.
  2330. *
  2331. * @param \Illuminate\Http\Request|null $request
  2332. * @return string|null
  2333. * @static
  2334. */
  2335. public static function socket($request = null)
  2336. {
  2337. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2338. return $instance->socket($request);
  2339. }
  2340. /**
  2341. * Begin broadcasting an event.
  2342. *
  2343. * @param mixed|null $event
  2344. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2345. * @static
  2346. */
  2347. public static function event($event = null)
  2348. {
  2349. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2350. return $instance->event($event);
  2351. }
  2352. /**
  2353. * Queue the given event for broadcast.
  2354. *
  2355. * @param mixed $event
  2356. * @return void
  2357. * @static
  2358. */
  2359. public static function queue($event)
  2360. {
  2361. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2362. $instance->queue($event);
  2363. }
  2364. /**
  2365. * Get a driver instance.
  2366. *
  2367. * @param string|null $driver
  2368. * @return mixed
  2369. * @static
  2370. */
  2371. public static function connection($driver = null)
  2372. {
  2373. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2374. return $instance->connection($driver);
  2375. }
  2376. /**
  2377. * Get a driver instance.
  2378. *
  2379. * @param string|null $name
  2380. * @return mixed
  2381. * @static
  2382. */
  2383. public static function driver($name = null)
  2384. {
  2385. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2386. return $instance->driver($name);
  2387. }
  2388. /**
  2389. * Get the default driver name.
  2390. *
  2391. * @return string
  2392. * @static
  2393. */
  2394. public static function getDefaultDriver()
  2395. {
  2396. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2397. return $instance->getDefaultDriver();
  2398. }
  2399. /**
  2400. * Set the default driver name.
  2401. *
  2402. * @param string $name
  2403. * @return void
  2404. * @static
  2405. */
  2406. public static function setDefaultDriver($name)
  2407. {
  2408. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2409. $instance->setDefaultDriver($name);
  2410. }
  2411. /**
  2412. * Register a custom driver creator Closure.
  2413. *
  2414. * @param string $driver
  2415. * @param \Closure $callback
  2416. * @return \Illuminate\Broadcasting\BroadcastManager
  2417. * @static
  2418. */
  2419. public static function extend($driver, $callback)
  2420. {
  2421. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2422. return $instance->extend($driver, $callback);
  2423. }
  2424. }
  2425. /**
  2426. *
  2427. *
  2428. * @see \Illuminate\Contracts\Bus\Dispatcher
  2429. */
  2430. class Bus {
  2431. /**
  2432. * Dispatch a command to its appropriate handler.
  2433. *
  2434. * @param mixed $command
  2435. * @return mixed
  2436. * @static
  2437. */
  2438. public static function dispatch($command)
  2439. {
  2440. /** @var \Illuminate\Bus\Dispatcher $instance */
  2441. return $instance->dispatch($command);
  2442. }
  2443. /**
  2444. * Dispatch a command to its appropriate handler in the current process.
  2445. *
  2446. * @param mixed $command
  2447. * @param mixed $handler
  2448. * @return mixed
  2449. * @static
  2450. */
  2451. public static function dispatchNow($command, $handler = null)
  2452. {
  2453. /** @var \Illuminate\Bus\Dispatcher $instance */
  2454. return $instance->dispatchNow($command, $handler);
  2455. }
  2456. /**
  2457. * Determine if the given command has a handler.
  2458. *
  2459. * @param mixed $command
  2460. * @return bool
  2461. * @static
  2462. */
  2463. public static function hasCommandHandler($command)
  2464. {
  2465. /** @var \Illuminate\Bus\Dispatcher $instance */
  2466. return $instance->hasCommandHandler($command);
  2467. }
  2468. /**
  2469. * Retrieve the handler for a command.
  2470. *
  2471. * @param mixed $command
  2472. * @return bool|mixed
  2473. * @static
  2474. */
  2475. public static function getCommandHandler($command)
  2476. {
  2477. /** @var \Illuminate\Bus\Dispatcher $instance */
  2478. return $instance->getCommandHandler($command);
  2479. }
  2480. /**
  2481. * Dispatch a command to its appropriate handler behind a queue.
  2482. *
  2483. * @param mixed $command
  2484. * @return mixed
  2485. * @throws \RuntimeException
  2486. * @static
  2487. */
  2488. public static function dispatchToQueue($command)
  2489. {
  2490. /** @var \Illuminate\Bus\Dispatcher $instance */
  2491. return $instance->dispatchToQueue($command);
  2492. }
  2493. /**
  2494. * Set the pipes through which commands should be piped before dispatching.
  2495. *
  2496. * @param array $pipes
  2497. * @return \Illuminate\Bus\Dispatcher
  2498. * @static
  2499. */
  2500. public static function pipeThrough($pipes)
  2501. {
  2502. /** @var \Illuminate\Bus\Dispatcher $instance */
  2503. return $instance->pipeThrough($pipes);
  2504. }
  2505. /**
  2506. * Map a command to a handler.
  2507. *
  2508. * @param array $map
  2509. * @return \Illuminate\Bus\Dispatcher
  2510. * @static
  2511. */
  2512. public static function map($map)
  2513. {
  2514. /** @var \Illuminate\Bus\Dispatcher $instance */
  2515. return $instance->map($map);
  2516. }
  2517. /**
  2518. * Assert if a job was dispatched based on a truth-test callback.
  2519. *
  2520. * @param string $command
  2521. * @param callable|int|null $callback
  2522. * @return void
  2523. * @static
  2524. */
  2525. public static function assertDispatched($command, $callback = null)
  2526. {
  2527. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2528. $instance->assertDispatched($command, $callback);
  2529. }
  2530. /**
  2531. * Determine if a job was dispatched based on a truth-test callback.
  2532. *
  2533. * @param string $command
  2534. * @param callable|null $callback
  2535. * @return void
  2536. * @static
  2537. */
  2538. public static function assertNotDispatched($command, $callback = null)
  2539. {
  2540. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2541. $instance->assertNotDispatched($command, $callback);
  2542. }
  2543. /**
  2544. * Get all of the jobs matching a truth-test callback.
  2545. *
  2546. * @param string $command
  2547. * @param callable|null $callback
  2548. * @return \Illuminate\Support\Collection
  2549. * @static
  2550. */
  2551. public static function dispatched($command, $callback = null)
  2552. {
  2553. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2554. return $instance->dispatched($command, $callback);
  2555. }
  2556. /**
  2557. * Determine if there are any stored commands for a given class.
  2558. *
  2559. * @param string $command
  2560. * @return bool
  2561. * @static
  2562. */
  2563. public static function hasDispatched($command)
  2564. {
  2565. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2566. return $instance->hasDispatched($command);
  2567. }
  2568. }
  2569. /**
  2570. *
  2571. *
  2572. * @see \Illuminate\Cache\CacheManager
  2573. * @see \Illuminate\Cache\Repository
  2574. */
  2575. class Cache {
  2576. /**
  2577. * Get a cache store instance by name, wrapped in a repository.
  2578. *
  2579. * @param string|null $name
  2580. * @return \Illuminate\Contracts\Cache\Repository
  2581. * @static
  2582. */
  2583. public static function store($name = null)
  2584. {
  2585. /** @var \Illuminate\Cache\CacheManager $instance */
  2586. return $instance->store($name);
  2587. }
  2588. /**
  2589. * Get a cache driver instance.
  2590. *
  2591. * @param string|null $driver
  2592. * @return \Illuminate\Contracts\Cache\Repository
  2593. * @static
  2594. */
  2595. public static function driver($driver = null)
  2596. {
  2597. /** @var \Illuminate\Cache\CacheManager $instance */
  2598. return $instance->driver($driver);
  2599. }
  2600. /**
  2601. * Create a new cache repository with the given implementation.
  2602. *
  2603. * @param \Illuminate\Contracts\Cache\Store $store
  2604. * @return \Illuminate\Cache\Repository
  2605. * @static
  2606. */
  2607. public static function repository($store)
  2608. {
  2609. /** @var \Illuminate\Cache\CacheManager $instance */
  2610. return $instance->repository($store);
  2611. }
  2612. /**
  2613. * Get the default cache driver name.
  2614. *
  2615. * @return string
  2616. * @static
  2617. */
  2618. public static function getDefaultDriver()
  2619. {
  2620. /** @var \Illuminate\Cache\CacheManager $instance */
  2621. return $instance->getDefaultDriver();
  2622. }
  2623. /**
  2624. * Set the default cache driver name.
  2625. *
  2626. * @param string $name
  2627. * @return void
  2628. * @static
  2629. */
  2630. public static function setDefaultDriver($name)
  2631. {
  2632. /** @var \Illuminate\Cache\CacheManager $instance */
  2633. $instance->setDefaultDriver($name);
  2634. }
  2635. /**
  2636. * Unset the given driver instances.
  2637. *
  2638. * @param array|string|null $name
  2639. * @return \Illuminate\Cache\CacheManager
  2640. * @static
  2641. */
  2642. public static function forgetDriver($name = null)
  2643. {
  2644. /** @var \Illuminate\Cache\CacheManager $instance */
  2645. return $instance->forgetDriver($name);
  2646. }
  2647. /**
  2648. * Register a custom driver creator Closure.
  2649. *
  2650. * @param string $driver
  2651. * @param \Closure $callback
  2652. * @return \Illuminate\Cache\CacheManager
  2653. * @static
  2654. */
  2655. public static function extend($driver, $callback)
  2656. {
  2657. /** @var \Illuminate\Cache\CacheManager $instance */
  2658. return $instance->extend($driver, $callback);
  2659. }
  2660. /**
  2661. * Determine if an item exists in the cache.
  2662. *
  2663. * @param string $key
  2664. * @return bool
  2665. * @static
  2666. */
  2667. public static function has($key)
  2668. {
  2669. /** @var \Illuminate\Cache\Repository $instance */
  2670. return $instance->has($key);
  2671. }
  2672. /**
  2673. * Determine if an item doesn't exist in the cache.
  2674. *
  2675. * @param string $key
  2676. * @return bool
  2677. * @static
  2678. */
  2679. public static function missing($key)
  2680. {
  2681. /** @var \Illuminate\Cache\Repository $instance */
  2682. return $instance->missing($key);
  2683. }
  2684. /**
  2685. * Retrieve an item from the cache by key.
  2686. *
  2687. * @param string $key
  2688. * @param mixed $default
  2689. * @return mixed
  2690. * @static
  2691. */
  2692. public static function get($key, $default = null)
  2693. {
  2694. /** @var \Illuminate\Cache\Repository $instance */
  2695. return $instance->get($key, $default);
  2696. }
  2697. /**
  2698. * Retrieve multiple items from the cache by key.
  2699. *
  2700. * Items not found in the cache will have a null value.
  2701. *
  2702. * @param array $keys
  2703. * @return array
  2704. * @static
  2705. */
  2706. public static function many($keys)
  2707. {
  2708. /** @var \Illuminate\Cache\Repository $instance */
  2709. return $instance->many($keys);
  2710. }
  2711. /**
  2712. * Obtains multiple cache items by their unique keys.
  2713. *
  2714. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2715. * @param mixed $default Default value to return for keys that do not exist.
  2716. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2717. * @throws \Psr\SimpleCache\InvalidArgumentException
  2718. * MUST be thrown if $keys is neither an array nor a Traversable,
  2719. * or if any of the $keys are not a legal value.
  2720. * @static
  2721. */
  2722. public static function getMultiple($keys, $default = null)
  2723. {
  2724. /** @var \Illuminate\Cache\Repository $instance */
  2725. return $instance->getMultiple($keys, $default);
  2726. }
  2727. /**
  2728. * Retrieve an item from the cache and delete it.
  2729. *
  2730. * @param string $key
  2731. * @param mixed $default
  2732. * @return mixed
  2733. * @static
  2734. */
  2735. public static function pull($key, $default = null)
  2736. {
  2737. /** @var \Illuminate\Cache\Repository $instance */
  2738. return $instance->pull($key, $default);
  2739. }
  2740. /**
  2741. * Store an item in the cache.
  2742. *
  2743. * @param string $key
  2744. * @param mixed $value
  2745. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2746. * @return bool
  2747. * @static
  2748. */
  2749. public static function put($key, $value, $ttl = null)
  2750. {
  2751. /** @var \Illuminate\Cache\Repository $instance */
  2752. return $instance->put($key, $value, $ttl);
  2753. }
  2754. /**
  2755. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2756. *
  2757. * @param string $key The key of the item to store.
  2758. * @param mixed $value The value of the item to store, must be serializable.
  2759. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2760. * the driver supports TTL then the library may set a default value
  2761. * for it or let the driver take care of that.
  2762. * @return bool True on success and false on failure.
  2763. * @throws \Psr\SimpleCache\InvalidArgumentException
  2764. * MUST be thrown if the $key string is not a legal value.
  2765. * @static
  2766. */
  2767. public static function set($key, $value, $ttl = null)
  2768. {
  2769. /** @var \Illuminate\Cache\Repository $instance */
  2770. return $instance->set($key, $value, $ttl);
  2771. }
  2772. /**
  2773. * Store multiple items in the cache for a given number of seconds.
  2774. *
  2775. * @param array $values
  2776. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2777. * @return bool
  2778. * @static
  2779. */
  2780. public static function putMany($values, $ttl = null)
  2781. {
  2782. /** @var \Illuminate\Cache\Repository $instance */
  2783. return $instance->putMany($values, $ttl);
  2784. }
  2785. /**
  2786. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2787. *
  2788. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2789. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2790. * the driver supports TTL then the library may set a default value
  2791. * for it or let the driver take care of that.
  2792. * @return bool True on success and false on failure.
  2793. * @throws \Psr\SimpleCache\InvalidArgumentException
  2794. * MUST be thrown if $values is neither an array nor a Traversable,
  2795. * or if any of the $values are not a legal value.
  2796. * @static
  2797. */
  2798. public static function setMultiple($values, $ttl = null)
  2799. {
  2800. /** @var \Illuminate\Cache\Repository $instance */
  2801. return $instance->setMultiple($values, $ttl);
  2802. }
  2803. /**
  2804. * Store an item in the cache if the key does not exist.
  2805. *
  2806. * @param string $key
  2807. * @param mixed $value
  2808. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2809. * @return bool
  2810. * @static
  2811. */
  2812. public static function add($key, $value, $ttl = null)
  2813. {
  2814. /** @var \Illuminate\Cache\Repository $instance */
  2815. return $instance->add($key, $value, $ttl);
  2816. }
  2817. /**
  2818. * Increment the value of an item in the cache.
  2819. *
  2820. * @param string $key
  2821. * @param mixed $value
  2822. * @return int|bool
  2823. * @static
  2824. */
  2825. public static function increment($key, $value = 1)
  2826. {
  2827. /** @var \Illuminate\Cache\Repository $instance */
  2828. return $instance->increment($key, $value);
  2829. }
  2830. /**
  2831. * Decrement the value of an item in the cache.
  2832. *
  2833. * @param string $key
  2834. * @param mixed $value
  2835. * @return int|bool
  2836. * @static
  2837. */
  2838. public static function decrement($key, $value = 1)
  2839. {
  2840. /** @var \Illuminate\Cache\Repository $instance */
  2841. return $instance->decrement($key, $value);
  2842. }
  2843. /**
  2844. * Store an item in the cache indefinitely.
  2845. *
  2846. * @param string $key
  2847. * @param mixed $value
  2848. * @return bool
  2849. * @static
  2850. */
  2851. public static function forever($key, $value)
  2852. {
  2853. /** @var \Illuminate\Cache\Repository $instance */
  2854. return $instance->forever($key, $value);
  2855. }
  2856. /**
  2857. * Get an item from the cache, or execute the given Closure and store the result.
  2858. *
  2859. * @param string $key
  2860. * @param \DateTimeInterface|\DateInterval|int|null $ttl
  2861. * @param \Closure $callback
  2862. * @return mixed
  2863. * @static
  2864. */
  2865. public static function remember($key, $ttl, $callback)
  2866. {
  2867. /** @var \Illuminate\Cache\Repository $instance */
  2868. return $instance->remember($key, $ttl, $callback);
  2869. }
  2870. /**
  2871. * Get an item from the cache, or execute the given Closure and store the result forever.
  2872. *
  2873. * @param string $key
  2874. * @param \Closure $callback
  2875. * @return mixed
  2876. * @static
  2877. */
  2878. public static function sear($key, $callback)
  2879. {
  2880. /** @var \Illuminate\Cache\Repository $instance */
  2881. return $instance->sear($key, $callback);
  2882. }
  2883. /**
  2884. * Get an item from the cache, or execute the given Closure and store the result forever.
  2885. *
  2886. * @param string $key
  2887. * @param \Closure $callback
  2888. * @return mixed
  2889. * @static
  2890. */
  2891. public static function rememberForever($key, $callback)
  2892. {
  2893. /** @var \Illuminate\Cache\Repository $instance */
  2894. return $instance->rememberForever($key, $callback);
  2895. }
  2896. /**
  2897. * Remove an item from the cache.
  2898. *
  2899. * @param string $key
  2900. * @return bool
  2901. * @static
  2902. */
  2903. public static function forget($key)
  2904. {
  2905. /** @var \Illuminate\Cache\Repository $instance */
  2906. return $instance->forget($key);
  2907. }
  2908. /**
  2909. * Delete an item from the cache by its unique key.
  2910. *
  2911. * @param string $key The unique cache key of the item to delete.
  2912. * @return bool True if the item was successfully removed. False if there was an error.
  2913. * @throws \Psr\SimpleCache\InvalidArgumentException
  2914. * MUST be thrown if the $key string is not a legal value.
  2915. * @static
  2916. */
  2917. public static function delete($key)
  2918. {
  2919. /** @var \Illuminate\Cache\Repository $instance */
  2920. return $instance->delete($key);
  2921. }
  2922. /**
  2923. * Deletes multiple cache items in a single operation.
  2924. *
  2925. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2926. * @return bool True if the items were successfully removed. False if there was an error.
  2927. * @throws \Psr\SimpleCache\InvalidArgumentException
  2928. * MUST be thrown if $keys is neither an array nor a Traversable,
  2929. * or if any of the $keys are not a legal value.
  2930. * @static
  2931. */
  2932. public static function deleteMultiple($keys)
  2933. {
  2934. /** @var \Illuminate\Cache\Repository $instance */
  2935. return $instance->deleteMultiple($keys);
  2936. }
  2937. /**
  2938. * Wipes clean the entire cache's keys.
  2939. *
  2940. * @return bool True on success and false on failure.
  2941. * @static
  2942. */
  2943. public static function clear()
  2944. {
  2945. /** @var \Illuminate\Cache\Repository $instance */
  2946. return $instance->clear();
  2947. }
  2948. /**
  2949. * Begin executing a new tags operation if the store supports it.
  2950. *
  2951. * @param array|mixed $names
  2952. * @return \Illuminate\Cache\TaggedCache
  2953. * @throws \BadMethodCallException
  2954. * @static
  2955. */
  2956. public static function tags($names)
  2957. {
  2958. /** @var \Illuminate\Cache\Repository $instance */
  2959. return $instance->tags($names);
  2960. }
  2961. /**
  2962. * Get the default cache time.
  2963. *
  2964. * @return int
  2965. * @static
  2966. */
  2967. public static function getDefaultCacheTime()
  2968. {
  2969. /** @var \Illuminate\Cache\Repository $instance */
  2970. return $instance->getDefaultCacheTime();
  2971. }
  2972. /**
  2973. * Set the default cache time in seconds.
  2974. *
  2975. * @param int|null $seconds
  2976. * @return \Illuminate\Cache\Repository
  2977. * @static
  2978. */
  2979. public static function setDefaultCacheTime($seconds)
  2980. {
  2981. /** @var \Illuminate\Cache\Repository $instance */
  2982. return $instance->setDefaultCacheTime($seconds);
  2983. }
  2984. /**
  2985. * Get the cache store implementation.
  2986. *
  2987. * @return \Illuminate\Contracts\Cache\Store
  2988. * @static
  2989. */
  2990. public static function getStore()
  2991. {
  2992. /** @var \Illuminate\Cache\Repository $instance */
  2993. return $instance->getStore();
  2994. }
  2995. /**
  2996. * Set the event dispatcher instance.
  2997. *
  2998. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2999. * @return void
  3000. * @static
  3001. */
  3002. public static function setEventDispatcher($events)
  3003. {
  3004. /** @var \Illuminate\Cache\Repository $instance */
  3005. $instance->setEventDispatcher($events);
  3006. }
  3007. /**
  3008. * Determine if a cached value exists.
  3009. *
  3010. * @param string $key
  3011. * @return bool
  3012. * @static
  3013. */
  3014. public static function offsetExists($key)
  3015. {
  3016. /** @var \Illuminate\Cache\Repository $instance */
  3017. return $instance->offsetExists($key);
  3018. }
  3019. /**
  3020. * Retrieve an item from the cache by key.
  3021. *
  3022. * @param string $key
  3023. * @return mixed
  3024. * @static
  3025. */
  3026. public static function offsetGet($key)
  3027. {
  3028. /** @var \Illuminate\Cache\Repository $instance */
  3029. return $instance->offsetGet($key);
  3030. }
  3031. /**
  3032. * Store an item in the cache for the default time.
  3033. *
  3034. * @param string $key
  3035. * @param mixed $value
  3036. * @return void
  3037. * @static
  3038. */
  3039. public static function offsetSet($key, $value)
  3040. {
  3041. /** @var \Illuminate\Cache\Repository $instance */
  3042. $instance->offsetSet($key, $value);
  3043. }
  3044. /**
  3045. * Remove an item from the cache.
  3046. *
  3047. * @param string $key
  3048. * @return void
  3049. * @static
  3050. */
  3051. public static function offsetUnset($key)
  3052. {
  3053. /** @var \Illuminate\Cache\Repository $instance */
  3054. $instance->offsetUnset($key);
  3055. }
  3056. /**
  3057. * Register a custom macro.
  3058. *
  3059. * @param string $name
  3060. * @param object|callable $macro
  3061. * @return void
  3062. * @static
  3063. */
  3064. public static function macro($name, $macro)
  3065. {
  3066. \Illuminate\Cache\Repository::macro($name, $macro);
  3067. }
  3068. /**
  3069. * Mix another object into the class.
  3070. *
  3071. * @param object $mixin
  3072. * @param bool $replace
  3073. * @return void
  3074. * @throws \ReflectionException
  3075. * @static
  3076. */
  3077. public static function mixin($mixin, $replace = true)
  3078. {
  3079. \Illuminate\Cache\Repository::mixin($mixin, $replace);
  3080. }
  3081. /**
  3082. * Checks if macro is registered.
  3083. *
  3084. * @param string $name
  3085. * @return bool
  3086. * @static
  3087. */
  3088. public static function hasMacro($name)
  3089. {
  3090. return \Illuminate\Cache\Repository::hasMacro($name);
  3091. }
  3092. /**
  3093. * Dynamically handle calls to the class.
  3094. *
  3095. * @param string $method
  3096. * @param array $parameters
  3097. * @return mixed
  3098. * @throws \BadMethodCallException
  3099. * @static
  3100. */
  3101. public static function macroCall($method, $parameters)
  3102. {
  3103. /** @var \Illuminate\Cache\Repository $instance */
  3104. return $instance->macroCall($method, $parameters);
  3105. }
  3106. /**
  3107. * Remove all items from the cache.
  3108. *
  3109. * @return bool
  3110. * @static
  3111. */
  3112. public static function flush()
  3113. {
  3114. /** @var \Illuminate\Cache\FileStore $instance */
  3115. return $instance->flush();
  3116. }
  3117. /**
  3118. * Get the Filesystem instance.
  3119. *
  3120. * @return \Illuminate\Filesystem\Filesystem
  3121. * @static
  3122. */
  3123. public static function getFilesystem()
  3124. {
  3125. /** @var \Illuminate\Cache\FileStore $instance */
  3126. return $instance->getFilesystem();
  3127. }
  3128. /**
  3129. * Get the working directory of the cache.
  3130. *
  3131. * @return string
  3132. * @static
  3133. */
  3134. public static function getDirectory()
  3135. {
  3136. /** @var \Illuminate\Cache\FileStore $instance */
  3137. return $instance->getDirectory();
  3138. }
  3139. /**
  3140. * Get the cache key prefix.
  3141. *
  3142. * @return string
  3143. * @static
  3144. */
  3145. public static function getPrefix()
  3146. {
  3147. /** @var \Illuminate\Cache\FileStore $instance */
  3148. return $instance->getPrefix();
  3149. }
  3150. }
  3151. /**
  3152. *
  3153. *
  3154. * @see \Illuminate\Config\Repository
  3155. */
  3156. class Config {
  3157. /**
  3158. * Determine if the given configuration value exists.
  3159. *
  3160. * @param string $key
  3161. * @return bool
  3162. * @static
  3163. */
  3164. public static function has($key)
  3165. {
  3166. /** @var \Illuminate\Config\Repository $instance */
  3167. return $instance->has($key);
  3168. }
  3169. /**
  3170. * Get the specified configuration value.
  3171. *
  3172. * @param array|string $key
  3173. * @param mixed $default
  3174. * @return mixed
  3175. * @static
  3176. */
  3177. public static function get($key, $default = null)
  3178. {
  3179. /** @var \Illuminate\Config\Repository $instance */
  3180. return $instance->get($key, $default);
  3181. }
  3182. /**
  3183. * Get many configuration values.
  3184. *
  3185. * @param array $keys
  3186. * @return array
  3187. * @static
  3188. */
  3189. public static function getMany($keys)
  3190. {
  3191. /** @var \Illuminate\Config\Repository $instance */
  3192. return $instance->getMany($keys);
  3193. }
  3194. /**
  3195. * Set a given configuration value.
  3196. *
  3197. * @param array|string $key
  3198. * @param mixed $value
  3199. * @return void
  3200. * @static
  3201. */
  3202. public static function set($key, $value = null)
  3203. {
  3204. /** @var \Illuminate\Config\Repository $instance */
  3205. $instance->set($key, $value);
  3206. }
  3207. /**
  3208. * Prepend a value onto an array configuration value.
  3209. *
  3210. * @param string $key
  3211. * @param mixed $value
  3212. * @return void
  3213. * @static
  3214. */
  3215. public static function prepend($key, $value)
  3216. {
  3217. /** @var \Illuminate\Config\Repository $instance */
  3218. $instance->prepend($key, $value);
  3219. }
  3220. /**
  3221. * Push a value onto an array configuration value.
  3222. *
  3223. * @param string $key
  3224. * @param mixed $value
  3225. * @return void
  3226. * @static
  3227. */
  3228. public static function push($key, $value)
  3229. {
  3230. /** @var \Illuminate\Config\Repository $instance */
  3231. $instance->push($key, $value);
  3232. }
  3233. /**
  3234. * Get all of the configuration items for the application.
  3235. *
  3236. * @return array
  3237. * @static
  3238. */
  3239. public static function all()
  3240. {
  3241. /** @var \Illuminate\Config\Repository $instance */
  3242. return $instance->all();
  3243. }
  3244. /**
  3245. * Determine if the given configuration option exists.
  3246. *
  3247. * @param string $key
  3248. * @return bool
  3249. * @static
  3250. */
  3251. public static function offsetExists($key)
  3252. {
  3253. /** @var \Illuminate\Config\Repository $instance */
  3254. return $instance->offsetExists($key);
  3255. }
  3256. /**
  3257. * Get a configuration option.
  3258. *
  3259. * @param string $key
  3260. * @return mixed
  3261. * @static
  3262. */
  3263. public static function offsetGet($key)
  3264. {
  3265. /** @var \Illuminate\Config\Repository $instance */
  3266. return $instance->offsetGet($key);
  3267. }
  3268. /**
  3269. * Set a configuration option.
  3270. *
  3271. * @param string $key
  3272. * @param mixed $value
  3273. * @return void
  3274. * @static
  3275. */
  3276. public static function offsetSet($key, $value)
  3277. {
  3278. /** @var \Illuminate\Config\Repository $instance */
  3279. $instance->offsetSet($key, $value);
  3280. }
  3281. /**
  3282. * Unset a configuration option.
  3283. *
  3284. * @param string $key
  3285. * @return void
  3286. * @static
  3287. */
  3288. public static function offsetUnset($key)
  3289. {
  3290. /** @var \Illuminate\Config\Repository $instance */
  3291. $instance->offsetUnset($key);
  3292. }
  3293. }
  3294. /**
  3295. *
  3296. *
  3297. * @see \Illuminate\Cookie\CookieJar
  3298. */
  3299. class Cookie {
  3300. /**
  3301. * Create a new cookie instance.
  3302. *
  3303. * @param string $name
  3304. * @param string $value
  3305. * @param int $minutes
  3306. * @param string|null $path
  3307. * @param string|null $domain
  3308. * @param bool|null $secure
  3309. * @param bool $httpOnly
  3310. * @param bool $raw
  3311. * @param string|null $sameSite
  3312. * @return \Symfony\Component\HttpFoundation\Cookie
  3313. * @static
  3314. */
  3315. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3316. {
  3317. /** @var \Illuminate\Cookie\CookieJar $instance */
  3318. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3319. }
  3320. /**
  3321. * Create a cookie that lasts "forever" (five years).
  3322. *
  3323. * @param string $name
  3324. * @param string $value
  3325. * @param string|null $path
  3326. * @param string|null $domain
  3327. * @param bool|null $secure
  3328. * @param bool $httpOnly
  3329. * @param bool $raw
  3330. * @param string|null $sameSite
  3331. * @return \Symfony\Component\HttpFoundation\Cookie
  3332. * @static
  3333. */
  3334. public static function forever($name, $value, $path = null, $domain = null, $secure = null, $httpOnly = true, $raw = false, $sameSite = null)
  3335. {
  3336. /** @var \Illuminate\Cookie\CookieJar $instance */
  3337. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3338. }
  3339. /**
  3340. * Expire the given cookie.
  3341. *
  3342. * @param string $name
  3343. * @param string|null $path
  3344. * @param string|null $domain
  3345. * @return \Symfony\Component\HttpFoundation\Cookie
  3346. * @static
  3347. */
  3348. public static function forget($name, $path = null, $domain = null)
  3349. {
  3350. /** @var \Illuminate\Cookie\CookieJar $instance */
  3351. return $instance->forget($name, $path, $domain);
  3352. }
  3353. /**
  3354. * Determine if a cookie has been queued.
  3355. *
  3356. * @param string $key
  3357. * @return bool
  3358. * @static
  3359. */
  3360. public static function hasQueued($key)
  3361. {
  3362. /** @var \Illuminate\Cookie\CookieJar $instance */
  3363. return $instance->hasQueued($key);
  3364. }
  3365. /**
  3366. * Get a queued cookie instance.
  3367. *
  3368. * @param string $key
  3369. * @param mixed $default
  3370. * @return \Symfony\Component\HttpFoundation\Cookie
  3371. * @static
  3372. */
  3373. public static function queued($key, $default = null)
  3374. {
  3375. /** @var \Illuminate\Cookie\CookieJar $instance */
  3376. return $instance->queued($key, $default);
  3377. }
  3378. /**
  3379. * Queue a cookie to send with the next response.
  3380. *
  3381. * @param array $parameters
  3382. * @return void
  3383. * @static
  3384. */
  3385. public static function queue(...$parameters)
  3386. {
  3387. /** @var \Illuminate\Cookie\CookieJar $instance */
  3388. $instance->queue(...$parameters);
  3389. }
  3390. /**
  3391. * Remove a cookie from the queue.
  3392. *
  3393. * @param string $name
  3394. * @return void
  3395. * @static
  3396. */
  3397. public static function unqueue($name)
  3398. {
  3399. /** @var \Illuminate\Cookie\CookieJar $instance */
  3400. $instance->unqueue($name);
  3401. }
  3402. /**
  3403. * Set the default path and domain for the jar.
  3404. *
  3405. * @param string $path
  3406. * @param string $domain
  3407. * @param bool $secure
  3408. * @param string|null $sameSite
  3409. * @return \Illuminate\Cookie\CookieJar
  3410. * @static
  3411. */
  3412. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3413. {
  3414. /** @var \Illuminate\Cookie\CookieJar $instance */
  3415. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3416. }
  3417. /**
  3418. * Get the cookies which have been queued for the next request.
  3419. *
  3420. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3421. * @static
  3422. */
  3423. public static function getQueuedCookies()
  3424. {
  3425. /** @var \Illuminate\Cookie\CookieJar $instance */
  3426. return $instance->getQueuedCookies();
  3427. }
  3428. /**
  3429. * Register a custom macro.
  3430. *
  3431. * @param string $name
  3432. * @param object|callable $macro
  3433. * @return void
  3434. * @static
  3435. */
  3436. public static function macro($name, $macro)
  3437. {
  3438. \Illuminate\Cookie\CookieJar::macro($name, $macro);
  3439. }
  3440. /**
  3441. * Mix another object into the class.
  3442. *
  3443. * @param object $mixin
  3444. * @param bool $replace
  3445. * @return void
  3446. * @throws \ReflectionException
  3447. * @static
  3448. */
  3449. public static function mixin($mixin, $replace = true)
  3450. {
  3451. \Illuminate\Cookie\CookieJar::mixin($mixin, $replace);
  3452. }
  3453. /**
  3454. * Checks if macro is registered.
  3455. *
  3456. * @param string $name
  3457. * @return bool
  3458. * @static
  3459. */
  3460. public static function hasMacro($name)
  3461. {
  3462. return \Illuminate\Cookie\CookieJar::hasMacro($name);
  3463. }
  3464. }
  3465. /**
  3466. *
  3467. *
  3468. * @see \Illuminate\Encryption\Encrypter
  3469. */
  3470. class Crypt {
  3471. /**
  3472. * Determine if the given key and cipher combination is valid.
  3473. *
  3474. * @param string $key
  3475. * @param string $cipher
  3476. * @return bool
  3477. * @static
  3478. */
  3479. public static function supported($key, $cipher)
  3480. {
  3481. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3482. }
  3483. /**
  3484. * Create a new encryption key for the given cipher.
  3485. *
  3486. * @param string $cipher
  3487. * @return string
  3488. * @static
  3489. */
  3490. public static function generateKey($cipher)
  3491. {
  3492. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3493. }
  3494. /**
  3495. * Encrypt the given value.
  3496. *
  3497. * @param mixed $value
  3498. * @param bool $serialize
  3499. * @return string
  3500. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3501. * @static
  3502. */
  3503. public static function encrypt($value, $serialize = true)
  3504. {
  3505. /** @var \Illuminate\Encryption\Encrypter $instance */
  3506. return $instance->encrypt($value, $serialize);
  3507. }
  3508. /**
  3509. * Encrypt a string without serialization.
  3510. *
  3511. * @param string $value
  3512. * @return string
  3513. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3514. * @static
  3515. */
  3516. public static function encryptString($value)
  3517. {
  3518. /** @var \Illuminate\Encryption\Encrypter $instance */
  3519. return $instance->encryptString($value);
  3520. }
  3521. /**
  3522. * Decrypt the given value.
  3523. *
  3524. * @param string $payload
  3525. * @param bool $unserialize
  3526. * @return mixed
  3527. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3528. * @static
  3529. */
  3530. public static function decrypt($payload, $unserialize = true)
  3531. {
  3532. /** @var \Illuminate\Encryption\Encrypter $instance */
  3533. return $instance->decrypt($payload, $unserialize);
  3534. }
  3535. /**
  3536. * Decrypt the given string without unserialization.
  3537. *
  3538. * @param string $payload
  3539. * @return string
  3540. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3541. * @static
  3542. */
  3543. public static function decryptString($payload)
  3544. {
  3545. /** @var \Illuminate\Encryption\Encrypter $instance */
  3546. return $instance->decryptString($payload);
  3547. }
  3548. /**
  3549. * Get the encryption key.
  3550. *
  3551. * @return string
  3552. * @static
  3553. */
  3554. public static function getKey()
  3555. {
  3556. /** @var \Illuminate\Encryption\Encrypter $instance */
  3557. return $instance->getKey();
  3558. }
  3559. }
  3560. /**
  3561. *
  3562. *
  3563. * @see \Illuminate\Database\DatabaseManager
  3564. * @see \Illuminate\Database\Connection
  3565. */
  3566. class DB {
  3567. /**
  3568. * Get a database connection instance.
  3569. *
  3570. * @param string|null $name
  3571. * @return \Illuminate\Database\Connection
  3572. * @static
  3573. */
  3574. public static function connection($name = null)
  3575. {
  3576. /** @var \Illuminate\Database\DatabaseManager $instance */
  3577. return $instance->connection($name);
  3578. }
  3579. /**
  3580. * Disconnect from the given database and remove from local cache.
  3581. *
  3582. * @param string|null $name
  3583. * @return void
  3584. * @static
  3585. */
  3586. public static function purge($name = null)
  3587. {
  3588. /** @var \Illuminate\Database\DatabaseManager $instance */
  3589. $instance->purge($name);
  3590. }
  3591. /**
  3592. * Disconnect from the given database.
  3593. *
  3594. * @param string|null $name
  3595. * @return void
  3596. * @static
  3597. */
  3598. public static function disconnect($name = null)
  3599. {
  3600. /** @var \Illuminate\Database\DatabaseManager $instance */
  3601. $instance->disconnect($name);
  3602. }
  3603. /**
  3604. * Reconnect to the given database.
  3605. *
  3606. * @param string|null $name
  3607. * @return \Illuminate\Database\Connection
  3608. * @static
  3609. */
  3610. public static function reconnect($name = null)
  3611. {
  3612. /** @var \Illuminate\Database\DatabaseManager $instance */
  3613. return $instance->reconnect($name);
  3614. }
  3615. /**
  3616. * Get the default connection name.
  3617. *
  3618. * @return string
  3619. * @static
  3620. */
  3621. public static function getDefaultConnection()
  3622. {
  3623. /** @var \Illuminate\Database\DatabaseManager $instance */
  3624. return $instance->getDefaultConnection();
  3625. }
  3626. /**
  3627. * Set the default connection name.
  3628. *
  3629. * @param string $name
  3630. * @return void
  3631. * @static
  3632. */
  3633. public static function setDefaultConnection($name)
  3634. {
  3635. /** @var \Illuminate\Database\DatabaseManager $instance */
  3636. $instance->setDefaultConnection($name);
  3637. }
  3638. /**
  3639. * Get all of the support drivers.
  3640. *
  3641. * @return array
  3642. * @static
  3643. */
  3644. public static function supportedDrivers()
  3645. {
  3646. /** @var \Illuminate\Database\DatabaseManager $instance */
  3647. return $instance->supportedDrivers();
  3648. }
  3649. /**
  3650. * Get all of the drivers that are actually available.
  3651. *
  3652. * @return array
  3653. * @static
  3654. */
  3655. public static function availableDrivers()
  3656. {
  3657. /** @var \Illuminate\Database\DatabaseManager $instance */
  3658. return $instance->availableDrivers();
  3659. }
  3660. /**
  3661. * Register an extension connection resolver.
  3662. *
  3663. * @param string $name
  3664. * @param callable $resolver
  3665. * @return void
  3666. * @static
  3667. */
  3668. public static function extend($name, $resolver)
  3669. {
  3670. /** @var \Illuminate\Database\DatabaseManager $instance */
  3671. $instance->extend($name, $resolver);
  3672. }
  3673. /**
  3674. * Return all of the created connections.
  3675. *
  3676. * @return array
  3677. * @static
  3678. */
  3679. public static function getConnections()
  3680. {
  3681. /** @var \Illuminate\Database\DatabaseManager $instance */
  3682. return $instance->getConnections();
  3683. }
  3684. /**
  3685. * Set the database reconnector callback.
  3686. *
  3687. * @param callable $reconnector
  3688. * @return void
  3689. * @static
  3690. */
  3691. public static function setReconnector($reconnector)
  3692. {
  3693. /** @var \Illuminate\Database\DatabaseManager $instance */
  3694. $instance->setReconnector($reconnector);
  3695. }
  3696. /**
  3697. * Get a schema builder instance for the connection.
  3698. *
  3699. * @return \Illuminate\Database\Schema\MySqlBuilder
  3700. * @static
  3701. */
  3702. public static function getSchemaBuilder()
  3703. {
  3704. /** @var \Illuminate\Database\MySqlConnection $instance */
  3705. return $instance->getSchemaBuilder();
  3706. }
  3707. /**
  3708. * Bind values to their parameters in the given statement.
  3709. *
  3710. * @param \PDOStatement $statement
  3711. * @param array $bindings
  3712. * @return void
  3713. * @static
  3714. */
  3715. public static function bindValues($statement, $bindings)
  3716. {
  3717. /** @var \Illuminate\Database\MySqlConnection $instance */
  3718. $instance->bindValues($statement, $bindings);
  3719. }
  3720. /**
  3721. * Set the query grammar to the default implementation.
  3722. *
  3723. * @return void
  3724. * @static
  3725. */
  3726. public static function useDefaultQueryGrammar()
  3727. {
  3728. //Method inherited from \Illuminate\Database\Connection
  3729. /** @var \Illuminate\Database\MySqlConnection $instance */
  3730. $instance->useDefaultQueryGrammar();
  3731. }
  3732. /**
  3733. * Set the schema grammar to the default implementation.
  3734. *
  3735. * @return void
  3736. * @static
  3737. */
  3738. public static function useDefaultSchemaGrammar()
  3739. {
  3740. //Method inherited from \Illuminate\Database\Connection
  3741. /** @var \Illuminate\Database\MySqlConnection $instance */
  3742. $instance->useDefaultSchemaGrammar();
  3743. }
  3744. /**
  3745. * Set the query post processor to the default implementation.
  3746. *
  3747. * @return void
  3748. * @static
  3749. */
  3750. public static function useDefaultPostProcessor()
  3751. {
  3752. //Method inherited from \Illuminate\Database\Connection
  3753. /** @var \Illuminate\Database\MySqlConnection $instance */
  3754. $instance->useDefaultPostProcessor();
  3755. }
  3756. /**
  3757. * Begin a fluent query against a database table.
  3758. *
  3759. * @param string $table
  3760. * @return \Illuminate\Database\Query\Builder
  3761. * @static
  3762. */
  3763. public static function table($table)
  3764. {
  3765. //Method inherited from \Illuminate\Database\Connection
  3766. /** @var \Illuminate\Database\MySqlConnection $instance */
  3767. return $instance->table($table);
  3768. }
  3769. /**
  3770. * Get a new query builder instance.
  3771. *
  3772. * @return \Illuminate\Database\Query\Builder
  3773. * @static
  3774. */
  3775. public static function query()
  3776. {
  3777. //Method inherited from \Illuminate\Database\Connection
  3778. /** @var \Illuminate\Database\MySqlConnection $instance */
  3779. return $instance->query();
  3780. }
  3781. /**
  3782. * Run a select statement and return a single result.
  3783. *
  3784. * @param string $query
  3785. * @param array $bindings
  3786. * @param bool $useReadPdo
  3787. * @return mixed
  3788. * @static
  3789. */
  3790. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  3791. {
  3792. //Method inherited from \Illuminate\Database\Connection
  3793. /** @var \Illuminate\Database\MySqlConnection $instance */
  3794. return $instance->selectOne($query, $bindings, $useReadPdo);
  3795. }
  3796. /**
  3797. * Run a select statement against the database.
  3798. *
  3799. * @param string $query
  3800. * @param array $bindings
  3801. * @return array
  3802. * @static
  3803. */
  3804. public static function selectFromWriteConnection($query, $bindings = [])
  3805. {
  3806. //Method inherited from \Illuminate\Database\Connection
  3807. /** @var \Illuminate\Database\MySqlConnection $instance */
  3808. return $instance->selectFromWriteConnection($query, $bindings);
  3809. }
  3810. /**
  3811. * Run a select statement against the database.
  3812. *
  3813. * @param string $query
  3814. * @param array $bindings
  3815. * @param bool $useReadPdo
  3816. * @return array
  3817. * @static
  3818. */
  3819. public static function select($query, $bindings = [], $useReadPdo = true)
  3820. {
  3821. //Method inherited from \Illuminate\Database\Connection
  3822. /** @var \Illuminate\Database\MySqlConnection $instance */
  3823. return $instance->select($query, $bindings, $useReadPdo);
  3824. }
  3825. /**
  3826. * Run a select statement against the database and returns a generator.
  3827. *
  3828. * @param string $query
  3829. * @param array $bindings
  3830. * @param bool $useReadPdo
  3831. * @return \Generator
  3832. * @static
  3833. */
  3834. public static function cursor($query, $bindings = [], $useReadPdo = true)
  3835. {
  3836. //Method inherited from \Illuminate\Database\Connection
  3837. /** @var \Illuminate\Database\MySqlConnection $instance */
  3838. return $instance->cursor($query, $bindings, $useReadPdo);
  3839. }
  3840. /**
  3841. * Run an insert statement against the database.
  3842. *
  3843. * @param string $query
  3844. * @param array $bindings
  3845. * @return bool
  3846. * @static
  3847. */
  3848. public static function insert($query, $bindings = [])
  3849. {
  3850. //Method inherited from \Illuminate\Database\Connection
  3851. /** @var \Illuminate\Database\MySqlConnection $instance */
  3852. return $instance->insert($query, $bindings);
  3853. }
  3854. /**
  3855. * Run an update statement against the database.
  3856. *
  3857. * @param string $query
  3858. * @param array $bindings
  3859. * @return int
  3860. * @static
  3861. */
  3862. public static function update($query, $bindings = [])
  3863. {
  3864. //Method inherited from \Illuminate\Database\Connection
  3865. /** @var \Illuminate\Database\MySqlConnection $instance */
  3866. return $instance->update($query, $bindings);
  3867. }
  3868. /**
  3869. * Run a delete statement against the database.
  3870. *
  3871. * @param string $query
  3872. * @param array $bindings
  3873. * @return int
  3874. * @static
  3875. */
  3876. public static function delete($query, $bindings = [])
  3877. {
  3878. //Method inherited from \Illuminate\Database\Connection
  3879. /** @var \Illuminate\Database\MySqlConnection $instance */
  3880. return $instance->delete($query, $bindings);
  3881. }
  3882. /**
  3883. * Execute an SQL statement and return the boolean result.
  3884. *
  3885. * @param string $query
  3886. * @param array $bindings
  3887. * @return bool
  3888. * @static
  3889. */
  3890. public static function statement($query, $bindings = [])
  3891. {
  3892. //Method inherited from \Illuminate\Database\Connection
  3893. /** @var \Illuminate\Database\MySqlConnection $instance */
  3894. return $instance->statement($query, $bindings);
  3895. }
  3896. /**
  3897. * Run an SQL statement and get the number of rows affected.
  3898. *
  3899. * @param string $query
  3900. * @param array $bindings
  3901. * @return int
  3902. * @static
  3903. */
  3904. public static function affectingStatement($query, $bindings = [])
  3905. {
  3906. //Method inherited from \Illuminate\Database\Connection
  3907. /** @var \Illuminate\Database\MySqlConnection $instance */
  3908. return $instance->affectingStatement($query, $bindings);
  3909. }
  3910. /**
  3911. * Run a raw, unprepared query against the PDO connection.
  3912. *
  3913. * @param string $query
  3914. * @return bool
  3915. * @static
  3916. */
  3917. public static function unprepared($query)
  3918. {
  3919. //Method inherited from \Illuminate\Database\Connection
  3920. /** @var \Illuminate\Database\MySqlConnection $instance */
  3921. return $instance->unprepared($query);
  3922. }
  3923. /**
  3924. * Execute the given callback in "dry run" mode.
  3925. *
  3926. * @param \Closure $callback
  3927. * @return array
  3928. * @static
  3929. */
  3930. public static function pretend($callback)
  3931. {
  3932. //Method inherited from \Illuminate\Database\Connection
  3933. /** @var \Illuminate\Database\MySqlConnection $instance */
  3934. return $instance->pretend($callback);
  3935. }
  3936. /**
  3937. * Prepare the query bindings for execution.
  3938. *
  3939. * @param array $bindings
  3940. * @return array
  3941. * @static
  3942. */
  3943. public static function prepareBindings($bindings)
  3944. {
  3945. //Method inherited from \Illuminate\Database\Connection
  3946. /** @var \Illuminate\Database\MySqlConnection $instance */
  3947. return $instance->prepareBindings($bindings);
  3948. }
  3949. /**
  3950. * Log a query in the connection's query log.
  3951. *
  3952. * @param string $query
  3953. * @param array $bindings
  3954. * @param float|null $time
  3955. * @return void
  3956. * @static
  3957. */
  3958. public static function logQuery($query, $bindings, $time = null)
  3959. {
  3960. //Method inherited from \Illuminate\Database\Connection
  3961. /** @var \Illuminate\Database\MySqlConnection $instance */
  3962. $instance->logQuery($query, $bindings, $time);
  3963. }
  3964. /**
  3965. * Register a database query listener with the connection.
  3966. *
  3967. * @param \Closure $callback
  3968. * @return void
  3969. * @static
  3970. */
  3971. public static function listen($callback)
  3972. {
  3973. //Method inherited from \Illuminate\Database\Connection
  3974. /** @var \Illuminate\Database\MySqlConnection $instance */
  3975. $instance->listen($callback);
  3976. }
  3977. /**
  3978. * Get a new raw query expression.
  3979. *
  3980. * @param mixed $value
  3981. * @return \Illuminate\Database\Query\Expression
  3982. * @static
  3983. */
  3984. public static function raw($value)
  3985. {
  3986. //Method inherited from \Illuminate\Database\Connection
  3987. /** @var \Illuminate\Database\MySqlConnection $instance */
  3988. return $instance->raw($value);
  3989. }
  3990. /**
  3991. * Indicate if any records have been modified.
  3992. *
  3993. * @param bool $value
  3994. * @return void
  3995. * @static
  3996. */
  3997. public static function recordsHaveBeenModified($value = true)
  3998. {
  3999. //Method inherited from \Illuminate\Database\Connection
  4000. /** @var \Illuminate\Database\MySqlConnection $instance */
  4001. $instance->recordsHaveBeenModified($value);
  4002. }
  4003. /**
  4004. * Is Doctrine available?
  4005. *
  4006. * @return bool
  4007. * @static
  4008. */
  4009. public static function isDoctrineAvailable()
  4010. {
  4011. //Method inherited from \Illuminate\Database\Connection
  4012. /** @var \Illuminate\Database\MySqlConnection $instance */
  4013. return $instance->isDoctrineAvailable();
  4014. }
  4015. /**
  4016. * Get a Doctrine Schema Column instance.
  4017. *
  4018. * @param string $table
  4019. * @param string $column
  4020. * @return \Doctrine\DBAL\Schema\Column
  4021. * @static
  4022. */
  4023. public static function getDoctrineColumn($table, $column)
  4024. {
  4025. //Method inherited from \Illuminate\Database\Connection
  4026. /** @var \Illuminate\Database\MySqlConnection $instance */
  4027. return $instance->getDoctrineColumn($table, $column);
  4028. }
  4029. /**
  4030. * Get the Doctrine DBAL schema manager for the connection.
  4031. *
  4032. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  4033. * @static
  4034. */
  4035. public static function getDoctrineSchemaManager()
  4036. {
  4037. //Method inherited from \Illuminate\Database\Connection
  4038. /** @var \Illuminate\Database\MySqlConnection $instance */
  4039. return $instance->getDoctrineSchemaManager();
  4040. }
  4041. /**
  4042. * Get the Doctrine DBAL database connection instance.
  4043. *
  4044. * @return \Doctrine\DBAL\Connection
  4045. * @static
  4046. */
  4047. public static function getDoctrineConnection()
  4048. {
  4049. //Method inherited from \Illuminate\Database\Connection
  4050. /** @var \Illuminate\Database\MySqlConnection $instance */
  4051. return $instance->getDoctrineConnection();
  4052. }
  4053. /**
  4054. * Get the current PDO connection.
  4055. *
  4056. * @return \PDO
  4057. * @static
  4058. */
  4059. public static function getPdo()
  4060. {
  4061. //Method inherited from \Illuminate\Database\Connection
  4062. /** @var \Illuminate\Database\MySqlConnection $instance */
  4063. return $instance->getPdo();
  4064. }
  4065. /**
  4066. * Get the current PDO connection used for reading.
  4067. *
  4068. * @return \PDO
  4069. * @static
  4070. */
  4071. public static function getReadPdo()
  4072. {
  4073. //Method inherited from \Illuminate\Database\Connection
  4074. /** @var \Illuminate\Database\MySqlConnection $instance */
  4075. return $instance->getReadPdo();
  4076. }
  4077. /**
  4078. * Set the PDO connection.
  4079. *
  4080. * @param \PDO|\Closure|null $pdo
  4081. * @return \Illuminate\Database\MySqlConnection
  4082. * @static
  4083. */
  4084. public static function setPdo($pdo)
  4085. {
  4086. //Method inherited from \Illuminate\Database\Connection
  4087. /** @var \Illuminate\Database\MySqlConnection $instance */
  4088. return $instance->setPdo($pdo);
  4089. }
  4090. /**
  4091. * Set the PDO connection used for reading.
  4092. *
  4093. * @param \PDO|\Closure|null $pdo
  4094. * @return \Illuminate\Database\MySqlConnection
  4095. * @static
  4096. */
  4097. public static function setReadPdo($pdo)
  4098. {
  4099. //Method inherited from \Illuminate\Database\Connection
  4100. /** @var \Illuminate\Database\MySqlConnection $instance */
  4101. return $instance->setReadPdo($pdo);
  4102. }
  4103. /**
  4104. * Get the database connection name.
  4105. *
  4106. * @return string|null
  4107. * @static
  4108. */
  4109. public static function getName()
  4110. {
  4111. //Method inherited from \Illuminate\Database\Connection
  4112. /** @var \Illuminate\Database\MySqlConnection $instance */
  4113. return $instance->getName();
  4114. }
  4115. /**
  4116. * Get an option from the configuration options.
  4117. *
  4118. * @param string|null $option
  4119. * @return mixed
  4120. * @static
  4121. */
  4122. public static function getConfig($option = null)
  4123. {
  4124. //Method inherited from \Illuminate\Database\Connection
  4125. /** @var \Illuminate\Database\MySqlConnection $instance */
  4126. return $instance->getConfig($option);
  4127. }
  4128. /**
  4129. * Get the PDO driver name.
  4130. *
  4131. * @return string
  4132. * @static
  4133. */
  4134. public static function getDriverName()
  4135. {
  4136. //Method inherited from \Illuminate\Database\Connection
  4137. /** @var \Illuminate\Database\MySqlConnection $instance */
  4138. return $instance->getDriverName();
  4139. }
  4140. /**
  4141. * Get the query grammar used by the connection.
  4142. *
  4143. * @return \Illuminate\Database\Query\Grammars\Grammar
  4144. * @static
  4145. */
  4146. public static function getQueryGrammar()
  4147. {
  4148. //Method inherited from \Illuminate\Database\Connection
  4149. /** @var \Illuminate\Database\MySqlConnection $instance */
  4150. return $instance->getQueryGrammar();
  4151. }
  4152. /**
  4153. * Set the query grammar used by the connection.
  4154. *
  4155. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4156. * @return \Illuminate\Database\MySqlConnection
  4157. * @static
  4158. */
  4159. public static function setQueryGrammar($grammar)
  4160. {
  4161. //Method inherited from \Illuminate\Database\Connection
  4162. /** @var \Illuminate\Database\MySqlConnection $instance */
  4163. return $instance->setQueryGrammar($grammar);
  4164. }
  4165. /**
  4166. * Get the schema grammar used by the connection.
  4167. *
  4168. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4169. * @static
  4170. */
  4171. public static function getSchemaGrammar()
  4172. {
  4173. //Method inherited from \Illuminate\Database\Connection
  4174. /** @var \Illuminate\Database\MySqlConnection $instance */
  4175. return $instance->getSchemaGrammar();
  4176. }
  4177. /**
  4178. * Set the schema grammar used by the connection.
  4179. *
  4180. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4181. * @return \Illuminate\Database\MySqlConnection
  4182. * @static
  4183. */
  4184. public static function setSchemaGrammar($grammar)
  4185. {
  4186. //Method inherited from \Illuminate\Database\Connection
  4187. /** @var \Illuminate\Database\MySqlConnection $instance */
  4188. return $instance->setSchemaGrammar($grammar);
  4189. }
  4190. /**
  4191. * Get the query post processor used by the connection.
  4192. *
  4193. * @return \Illuminate\Database\Query\Processors\Processor
  4194. * @static
  4195. */
  4196. public static function getPostProcessor()
  4197. {
  4198. //Method inherited from \Illuminate\Database\Connection
  4199. /** @var \Illuminate\Database\MySqlConnection $instance */
  4200. return $instance->getPostProcessor();
  4201. }
  4202. /**
  4203. * Set the query post processor used by the connection.
  4204. *
  4205. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4206. * @return \Illuminate\Database\MySqlConnection
  4207. * @static
  4208. */
  4209. public static function setPostProcessor($processor)
  4210. {
  4211. //Method inherited from \Illuminate\Database\Connection
  4212. /** @var \Illuminate\Database\MySqlConnection $instance */
  4213. return $instance->setPostProcessor($processor);
  4214. }
  4215. /**
  4216. * Get the event dispatcher used by the connection.
  4217. *
  4218. * @return \Illuminate\Contracts\Events\Dispatcher
  4219. * @static
  4220. */
  4221. public static function getEventDispatcher()
  4222. {
  4223. //Method inherited from \Illuminate\Database\Connection
  4224. /** @var \Illuminate\Database\MySqlConnection $instance */
  4225. return $instance->getEventDispatcher();
  4226. }
  4227. /**
  4228. * Set the event dispatcher instance on the connection.
  4229. *
  4230. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4231. * @return \Illuminate\Database\MySqlConnection
  4232. * @static
  4233. */
  4234. public static function setEventDispatcher($events)
  4235. {
  4236. //Method inherited from \Illuminate\Database\Connection
  4237. /** @var \Illuminate\Database\MySqlConnection $instance */
  4238. return $instance->setEventDispatcher($events);
  4239. }
  4240. /**
  4241. * Unset the event dispatcher for this connection.
  4242. *
  4243. * @return void
  4244. * @static
  4245. */
  4246. public static function unsetEventDispatcher()
  4247. {
  4248. //Method inherited from \Illuminate\Database\Connection
  4249. /** @var \Illuminate\Database\MySqlConnection $instance */
  4250. $instance->unsetEventDispatcher();
  4251. }
  4252. /**
  4253. * Determine if the connection is in a "dry run".
  4254. *
  4255. * @return bool
  4256. * @static
  4257. */
  4258. public static function pretending()
  4259. {
  4260. //Method inherited from \Illuminate\Database\Connection
  4261. /** @var \Illuminate\Database\MySqlConnection $instance */
  4262. return $instance->pretending();
  4263. }
  4264. /**
  4265. * Get the connection query log.
  4266. *
  4267. * @return array
  4268. * @static
  4269. */
  4270. public static function getQueryLog()
  4271. {
  4272. //Method inherited from \Illuminate\Database\Connection
  4273. /** @var \Illuminate\Database\MySqlConnection $instance */
  4274. return $instance->getQueryLog();
  4275. }
  4276. /**
  4277. * Clear the query log.
  4278. *
  4279. * @return void
  4280. * @static
  4281. */
  4282. public static function flushQueryLog()
  4283. {
  4284. //Method inherited from \Illuminate\Database\Connection
  4285. /** @var \Illuminate\Database\MySqlConnection $instance */
  4286. $instance->flushQueryLog();
  4287. }
  4288. /**
  4289. * Enable the query log on the connection.
  4290. *
  4291. * @return void
  4292. * @static
  4293. */
  4294. public static function enableQueryLog()
  4295. {
  4296. //Method inherited from \Illuminate\Database\Connection
  4297. /** @var \Illuminate\Database\MySqlConnection $instance */
  4298. $instance->enableQueryLog();
  4299. }
  4300. /**
  4301. * Disable the query log on the connection.
  4302. *
  4303. * @return void
  4304. * @static
  4305. */
  4306. public static function disableQueryLog()
  4307. {
  4308. //Method inherited from \Illuminate\Database\Connection
  4309. /** @var \Illuminate\Database\MySqlConnection $instance */
  4310. $instance->disableQueryLog();
  4311. }
  4312. /**
  4313. * Determine whether we're logging queries.
  4314. *
  4315. * @return bool
  4316. * @static
  4317. */
  4318. public static function logging()
  4319. {
  4320. //Method inherited from \Illuminate\Database\Connection
  4321. /** @var \Illuminate\Database\MySqlConnection $instance */
  4322. return $instance->logging();
  4323. }
  4324. /**
  4325. * Get the name of the connected database.
  4326. *
  4327. * @return string
  4328. * @static
  4329. */
  4330. public static function getDatabaseName()
  4331. {
  4332. //Method inherited from \Illuminate\Database\Connection
  4333. /** @var \Illuminate\Database\MySqlConnection $instance */
  4334. return $instance->getDatabaseName();
  4335. }
  4336. /**
  4337. * Set the name of the connected database.
  4338. *
  4339. * @param string $database
  4340. * @return \Illuminate\Database\MySqlConnection
  4341. * @static
  4342. */
  4343. public static function setDatabaseName($database)
  4344. {
  4345. //Method inherited from \Illuminate\Database\Connection
  4346. /** @var \Illuminate\Database\MySqlConnection $instance */
  4347. return $instance->setDatabaseName($database);
  4348. }
  4349. /**
  4350. * Get the table prefix for the connection.
  4351. *
  4352. * @return string
  4353. * @static
  4354. */
  4355. public static function getTablePrefix()
  4356. {
  4357. //Method inherited from \Illuminate\Database\Connection
  4358. /** @var \Illuminate\Database\MySqlConnection $instance */
  4359. return $instance->getTablePrefix();
  4360. }
  4361. /**
  4362. * Set the table prefix in use by the connection.
  4363. *
  4364. * @param string $prefix
  4365. * @return \Illuminate\Database\MySqlConnection
  4366. * @static
  4367. */
  4368. public static function setTablePrefix($prefix)
  4369. {
  4370. //Method inherited from \Illuminate\Database\Connection
  4371. /** @var \Illuminate\Database\MySqlConnection $instance */
  4372. return $instance->setTablePrefix($prefix);
  4373. }
  4374. /**
  4375. * Set the table prefix and return the grammar.
  4376. *
  4377. * @param \Illuminate\Database\Grammar $grammar
  4378. * @return \Illuminate\Database\Grammar
  4379. * @static
  4380. */
  4381. public static function withTablePrefix($grammar)
  4382. {
  4383. //Method inherited from \Illuminate\Database\Connection
  4384. /** @var \Illuminate\Database\MySqlConnection $instance */
  4385. return $instance->withTablePrefix($grammar);
  4386. }
  4387. /**
  4388. * Register a connection resolver.
  4389. *
  4390. * @param string $driver
  4391. * @param \Closure $callback
  4392. * @return void
  4393. * @static
  4394. */
  4395. public static function resolverFor($driver, $callback)
  4396. {
  4397. //Method inherited from \Illuminate\Database\Connection
  4398. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4399. }
  4400. /**
  4401. * Get the connection resolver for the given driver.
  4402. *
  4403. * @param string $driver
  4404. * @return mixed
  4405. * @static
  4406. */
  4407. public static function getResolver($driver)
  4408. {
  4409. //Method inherited from \Illuminate\Database\Connection
  4410. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4411. }
  4412. /**
  4413. * Execute a Closure within a transaction.
  4414. *
  4415. * @param \Closure $callback
  4416. * @param int $attempts
  4417. * @return mixed
  4418. * @throws \Exception|\Throwable
  4419. * @static
  4420. */
  4421. public static function transaction($callback, $attempts = 1)
  4422. {
  4423. //Method inherited from \Illuminate\Database\Connection
  4424. /** @var \Illuminate\Database\MySqlConnection $instance */
  4425. return $instance->transaction($callback, $attempts);
  4426. }
  4427. /**
  4428. * Start a new database transaction.
  4429. *
  4430. * @return void
  4431. * @throws \Exception
  4432. * @static
  4433. */
  4434. public static function beginTransaction()
  4435. {
  4436. //Method inherited from \Illuminate\Database\Connection
  4437. /** @var \Illuminate\Database\MySqlConnection $instance */
  4438. $instance->beginTransaction();
  4439. }
  4440. /**
  4441. * Commit the active database transaction.
  4442. *
  4443. * @return void
  4444. * @static
  4445. */
  4446. public static function commit()
  4447. {
  4448. //Method inherited from \Illuminate\Database\Connection
  4449. /** @var \Illuminate\Database\MySqlConnection $instance */
  4450. $instance->commit();
  4451. }
  4452. /**
  4453. * Rollback the active database transaction.
  4454. *
  4455. * @param int|null $toLevel
  4456. * @return void
  4457. * @throws \Exception
  4458. * @static
  4459. */
  4460. public static function rollBack($toLevel = null)
  4461. {
  4462. //Method inherited from \Illuminate\Database\Connection
  4463. /** @var \Illuminate\Database\MySqlConnection $instance */
  4464. $instance->rollBack($toLevel);
  4465. }
  4466. /**
  4467. * Get the number of active transactions.
  4468. *
  4469. * @return int
  4470. * @static
  4471. */
  4472. public static function transactionLevel()
  4473. {
  4474. //Method inherited from \Illuminate\Database\Connection
  4475. /** @var \Illuminate\Database\MySqlConnection $instance */
  4476. return $instance->transactionLevel();
  4477. }
  4478. }
  4479. /**
  4480. *
  4481. *
  4482. * @see \Illuminate\Events\Dispatcher
  4483. */
  4484. class Event {
  4485. /**
  4486. * Register an event listener with the dispatcher.
  4487. *
  4488. * @param string|array $events
  4489. * @param mixed $listener
  4490. * @return void
  4491. * @static
  4492. */
  4493. public static function listen($events, $listener)
  4494. {
  4495. /** @var \Illuminate\Events\Dispatcher $instance */
  4496. $instance->listen($events, $listener);
  4497. }
  4498. /**
  4499. * Determine if a given event has listeners.
  4500. *
  4501. * @param string $eventName
  4502. * @return bool
  4503. * @static
  4504. */
  4505. public static function hasListeners($eventName)
  4506. {
  4507. /** @var \Illuminate\Events\Dispatcher $instance */
  4508. return $instance->hasListeners($eventName);
  4509. }
  4510. /**
  4511. * Register an event and payload to be fired later.
  4512. *
  4513. * @param string $event
  4514. * @param array $payload
  4515. * @return void
  4516. * @static
  4517. */
  4518. public static function push($event, $payload = [])
  4519. {
  4520. /** @var \Illuminate\Events\Dispatcher $instance */
  4521. $instance->push($event, $payload);
  4522. }
  4523. /**
  4524. * Flush a set of pushed events.
  4525. *
  4526. * @param string $event
  4527. * @return void
  4528. * @static
  4529. */
  4530. public static function flush($event)
  4531. {
  4532. /** @var \Illuminate\Events\Dispatcher $instance */
  4533. $instance->flush($event);
  4534. }
  4535. /**
  4536. * Register an event subscriber with the dispatcher.
  4537. *
  4538. * @param object|string $subscriber
  4539. * @return void
  4540. * @static
  4541. */
  4542. public static function subscribe($subscriber)
  4543. {
  4544. /** @var \Illuminate\Events\Dispatcher $instance */
  4545. $instance->subscribe($subscriber);
  4546. }
  4547. /**
  4548. * Fire an event until the first non-null response is returned.
  4549. *
  4550. * @param string|object $event
  4551. * @param mixed $payload
  4552. * @return array|null
  4553. * @static
  4554. */
  4555. public static function until($event, $payload = [])
  4556. {
  4557. /** @var \Illuminate\Events\Dispatcher $instance */
  4558. return $instance->until($event, $payload);
  4559. }
  4560. /**
  4561. * Fire an event and call the listeners.
  4562. *
  4563. * @param string|object $event
  4564. * @param mixed $payload
  4565. * @param bool $halt
  4566. * @return array|null
  4567. * @static
  4568. */
  4569. public static function dispatch($event, $payload = [], $halt = false)
  4570. {
  4571. /** @var \Illuminate\Events\Dispatcher $instance */
  4572. return $instance->dispatch($event, $payload, $halt);
  4573. }
  4574. /**
  4575. * Get all of the listeners for a given event name.
  4576. *
  4577. * @param string $eventName
  4578. * @return array
  4579. * @static
  4580. */
  4581. public static function getListeners($eventName)
  4582. {
  4583. /** @var \Illuminate\Events\Dispatcher $instance */
  4584. return $instance->getListeners($eventName);
  4585. }
  4586. /**
  4587. * Register an event listener with the dispatcher.
  4588. *
  4589. * @param \Closure|string $listener
  4590. * @param bool $wildcard
  4591. * @return \Closure
  4592. * @static
  4593. */
  4594. public static function makeListener($listener, $wildcard = false)
  4595. {
  4596. /** @var \Illuminate\Events\Dispatcher $instance */
  4597. return $instance->makeListener($listener, $wildcard);
  4598. }
  4599. /**
  4600. * Create a class based listener using the IoC container.
  4601. *
  4602. * @param string $listener
  4603. * @param bool $wildcard
  4604. * @return \Closure
  4605. * @static
  4606. */
  4607. public static function createClassListener($listener, $wildcard = false)
  4608. {
  4609. /** @var \Illuminate\Events\Dispatcher $instance */
  4610. return $instance->createClassListener($listener, $wildcard);
  4611. }
  4612. /**
  4613. * Remove a set of listeners from the dispatcher.
  4614. *
  4615. * @param string $event
  4616. * @return void
  4617. * @static
  4618. */
  4619. public static function forget($event)
  4620. {
  4621. /** @var \Illuminate\Events\Dispatcher $instance */
  4622. $instance->forget($event);
  4623. }
  4624. /**
  4625. * Forget all of the pushed listeners.
  4626. *
  4627. * @return void
  4628. * @static
  4629. */
  4630. public static function forgetPushed()
  4631. {
  4632. /** @var \Illuminate\Events\Dispatcher $instance */
  4633. $instance->forgetPushed();
  4634. }
  4635. /**
  4636. * Set the queue resolver implementation.
  4637. *
  4638. * @param callable $resolver
  4639. * @return \Illuminate\Events\Dispatcher
  4640. * @static
  4641. */
  4642. public static function setQueueResolver($resolver)
  4643. {
  4644. /** @var \Illuminate\Events\Dispatcher $instance */
  4645. return $instance->setQueueResolver($resolver);
  4646. }
  4647. /**
  4648. * Assert if an event was dispatched based on a truth-test callback.
  4649. *
  4650. * @param string $event
  4651. * @param callable|int|null $callback
  4652. * @return void
  4653. * @static
  4654. */
  4655. public static function assertDispatched($event, $callback = null)
  4656. {
  4657. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4658. $instance->assertDispatched($event, $callback);
  4659. }
  4660. /**
  4661. * Assert if a event was dispatched a number of times.
  4662. *
  4663. * @param string $event
  4664. * @param int $times
  4665. * @return void
  4666. * @static
  4667. */
  4668. public static function assertDispatchedTimes($event, $times = 1)
  4669. {
  4670. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4671. $instance->assertDispatchedTimes($event, $times);
  4672. }
  4673. /**
  4674. * Determine if an event was dispatched based on a truth-test callback.
  4675. *
  4676. * @param string $event
  4677. * @param callable|null $callback
  4678. * @return void
  4679. * @static
  4680. */
  4681. public static function assertNotDispatched($event, $callback = null)
  4682. {
  4683. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4684. $instance->assertNotDispatched($event, $callback);
  4685. }
  4686. /**
  4687. * Get all of the events matching a truth-test callback.
  4688. *
  4689. * @param string $event
  4690. * @param callable|null $callback
  4691. * @return \Illuminate\Support\Collection
  4692. * @static
  4693. */
  4694. public static function dispatched($event, $callback = null)
  4695. {
  4696. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4697. return $instance->dispatched($event, $callback);
  4698. }
  4699. /**
  4700. * Determine if the given event has been dispatched.
  4701. *
  4702. * @param string $event
  4703. * @return bool
  4704. * @static
  4705. */
  4706. public static function hasDispatched($event)
  4707. {
  4708. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4709. return $instance->hasDispatched($event);
  4710. }
  4711. }
  4712. /**
  4713. *
  4714. *
  4715. * @see \Illuminate\Filesystem\Filesystem
  4716. */
  4717. class File {
  4718. /**
  4719. * Determine if a file or directory exists.
  4720. *
  4721. * @param string $path
  4722. * @return bool
  4723. * @static
  4724. */
  4725. public static function exists($path)
  4726. {
  4727. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4728. return $instance->exists($path);
  4729. }
  4730. /**
  4731. * Get the contents of a file.
  4732. *
  4733. * @param string $path
  4734. * @param bool $lock
  4735. * @return string
  4736. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4737. * @static
  4738. */
  4739. public static function get($path, $lock = false)
  4740. {
  4741. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4742. return $instance->get($path, $lock);
  4743. }
  4744. /**
  4745. * Get contents of a file with shared access.
  4746. *
  4747. * @param string $path
  4748. * @return string
  4749. * @static
  4750. */
  4751. public static function sharedGet($path)
  4752. {
  4753. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4754. return $instance->sharedGet($path);
  4755. }
  4756. /**
  4757. * Get the returned value of a file.
  4758. *
  4759. * @param string $path
  4760. * @return mixed
  4761. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4762. * @static
  4763. */
  4764. public static function getRequire($path)
  4765. {
  4766. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4767. return $instance->getRequire($path);
  4768. }
  4769. /**
  4770. * Require the given file once.
  4771. *
  4772. * @param string $file
  4773. * @return mixed
  4774. * @static
  4775. */
  4776. public static function requireOnce($file)
  4777. {
  4778. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4779. return $instance->requireOnce($file);
  4780. }
  4781. /**
  4782. * Get the MD5 hash of the file at the given path.
  4783. *
  4784. * @param string $path
  4785. * @return string
  4786. * @static
  4787. */
  4788. public static function hash($path)
  4789. {
  4790. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4791. return $instance->hash($path);
  4792. }
  4793. /**
  4794. * Write the contents of a file.
  4795. *
  4796. * @param string $path
  4797. * @param string $contents
  4798. * @param bool $lock
  4799. * @return int|bool
  4800. * @static
  4801. */
  4802. public static function put($path, $contents, $lock = false)
  4803. {
  4804. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4805. return $instance->put($path, $contents, $lock);
  4806. }
  4807. /**
  4808. * Write the contents of a file, replacing it atomically if it already exists.
  4809. *
  4810. * @param string $path
  4811. * @param string $content
  4812. * @return void
  4813. * @static
  4814. */
  4815. public static function replace($path, $content)
  4816. {
  4817. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4818. $instance->replace($path, $content);
  4819. }
  4820. /**
  4821. * Prepend to a file.
  4822. *
  4823. * @param string $path
  4824. * @param string $data
  4825. * @return int
  4826. * @static
  4827. */
  4828. public static function prepend($path, $data)
  4829. {
  4830. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4831. return $instance->prepend($path, $data);
  4832. }
  4833. /**
  4834. * Append to a file.
  4835. *
  4836. * @param string $path
  4837. * @param string $data
  4838. * @return int
  4839. * @static
  4840. */
  4841. public static function append($path, $data)
  4842. {
  4843. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4844. return $instance->append($path, $data);
  4845. }
  4846. /**
  4847. * Get or set UNIX mode of a file or directory.
  4848. *
  4849. * @param string $path
  4850. * @param int|null $mode
  4851. * @return mixed
  4852. * @static
  4853. */
  4854. public static function chmod($path, $mode = null)
  4855. {
  4856. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4857. return $instance->chmod($path, $mode);
  4858. }
  4859. /**
  4860. * Delete the file at a given path.
  4861. *
  4862. * @param string|array $paths
  4863. * @return bool
  4864. * @static
  4865. */
  4866. public static function delete($paths)
  4867. {
  4868. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4869. return $instance->delete($paths);
  4870. }
  4871. /**
  4872. * Move a file to a new location.
  4873. *
  4874. * @param string $path
  4875. * @param string $target
  4876. * @return bool
  4877. * @static
  4878. */
  4879. public static function move($path, $target)
  4880. {
  4881. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4882. return $instance->move($path, $target);
  4883. }
  4884. /**
  4885. * Copy a file to a new location.
  4886. *
  4887. * @param string $path
  4888. * @param string $target
  4889. * @return bool
  4890. * @static
  4891. */
  4892. public static function copy($path, $target)
  4893. {
  4894. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4895. return $instance->copy($path, $target);
  4896. }
  4897. /**
  4898. * Create a hard link to the target file or directory.
  4899. *
  4900. * @param string $target
  4901. * @param string $link
  4902. * @return void
  4903. * @static
  4904. */
  4905. public static function link($target, $link)
  4906. {
  4907. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4908. $instance->link($target, $link);
  4909. }
  4910. /**
  4911. * Extract the file name from a file path.
  4912. *
  4913. * @param string $path
  4914. * @return string
  4915. * @static
  4916. */
  4917. public static function name($path)
  4918. {
  4919. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4920. return $instance->name($path);
  4921. }
  4922. /**
  4923. * Extract the trailing name component from a file path.
  4924. *
  4925. * @param string $path
  4926. * @return string
  4927. * @static
  4928. */
  4929. public static function basename($path)
  4930. {
  4931. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4932. return $instance->basename($path);
  4933. }
  4934. /**
  4935. * Extract the parent directory from a file path.
  4936. *
  4937. * @param string $path
  4938. * @return string
  4939. * @static
  4940. */
  4941. public static function dirname($path)
  4942. {
  4943. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4944. return $instance->dirname($path);
  4945. }
  4946. /**
  4947. * Extract the file extension from a file path.
  4948. *
  4949. * @param string $path
  4950. * @return string
  4951. * @static
  4952. */
  4953. public static function extension($path)
  4954. {
  4955. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4956. return $instance->extension($path);
  4957. }
  4958. /**
  4959. * Get the file type of a given file.
  4960. *
  4961. * @param string $path
  4962. * @return string
  4963. * @static
  4964. */
  4965. public static function type($path)
  4966. {
  4967. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4968. return $instance->type($path);
  4969. }
  4970. /**
  4971. * Get the mime-type of a given file.
  4972. *
  4973. * @param string $path
  4974. * @return string|false
  4975. * @static
  4976. */
  4977. public static function mimeType($path)
  4978. {
  4979. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4980. return $instance->mimeType($path);
  4981. }
  4982. /**
  4983. * Get the file size of a given file.
  4984. *
  4985. * @param string $path
  4986. * @return int
  4987. * @static
  4988. */
  4989. public static function size($path)
  4990. {
  4991. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4992. return $instance->size($path);
  4993. }
  4994. /**
  4995. * Get the file's last modification time.
  4996. *
  4997. * @param string $path
  4998. * @return int
  4999. * @static
  5000. */
  5001. public static function lastModified($path)
  5002. {
  5003. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5004. return $instance->lastModified($path);
  5005. }
  5006. /**
  5007. * Determine if the given path is a directory.
  5008. *
  5009. * @param string $directory
  5010. * @return bool
  5011. * @static
  5012. */
  5013. public static function isDirectory($directory)
  5014. {
  5015. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5016. return $instance->isDirectory($directory);
  5017. }
  5018. /**
  5019. * Determine if the given path is readable.
  5020. *
  5021. * @param string $path
  5022. * @return bool
  5023. * @static
  5024. */
  5025. public static function isReadable($path)
  5026. {
  5027. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5028. return $instance->isReadable($path);
  5029. }
  5030. /**
  5031. * Determine if the given path is writable.
  5032. *
  5033. * @param string $path
  5034. * @return bool
  5035. * @static
  5036. */
  5037. public static function isWritable($path)
  5038. {
  5039. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5040. return $instance->isWritable($path);
  5041. }
  5042. /**
  5043. * Determine if the given path is a file.
  5044. *
  5045. * @param string $file
  5046. * @return bool
  5047. * @static
  5048. */
  5049. public static function isFile($file)
  5050. {
  5051. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5052. return $instance->isFile($file);
  5053. }
  5054. /**
  5055. * Find path names matching a given pattern.
  5056. *
  5057. * @param string $pattern
  5058. * @param int $flags
  5059. * @return array
  5060. * @static
  5061. */
  5062. public static function glob($pattern, $flags = 0)
  5063. {
  5064. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5065. return $instance->glob($pattern, $flags);
  5066. }
  5067. /**
  5068. * Get an array of all files in a directory.
  5069. *
  5070. * @param string $directory
  5071. * @param bool $hidden
  5072. * @return \Symfony\Component\Finder\SplFileInfo[]
  5073. * @static
  5074. */
  5075. public static function files($directory, $hidden = false)
  5076. {
  5077. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5078. return $instance->files($directory, $hidden);
  5079. }
  5080. /**
  5081. * Get all of the files from the given directory (recursive).
  5082. *
  5083. * @param string $directory
  5084. * @param bool $hidden
  5085. * @return \Symfony\Component\Finder\SplFileInfo[]
  5086. * @static
  5087. */
  5088. public static function allFiles($directory, $hidden = false)
  5089. {
  5090. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5091. return $instance->allFiles($directory, $hidden);
  5092. }
  5093. /**
  5094. * Get all of the directories within a given directory.
  5095. *
  5096. * @param string $directory
  5097. * @return array
  5098. * @static
  5099. */
  5100. public static function directories($directory)
  5101. {
  5102. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5103. return $instance->directories($directory);
  5104. }
  5105. /**
  5106. * Create a directory.
  5107. *
  5108. * @param string $path
  5109. * @param int $mode
  5110. * @param bool $recursive
  5111. * @param bool $force
  5112. * @return bool
  5113. * @static
  5114. */
  5115. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  5116. {
  5117. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5118. return $instance->makeDirectory($path, $mode, $recursive, $force);
  5119. }
  5120. /**
  5121. * Move a directory.
  5122. *
  5123. * @param string $from
  5124. * @param string $to
  5125. * @param bool $overwrite
  5126. * @return bool
  5127. * @static
  5128. */
  5129. public static function moveDirectory($from, $to, $overwrite = false)
  5130. {
  5131. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5132. return $instance->moveDirectory($from, $to, $overwrite);
  5133. }
  5134. /**
  5135. * Copy a directory from one location to another.
  5136. *
  5137. * @param string $directory
  5138. * @param string $destination
  5139. * @param int|null $options
  5140. * @return bool
  5141. * @static
  5142. */
  5143. public static function copyDirectory($directory, $destination, $options = null)
  5144. {
  5145. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5146. return $instance->copyDirectory($directory, $destination, $options);
  5147. }
  5148. /**
  5149. * Recursively delete a directory.
  5150. *
  5151. * The directory itself may be optionally preserved.
  5152. *
  5153. * @param string $directory
  5154. * @param bool $preserve
  5155. * @return bool
  5156. * @static
  5157. */
  5158. public static function deleteDirectory($directory, $preserve = false)
  5159. {
  5160. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5161. return $instance->deleteDirectory($directory, $preserve);
  5162. }
  5163. /**
  5164. * Remove all of the directories within a given directory.
  5165. *
  5166. * @param string $directory
  5167. * @return bool
  5168. * @static
  5169. */
  5170. public static function deleteDirectories($directory)
  5171. {
  5172. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5173. return $instance->deleteDirectories($directory);
  5174. }
  5175. /**
  5176. * Empty the specified directory of all files and folders.
  5177. *
  5178. * @param string $directory
  5179. * @return bool
  5180. * @static
  5181. */
  5182. public static function cleanDirectory($directory)
  5183. {
  5184. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5185. return $instance->cleanDirectory($directory);
  5186. }
  5187. /**
  5188. * Register a custom macro.
  5189. *
  5190. * @param string $name
  5191. * @param object|callable $macro
  5192. * @return void
  5193. * @static
  5194. */
  5195. public static function macro($name, $macro)
  5196. {
  5197. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5198. }
  5199. /**
  5200. * Mix another object into the class.
  5201. *
  5202. * @param object $mixin
  5203. * @param bool $replace
  5204. * @return void
  5205. * @throws \ReflectionException
  5206. * @static
  5207. */
  5208. public static function mixin($mixin, $replace = true)
  5209. {
  5210. \Illuminate\Filesystem\Filesystem::mixin($mixin, $replace);
  5211. }
  5212. /**
  5213. * Checks if macro is registered.
  5214. *
  5215. * @param string $name
  5216. * @return bool
  5217. * @static
  5218. */
  5219. public static function hasMacro($name)
  5220. {
  5221. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5222. }
  5223. }
  5224. /**
  5225. *
  5226. *
  5227. * @see \Illuminate\Contracts\Auth\Access\Gate
  5228. */
  5229. class Gate {
  5230. /**
  5231. * Determine if a given ability has been defined.
  5232. *
  5233. * @param string|array $ability
  5234. * @return bool
  5235. * @static
  5236. */
  5237. public static function has($ability)
  5238. {
  5239. /** @var \Illuminate\Auth\Access\Gate $instance */
  5240. return $instance->has($ability);
  5241. }
  5242. /**
  5243. * Define a new ability.
  5244. *
  5245. * @param string $ability
  5246. * @param callable|string $callback
  5247. * @return \Illuminate\Auth\Access\Gate
  5248. * @throws \InvalidArgumentException
  5249. * @static
  5250. */
  5251. public static function define($ability, $callback)
  5252. {
  5253. /** @var \Illuminate\Auth\Access\Gate $instance */
  5254. return $instance->define($ability, $callback);
  5255. }
  5256. /**
  5257. * Define abilities for a resource.
  5258. *
  5259. * @param string $name
  5260. * @param string $class
  5261. * @param array|null $abilities
  5262. * @return \Illuminate\Auth\Access\Gate
  5263. * @static
  5264. */
  5265. public static function resource($name, $class, $abilities = null)
  5266. {
  5267. /** @var \Illuminate\Auth\Access\Gate $instance */
  5268. return $instance->resource($name, $class, $abilities);
  5269. }
  5270. /**
  5271. * Define a policy class for a given class type.
  5272. *
  5273. * @param string $class
  5274. * @param string $policy
  5275. * @return \Illuminate\Auth\Access\Gate
  5276. * @static
  5277. */
  5278. public static function policy($class, $policy)
  5279. {
  5280. /** @var \Illuminate\Auth\Access\Gate $instance */
  5281. return $instance->policy($class, $policy);
  5282. }
  5283. /**
  5284. * Register a callback to run before all Gate checks.
  5285. *
  5286. * @param callable $callback
  5287. * @return \Illuminate\Auth\Access\Gate
  5288. * @static
  5289. */
  5290. public static function before($callback)
  5291. {
  5292. /** @var \Illuminate\Auth\Access\Gate $instance */
  5293. return $instance->before($callback);
  5294. }
  5295. /**
  5296. * Register a callback to run after all Gate checks.
  5297. *
  5298. * @param callable $callback
  5299. * @return \Illuminate\Auth\Access\Gate
  5300. * @static
  5301. */
  5302. public static function after($callback)
  5303. {
  5304. /** @var \Illuminate\Auth\Access\Gate $instance */
  5305. return $instance->after($callback);
  5306. }
  5307. /**
  5308. * Determine if the given ability should be granted for the current user.
  5309. *
  5310. * @param string $ability
  5311. * @param array|mixed $arguments
  5312. * @return bool
  5313. * @static
  5314. */
  5315. public static function allows($ability, $arguments = [])
  5316. {
  5317. /** @var \Illuminate\Auth\Access\Gate $instance */
  5318. return $instance->allows($ability, $arguments);
  5319. }
  5320. /**
  5321. * Determine if the given ability should be denied for the current user.
  5322. *
  5323. * @param string $ability
  5324. * @param array|mixed $arguments
  5325. * @return bool
  5326. * @static
  5327. */
  5328. public static function denies($ability, $arguments = [])
  5329. {
  5330. /** @var \Illuminate\Auth\Access\Gate $instance */
  5331. return $instance->denies($ability, $arguments);
  5332. }
  5333. /**
  5334. * Determine if all of the given abilities should be granted for the current user.
  5335. *
  5336. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5337. * @param array|mixed $arguments
  5338. * @return bool
  5339. * @static
  5340. */
  5341. public static function check($abilities, $arguments = [])
  5342. {
  5343. /** @var \Illuminate\Auth\Access\Gate $instance */
  5344. return $instance->check($abilities, $arguments);
  5345. }
  5346. /**
  5347. * Determine if any one of the given abilities should be granted for the current user.
  5348. *
  5349. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5350. * @param array|mixed $arguments
  5351. * @return bool
  5352. * @static
  5353. */
  5354. public static function any($abilities, $arguments = [])
  5355. {
  5356. /** @var \Illuminate\Auth\Access\Gate $instance */
  5357. return $instance->any($abilities, $arguments);
  5358. }
  5359. /**
  5360. * Determine if all of the given abilities should be denied for the current user.
  5361. *
  5362. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5363. * @param array|mixed $arguments
  5364. * @return bool
  5365. * @static
  5366. */
  5367. public static function none($abilities, $arguments = [])
  5368. {
  5369. /** @var \Illuminate\Auth\Access\Gate $instance */
  5370. return $instance->none($abilities, $arguments);
  5371. }
  5372. /**
  5373. * Determine if the given ability should be granted for the current user.
  5374. *
  5375. * @param string $ability
  5376. * @param array|mixed $arguments
  5377. * @return \Illuminate\Auth\Access\Response
  5378. * @throws \Illuminate\Auth\Access\AuthorizationException
  5379. * @static
  5380. */
  5381. public static function authorize($ability, $arguments = [])
  5382. {
  5383. /** @var \Illuminate\Auth\Access\Gate $instance */
  5384. return $instance->authorize($ability, $arguments);
  5385. }
  5386. /**
  5387. * Get the raw result from the authorization callback.
  5388. *
  5389. * @param string $ability
  5390. * @param array|mixed $arguments
  5391. * @return mixed
  5392. * @static
  5393. */
  5394. public static function raw($ability, $arguments = [])
  5395. {
  5396. /** @var \Illuminate\Auth\Access\Gate $instance */
  5397. return $instance->raw($ability, $arguments);
  5398. }
  5399. /**
  5400. * Get a policy instance for a given class.
  5401. *
  5402. * @param object|string $class
  5403. * @return mixed
  5404. * @static
  5405. */
  5406. public static function getPolicyFor($class)
  5407. {
  5408. /** @var \Illuminate\Auth\Access\Gate $instance */
  5409. return $instance->getPolicyFor($class);
  5410. }
  5411. /**
  5412. * Specify a callback to be used to guess policy names.
  5413. *
  5414. * @param callable $callback
  5415. * @return \Illuminate\Auth\Access\Gate
  5416. * @static
  5417. */
  5418. public static function guessPolicyNamesUsing($callback)
  5419. {
  5420. /** @var \Illuminate\Auth\Access\Gate $instance */
  5421. return $instance->guessPolicyNamesUsing($callback);
  5422. }
  5423. /**
  5424. * Build a policy class instance of the given type.
  5425. *
  5426. * @param object|string $class
  5427. * @return mixed
  5428. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  5429. * @static
  5430. */
  5431. public static function resolvePolicy($class)
  5432. {
  5433. /** @var \Illuminate\Auth\Access\Gate $instance */
  5434. return $instance->resolvePolicy($class);
  5435. }
  5436. /**
  5437. * Get a gate instance for the given user.
  5438. *
  5439. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5440. * @return static
  5441. * @static
  5442. */
  5443. public static function forUser($user)
  5444. {
  5445. /** @var \Illuminate\Auth\Access\Gate $instance */
  5446. return $instance->forUser($user);
  5447. }
  5448. /**
  5449. * Get all of the defined abilities.
  5450. *
  5451. * @return array
  5452. * @static
  5453. */
  5454. public static function abilities()
  5455. {
  5456. /** @var \Illuminate\Auth\Access\Gate $instance */
  5457. return $instance->abilities();
  5458. }
  5459. /**
  5460. * Get all of the defined policies.
  5461. *
  5462. * @return array
  5463. * @static
  5464. */
  5465. public static function policies()
  5466. {
  5467. /** @var \Illuminate\Auth\Access\Gate $instance */
  5468. return $instance->policies();
  5469. }
  5470. }
  5471. /**
  5472. *
  5473. *
  5474. * @see \Illuminate\Hashing\HashManager
  5475. */
  5476. class Hash {
  5477. /**
  5478. * Create an instance of the Bcrypt hash Driver.
  5479. *
  5480. * @return \Illuminate\Hashing\BcryptHasher
  5481. * @static
  5482. */
  5483. public static function createBcryptDriver()
  5484. {
  5485. /** @var \Illuminate\Hashing\HashManager $instance */
  5486. return $instance->createBcryptDriver();
  5487. }
  5488. /**
  5489. * Create an instance of the Argon2i hash Driver.
  5490. *
  5491. * @return \Illuminate\Hashing\ArgonHasher
  5492. * @static
  5493. */
  5494. public static function createArgonDriver()
  5495. {
  5496. /** @var \Illuminate\Hashing\HashManager $instance */
  5497. return $instance->createArgonDriver();
  5498. }
  5499. /**
  5500. * Create an instance of the Argon2id hash Driver.
  5501. *
  5502. * @return \Illuminate\Hashing\Argon2IdHasher
  5503. * @static
  5504. */
  5505. public static function createArgon2idDriver()
  5506. {
  5507. /** @var \Illuminate\Hashing\HashManager $instance */
  5508. return $instance->createArgon2idDriver();
  5509. }
  5510. /**
  5511. * Get information about the given hashed value.
  5512. *
  5513. * @param string $hashedValue
  5514. * @return array
  5515. * @static
  5516. */
  5517. public static function info($hashedValue)
  5518. {
  5519. /** @var \Illuminate\Hashing\HashManager $instance */
  5520. return $instance->info($hashedValue);
  5521. }
  5522. /**
  5523. * Hash the given value.
  5524. *
  5525. * @param string $value
  5526. * @param array $options
  5527. * @return string
  5528. * @static
  5529. */
  5530. public static function make($value, $options = [])
  5531. {
  5532. /** @var \Illuminate\Hashing\HashManager $instance */
  5533. return $instance->make($value, $options);
  5534. }
  5535. /**
  5536. * Check the given plain value against a hash.
  5537. *
  5538. * @param string $value
  5539. * @param string $hashedValue
  5540. * @param array $options
  5541. * @return bool
  5542. * @static
  5543. */
  5544. public static function check($value, $hashedValue, $options = [])
  5545. {
  5546. /** @var \Illuminate\Hashing\HashManager $instance */
  5547. return $instance->check($value, $hashedValue, $options);
  5548. }
  5549. /**
  5550. * Check if the given hash has been hashed using the given options.
  5551. *
  5552. * @param string $hashedValue
  5553. * @param array $options
  5554. * @return bool
  5555. * @static
  5556. */
  5557. public static function needsRehash($hashedValue, $options = [])
  5558. {
  5559. /** @var \Illuminate\Hashing\HashManager $instance */
  5560. return $instance->needsRehash($hashedValue, $options);
  5561. }
  5562. /**
  5563. * Get the default driver name.
  5564. *
  5565. * @return string
  5566. * @static
  5567. */
  5568. public static function getDefaultDriver()
  5569. {
  5570. /** @var \Illuminate\Hashing\HashManager $instance */
  5571. return $instance->getDefaultDriver();
  5572. }
  5573. /**
  5574. * Get a driver instance.
  5575. *
  5576. * @param string $driver
  5577. * @return mixed
  5578. * @throws \InvalidArgumentException
  5579. * @static
  5580. */
  5581. public static function driver($driver = null)
  5582. {
  5583. //Method inherited from \Illuminate\Support\Manager
  5584. /** @var \Illuminate\Hashing\HashManager $instance */
  5585. return $instance->driver($driver);
  5586. }
  5587. /**
  5588. * Register a custom driver creator Closure.
  5589. *
  5590. * @param string $driver
  5591. * @param \Closure $callback
  5592. * @return \Illuminate\Hashing\HashManager
  5593. * @static
  5594. */
  5595. public static function extend($driver, $callback)
  5596. {
  5597. //Method inherited from \Illuminate\Support\Manager
  5598. /** @var \Illuminate\Hashing\HashManager $instance */
  5599. return $instance->extend($driver, $callback);
  5600. }
  5601. /**
  5602. * Get all of the created "drivers".
  5603. *
  5604. * @return array
  5605. * @static
  5606. */
  5607. public static function getDrivers()
  5608. {
  5609. //Method inherited from \Illuminate\Support\Manager
  5610. /** @var \Illuminate\Hashing\HashManager $instance */
  5611. return $instance->getDrivers();
  5612. }
  5613. }
  5614. /**
  5615. *
  5616. *
  5617. * @see \Illuminate\Translation\Translator
  5618. */
  5619. class Lang {
  5620. /**
  5621. * Determine if a translation exists for a given locale.
  5622. *
  5623. * @param string $key
  5624. * @param string|null $locale
  5625. * @return bool
  5626. * @static
  5627. */
  5628. public static function hasForLocale($key, $locale = null)
  5629. {
  5630. /** @var \Illuminate\Translation\Translator $instance */
  5631. return $instance->hasForLocale($key, $locale);
  5632. }
  5633. /**
  5634. * Determine if a translation exists.
  5635. *
  5636. * @param string $key
  5637. * @param string|null $locale
  5638. * @param bool $fallback
  5639. * @return bool
  5640. * @static
  5641. */
  5642. public static function has($key, $locale = null, $fallback = true)
  5643. {
  5644. /** @var \Illuminate\Translation\Translator $instance */
  5645. return $instance->has($key, $locale, $fallback);
  5646. }
  5647. /**
  5648. * Get the translation for a given key.
  5649. *
  5650. * @param string $key
  5651. * @param array $replace
  5652. * @param string|null $locale
  5653. * @return string|array
  5654. * @static
  5655. */
  5656. public static function trans($key, $replace = [], $locale = null)
  5657. {
  5658. /** @var \Illuminate\Translation\Translator $instance */
  5659. return $instance->trans($key, $replace, $locale);
  5660. }
  5661. /**
  5662. * Get the translation for the given key.
  5663. *
  5664. * @param string $key
  5665. * @param array $replace
  5666. * @param string|null $locale
  5667. * @param bool $fallback
  5668. * @return string|array
  5669. * @static
  5670. */
  5671. public static function get($key, $replace = [], $locale = null, $fallback = true)
  5672. {
  5673. /** @var \Illuminate\Translation\Translator $instance */
  5674. return $instance->get($key, $replace, $locale, $fallback);
  5675. }
  5676. /**
  5677. * Get the translation for a given key from the JSON translation files.
  5678. *
  5679. * @param string $key
  5680. * @param array $replace
  5681. * @param string|null $locale
  5682. * @return string|array
  5683. * @static
  5684. */
  5685. public static function getFromJson($key, $replace = [], $locale = null)
  5686. {
  5687. /** @var \Illuminate\Translation\Translator $instance */
  5688. return $instance->getFromJson($key, $replace, $locale);
  5689. }
  5690. /**
  5691. * Get a translation according to an integer value.
  5692. *
  5693. * @param string $key
  5694. * @param int|array|\Countable $number
  5695. * @param array $replace
  5696. * @param string|null $locale
  5697. * @return string
  5698. * @static
  5699. */
  5700. public static function transChoice($key, $number, $replace = [], $locale = null)
  5701. {
  5702. /** @var \Illuminate\Translation\Translator $instance */
  5703. return $instance->transChoice($key, $number, $replace, $locale);
  5704. }
  5705. /**
  5706. * Get a translation according to an integer value.
  5707. *
  5708. * @param string $key
  5709. * @param int|array|\Countable $number
  5710. * @param array $replace
  5711. * @param string|null $locale
  5712. * @return string
  5713. * @static
  5714. */
  5715. public static function choice($key, $number, $replace = [], $locale = null)
  5716. {
  5717. /** @var \Illuminate\Translation\Translator $instance */
  5718. return $instance->choice($key, $number, $replace, $locale);
  5719. }
  5720. /**
  5721. * Add translation lines to the given locale.
  5722. *
  5723. * @param array $lines
  5724. * @param string $locale
  5725. * @param string $namespace
  5726. * @return void
  5727. * @static
  5728. */
  5729. public static function addLines($lines, $locale, $namespace = '*')
  5730. {
  5731. /** @var \Illuminate\Translation\Translator $instance */
  5732. $instance->addLines($lines, $locale, $namespace);
  5733. }
  5734. /**
  5735. * Load the specified language group.
  5736. *
  5737. * @param string $namespace
  5738. * @param string $group
  5739. * @param string $locale
  5740. * @return void
  5741. * @static
  5742. */
  5743. public static function load($namespace, $group, $locale)
  5744. {
  5745. /** @var \Illuminate\Translation\Translator $instance */
  5746. $instance->load($namespace, $group, $locale);
  5747. }
  5748. /**
  5749. * Add a new namespace to the loader.
  5750. *
  5751. * @param string $namespace
  5752. * @param string $hint
  5753. * @return void
  5754. * @static
  5755. */
  5756. public static function addNamespace($namespace, $hint)
  5757. {
  5758. /** @var \Illuminate\Translation\Translator $instance */
  5759. $instance->addNamespace($namespace, $hint);
  5760. }
  5761. /**
  5762. * Add a new JSON path to the loader.
  5763. *
  5764. * @param string $path
  5765. * @return void
  5766. * @static
  5767. */
  5768. public static function addJsonPath($path)
  5769. {
  5770. /** @var \Illuminate\Translation\Translator $instance */
  5771. $instance->addJsonPath($path);
  5772. }
  5773. /**
  5774. * Parse a key into namespace, group, and item.
  5775. *
  5776. * @param string $key
  5777. * @return array
  5778. * @static
  5779. */
  5780. public static function parseKey($key)
  5781. {
  5782. /** @var \Illuminate\Translation\Translator $instance */
  5783. return $instance->parseKey($key);
  5784. }
  5785. /**
  5786. * Get the message selector instance.
  5787. *
  5788. * @return \Illuminate\Translation\MessageSelector
  5789. * @static
  5790. */
  5791. public static function getSelector()
  5792. {
  5793. /** @var \Illuminate\Translation\Translator $instance */
  5794. return $instance->getSelector();
  5795. }
  5796. /**
  5797. * Set the message selector instance.
  5798. *
  5799. * @param \Illuminate\Translation\MessageSelector $selector
  5800. * @return void
  5801. * @static
  5802. */
  5803. public static function setSelector($selector)
  5804. {
  5805. /** @var \Illuminate\Translation\Translator $instance */
  5806. $instance->setSelector($selector);
  5807. }
  5808. /**
  5809. * Get the language line loader implementation.
  5810. *
  5811. * @return \Illuminate\Contracts\Translation\Loader
  5812. * @static
  5813. */
  5814. public static function getLoader()
  5815. {
  5816. /** @var \Illuminate\Translation\Translator $instance */
  5817. return $instance->getLoader();
  5818. }
  5819. /**
  5820. * Get the default locale being used.
  5821. *
  5822. * @return string
  5823. * @static
  5824. */
  5825. public static function locale()
  5826. {
  5827. /** @var \Illuminate\Translation\Translator $instance */
  5828. return $instance->locale();
  5829. }
  5830. /**
  5831. * Get the default locale being used.
  5832. *
  5833. * @return string
  5834. * @static
  5835. */
  5836. public static function getLocale()
  5837. {
  5838. /** @var \Illuminate\Translation\Translator $instance */
  5839. return $instance->getLocale();
  5840. }
  5841. /**
  5842. * Set the default locale.
  5843. *
  5844. * @param string $locale
  5845. * @return void
  5846. * @static
  5847. */
  5848. public static function setLocale($locale)
  5849. {
  5850. /** @var \Illuminate\Translation\Translator $instance */
  5851. $instance->setLocale($locale);
  5852. }
  5853. /**
  5854. * Get the fallback locale being used.
  5855. *
  5856. * @return string
  5857. * @static
  5858. */
  5859. public static function getFallback()
  5860. {
  5861. /** @var \Illuminate\Translation\Translator $instance */
  5862. return $instance->getFallback();
  5863. }
  5864. /**
  5865. * Set the fallback locale being used.
  5866. *
  5867. * @param string $fallback
  5868. * @return void
  5869. * @static
  5870. */
  5871. public static function setFallback($fallback)
  5872. {
  5873. /** @var \Illuminate\Translation\Translator $instance */
  5874. $instance->setFallback($fallback);
  5875. }
  5876. /**
  5877. * Set the loaded translation groups.
  5878. *
  5879. * @param array $loaded
  5880. * @return void
  5881. * @static
  5882. */
  5883. public static function setLoaded($loaded)
  5884. {
  5885. /** @var \Illuminate\Translation\Translator $instance */
  5886. $instance->setLoaded($loaded);
  5887. }
  5888. /**
  5889. * Set the parsed value of a key.
  5890. *
  5891. * @param string $key
  5892. * @param array $parsed
  5893. * @return void
  5894. * @static
  5895. */
  5896. public static function setParsedKey($key, $parsed)
  5897. {
  5898. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5899. /** @var \Illuminate\Translation\Translator $instance */
  5900. $instance->setParsedKey($key, $parsed);
  5901. }
  5902. /**
  5903. * Register a custom macro.
  5904. *
  5905. * @param string $name
  5906. * @param object|callable $macro
  5907. * @return void
  5908. * @static
  5909. */
  5910. public static function macro($name, $macro)
  5911. {
  5912. \Illuminate\Translation\Translator::macro($name, $macro);
  5913. }
  5914. /**
  5915. * Mix another object into the class.
  5916. *
  5917. * @param object $mixin
  5918. * @param bool $replace
  5919. * @return void
  5920. * @throws \ReflectionException
  5921. * @static
  5922. */
  5923. public static function mixin($mixin, $replace = true)
  5924. {
  5925. \Illuminate\Translation\Translator::mixin($mixin, $replace);
  5926. }
  5927. /**
  5928. * Checks if macro is registered.
  5929. *
  5930. * @param string $name
  5931. * @return bool
  5932. * @static
  5933. */
  5934. public static function hasMacro($name)
  5935. {
  5936. return \Illuminate\Translation\Translator::hasMacro($name);
  5937. }
  5938. }
  5939. /**
  5940. *
  5941. *
  5942. * @see \Illuminate\Log\Logger
  5943. */
  5944. class Log {
  5945. /**
  5946. * Adds a log record at the DEBUG level.
  5947. *
  5948. * @param string $message The log message
  5949. * @param array $context The log context
  5950. * @return bool Whether the record has been processed
  5951. * @static
  5952. */
  5953. public static function debug($message, $context = [])
  5954. {
  5955. /** @var \Monolog\Logger $instance */
  5956. return $instance->addDebug($message, $context);
  5957. }
  5958. /**
  5959. * Adds a log record at the INFO level.
  5960. *
  5961. * @param string $message The log message
  5962. * @param array $context The log context
  5963. * @return bool Whether the record has been processed
  5964. * @static
  5965. */
  5966. public static function info($message, $context = [])
  5967. {
  5968. /** @var \Monolog\Logger $instance */
  5969. return $instance->addInfo($message, $context);
  5970. }
  5971. /**
  5972. * Adds a log record at the NOTICE level.
  5973. *
  5974. * @param string $message The log message
  5975. * @param array $context The log context
  5976. * @return bool Whether the record has been processed
  5977. * @static
  5978. */
  5979. public static function notice($message, $context = [])
  5980. {
  5981. /** @var \Monolog\Logger $instance */
  5982. return $instance->addNotice($message, $context);
  5983. }
  5984. /**
  5985. * Adds a log record at the WARNING level.
  5986. *
  5987. * @param string $message The log message
  5988. * @param array $context The log context
  5989. * @return bool Whether the record has been processed
  5990. * @static
  5991. */
  5992. public static function warning($message, $context = [])
  5993. {
  5994. /** @var \Monolog\Logger $instance */
  5995. return $instance->addWarning($message, $context);
  5996. }
  5997. /**
  5998. * Adds a log record at the ERROR level.
  5999. *
  6000. * @param string $message The log message
  6001. * @param array $context The log context
  6002. * @return bool Whether the record has been processed
  6003. * @static
  6004. */
  6005. public static function error($message, $context = [])
  6006. {
  6007. /** @var \Monolog\Logger $instance */
  6008. return $instance->addError($message, $context);
  6009. }
  6010. /**
  6011. * Adds a log record at the CRITICAL level.
  6012. *
  6013. * @param string $message The log message
  6014. * @param array $context The log context
  6015. * @return bool Whether the record has been processed
  6016. * @static
  6017. */
  6018. public static function critical($message, $context = [])
  6019. {
  6020. /** @var \Monolog\Logger $instance */
  6021. return $instance->addCritical($message, $context);
  6022. }
  6023. /**
  6024. * Adds a log record at the ALERT level.
  6025. *
  6026. * @param string $message The log message
  6027. * @param array $context The log context
  6028. * @return bool Whether the record has been processed
  6029. * @static
  6030. */
  6031. public static function alert($message, $context = [])
  6032. {
  6033. /** @var \Monolog\Logger $instance */
  6034. return $instance->addAlert($message, $context);
  6035. }
  6036. /**
  6037. * Adds a log record at the EMERGENCY level.
  6038. *
  6039. * @param string $message The log message
  6040. * @param array $context The log context
  6041. * @return bool Whether the record has been processed
  6042. * @static
  6043. */
  6044. public static function emergency($message, $context = [])
  6045. {
  6046. /** @var \Monolog\Logger $instance */
  6047. return $instance->addEmergency($message, $context);
  6048. }
  6049. /**
  6050. * Create a new, on-demand aggregate logger instance.
  6051. *
  6052. * @param array $channels
  6053. * @param string|null $channel
  6054. * @return \Psr\Log\LoggerInterface
  6055. * @static
  6056. */
  6057. public static function stack($channels, $channel = null)
  6058. {
  6059. /** @var \Illuminate\Log\LogManager $instance */
  6060. return $instance->stack($channels, $channel);
  6061. }
  6062. /**
  6063. * Get a log channel instance.
  6064. *
  6065. * @param string|null $channel
  6066. * @return mixed
  6067. * @static
  6068. */
  6069. public static function channel($channel = null)
  6070. {
  6071. /** @var \Illuminate\Log\LogManager $instance */
  6072. return $instance->channel($channel);
  6073. }
  6074. /**
  6075. * Get a log driver instance.
  6076. *
  6077. * @param string|null $driver
  6078. * @return mixed
  6079. * @static
  6080. */
  6081. public static function driver($driver = null)
  6082. {
  6083. /** @var \Illuminate\Log\LogManager $instance */
  6084. return $instance->driver($driver);
  6085. }
  6086. /**
  6087. * Get the default log driver name.
  6088. *
  6089. * @return string
  6090. * @static
  6091. */
  6092. public static function getDefaultDriver()
  6093. {
  6094. /** @var \Illuminate\Log\LogManager $instance */
  6095. return $instance->getDefaultDriver();
  6096. }
  6097. /**
  6098. * Set the default log driver name.
  6099. *
  6100. * @param string $name
  6101. * @return void
  6102. * @static
  6103. */
  6104. public static function setDefaultDriver($name)
  6105. {
  6106. /** @var \Illuminate\Log\LogManager $instance */
  6107. $instance->setDefaultDriver($name);
  6108. }
  6109. /**
  6110. * Register a custom driver creator Closure.
  6111. *
  6112. * @param string $driver
  6113. * @param \Closure $callback
  6114. * @return \Illuminate\Log\LogManager
  6115. * @static
  6116. */
  6117. public static function extend($driver, $callback)
  6118. {
  6119. /** @var \Illuminate\Log\LogManager $instance */
  6120. return $instance->extend($driver, $callback);
  6121. }
  6122. /**
  6123. * Logs with an arbitrary level.
  6124. *
  6125. * @param mixed $level
  6126. * @param string $message
  6127. * @param array $context
  6128. * @return void
  6129. * @static
  6130. */
  6131. public static function log($level, $message, $context = [])
  6132. {
  6133. /** @var \Illuminate\Log\LogManager $instance */
  6134. $instance->log($level, $message, $context);
  6135. }
  6136. }
  6137. /**
  6138. *
  6139. *
  6140. * @see \Illuminate\Mail\Mailer
  6141. * @see \Illuminate\Support\Testing\Fakes\MailFake
  6142. */
  6143. class Mail {
  6144. /**
  6145. * Set the global from address and name.
  6146. *
  6147. * @param string $address
  6148. * @param string|null $name
  6149. * @return void
  6150. * @static
  6151. */
  6152. public static function alwaysFrom($address, $name = null)
  6153. {
  6154. /** @var \Illuminate\Mail\Mailer $instance */
  6155. $instance->alwaysFrom($address, $name);
  6156. }
  6157. /**
  6158. * Set the global reply-to address and name.
  6159. *
  6160. * @param string $address
  6161. * @param string|null $name
  6162. * @return void
  6163. * @static
  6164. */
  6165. public static function alwaysReplyTo($address, $name = null)
  6166. {
  6167. /** @var \Illuminate\Mail\Mailer $instance */
  6168. $instance->alwaysReplyTo($address, $name);
  6169. }
  6170. /**
  6171. * Set the global to address and name.
  6172. *
  6173. * @param string $address
  6174. * @param string|null $name
  6175. * @return void
  6176. * @static
  6177. */
  6178. public static function alwaysTo($address, $name = null)
  6179. {
  6180. /** @var \Illuminate\Mail\Mailer $instance */
  6181. $instance->alwaysTo($address, $name);
  6182. }
  6183. /**
  6184. * Begin the process of mailing a mailable class instance.
  6185. *
  6186. * @param mixed $users
  6187. * @return \Illuminate\Mail\PendingMail
  6188. * @static
  6189. */
  6190. public static function to($users)
  6191. {
  6192. /** @var \Illuminate\Mail\Mailer $instance */
  6193. return $instance->to($users);
  6194. }
  6195. /**
  6196. * Begin the process of mailing a mailable class instance.
  6197. *
  6198. * @param mixed $users
  6199. * @return \Illuminate\Mail\PendingMail
  6200. * @static
  6201. */
  6202. public static function cc($users)
  6203. {
  6204. /** @var \Illuminate\Mail\Mailer $instance */
  6205. return $instance->cc($users);
  6206. }
  6207. /**
  6208. * Begin the process of mailing a mailable class instance.
  6209. *
  6210. * @param mixed $users
  6211. * @return \Illuminate\Mail\PendingMail
  6212. * @static
  6213. */
  6214. public static function bcc($users)
  6215. {
  6216. /** @var \Illuminate\Mail\Mailer $instance */
  6217. return $instance->bcc($users);
  6218. }
  6219. /**
  6220. * Send a new message with only an HTML part.
  6221. *
  6222. * @param string $html
  6223. * @param mixed $callback
  6224. * @return void
  6225. * @static
  6226. */
  6227. public static function html($html, $callback)
  6228. {
  6229. /** @var \Illuminate\Mail\Mailer $instance */
  6230. $instance->html($html, $callback);
  6231. }
  6232. /**
  6233. * Send a new message with only a raw text part.
  6234. *
  6235. * @param string $text
  6236. * @param mixed $callback
  6237. * @return void
  6238. * @static
  6239. */
  6240. public static function raw($text, $callback)
  6241. {
  6242. /** @var \Illuminate\Mail\Mailer $instance */
  6243. $instance->raw($text, $callback);
  6244. }
  6245. /**
  6246. * Send a new message with only a plain part.
  6247. *
  6248. * @param string $view
  6249. * @param array $data
  6250. * @param mixed $callback
  6251. * @return void
  6252. * @static
  6253. */
  6254. public static function plain($view, $data, $callback)
  6255. {
  6256. /** @var \Illuminate\Mail\Mailer $instance */
  6257. $instance->plain($view, $data, $callback);
  6258. }
  6259. /**
  6260. * Render the given message as a view.
  6261. *
  6262. * @param string|array $view
  6263. * @param array $data
  6264. * @return string
  6265. * @static
  6266. */
  6267. public static function render($view, $data = [])
  6268. {
  6269. /** @var \Illuminate\Mail\Mailer $instance */
  6270. return $instance->render($view, $data);
  6271. }
  6272. /**
  6273. * Send a new message using a view.
  6274. *
  6275. * @param string|array|\Illuminate\Contracts\Mail\Mailable $view
  6276. * @param array $data
  6277. * @param \Closure|string|null $callback
  6278. * @return void
  6279. * @static
  6280. */
  6281. public static function send($view, $data = [], $callback = null)
  6282. {
  6283. /** @var \Illuminate\Mail\Mailer $instance */
  6284. $instance->send($view, $data, $callback);
  6285. }
  6286. /**
  6287. * Queue a new e-mail message for sending.
  6288. *
  6289. * @param \Illuminate\Contracts\Mail\Mailable $view
  6290. * @param string|null $queue
  6291. * @return mixed
  6292. * @throws \InvalidArgumentException
  6293. * @static
  6294. */
  6295. public static function queue($view, $queue = null)
  6296. {
  6297. /** @var \Illuminate\Mail\Mailer $instance */
  6298. return $instance->queue($view, $queue);
  6299. }
  6300. /**
  6301. * Queue a new e-mail message for sending on the given queue.
  6302. *
  6303. * @param string $queue
  6304. * @param \Illuminate\Contracts\Mail\Mailable $view
  6305. * @return mixed
  6306. * @static
  6307. */
  6308. public static function onQueue($queue, $view)
  6309. {
  6310. /** @var \Illuminate\Mail\Mailer $instance */
  6311. return $instance->onQueue($queue, $view);
  6312. }
  6313. /**
  6314. * Queue a new e-mail message for sending on the given queue.
  6315. *
  6316. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6317. *
  6318. * @param string $queue
  6319. * @param \Illuminate\Contracts\Mail\Mailable $view
  6320. * @return mixed
  6321. * @static
  6322. */
  6323. public static function queueOn($queue, $view)
  6324. {
  6325. /** @var \Illuminate\Mail\Mailer $instance */
  6326. return $instance->queueOn($queue, $view);
  6327. }
  6328. /**
  6329. * Queue a new e-mail message for sending after (n) seconds.
  6330. *
  6331. * @param \DateTimeInterface|\DateInterval|int $delay
  6332. * @param \Illuminate\Contracts\Mail\Mailable $view
  6333. * @param string|null $queue
  6334. * @return mixed
  6335. * @throws \InvalidArgumentException
  6336. * @static
  6337. */
  6338. public static function later($delay, $view, $queue = null)
  6339. {
  6340. /** @var \Illuminate\Mail\Mailer $instance */
  6341. return $instance->later($delay, $view, $queue);
  6342. }
  6343. /**
  6344. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6345. *
  6346. * @param string $queue
  6347. * @param \DateTimeInterface|\DateInterval|int $delay
  6348. * @param \Illuminate\Contracts\Mail\Mailable $view
  6349. * @return mixed
  6350. * @static
  6351. */
  6352. public static function laterOn($queue, $delay, $view)
  6353. {
  6354. /** @var \Illuminate\Mail\Mailer $instance */
  6355. return $instance->laterOn($queue, $delay, $view);
  6356. }
  6357. /**
  6358. * Get the array of failed recipients.
  6359. *
  6360. * @return array
  6361. * @static
  6362. */
  6363. public static function failures()
  6364. {
  6365. /** @var \Illuminate\Mail\Mailer $instance */
  6366. return $instance->failures();
  6367. }
  6368. /**
  6369. * Get the Swift Mailer instance.
  6370. *
  6371. * @return \Swift_Mailer
  6372. * @static
  6373. */
  6374. public static function getSwiftMailer()
  6375. {
  6376. /** @var \Illuminate\Mail\Mailer $instance */
  6377. return $instance->getSwiftMailer();
  6378. }
  6379. /**
  6380. * Get the view factory instance.
  6381. *
  6382. * @return \Illuminate\Contracts\View\Factory
  6383. * @static
  6384. */
  6385. public static function getViewFactory()
  6386. {
  6387. /** @var \Illuminate\Mail\Mailer $instance */
  6388. return $instance->getViewFactory();
  6389. }
  6390. /**
  6391. * Set the Swift Mailer instance.
  6392. *
  6393. * @param \Swift_Mailer $swift
  6394. * @return void
  6395. * @static
  6396. */
  6397. public static function setSwiftMailer($swift)
  6398. {
  6399. /** @var \Illuminate\Mail\Mailer $instance */
  6400. $instance->setSwiftMailer($swift);
  6401. }
  6402. /**
  6403. * Set the queue manager instance.
  6404. *
  6405. * @param \Illuminate\Contracts\Queue\Factory $queue
  6406. * @return \Illuminate\Mail\Mailer
  6407. * @static
  6408. */
  6409. public static function setQueue($queue)
  6410. {
  6411. /** @var \Illuminate\Mail\Mailer $instance */
  6412. return $instance->setQueue($queue);
  6413. }
  6414. /**
  6415. * Register a custom macro.
  6416. *
  6417. * @param string $name
  6418. * @param object|callable $macro
  6419. * @return void
  6420. * @static
  6421. */
  6422. public static function macro($name, $macro)
  6423. {
  6424. \Illuminate\Mail\Mailer::macro($name, $macro);
  6425. }
  6426. /**
  6427. * Mix another object into the class.
  6428. *
  6429. * @param object $mixin
  6430. * @param bool $replace
  6431. * @return void
  6432. * @throws \ReflectionException
  6433. * @static
  6434. */
  6435. public static function mixin($mixin, $replace = true)
  6436. {
  6437. \Illuminate\Mail\Mailer::mixin($mixin, $replace);
  6438. }
  6439. /**
  6440. * Checks if macro is registered.
  6441. *
  6442. * @param string $name
  6443. * @return bool
  6444. * @static
  6445. */
  6446. public static function hasMacro($name)
  6447. {
  6448. return \Illuminate\Mail\Mailer::hasMacro($name);
  6449. }
  6450. /**
  6451. * Assert if a mailable was sent based on a truth-test callback.
  6452. *
  6453. * @param string $mailable
  6454. * @param callable|int|null $callback
  6455. * @return void
  6456. * @static
  6457. */
  6458. public static function assertSent($mailable, $callback = null)
  6459. {
  6460. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6461. $instance->assertSent($mailable, $callback);
  6462. }
  6463. /**
  6464. * Determine if a mailable was not sent based on a truth-test callback.
  6465. *
  6466. * @param string $mailable
  6467. * @param callable|null $callback
  6468. * @return void
  6469. * @static
  6470. */
  6471. public static function assertNotSent($mailable, $callback = null)
  6472. {
  6473. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6474. $instance->assertNotSent($mailable, $callback);
  6475. }
  6476. /**
  6477. * Assert that no mailables were sent.
  6478. *
  6479. * @return void
  6480. * @static
  6481. */
  6482. public static function assertNothingSent()
  6483. {
  6484. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6485. $instance->assertNothingSent();
  6486. }
  6487. /**
  6488. * Assert if a mailable was queued based on a truth-test callback.
  6489. *
  6490. * @param string $mailable
  6491. * @param callable|int|null $callback
  6492. * @return void
  6493. * @static
  6494. */
  6495. public static function assertQueued($mailable, $callback = null)
  6496. {
  6497. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6498. $instance->assertQueued($mailable, $callback);
  6499. }
  6500. /**
  6501. * Determine if a mailable was not queued based on a truth-test callback.
  6502. *
  6503. * @param string $mailable
  6504. * @param callable|null $callback
  6505. * @return void
  6506. * @static
  6507. */
  6508. public static function assertNotQueued($mailable, $callback = null)
  6509. {
  6510. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6511. $instance->assertNotQueued($mailable, $callback);
  6512. }
  6513. /**
  6514. * Assert that no mailables were queued.
  6515. *
  6516. * @return void
  6517. * @static
  6518. */
  6519. public static function assertNothingQueued()
  6520. {
  6521. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6522. $instance->assertNothingQueued();
  6523. }
  6524. /**
  6525. * Get all of the mailables matching a truth-test callback.
  6526. *
  6527. * @param string $mailable
  6528. * @param callable|null $callback
  6529. * @return \Illuminate\Support\Collection
  6530. * @static
  6531. */
  6532. public static function sent($mailable, $callback = null)
  6533. {
  6534. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6535. return $instance->sent($mailable, $callback);
  6536. }
  6537. /**
  6538. * Determine if the given mailable has been sent.
  6539. *
  6540. * @param string $mailable
  6541. * @return bool
  6542. * @static
  6543. */
  6544. public static function hasSent($mailable)
  6545. {
  6546. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6547. return $instance->hasSent($mailable);
  6548. }
  6549. /**
  6550. * Get all of the queued mailables matching a truth-test callback.
  6551. *
  6552. * @param string $mailable
  6553. * @param callable|null $callback
  6554. * @return \Illuminate\Support\Collection
  6555. * @static
  6556. */
  6557. public static function queued($mailable, $callback = null)
  6558. {
  6559. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6560. return $instance->queued($mailable, $callback);
  6561. }
  6562. /**
  6563. * Determine if the given mailable has been queued.
  6564. *
  6565. * @param string $mailable
  6566. * @return bool
  6567. * @static
  6568. */
  6569. public static function hasQueued($mailable)
  6570. {
  6571. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6572. return $instance->hasQueued($mailable);
  6573. }
  6574. }
  6575. /**
  6576. *
  6577. *
  6578. * @see \Illuminate\Notifications\ChannelManager
  6579. */
  6580. class Notification {
  6581. /**
  6582. * Send the given notification to the given notifiable entities.
  6583. *
  6584. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6585. * @param mixed $notification
  6586. * @return void
  6587. * @static
  6588. */
  6589. public static function send($notifiables, $notification)
  6590. {
  6591. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6592. $instance->send($notifiables, $notification);
  6593. }
  6594. /**
  6595. * Send the given notification immediately.
  6596. *
  6597. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6598. * @param mixed $notification
  6599. * @param array|null $channels
  6600. * @return void
  6601. * @static
  6602. */
  6603. public static function sendNow($notifiables, $notification, $channels = null)
  6604. {
  6605. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6606. $instance->sendNow($notifiables, $notification, $channels);
  6607. }
  6608. /**
  6609. * Get a channel instance.
  6610. *
  6611. * @param string|null $name
  6612. * @return mixed
  6613. * @static
  6614. */
  6615. public static function channel($name = null)
  6616. {
  6617. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6618. return $instance->channel($name);
  6619. }
  6620. /**
  6621. * Get the default channel driver name.
  6622. *
  6623. * @return string
  6624. * @static
  6625. */
  6626. public static function getDefaultDriver()
  6627. {
  6628. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6629. return $instance->getDefaultDriver();
  6630. }
  6631. /**
  6632. * Get the default channel driver name.
  6633. *
  6634. * @return string
  6635. * @static
  6636. */
  6637. public static function deliversVia()
  6638. {
  6639. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6640. return $instance->deliversVia();
  6641. }
  6642. /**
  6643. * Set the default channel driver name.
  6644. *
  6645. * @param string $channel
  6646. * @return void
  6647. * @static
  6648. */
  6649. public static function deliverVia($channel)
  6650. {
  6651. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6652. $instance->deliverVia($channel);
  6653. }
  6654. /**
  6655. * Set the locale of notifications.
  6656. *
  6657. * @param string $locale
  6658. * @return \Illuminate\Notifications\ChannelManager
  6659. * @static
  6660. */
  6661. public static function locale($locale)
  6662. {
  6663. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6664. return $instance->locale($locale);
  6665. }
  6666. /**
  6667. * Get a driver instance.
  6668. *
  6669. * @param string $driver
  6670. * @return mixed
  6671. * @throws \InvalidArgumentException
  6672. * @static
  6673. */
  6674. public static function driver($driver = null)
  6675. {
  6676. //Method inherited from \Illuminate\Support\Manager
  6677. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6678. return $instance->driver($driver);
  6679. }
  6680. /**
  6681. * Register a custom driver creator Closure.
  6682. *
  6683. * @param string $driver
  6684. * @param \Closure $callback
  6685. * @return \Illuminate\Notifications\ChannelManager
  6686. * @static
  6687. */
  6688. public static function extend($driver, $callback)
  6689. {
  6690. //Method inherited from \Illuminate\Support\Manager
  6691. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6692. return $instance->extend($driver, $callback);
  6693. }
  6694. /**
  6695. * Get all of the created "drivers".
  6696. *
  6697. * @return array
  6698. * @static
  6699. */
  6700. public static function getDrivers()
  6701. {
  6702. //Method inherited from \Illuminate\Support\Manager
  6703. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6704. return $instance->getDrivers();
  6705. }
  6706. /**
  6707. * Assert if a notification was sent based on a truth-test callback.
  6708. *
  6709. * @param mixed $notifiable
  6710. * @param string $notification
  6711. * @param callable|null $callback
  6712. * @return void
  6713. * @static
  6714. */
  6715. public static function assertSentTo($notifiable, $notification, $callback = null)
  6716. {
  6717. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6718. $instance->assertSentTo($notifiable, $notification, $callback);
  6719. }
  6720. /**
  6721. * Assert if a notification was sent a number of times.
  6722. *
  6723. * @param mixed $notifiable
  6724. * @param string $notification
  6725. * @param int $times
  6726. * @return void
  6727. * @static
  6728. */
  6729. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6730. {
  6731. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6732. $instance->assertSentToTimes($notifiable, $notification, $times);
  6733. }
  6734. /**
  6735. * Determine if a notification was sent based on a truth-test callback.
  6736. *
  6737. * @param mixed $notifiable
  6738. * @param string $notification
  6739. * @param callable|null $callback
  6740. * @return void
  6741. * @static
  6742. */
  6743. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6744. {
  6745. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6746. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6747. }
  6748. /**
  6749. * Assert that no notifications were sent.
  6750. *
  6751. * @return void
  6752. * @static
  6753. */
  6754. public static function assertNothingSent()
  6755. {
  6756. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6757. $instance->assertNothingSent();
  6758. }
  6759. /**
  6760. * Assert the total amount of times a notification was sent.
  6761. *
  6762. * @param int $expectedCount
  6763. * @param string $notification
  6764. * @return void
  6765. * @static
  6766. */
  6767. public static function assertTimesSent($expectedCount, $notification)
  6768. {
  6769. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6770. $instance->assertTimesSent($expectedCount, $notification);
  6771. }
  6772. /**
  6773. * Get all of the notifications matching a truth-test callback.
  6774. *
  6775. * @param mixed $notifiable
  6776. * @param string $notification
  6777. * @param callable|null $callback
  6778. * @return \Illuminate\Support\Collection
  6779. * @static
  6780. */
  6781. public static function sent($notifiable, $notification, $callback = null)
  6782. {
  6783. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6784. return $instance->sent($notifiable, $notification, $callback);
  6785. }
  6786. /**
  6787. * Determine if there are more notifications left to inspect.
  6788. *
  6789. * @param mixed $notifiable
  6790. * @param string $notification
  6791. * @return bool
  6792. * @static
  6793. */
  6794. public static function hasSent($notifiable, $notification)
  6795. {
  6796. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6797. return $instance->hasSent($notifiable, $notification);
  6798. }
  6799. /**
  6800. * Register a custom macro.
  6801. *
  6802. * @param string $name
  6803. * @param object|callable $macro
  6804. * @return void
  6805. * @static
  6806. */
  6807. public static function macro($name, $macro)
  6808. {
  6809. \Illuminate\Support\Testing\Fakes\NotificationFake::macro($name, $macro);
  6810. }
  6811. /**
  6812. * Mix another object into the class.
  6813. *
  6814. * @param object $mixin
  6815. * @param bool $replace
  6816. * @return void
  6817. * @throws \ReflectionException
  6818. * @static
  6819. */
  6820. public static function mixin($mixin, $replace = true)
  6821. {
  6822. \Illuminate\Support\Testing\Fakes\NotificationFake::mixin($mixin, $replace);
  6823. }
  6824. /**
  6825. * Checks if macro is registered.
  6826. *
  6827. * @param string $name
  6828. * @return bool
  6829. * @static
  6830. */
  6831. public static function hasMacro($name)
  6832. {
  6833. return \Illuminate\Support\Testing\Fakes\NotificationFake::hasMacro($name);
  6834. }
  6835. }
  6836. /**
  6837. *
  6838. *
  6839. * @method static string sendResetLink(array $credentials)
  6840. * @method static mixed reset(array $credentials, \Closure $callback)
  6841. * @method static void validator(\Closure $callback)
  6842. * @method static bool validateNewPassword(array $credentials)
  6843. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6844. */
  6845. class Password {
  6846. /**
  6847. * Attempt to get the broker from the local cache.
  6848. *
  6849. * @param string|null $name
  6850. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6851. * @static
  6852. */
  6853. public static function broker($name = null)
  6854. {
  6855. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6856. return $instance->broker($name);
  6857. }
  6858. /**
  6859. * Get the default password broker name.
  6860. *
  6861. * @return string
  6862. * @static
  6863. */
  6864. public static function getDefaultDriver()
  6865. {
  6866. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6867. return $instance->getDefaultDriver();
  6868. }
  6869. /**
  6870. * Set the default password broker name.
  6871. *
  6872. * @param string $name
  6873. * @return void
  6874. * @static
  6875. */
  6876. public static function setDefaultDriver($name)
  6877. {
  6878. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6879. $instance->setDefaultDriver($name);
  6880. }
  6881. }
  6882. /**
  6883. *
  6884. *
  6885. * @see \Illuminate\Queue\QueueManager
  6886. * @see \Illuminate\Queue\Queue
  6887. */
  6888. class Queue {
  6889. /**
  6890. * Register an event listener for the before job event.
  6891. *
  6892. * @param mixed $callback
  6893. * @return void
  6894. * @static
  6895. */
  6896. public static function before($callback)
  6897. {
  6898. /** @var \Illuminate\Queue\QueueManager $instance */
  6899. $instance->before($callback);
  6900. }
  6901. /**
  6902. * Register an event listener for the after job event.
  6903. *
  6904. * @param mixed $callback
  6905. * @return void
  6906. * @static
  6907. */
  6908. public static function after($callback)
  6909. {
  6910. /** @var \Illuminate\Queue\QueueManager $instance */
  6911. $instance->after($callback);
  6912. }
  6913. /**
  6914. * Register an event listener for the exception occurred job event.
  6915. *
  6916. * @param mixed $callback
  6917. * @return void
  6918. * @static
  6919. */
  6920. public static function exceptionOccurred($callback)
  6921. {
  6922. /** @var \Illuminate\Queue\QueueManager $instance */
  6923. $instance->exceptionOccurred($callback);
  6924. }
  6925. /**
  6926. * Register an event listener for the daemon queue loop.
  6927. *
  6928. * @param mixed $callback
  6929. * @return void
  6930. * @static
  6931. */
  6932. public static function looping($callback)
  6933. {
  6934. /** @var \Illuminate\Queue\QueueManager $instance */
  6935. $instance->looping($callback);
  6936. }
  6937. /**
  6938. * Register an event listener for the failed job event.
  6939. *
  6940. * @param mixed $callback
  6941. * @return void
  6942. * @static
  6943. */
  6944. public static function failing($callback)
  6945. {
  6946. /** @var \Illuminate\Queue\QueueManager $instance */
  6947. $instance->failing($callback);
  6948. }
  6949. /**
  6950. * Register an event listener for the daemon queue stopping.
  6951. *
  6952. * @param mixed $callback
  6953. * @return void
  6954. * @static
  6955. */
  6956. public static function stopping($callback)
  6957. {
  6958. /** @var \Illuminate\Queue\QueueManager $instance */
  6959. $instance->stopping($callback);
  6960. }
  6961. /**
  6962. * Determine if the driver is connected.
  6963. *
  6964. * @param string|null $name
  6965. * @return bool
  6966. * @static
  6967. */
  6968. public static function connected($name = null)
  6969. {
  6970. /** @var \Illuminate\Queue\QueueManager $instance */
  6971. return $instance->connected($name);
  6972. }
  6973. /**
  6974. * Resolve a queue connection instance.
  6975. *
  6976. * @param string|null $name
  6977. * @return \Illuminate\Contracts\Queue\Queue
  6978. * @static
  6979. */
  6980. public static function connection($name = null)
  6981. {
  6982. /** @var \Illuminate\Queue\QueueManager $instance */
  6983. return $instance->connection($name);
  6984. }
  6985. /**
  6986. * Add a queue connection resolver.
  6987. *
  6988. * @param string $driver
  6989. * @param \Closure $resolver
  6990. * @return void
  6991. * @static
  6992. */
  6993. public static function extend($driver, $resolver)
  6994. {
  6995. /** @var \Illuminate\Queue\QueueManager $instance */
  6996. $instance->extend($driver, $resolver);
  6997. }
  6998. /**
  6999. * Add a queue connection resolver.
  7000. *
  7001. * @param string $driver
  7002. * @param \Closure $resolver
  7003. * @return void
  7004. * @static
  7005. */
  7006. public static function addConnector($driver, $resolver)
  7007. {
  7008. /** @var \Illuminate\Queue\QueueManager $instance */
  7009. $instance->addConnector($driver, $resolver);
  7010. }
  7011. /**
  7012. * Get the name of the default queue connection.
  7013. *
  7014. * @return string
  7015. * @static
  7016. */
  7017. public static function getDefaultDriver()
  7018. {
  7019. /** @var \Illuminate\Queue\QueueManager $instance */
  7020. return $instance->getDefaultDriver();
  7021. }
  7022. /**
  7023. * Set the name of the default queue connection.
  7024. *
  7025. * @param string $name
  7026. * @return void
  7027. * @static
  7028. */
  7029. public static function setDefaultDriver($name)
  7030. {
  7031. /** @var \Illuminate\Queue\QueueManager $instance */
  7032. $instance->setDefaultDriver($name);
  7033. }
  7034. /**
  7035. * Get the full name for the given connection.
  7036. *
  7037. * @param string|null $connection
  7038. * @return string
  7039. * @static
  7040. */
  7041. public static function getName($connection = null)
  7042. {
  7043. /** @var \Illuminate\Queue\QueueManager $instance */
  7044. return $instance->getName($connection);
  7045. }
  7046. /**
  7047. * Determine if the application is in maintenance mode.
  7048. *
  7049. * @return bool
  7050. * @static
  7051. */
  7052. public static function isDownForMaintenance()
  7053. {
  7054. /** @var \Illuminate\Queue\QueueManager $instance */
  7055. return $instance->isDownForMaintenance();
  7056. }
  7057. /**
  7058. * Assert if a job was pushed based on a truth-test callback.
  7059. *
  7060. * @param string $job
  7061. * @param callable|int|null $callback
  7062. * @return void
  7063. * @static
  7064. */
  7065. public static function assertPushed($job, $callback = null)
  7066. {
  7067. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7068. $instance->assertPushed($job, $callback);
  7069. }
  7070. /**
  7071. * Assert if a job was pushed based on a truth-test callback.
  7072. *
  7073. * @param string $queue
  7074. * @param string $job
  7075. * @param callable|null $callback
  7076. * @return void
  7077. * @static
  7078. */
  7079. public static function assertPushedOn($queue, $job, $callback = null)
  7080. {
  7081. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7082. $instance->assertPushedOn($queue, $job, $callback);
  7083. }
  7084. /**
  7085. * Assert if a job was pushed with chained jobs based on a truth-test callback.
  7086. *
  7087. * @param string $job
  7088. * @param array $expectedChain
  7089. * @param callable|null $callback
  7090. * @return void
  7091. * @static
  7092. */
  7093. public static function assertPushedWithChain($job, $expectedChain = [], $callback = null)
  7094. {
  7095. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7096. $instance->assertPushedWithChain($job, $expectedChain, $callback);
  7097. }
  7098. /**
  7099. * Determine if a job was pushed based on a truth-test callback.
  7100. *
  7101. * @param string $job
  7102. * @param callable|null $callback
  7103. * @return void
  7104. * @static
  7105. */
  7106. public static function assertNotPushed($job, $callback = null)
  7107. {
  7108. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7109. $instance->assertNotPushed($job, $callback);
  7110. }
  7111. /**
  7112. * Assert that no jobs were pushed.
  7113. *
  7114. * @return void
  7115. * @static
  7116. */
  7117. public static function assertNothingPushed()
  7118. {
  7119. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7120. $instance->assertNothingPushed();
  7121. }
  7122. /**
  7123. * Get all of the jobs matching a truth-test callback.
  7124. *
  7125. * @param string $job
  7126. * @param callable|null $callback
  7127. * @return \Illuminate\Support\Collection
  7128. * @static
  7129. */
  7130. public static function pushed($job, $callback = null)
  7131. {
  7132. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7133. return $instance->pushed($job, $callback);
  7134. }
  7135. /**
  7136. * Determine if there are any stored jobs for a given class.
  7137. *
  7138. * @param string $job
  7139. * @return bool
  7140. * @static
  7141. */
  7142. public static function hasPushed($job)
  7143. {
  7144. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7145. return $instance->hasPushed($job);
  7146. }
  7147. /**
  7148. * Get the size of the queue.
  7149. *
  7150. * @param string|null $queue
  7151. * @return int
  7152. * @static
  7153. */
  7154. public static function size($queue = null)
  7155. {
  7156. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7157. return $instance->size($queue);
  7158. }
  7159. /**
  7160. * Push a new job onto the queue.
  7161. *
  7162. * @param string $job
  7163. * @param mixed $data
  7164. * @param string|null $queue
  7165. * @return mixed
  7166. * @static
  7167. */
  7168. public static function push($job, $data = '', $queue = null)
  7169. {
  7170. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7171. return $instance->push($job, $data, $queue);
  7172. }
  7173. /**
  7174. * Push a raw payload onto the queue.
  7175. *
  7176. * @param string $payload
  7177. * @param string|null $queue
  7178. * @param array $options
  7179. * @return mixed
  7180. * @static
  7181. */
  7182. public static function pushRaw($payload, $queue = null, $options = [])
  7183. {
  7184. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7185. return $instance->pushRaw($payload, $queue, $options);
  7186. }
  7187. /**
  7188. * Push a new job onto the queue after a delay.
  7189. *
  7190. * @param \DateTimeInterface|\DateInterval|int $delay
  7191. * @param string $job
  7192. * @param mixed $data
  7193. * @param string|null $queue
  7194. * @return mixed
  7195. * @static
  7196. */
  7197. public static function later($delay, $job, $data = '', $queue = null)
  7198. {
  7199. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7200. return $instance->later($delay, $job, $data, $queue);
  7201. }
  7202. /**
  7203. * Push a new job onto the queue.
  7204. *
  7205. * @param string $queue
  7206. * @param string $job
  7207. * @param mixed $data
  7208. * @return mixed
  7209. * @static
  7210. */
  7211. public static function pushOn($queue, $job, $data = '')
  7212. {
  7213. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7214. return $instance->pushOn($queue, $job, $data);
  7215. }
  7216. /**
  7217. * Push a new job onto the queue after a delay.
  7218. *
  7219. * @param string $queue
  7220. * @param \DateTimeInterface|\DateInterval|int $delay
  7221. * @param string $job
  7222. * @param mixed $data
  7223. * @return mixed
  7224. * @static
  7225. */
  7226. public static function laterOn($queue, $delay, $job, $data = '')
  7227. {
  7228. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7229. return $instance->laterOn($queue, $delay, $job, $data);
  7230. }
  7231. /**
  7232. * Pop the next job off of the queue.
  7233. *
  7234. * @param string|null $queue
  7235. * @return \Illuminate\Contracts\Queue\Job|null
  7236. * @static
  7237. */
  7238. public static function pop($queue = null)
  7239. {
  7240. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7241. return $instance->pop($queue);
  7242. }
  7243. /**
  7244. * Push an array of jobs onto the queue.
  7245. *
  7246. * @param array $jobs
  7247. * @param mixed $data
  7248. * @param string|null $queue
  7249. * @return mixed
  7250. * @static
  7251. */
  7252. public static function bulk($jobs, $data = '', $queue = null)
  7253. {
  7254. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7255. return $instance->bulk($jobs, $data, $queue);
  7256. }
  7257. /**
  7258. * Get the jobs that have been pushed.
  7259. *
  7260. * @return array
  7261. * @static
  7262. */
  7263. public static function pushedJobs()
  7264. {
  7265. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7266. return $instance->pushedJobs();
  7267. }
  7268. /**
  7269. * Get the connection name for the queue.
  7270. *
  7271. * @return string
  7272. * @static
  7273. */
  7274. public static function getConnectionName()
  7275. {
  7276. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7277. return $instance->getConnectionName();
  7278. }
  7279. /**
  7280. * Set the connection name for the queue.
  7281. *
  7282. * @param string $name
  7283. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  7284. * @static
  7285. */
  7286. public static function setConnectionName($name)
  7287. {
  7288. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  7289. return $instance->setConnectionName($name);
  7290. }
  7291. /**
  7292. * Get the retry delay for an object-based queue handler.
  7293. *
  7294. * @param mixed $job
  7295. * @return mixed
  7296. * @static
  7297. */
  7298. public static function getJobRetryDelay($job)
  7299. {
  7300. //Method inherited from \Illuminate\Queue\Queue
  7301. /** @var \Illuminate\Queue\SyncQueue $instance */
  7302. return $instance->getJobRetryDelay($job);
  7303. }
  7304. /**
  7305. * Get the expiration timestamp for an object-based queue handler.
  7306. *
  7307. * @param mixed $job
  7308. * @return mixed
  7309. * @static
  7310. */
  7311. public static function getJobExpiration($job)
  7312. {
  7313. //Method inherited from \Illuminate\Queue\Queue
  7314. /** @var \Illuminate\Queue\SyncQueue $instance */
  7315. return $instance->getJobExpiration($job);
  7316. }
  7317. /**
  7318. * Register a callback to be executed when creating job payloads.
  7319. *
  7320. * @param callable $callback
  7321. * @return void
  7322. * @static
  7323. */
  7324. public static function createPayloadUsing($callback)
  7325. {
  7326. //Method inherited from \Illuminate\Queue\Queue
  7327. \Illuminate\Queue\SyncQueue::createPayloadUsing($callback);
  7328. }
  7329. /**
  7330. * Set the IoC container instance.
  7331. *
  7332. * @param \Illuminate\Container\Container $container
  7333. * @return void
  7334. * @static
  7335. */
  7336. public static function setContainer($container)
  7337. {
  7338. //Method inherited from \Illuminate\Queue\Queue
  7339. /** @var \Illuminate\Queue\SyncQueue $instance */
  7340. $instance->setContainer($container);
  7341. }
  7342. }
  7343. /**
  7344. *
  7345. *
  7346. * @see \Illuminate\Routing\Redirector
  7347. */
  7348. class Redirect {
  7349. /**
  7350. * Create a new redirect response to the "home" route.
  7351. *
  7352. * @param int $status
  7353. * @return \Illuminate\Http\RedirectResponse
  7354. * @static
  7355. */
  7356. public static function home($status = 302)
  7357. {
  7358. /** @var \Illuminate\Routing\Redirector $instance */
  7359. return $instance->home($status);
  7360. }
  7361. /**
  7362. * Create a new redirect response to the previous location.
  7363. *
  7364. * @param int $status
  7365. * @param array $headers
  7366. * @param mixed $fallback
  7367. * @return \Illuminate\Http\RedirectResponse
  7368. * @static
  7369. */
  7370. public static function back($status = 302, $headers = [], $fallback = false)
  7371. {
  7372. /** @var \Illuminate\Routing\Redirector $instance */
  7373. return $instance->back($status, $headers, $fallback);
  7374. }
  7375. /**
  7376. * Create a new redirect response to the current URI.
  7377. *
  7378. * @param int $status
  7379. * @param array $headers
  7380. * @return \Illuminate\Http\RedirectResponse
  7381. * @static
  7382. */
  7383. public static function refresh($status = 302, $headers = [])
  7384. {
  7385. /** @var \Illuminate\Routing\Redirector $instance */
  7386. return $instance->refresh($status, $headers);
  7387. }
  7388. /**
  7389. * Create a new redirect response, while putting the current URL in the session.
  7390. *
  7391. * @param string $path
  7392. * @param int $status
  7393. * @param array $headers
  7394. * @param bool|null $secure
  7395. * @return \Illuminate\Http\RedirectResponse
  7396. * @static
  7397. */
  7398. public static function guest($path, $status = 302, $headers = [], $secure = null)
  7399. {
  7400. /** @var \Illuminate\Routing\Redirector $instance */
  7401. return $instance->guest($path, $status, $headers, $secure);
  7402. }
  7403. /**
  7404. * Create a new redirect response to the previously intended location.
  7405. *
  7406. * @param string $default
  7407. * @param int $status
  7408. * @param array $headers
  7409. * @param bool|null $secure
  7410. * @return \Illuminate\Http\RedirectResponse
  7411. * @static
  7412. */
  7413. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  7414. {
  7415. /** @var \Illuminate\Routing\Redirector $instance */
  7416. return $instance->intended($default, $status, $headers, $secure);
  7417. }
  7418. /**
  7419. * Set the intended url.
  7420. *
  7421. * @param string $url
  7422. * @return void
  7423. * @static
  7424. */
  7425. public static function setIntendedUrl($url)
  7426. {
  7427. /** @var \Illuminate\Routing\Redirector $instance */
  7428. $instance->setIntendedUrl($url);
  7429. }
  7430. /**
  7431. * Create a new redirect response to the given path.
  7432. *
  7433. * @param string $path
  7434. * @param int $status
  7435. * @param array $headers
  7436. * @param bool|null $secure
  7437. * @return \Illuminate\Http\RedirectResponse
  7438. * @static
  7439. */
  7440. public static function to($path, $status = 302, $headers = [], $secure = null)
  7441. {
  7442. /** @var \Illuminate\Routing\Redirector $instance */
  7443. return $instance->to($path, $status, $headers, $secure);
  7444. }
  7445. /**
  7446. * Create a new redirect response to an external URL (no validation).
  7447. *
  7448. * @param string $path
  7449. * @param int $status
  7450. * @param array $headers
  7451. * @return \Illuminate\Http\RedirectResponse
  7452. * @static
  7453. */
  7454. public static function away($path, $status = 302, $headers = [])
  7455. {
  7456. /** @var \Illuminate\Routing\Redirector $instance */
  7457. return $instance->away($path, $status, $headers);
  7458. }
  7459. /**
  7460. * Create a new redirect response to the given HTTPS path.
  7461. *
  7462. * @param string $path
  7463. * @param int $status
  7464. * @param array $headers
  7465. * @return \Illuminate\Http\RedirectResponse
  7466. * @static
  7467. */
  7468. public static function secure($path, $status = 302, $headers = [])
  7469. {
  7470. /** @var \Illuminate\Routing\Redirector $instance */
  7471. return $instance->secure($path, $status, $headers);
  7472. }
  7473. /**
  7474. * Create a new redirect response to a named route.
  7475. *
  7476. * @param string $route
  7477. * @param mixed $parameters
  7478. * @param int $status
  7479. * @param array $headers
  7480. * @return \Illuminate\Http\RedirectResponse
  7481. * @static
  7482. */
  7483. public static function route($route, $parameters = [], $status = 302, $headers = [])
  7484. {
  7485. /** @var \Illuminate\Routing\Redirector $instance */
  7486. return $instance->route($route, $parameters, $status, $headers);
  7487. }
  7488. /**
  7489. * Create a new redirect response to a controller action.
  7490. *
  7491. * @param string|array $action
  7492. * @param mixed $parameters
  7493. * @param int $status
  7494. * @param array $headers
  7495. * @return \Illuminate\Http\RedirectResponse
  7496. * @static
  7497. */
  7498. public static function action($action, $parameters = [], $status = 302, $headers = [])
  7499. {
  7500. /** @var \Illuminate\Routing\Redirector $instance */
  7501. return $instance->action($action, $parameters, $status, $headers);
  7502. }
  7503. /**
  7504. * Get the URL generator instance.
  7505. *
  7506. * @return \Illuminate\Routing\UrlGenerator
  7507. * @static
  7508. */
  7509. public static function getUrlGenerator()
  7510. {
  7511. /** @var \Illuminate\Routing\Redirector $instance */
  7512. return $instance->getUrlGenerator();
  7513. }
  7514. /**
  7515. * Set the active session store.
  7516. *
  7517. * @param \Illuminate\Session\Store $session
  7518. * @return void
  7519. * @static
  7520. */
  7521. public static function setSession($session)
  7522. {
  7523. /** @var \Illuminate\Routing\Redirector $instance */
  7524. $instance->setSession($session);
  7525. }
  7526. /**
  7527. * Register a custom macro.
  7528. *
  7529. * @param string $name
  7530. * @param object|callable $macro
  7531. * @return void
  7532. * @static
  7533. */
  7534. public static function macro($name, $macro)
  7535. {
  7536. \Illuminate\Routing\Redirector::macro($name, $macro);
  7537. }
  7538. /**
  7539. * Mix another object into the class.
  7540. *
  7541. * @param object $mixin
  7542. * @param bool $replace
  7543. * @return void
  7544. * @throws \ReflectionException
  7545. * @static
  7546. */
  7547. public static function mixin($mixin, $replace = true)
  7548. {
  7549. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  7550. }
  7551. /**
  7552. * Checks if macro is registered.
  7553. *
  7554. * @param string $name
  7555. * @return bool
  7556. * @static
  7557. */
  7558. public static function hasMacro($name)
  7559. {
  7560. return \Illuminate\Routing\Redirector::hasMacro($name);
  7561. }
  7562. }
  7563. /**
  7564. *
  7565. *
  7566. * @see \Illuminate\Redis\RedisManager
  7567. * @see \Illuminate\Contracts\Redis\Factory
  7568. */
  7569. class Redis {
  7570. /**
  7571. * Get a Redis connection by name.
  7572. *
  7573. * @param string|null $name
  7574. * @return \Illuminate\Redis\Connections\Connection
  7575. * @static
  7576. */
  7577. public static function connection($name = null)
  7578. {
  7579. /** @var \Illuminate\Redis\RedisManager $instance */
  7580. return $instance->connection($name);
  7581. }
  7582. /**
  7583. * Resolve the given connection by name.
  7584. *
  7585. * @param string|null $name
  7586. * @return \Illuminate\Redis\Connections\Connection
  7587. * @throws \InvalidArgumentException
  7588. * @static
  7589. */
  7590. public static function resolve($name = null)
  7591. {
  7592. /** @var \Illuminate\Redis\RedisManager $instance */
  7593. return $instance->resolve($name);
  7594. }
  7595. /**
  7596. * Return all of the created connections.
  7597. *
  7598. * @return array
  7599. * @static
  7600. */
  7601. public static function connections()
  7602. {
  7603. /** @var \Illuminate\Redis\RedisManager $instance */
  7604. return $instance->connections();
  7605. }
  7606. /**
  7607. * Enable the firing of Redis command events.
  7608. *
  7609. * @return void
  7610. * @static
  7611. */
  7612. public static function enableEvents()
  7613. {
  7614. /** @var \Illuminate\Redis\RedisManager $instance */
  7615. $instance->enableEvents();
  7616. }
  7617. /**
  7618. * Disable the firing of Redis command events.
  7619. *
  7620. * @return void
  7621. * @static
  7622. */
  7623. public static function disableEvents()
  7624. {
  7625. /** @var \Illuminate\Redis\RedisManager $instance */
  7626. $instance->disableEvents();
  7627. }
  7628. /**
  7629. * Set the default driver.
  7630. *
  7631. * @param string $driver
  7632. * @return void
  7633. * @static
  7634. */
  7635. public static function setDriver($driver)
  7636. {
  7637. /** @var \Illuminate\Redis\RedisManager $instance */
  7638. $instance->setDriver($driver);
  7639. }
  7640. /**
  7641. * Register a custom driver creator Closure.
  7642. *
  7643. * @param string $driver
  7644. * @param \Closure $callback
  7645. * @return \Illuminate\Redis\RedisManager
  7646. * @static
  7647. */
  7648. public static function extend($driver, $callback)
  7649. {
  7650. /** @var \Illuminate\Redis\RedisManager $instance */
  7651. return $instance->extend($driver, $callback);
  7652. }
  7653. }
  7654. /**
  7655. *
  7656. *
  7657. * @see \Illuminate\Http\Request
  7658. */
  7659. class Request {
  7660. /**
  7661. * Create a new Illuminate HTTP request from server variables.
  7662. *
  7663. * @return static
  7664. * @static
  7665. */
  7666. public static function capture()
  7667. {
  7668. return \Illuminate\Http\Request::capture();
  7669. }
  7670. /**
  7671. * Return the Request instance.
  7672. *
  7673. * @return \Illuminate\Http\Request
  7674. * @static
  7675. */
  7676. public static function instance()
  7677. {
  7678. /** @var \Illuminate\Http\Request $instance */
  7679. return $instance->instance();
  7680. }
  7681. /**
  7682. * Get the request method.
  7683. *
  7684. * @return string
  7685. * @static
  7686. */
  7687. public static function method()
  7688. {
  7689. /** @var \Illuminate\Http\Request $instance */
  7690. return $instance->method();
  7691. }
  7692. /**
  7693. * Get the root URL for the application.
  7694. *
  7695. * @return string
  7696. * @static
  7697. */
  7698. public static function root()
  7699. {
  7700. /** @var \Illuminate\Http\Request $instance */
  7701. return $instance->root();
  7702. }
  7703. /**
  7704. * Get the URL (no query string) for the request.
  7705. *
  7706. * @return string
  7707. * @static
  7708. */
  7709. public static function url()
  7710. {
  7711. /** @var \Illuminate\Http\Request $instance */
  7712. return $instance->url();
  7713. }
  7714. /**
  7715. * Get the full URL for the request.
  7716. *
  7717. * @return string
  7718. * @static
  7719. */
  7720. public static function fullUrl()
  7721. {
  7722. /** @var \Illuminate\Http\Request $instance */
  7723. return $instance->fullUrl();
  7724. }
  7725. /**
  7726. * Get the full URL for the request with the added query string parameters.
  7727. *
  7728. * @param array $query
  7729. * @return string
  7730. * @static
  7731. */
  7732. public static function fullUrlWithQuery($query)
  7733. {
  7734. /** @var \Illuminate\Http\Request $instance */
  7735. return $instance->fullUrlWithQuery($query);
  7736. }
  7737. /**
  7738. * Get the current path info for the request.
  7739. *
  7740. * @return string
  7741. * @static
  7742. */
  7743. public static function path()
  7744. {
  7745. /** @var \Illuminate\Http\Request $instance */
  7746. return $instance->path();
  7747. }
  7748. /**
  7749. * Get the current decoded path info for the request.
  7750. *
  7751. * @return string
  7752. * @static
  7753. */
  7754. public static function decodedPath()
  7755. {
  7756. /** @var \Illuminate\Http\Request $instance */
  7757. return $instance->decodedPath();
  7758. }
  7759. /**
  7760. * Get a segment from the URI (1 based index).
  7761. *
  7762. * @param int $index
  7763. * @param string|null $default
  7764. * @return string|null
  7765. * @static
  7766. */
  7767. public static function segment($index, $default = null)
  7768. {
  7769. /** @var \Illuminate\Http\Request $instance */
  7770. return $instance->segment($index, $default);
  7771. }
  7772. /**
  7773. * Get all of the segments for the request path.
  7774. *
  7775. * @return array
  7776. * @static
  7777. */
  7778. public static function segments()
  7779. {
  7780. /** @var \Illuminate\Http\Request $instance */
  7781. return $instance->segments();
  7782. }
  7783. /**
  7784. * Determine if the current request URI matches a pattern.
  7785. *
  7786. * @param mixed $patterns
  7787. * @return bool
  7788. * @static
  7789. */
  7790. public static function is(...$patterns)
  7791. {
  7792. /** @var \Illuminate\Http\Request $instance */
  7793. return $instance->is(...$patterns);
  7794. }
  7795. /**
  7796. * Determine if the route name matches a given pattern.
  7797. *
  7798. * @param mixed $patterns
  7799. * @return bool
  7800. * @static
  7801. */
  7802. public static function routeIs(...$patterns)
  7803. {
  7804. /** @var \Illuminate\Http\Request $instance */
  7805. return $instance->routeIs(...$patterns);
  7806. }
  7807. /**
  7808. * Determine if the current request URL and query string matches a pattern.
  7809. *
  7810. * @param mixed $patterns
  7811. * @return bool
  7812. * @static
  7813. */
  7814. public static function fullUrlIs(...$patterns)
  7815. {
  7816. /** @var \Illuminate\Http\Request $instance */
  7817. return $instance->fullUrlIs(...$patterns);
  7818. }
  7819. /**
  7820. * Determine if the request is the result of an AJAX call.
  7821. *
  7822. * @return bool
  7823. * @static
  7824. */
  7825. public static function ajax()
  7826. {
  7827. /** @var \Illuminate\Http\Request $instance */
  7828. return $instance->ajax();
  7829. }
  7830. /**
  7831. * Determine if the request is the result of an PJAX call.
  7832. *
  7833. * @return bool
  7834. * @static
  7835. */
  7836. public static function pjax()
  7837. {
  7838. /** @var \Illuminate\Http\Request $instance */
  7839. return $instance->pjax();
  7840. }
  7841. /**
  7842. * Determine if the request is the result of an prefetch call.
  7843. *
  7844. * @return bool
  7845. * @static
  7846. */
  7847. public static function prefetch()
  7848. {
  7849. /** @var \Illuminate\Http\Request $instance */
  7850. return $instance->prefetch();
  7851. }
  7852. /**
  7853. * Determine if the request is over HTTPS.
  7854. *
  7855. * @return bool
  7856. * @static
  7857. */
  7858. public static function secure()
  7859. {
  7860. /** @var \Illuminate\Http\Request $instance */
  7861. return $instance->secure();
  7862. }
  7863. /**
  7864. * Get the client IP address.
  7865. *
  7866. * @return string|null
  7867. * @static
  7868. */
  7869. public static function ip()
  7870. {
  7871. /** @var \Illuminate\Http\Request $instance */
  7872. return $instance->ip();
  7873. }
  7874. /**
  7875. * Get the client IP addresses.
  7876. *
  7877. * @return array
  7878. * @static
  7879. */
  7880. public static function ips()
  7881. {
  7882. /** @var \Illuminate\Http\Request $instance */
  7883. return $instance->ips();
  7884. }
  7885. /**
  7886. * Get the client user agent.
  7887. *
  7888. * @return string
  7889. * @static
  7890. */
  7891. public static function userAgent()
  7892. {
  7893. /** @var \Illuminate\Http\Request $instance */
  7894. return $instance->userAgent();
  7895. }
  7896. /**
  7897. * Merge new input into the current request's input array.
  7898. *
  7899. * @param array $input
  7900. * @return \Illuminate\Http\Request
  7901. * @static
  7902. */
  7903. public static function merge($input)
  7904. {
  7905. /** @var \Illuminate\Http\Request $instance */
  7906. return $instance->merge($input);
  7907. }
  7908. /**
  7909. * Replace the input for the current request.
  7910. *
  7911. * @param array $input
  7912. * @return \Illuminate\Http\Request
  7913. * @static
  7914. */
  7915. public static function replace($input)
  7916. {
  7917. /** @var \Illuminate\Http\Request $instance */
  7918. return $instance->replace($input);
  7919. }
  7920. /**
  7921. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  7922. *
  7923. * Instead, you may use the "input" method.
  7924. *
  7925. * @param string $key
  7926. * @param mixed $default
  7927. * @return mixed
  7928. * @static
  7929. */
  7930. public static function get($key, $default = null)
  7931. {
  7932. /** @var \Illuminate\Http\Request $instance */
  7933. return $instance->get($key, $default);
  7934. }
  7935. /**
  7936. * Get the JSON payload for the request.
  7937. *
  7938. * @param string|null $key
  7939. * @param mixed $default
  7940. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7941. * @static
  7942. */
  7943. public static function json($key = null, $default = null)
  7944. {
  7945. /** @var \Illuminate\Http\Request $instance */
  7946. return $instance->json($key, $default);
  7947. }
  7948. /**
  7949. * Create a new request instance from the given Laravel request.
  7950. *
  7951. * @param \Illuminate\Http\Request $from
  7952. * @param \Illuminate\Http\Request|null $to
  7953. * @return static
  7954. * @static
  7955. */
  7956. public static function createFrom($from, $to = null)
  7957. {
  7958. return \Illuminate\Http\Request::createFrom($from, $to);
  7959. }
  7960. /**
  7961. * Create an Illuminate request from a Symfony instance.
  7962. *
  7963. * @param \Symfony\Component\HttpFoundation\Request $request
  7964. * @return static
  7965. * @static
  7966. */
  7967. public static function createFromBase($request)
  7968. {
  7969. return \Illuminate\Http\Request::createFromBase($request);
  7970. }
  7971. /**
  7972. * Clones a request and overrides some of its parameters.
  7973. *
  7974. * @param array $query The GET parameters
  7975. * @param array $request The POST parameters
  7976. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7977. * @param array $cookies The COOKIE parameters
  7978. * @param array $files The FILES parameters
  7979. * @param array $server The SERVER parameters
  7980. * @return static
  7981. * @static
  7982. */
  7983. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7984. {
  7985. /** @var \Illuminate\Http\Request $instance */
  7986. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7987. }
  7988. /**
  7989. * Get the session associated with the request.
  7990. *
  7991. * @return \Illuminate\Session\Store
  7992. * @throws \RuntimeException
  7993. * @static
  7994. */
  7995. public static function session()
  7996. {
  7997. /** @var \Illuminate\Http\Request $instance */
  7998. return $instance->session();
  7999. }
  8000. /**
  8001. * Get the session associated with the request.
  8002. *
  8003. * @return \Illuminate\Session\Store|null
  8004. * @static
  8005. */
  8006. public static function getSession()
  8007. {
  8008. /** @var \Illuminate\Http\Request $instance */
  8009. return $instance->getSession();
  8010. }
  8011. /**
  8012. * Set the session instance on the request.
  8013. *
  8014. * @param \Illuminate\Contracts\Session\Session $session
  8015. * @return void
  8016. * @static
  8017. */
  8018. public static function setLaravelSession($session)
  8019. {
  8020. /** @var \Illuminate\Http\Request $instance */
  8021. $instance->setLaravelSession($session);
  8022. }
  8023. /**
  8024. * Get the user making the request.
  8025. *
  8026. * @param string|null $guard
  8027. * @return mixed
  8028. * @static
  8029. */
  8030. public static function user($guard = null)
  8031. {
  8032. /** @var \Illuminate\Http\Request $instance */
  8033. return $instance->user($guard);
  8034. }
  8035. /**
  8036. * Get the route handling the request.
  8037. *
  8038. * @param string|null $param
  8039. * @param mixed $default
  8040. * @return \Illuminate\Routing\Route|object|string
  8041. * @static
  8042. */
  8043. public static function route($param = null, $default = null)
  8044. {
  8045. /** @var \Illuminate\Http\Request $instance */
  8046. return $instance->route($param, $default);
  8047. }
  8048. /**
  8049. * Get a unique fingerprint for the request / route / IP address.
  8050. *
  8051. * @return string
  8052. * @throws \RuntimeException
  8053. * @static
  8054. */
  8055. public static function fingerprint()
  8056. {
  8057. /** @var \Illuminate\Http\Request $instance */
  8058. return $instance->fingerprint();
  8059. }
  8060. /**
  8061. * Set the JSON payload for the request.
  8062. *
  8063. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  8064. * @return \Illuminate\Http\Request
  8065. * @static
  8066. */
  8067. public static function setJson($json)
  8068. {
  8069. /** @var \Illuminate\Http\Request $instance */
  8070. return $instance->setJson($json);
  8071. }
  8072. /**
  8073. * Get the user resolver callback.
  8074. *
  8075. * @return \Closure
  8076. * @static
  8077. */
  8078. public static function getUserResolver()
  8079. {
  8080. /** @var \Illuminate\Http\Request $instance */
  8081. return $instance->getUserResolver();
  8082. }
  8083. /**
  8084. * Set the user resolver callback.
  8085. *
  8086. * @param \Closure $callback
  8087. * @return \Illuminate\Http\Request
  8088. * @static
  8089. */
  8090. public static function setUserResolver($callback)
  8091. {
  8092. /** @var \Illuminate\Http\Request $instance */
  8093. return $instance->setUserResolver($callback);
  8094. }
  8095. /**
  8096. * Get the route resolver callback.
  8097. *
  8098. * @return \Closure
  8099. * @static
  8100. */
  8101. public static function getRouteResolver()
  8102. {
  8103. /** @var \Illuminate\Http\Request $instance */
  8104. return $instance->getRouteResolver();
  8105. }
  8106. /**
  8107. * Set the route resolver callback.
  8108. *
  8109. * @param \Closure $callback
  8110. * @return \Illuminate\Http\Request
  8111. * @static
  8112. */
  8113. public static function setRouteResolver($callback)
  8114. {
  8115. /** @var \Illuminate\Http\Request $instance */
  8116. return $instance->setRouteResolver($callback);
  8117. }
  8118. /**
  8119. * Get all of the input and files for the request.
  8120. *
  8121. * @return array
  8122. * @static
  8123. */
  8124. public static function toArray()
  8125. {
  8126. /** @var \Illuminate\Http\Request $instance */
  8127. return $instance->toArray();
  8128. }
  8129. /**
  8130. * Determine if the given offset exists.
  8131. *
  8132. * @param string $offset
  8133. * @return bool
  8134. * @static
  8135. */
  8136. public static function offsetExists($offset)
  8137. {
  8138. /** @var \Illuminate\Http\Request $instance */
  8139. return $instance->offsetExists($offset);
  8140. }
  8141. /**
  8142. * Get the value at the given offset.
  8143. *
  8144. * @param string $offset
  8145. * @return mixed
  8146. * @static
  8147. */
  8148. public static function offsetGet($offset)
  8149. {
  8150. /** @var \Illuminate\Http\Request $instance */
  8151. return $instance->offsetGet($offset);
  8152. }
  8153. /**
  8154. * Set the value at the given offset.
  8155. *
  8156. * @param string $offset
  8157. * @param mixed $value
  8158. * @return void
  8159. * @static
  8160. */
  8161. public static function offsetSet($offset, $value)
  8162. {
  8163. /** @var \Illuminate\Http\Request $instance */
  8164. $instance->offsetSet($offset, $value);
  8165. }
  8166. /**
  8167. * Remove the value at the given offset.
  8168. *
  8169. * @param string $offset
  8170. * @return void
  8171. * @static
  8172. */
  8173. public static function offsetUnset($offset)
  8174. {
  8175. /** @var \Illuminate\Http\Request $instance */
  8176. $instance->offsetUnset($offset);
  8177. }
  8178. /**
  8179. * Sets the parameters for this request.
  8180. *
  8181. * This method also re-initializes all properties.
  8182. *
  8183. * @param array $query The GET parameters
  8184. * @param array $request The POST parameters
  8185. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8186. * @param array $cookies The COOKIE parameters
  8187. * @param array $files The FILES parameters
  8188. * @param array $server The SERVER parameters
  8189. * @param string|resource|null $content The raw body data
  8190. * @static
  8191. */
  8192. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  8193. {
  8194. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8195. /** @var \Illuminate\Http\Request $instance */
  8196. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  8197. }
  8198. /**
  8199. * Creates a new request with values from PHP's super globals.
  8200. *
  8201. * @return static
  8202. * @static
  8203. */
  8204. public static function createFromGlobals()
  8205. {
  8206. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8207. return \Illuminate\Http\Request::createFromGlobals();
  8208. }
  8209. /**
  8210. * Creates a Request based on a given URI and configuration.
  8211. *
  8212. * The information contained in the URI always take precedence
  8213. * over the other information (server and parameters).
  8214. *
  8215. * @param string $uri The URI
  8216. * @param string $method The HTTP method
  8217. * @param array $parameters The query (GET) or request (POST) parameters
  8218. * @param array $cookies The request cookies ($_COOKIE)
  8219. * @param array $files The request files ($_FILES)
  8220. * @param array $server The server parameters ($_SERVER)
  8221. * @param string|resource|null $content The raw body data
  8222. * @return static
  8223. * @static
  8224. */
  8225. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  8226. {
  8227. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8228. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  8229. }
  8230. /**
  8231. * Sets a callable able to create a Request instance.
  8232. *
  8233. * This is mainly useful when you need to override the Request class
  8234. * to keep BC with an existing system. It should not be used for any
  8235. * other purpose.
  8236. *
  8237. * @param callable|null $callable A PHP callable
  8238. * @static
  8239. */
  8240. public static function setFactory($callable)
  8241. {
  8242. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8243. return \Illuminate\Http\Request::setFactory($callable);
  8244. }
  8245. /**
  8246. * Overrides the PHP global variables according to this request instance.
  8247. *
  8248. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  8249. * $_FILES is never overridden, see rfc1867
  8250. *
  8251. * @static
  8252. */
  8253. public static function overrideGlobals()
  8254. {
  8255. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8256. /** @var \Illuminate\Http\Request $instance */
  8257. return $instance->overrideGlobals();
  8258. }
  8259. /**
  8260. * Sets a list of trusted proxies.
  8261. *
  8262. * You should only list the reverse proxies that you manage directly.
  8263. *
  8264. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  8265. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  8266. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  8267. * @static
  8268. */
  8269. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8270. {
  8271. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8272. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8273. }
  8274. /**
  8275. * Gets the list of trusted proxies.
  8276. *
  8277. * @return array An array of trusted proxies
  8278. * @static
  8279. */
  8280. public static function getTrustedProxies()
  8281. {
  8282. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8283. return \Illuminate\Http\Request::getTrustedProxies();
  8284. }
  8285. /**
  8286. * Gets the set of trusted headers from trusted proxies.
  8287. *
  8288. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8289. * @static
  8290. */
  8291. public static function getTrustedHeaderSet()
  8292. {
  8293. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8294. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8295. }
  8296. /**
  8297. * Sets a list of trusted host patterns.
  8298. *
  8299. * You should only list the hosts you manage using regexs.
  8300. *
  8301. * @param array $hostPatterns A list of trusted host patterns
  8302. * @static
  8303. */
  8304. public static function setTrustedHosts($hostPatterns)
  8305. {
  8306. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8307. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8308. }
  8309. /**
  8310. * Gets the list of trusted host patterns.
  8311. *
  8312. * @return array An array of trusted host patterns
  8313. * @static
  8314. */
  8315. public static function getTrustedHosts()
  8316. {
  8317. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8318. return \Illuminate\Http\Request::getTrustedHosts();
  8319. }
  8320. /**
  8321. * Normalizes a query string.
  8322. *
  8323. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8324. * have consistent escaping and unneeded delimiters are removed.
  8325. *
  8326. * @param string $qs Query string
  8327. * @return string A normalized query string for the Request
  8328. * @static
  8329. */
  8330. public static function normalizeQueryString($qs)
  8331. {
  8332. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8333. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8334. }
  8335. /**
  8336. * Enables support for the _method request parameter to determine the intended HTTP method.
  8337. *
  8338. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8339. * Check that you are using CSRF tokens when required.
  8340. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8341. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8342. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8343. *
  8344. * The HTTP method can only be overridden when the real HTTP method is POST.
  8345. *
  8346. * @static
  8347. */
  8348. public static function enableHttpMethodParameterOverride()
  8349. {
  8350. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8351. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8352. }
  8353. /**
  8354. * Checks whether support for the _method request parameter is enabled.
  8355. *
  8356. * @return bool True when the _method request parameter is enabled, false otherwise
  8357. * @static
  8358. */
  8359. public static function getHttpMethodParameterOverride()
  8360. {
  8361. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8362. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8363. }
  8364. /**
  8365. * Whether the request contains a Session which was started in one of the
  8366. * previous requests.
  8367. *
  8368. * @return bool
  8369. * @static
  8370. */
  8371. public static function hasPreviousSession()
  8372. {
  8373. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8374. /** @var \Illuminate\Http\Request $instance */
  8375. return $instance->hasPreviousSession();
  8376. }
  8377. /**
  8378. * Whether the request contains a Session object.
  8379. *
  8380. * This method does not give any information about the state of the session object,
  8381. * like whether the session is started or not. It is just a way to check if this Request
  8382. * is associated with a Session instance.
  8383. *
  8384. * @return bool true when the Request contains a Session object, false otherwise
  8385. * @static
  8386. */
  8387. public static function hasSession()
  8388. {
  8389. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8390. /** @var \Illuminate\Http\Request $instance */
  8391. return $instance->hasSession();
  8392. }
  8393. /**
  8394. *
  8395. *
  8396. * @static
  8397. */
  8398. public static function setSession($session)
  8399. {
  8400. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8401. /** @var \Illuminate\Http\Request $instance */
  8402. return $instance->setSession($session);
  8403. }
  8404. /**
  8405. *
  8406. *
  8407. * @internal
  8408. * @static
  8409. */
  8410. public static function setSessionFactory($factory)
  8411. {
  8412. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8413. /** @var \Illuminate\Http\Request $instance */
  8414. return $instance->setSessionFactory($factory);
  8415. }
  8416. /**
  8417. * Returns the client IP addresses.
  8418. *
  8419. * In the returned array the most trusted IP address is first, and the
  8420. * least trusted one last. The "real" client IP address is the last one,
  8421. * but this is also the least trusted one. Trusted proxies are stripped.
  8422. *
  8423. * Use this method carefully; you should use getClientIp() instead.
  8424. *
  8425. * @return array The client IP addresses
  8426. * @see getClientIp()
  8427. * @static
  8428. */
  8429. public static function getClientIps()
  8430. {
  8431. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8432. /** @var \Illuminate\Http\Request $instance */
  8433. return $instance->getClientIps();
  8434. }
  8435. /**
  8436. * Returns the client IP address.
  8437. *
  8438. * This method can read the client IP address from the "X-Forwarded-For" header
  8439. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8440. * header value is a comma+space separated list of IP addresses, the left-most
  8441. * being the original client, and each successive proxy that passed the request
  8442. * adding the IP address where it received the request from.
  8443. *
  8444. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  8445. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  8446. * argument of the Request::setTrustedProxies() method instead.
  8447. *
  8448. * @return string|null The client IP address
  8449. * @see getClientIps()
  8450. * @see https://wikipedia.org/wiki/X-Forwarded-For
  8451. * @static
  8452. */
  8453. public static function getClientIp()
  8454. {
  8455. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8456. /** @var \Illuminate\Http\Request $instance */
  8457. return $instance->getClientIp();
  8458. }
  8459. /**
  8460. * Returns current script name.
  8461. *
  8462. * @return string
  8463. * @static
  8464. */
  8465. public static function getScriptName()
  8466. {
  8467. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8468. /** @var \Illuminate\Http\Request $instance */
  8469. return $instance->getScriptName();
  8470. }
  8471. /**
  8472. * Returns the path being requested relative to the executed script.
  8473. *
  8474. * The path info always starts with a /.
  8475. *
  8476. * Suppose this request is instantiated from /mysite on localhost:
  8477. *
  8478. * * http://localhost/mysite returns an empty string
  8479. * * http://localhost/mysite/about returns '/about'
  8480. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8481. * * http://localhost/mysite/about?var=1 returns '/about'
  8482. *
  8483. * @return string The raw path (i.e. not urldecoded)
  8484. * @static
  8485. */
  8486. public static function getPathInfo()
  8487. {
  8488. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8489. /** @var \Illuminate\Http\Request $instance */
  8490. return $instance->getPathInfo();
  8491. }
  8492. /**
  8493. * Returns the root path from which this request is executed.
  8494. *
  8495. * Suppose that an index.php file instantiates this request object:
  8496. *
  8497. * * http://localhost/index.php returns an empty string
  8498. * * http://localhost/index.php/page returns an empty string
  8499. * * http://localhost/web/index.php returns '/web'
  8500. * * http://localhost/we%20b/index.php returns '/we%20b'
  8501. *
  8502. * @return string The raw path (i.e. not urldecoded)
  8503. * @static
  8504. */
  8505. public static function getBasePath()
  8506. {
  8507. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8508. /** @var \Illuminate\Http\Request $instance */
  8509. return $instance->getBasePath();
  8510. }
  8511. /**
  8512. * Returns the root URL from which this request is executed.
  8513. *
  8514. * The base URL never ends with a /.
  8515. *
  8516. * This is similar to getBasePath(), except that it also includes the
  8517. * script filename (e.g. index.php) if one exists.
  8518. *
  8519. * @return string The raw URL (i.e. not urldecoded)
  8520. * @static
  8521. */
  8522. public static function getBaseUrl()
  8523. {
  8524. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8525. /** @var \Illuminate\Http\Request $instance */
  8526. return $instance->getBaseUrl();
  8527. }
  8528. /**
  8529. * Gets the request's scheme.
  8530. *
  8531. * @return string
  8532. * @static
  8533. */
  8534. public static function getScheme()
  8535. {
  8536. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8537. /** @var \Illuminate\Http\Request $instance */
  8538. return $instance->getScheme();
  8539. }
  8540. /**
  8541. * Returns the port on which the request is made.
  8542. *
  8543. * This method can read the client port from the "X-Forwarded-Port" header
  8544. * when trusted proxies were set via "setTrustedProxies()".
  8545. *
  8546. * The "X-Forwarded-Port" header must contain the client port.
  8547. *
  8548. * @return int|string can be a string if fetched from the server bag
  8549. * @static
  8550. */
  8551. public static function getPort()
  8552. {
  8553. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8554. /** @var \Illuminate\Http\Request $instance */
  8555. return $instance->getPort();
  8556. }
  8557. /**
  8558. * Returns the user.
  8559. *
  8560. * @return string|null
  8561. * @static
  8562. */
  8563. public static function getUser()
  8564. {
  8565. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8566. /** @var \Illuminate\Http\Request $instance */
  8567. return $instance->getUser();
  8568. }
  8569. /**
  8570. * Returns the password.
  8571. *
  8572. * @return string|null
  8573. * @static
  8574. */
  8575. public static function getPassword()
  8576. {
  8577. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8578. /** @var \Illuminate\Http\Request $instance */
  8579. return $instance->getPassword();
  8580. }
  8581. /**
  8582. * Gets the user info.
  8583. *
  8584. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8585. * @static
  8586. */
  8587. public static function getUserInfo()
  8588. {
  8589. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8590. /** @var \Illuminate\Http\Request $instance */
  8591. return $instance->getUserInfo();
  8592. }
  8593. /**
  8594. * Returns the HTTP host being requested.
  8595. *
  8596. * The port name will be appended to the host if it's non-standard.
  8597. *
  8598. * @return string
  8599. * @static
  8600. */
  8601. public static function getHttpHost()
  8602. {
  8603. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8604. /** @var \Illuminate\Http\Request $instance */
  8605. return $instance->getHttpHost();
  8606. }
  8607. /**
  8608. * Returns the requested URI (path and query string).
  8609. *
  8610. * @return string The raw URI (i.e. not URI decoded)
  8611. * @static
  8612. */
  8613. public static function getRequestUri()
  8614. {
  8615. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8616. /** @var \Illuminate\Http\Request $instance */
  8617. return $instance->getRequestUri();
  8618. }
  8619. /**
  8620. * Gets the scheme and HTTP host.
  8621. *
  8622. * If the URL was called with basic authentication, the user
  8623. * and the password are not added to the generated string.
  8624. *
  8625. * @return string The scheme and HTTP host
  8626. * @static
  8627. */
  8628. public static function getSchemeAndHttpHost()
  8629. {
  8630. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8631. /** @var \Illuminate\Http\Request $instance */
  8632. return $instance->getSchemeAndHttpHost();
  8633. }
  8634. /**
  8635. * Generates a normalized URI (URL) for the Request.
  8636. *
  8637. * @return string A normalized URI (URL) for the Request
  8638. * @see getQueryString()
  8639. * @static
  8640. */
  8641. public static function getUri()
  8642. {
  8643. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8644. /** @var \Illuminate\Http\Request $instance */
  8645. return $instance->getUri();
  8646. }
  8647. /**
  8648. * Generates a normalized URI for the given path.
  8649. *
  8650. * @param string $path A path to use instead of the current one
  8651. * @return string The normalized URI for the path
  8652. * @static
  8653. */
  8654. public static function getUriForPath($path)
  8655. {
  8656. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8657. /** @var \Illuminate\Http\Request $instance */
  8658. return $instance->getUriForPath($path);
  8659. }
  8660. /**
  8661. * Returns the path as relative reference from the current Request path.
  8662. *
  8663. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8664. * Both paths must be absolute and not contain relative parts.
  8665. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8666. * Furthermore, they can be used to reduce the link size in documents.
  8667. *
  8668. * Example target paths, given a base path of "/a/b/c/d":
  8669. * - "/a/b/c/d" -> ""
  8670. * - "/a/b/c/" -> "./"
  8671. * - "/a/b/" -> "../"
  8672. * - "/a/b/c/other" -> "other"
  8673. * - "/a/x/y" -> "../../x/y"
  8674. *
  8675. * @param string $path The target path
  8676. * @return string The relative target path
  8677. * @static
  8678. */
  8679. public static function getRelativeUriForPath($path)
  8680. {
  8681. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8682. /** @var \Illuminate\Http\Request $instance */
  8683. return $instance->getRelativeUriForPath($path);
  8684. }
  8685. /**
  8686. * Generates the normalized query string for the Request.
  8687. *
  8688. * It builds a normalized query string, where keys/value pairs are alphabetized
  8689. * and have consistent escaping.
  8690. *
  8691. * @return string|null A normalized query string for the Request
  8692. * @static
  8693. */
  8694. public static function getQueryString()
  8695. {
  8696. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8697. /** @var \Illuminate\Http\Request $instance */
  8698. return $instance->getQueryString();
  8699. }
  8700. /**
  8701. * Checks whether the request is secure or not.
  8702. *
  8703. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8704. * when trusted proxies were set via "setTrustedProxies()".
  8705. *
  8706. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8707. *
  8708. * @return bool
  8709. * @static
  8710. */
  8711. public static function isSecure()
  8712. {
  8713. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8714. /** @var \Illuminate\Http\Request $instance */
  8715. return $instance->isSecure();
  8716. }
  8717. /**
  8718. * Returns the host name.
  8719. *
  8720. * This method can read the client host name from the "X-Forwarded-Host" header
  8721. * when trusted proxies were set via "setTrustedProxies()".
  8722. *
  8723. * The "X-Forwarded-Host" header must contain the client host name.
  8724. *
  8725. * @return string
  8726. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8727. * @static
  8728. */
  8729. public static function getHost()
  8730. {
  8731. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8732. /** @var \Illuminate\Http\Request $instance */
  8733. return $instance->getHost();
  8734. }
  8735. /**
  8736. * Sets the request method.
  8737. *
  8738. * @param string $method
  8739. * @static
  8740. */
  8741. public static function setMethod($method)
  8742. {
  8743. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8744. /** @var \Illuminate\Http\Request $instance */
  8745. return $instance->setMethod($method);
  8746. }
  8747. /**
  8748. * Gets the request "intended" method.
  8749. *
  8750. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8751. * then it is used to determine the "real" intended HTTP method.
  8752. *
  8753. * The _method request parameter can also be used to determine the HTTP method,
  8754. * but only if enableHttpMethodParameterOverride() has been called.
  8755. *
  8756. * The method is always an uppercased string.
  8757. *
  8758. * @return string The request method
  8759. * @see getRealMethod()
  8760. * @static
  8761. */
  8762. public static function getMethod()
  8763. {
  8764. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8765. /** @var \Illuminate\Http\Request $instance */
  8766. return $instance->getMethod();
  8767. }
  8768. /**
  8769. * Gets the "real" request method.
  8770. *
  8771. * @return string The request method
  8772. * @see getMethod()
  8773. * @static
  8774. */
  8775. public static function getRealMethod()
  8776. {
  8777. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8778. /** @var \Illuminate\Http\Request $instance */
  8779. return $instance->getRealMethod();
  8780. }
  8781. /**
  8782. * Gets the mime type associated with the format.
  8783. *
  8784. * @param string $format The format
  8785. * @return string|null The associated mime type (null if not found)
  8786. * @static
  8787. */
  8788. public static function getMimeType($format)
  8789. {
  8790. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8791. /** @var \Illuminate\Http\Request $instance */
  8792. return $instance->getMimeType($format);
  8793. }
  8794. /**
  8795. * Gets the mime types associated with the format.
  8796. *
  8797. * @param string $format The format
  8798. * @return array The associated mime types
  8799. * @static
  8800. */
  8801. public static function getMimeTypes($format)
  8802. {
  8803. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8804. return \Illuminate\Http\Request::getMimeTypes($format);
  8805. }
  8806. /**
  8807. * Gets the format associated with the mime type.
  8808. *
  8809. * @param string $mimeType The associated mime type
  8810. * @return string|null The format (null if not found)
  8811. * @static
  8812. */
  8813. public static function getFormat($mimeType)
  8814. {
  8815. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8816. /** @var \Illuminate\Http\Request $instance */
  8817. return $instance->getFormat($mimeType);
  8818. }
  8819. /**
  8820. * Associates a format with mime types.
  8821. *
  8822. * @param string $format The format
  8823. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8824. * @static
  8825. */
  8826. public static function setFormat($format, $mimeTypes)
  8827. {
  8828. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8829. /** @var \Illuminate\Http\Request $instance */
  8830. return $instance->setFormat($format, $mimeTypes);
  8831. }
  8832. /**
  8833. * Gets the request format.
  8834. *
  8835. * Here is the process to determine the format:
  8836. *
  8837. * * format defined by the user (with setRequestFormat())
  8838. * * _format request attribute
  8839. * * $default
  8840. *
  8841. * @see getPreferredFormat
  8842. * @param string|null $default The default format
  8843. * @return string|null The request format
  8844. * @static
  8845. */
  8846. public static function getRequestFormat($default = 'html')
  8847. {
  8848. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8849. /** @var \Illuminate\Http\Request $instance */
  8850. return $instance->getRequestFormat($default);
  8851. }
  8852. /**
  8853. * Sets the request format.
  8854. *
  8855. * @param string $format The request format
  8856. * @static
  8857. */
  8858. public static function setRequestFormat($format)
  8859. {
  8860. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8861. /** @var \Illuminate\Http\Request $instance */
  8862. return $instance->setRequestFormat($format);
  8863. }
  8864. /**
  8865. * Gets the format associated with the request.
  8866. *
  8867. * @return string|null The format (null if no content type is present)
  8868. * @static
  8869. */
  8870. public static function getContentType()
  8871. {
  8872. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8873. /** @var \Illuminate\Http\Request $instance */
  8874. return $instance->getContentType();
  8875. }
  8876. /**
  8877. * Sets the default locale.
  8878. *
  8879. * @param string $locale
  8880. * @static
  8881. */
  8882. public static function setDefaultLocale($locale)
  8883. {
  8884. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8885. /** @var \Illuminate\Http\Request $instance */
  8886. return $instance->setDefaultLocale($locale);
  8887. }
  8888. /**
  8889. * Get the default locale.
  8890. *
  8891. * @return string
  8892. * @static
  8893. */
  8894. public static function getDefaultLocale()
  8895. {
  8896. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8897. /** @var \Illuminate\Http\Request $instance */
  8898. return $instance->getDefaultLocale();
  8899. }
  8900. /**
  8901. * Sets the locale.
  8902. *
  8903. * @param string $locale
  8904. * @static
  8905. */
  8906. public static function setLocale($locale)
  8907. {
  8908. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8909. /** @var \Illuminate\Http\Request $instance */
  8910. return $instance->setLocale($locale);
  8911. }
  8912. /**
  8913. * Get the locale.
  8914. *
  8915. * @return string
  8916. * @static
  8917. */
  8918. public static function getLocale()
  8919. {
  8920. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8921. /** @var \Illuminate\Http\Request $instance */
  8922. return $instance->getLocale();
  8923. }
  8924. /**
  8925. * Checks if the request method is of specified type.
  8926. *
  8927. * @param string $method Uppercase request method (GET, POST etc)
  8928. * @return bool
  8929. * @static
  8930. */
  8931. public static function isMethod($method)
  8932. {
  8933. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8934. /** @var \Illuminate\Http\Request $instance */
  8935. return $instance->isMethod($method);
  8936. }
  8937. /**
  8938. * Checks whether or not the method is safe.
  8939. *
  8940. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8941. * @return bool
  8942. * @static
  8943. */
  8944. public static function isMethodSafe()
  8945. {
  8946. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8947. /** @var \Illuminate\Http\Request $instance */
  8948. return $instance->isMethodSafe();
  8949. }
  8950. /**
  8951. * Checks whether or not the method is idempotent.
  8952. *
  8953. * @return bool
  8954. * @static
  8955. */
  8956. public static function isMethodIdempotent()
  8957. {
  8958. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8959. /** @var \Illuminate\Http\Request $instance */
  8960. return $instance->isMethodIdempotent();
  8961. }
  8962. /**
  8963. * Checks whether the method is cacheable or not.
  8964. *
  8965. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8966. * @return bool True for GET and HEAD, false otherwise
  8967. * @static
  8968. */
  8969. public static function isMethodCacheable()
  8970. {
  8971. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8972. /** @var \Illuminate\Http\Request $instance */
  8973. return $instance->isMethodCacheable();
  8974. }
  8975. /**
  8976. * Returns the protocol version.
  8977. *
  8978. * If the application is behind a proxy, the protocol version used in the
  8979. * requests between the client and the proxy and between the proxy and the
  8980. * server might be different. This returns the former (from the "Via" header)
  8981. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8982. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8983. *
  8984. * @return string
  8985. * @static
  8986. */
  8987. public static function getProtocolVersion()
  8988. {
  8989. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8990. /** @var \Illuminate\Http\Request $instance */
  8991. return $instance->getProtocolVersion();
  8992. }
  8993. /**
  8994. * Returns the request body content.
  8995. *
  8996. * @param bool $asResource If true, a resource will be returned
  8997. * @return string|resource The request body content or a resource to read the body stream
  8998. * @throws \LogicException
  8999. * @static
  9000. */
  9001. public static function getContent($asResource = false)
  9002. {
  9003. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9004. /** @var \Illuminate\Http\Request $instance */
  9005. return $instance->getContent($asResource);
  9006. }
  9007. /**
  9008. * Gets the Etags.
  9009. *
  9010. * @return array The entity tags
  9011. * @static
  9012. */
  9013. public static function getETags()
  9014. {
  9015. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9016. /** @var \Illuminate\Http\Request $instance */
  9017. return $instance->getETags();
  9018. }
  9019. /**
  9020. *
  9021. *
  9022. * @return bool
  9023. * @static
  9024. */
  9025. public static function isNoCache()
  9026. {
  9027. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9028. /** @var \Illuminate\Http\Request $instance */
  9029. return $instance->isNoCache();
  9030. }
  9031. /**
  9032. * Gets the preferred format for the response by inspecting, in the following order:
  9033. * * the request format set using setRequestFormat
  9034. * * the values of the Accept HTTP header
  9035. *
  9036. * Note that if you use this method, you should send the "Vary: Accept" header
  9037. * in the response to prevent any issues with intermediary HTTP caches.
  9038. *
  9039. * @static
  9040. */
  9041. public static function getPreferredFormat($default = 'html')
  9042. {
  9043. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9044. /** @var \Illuminate\Http\Request $instance */
  9045. return $instance->getPreferredFormat($default);
  9046. }
  9047. /**
  9048. * Returns the preferred language.
  9049. *
  9050. * @param string[] $locales An array of ordered available locales
  9051. * @return string|null The preferred locale
  9052. * @static
  9053. */
  9054. public static function getPreferredLanguage($locales = null)
  9055. {
  9056. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9057. /** @var \Illuminate\Http\Request $instance */
  9058. return $instance->getPreferredLanguage($locales);
  9059. }
  9060. /**
  9061. * Gets a list of languages acceptable by the client browser.
  9062. *
  9063. * @return array Languages ordered in the user browser preferences
  9064. * @static
  9065. */
  9066. public static function getLanguages()
  9067. {
  9068. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9069. /** @var \Illuminate\Http\Request $instance */
  9070. return $instance->getLanguages();
  9071. }
  9072. /**
  9073. * Gets a list of charsets acceptable by the client browser.
  9074. *
  9075. * @return array List of charsets in preferable order
  9076. * @static
  9077. */
  9078. public static function getCharsets()
  9079. {
  9080. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9081. /** @var \Illuminate\Http\Request $instance */
  9082. return $instance->getCharsets();
  9083. }
  9084. /**
  9085. * Gets a list of encodings acceptable by the client browser.
  9086. *
  9087. * @return array List of encodings in preferable order
  9088. * @static
  9089. */
  9090. public static function getEncodings()
  9091. {
  9092. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9093. /** @var \Illuminate\Http\Request $instance */
  9094. return $instance->getEncodings();
  9095. }
  9096. /**
  9097. * Gets a list of content types acceptable by the client browser.
  9098. *
  9099. * @return array List of content types in preferable order
  9100. * @static
  9101. */
  9102. public static function getAcceptableContentTypes()
  9103. {
  9104. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9105. /** @var \Illuminate\Http\Request $instance */
  9106. return $instance->getAcceptableContentTypes();
  9107. }
  9108. /**
  9109. * Returns true if the request is a XMLHttpRequest.
  9110. *
  9111. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  9112. * It is known to work with common JavaScript frameworks:
  9113. *
  9114. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  9115. * @return bool true if the request is an XMLHttpRequest, false otherwise
  9116. * @static
  9117. */
  9118. public static function isXmlHttpRequest()
  9119. {
  9120. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9121. /** @var \Illuminate\Http\Request $instance */
  9122. return $instance->isXmlHttpRequest();
  9123. }
  9124. /**
  9125. * Indicates whether this request originated from a trusted proxy.
  9126. *
  9127. * This can be useful to determine whether or not to trust the
  9128. * contents of a proxy-specific header.
  9129. *
  9130. * @return bool true if the request came from a trusted proxy, false otherwise
  9131. * @static
  9132. */
  9133. public static function isFromTrustedProxy()
  9134. {
  9135. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9136. /** @var \Illuminate\Http\Request $instance */
  9137. return $instance->isFromTrustedProxy();
  9138. }
  9139. /**
  9140. * Determine if the given content types match.
  9141. *
  9142. * @param string $actual
  9143. * @param string $type
  9144. * @return bool
  9145. * @static
  9146. */
  9147. public static function matchesType($actual, $type)
  9148. {
  9149. return \Illuminate\Http\Request::matchesType($actual, $type);
  9150. }
  9151. /**
  9152. * Determine if the request is sending JSON.
  9153. *
  9154. * @return bool
  9155. * @static
  9156. */
  9157. public static function isJson()
  9158. {
  9159. /** @var \Illuminate\Http\Request $instance */
  9160. return $instance->isJson();
  9161. }
  9162. /**
  9163. * Determine if the current request probably expects a JSON response.
  9164. *
  9165. * @return bool
  9166. * @static
  9167. */
  9168. public static function expectsJson()
  9169. {
  9170. /** @var \Illuminate\Http\Request $instance */
  9171. return $instance->expectsJson();
  9172. }
  9173. /**
  9174. * Determine if the current request is asking for JSON.
  9175. *
  9176. * @return bool
  9177. * @static
  9178. */
  9179. public static function wantsJson()
  9180. {
  9181. /** @var \Illuminate\Http\Request $instance */
  9182. return $instance->wantsJson();
  9183. }
  9184. /**
  9185. * Determines whether the current requests accepts a given content type.
  9186. *
  9187. * @param string|array $contentTypes
  9188. * @return bool
  9189. * @static
  9190. */
  9191. public static function accepts($contentTypes)
  9192. {
  9193. /** @var \Illuminate\Http\Request $instance */
  9194. return $instance->accepts($contentTypes);
  9195. }
  9196. /**
  9197. * Return the most suitable content type from the given array based on content negotiation.
  9198. *
  9199. * @param string|array $contentTypes
  9200. * @return string|null
  9201. * @static
  9202. */
  9203. public static function prefers($contentTypes)
  9204. {
  9205. /** @var \Illuminate\Http\Request $instance */
  9206. return $instance->prefers($contentTypes);
  9207. }
  9208. /**
  9209. * Determine if the current request accepts any content type.
  9210. *
  9211. * @return bool
  9212. * @static
  9213. */
  9214. public static function acceptsAnyContentType()
  9215. {
  9216. /** @var \Illuminate\Http\Request $instance */
  9217. return $instance->acceptsAnyContentType();
  9218. }
  9219. /**
  9220. * Determines whether a request accepts JSON.
  9221. *
  9222. * @return bool
  9223. * @static
  9224. */
  9225. public static function acceptsJson()
  9226. {
  9227. /** @var \Illuminate\Http\Request $instance */
  9228. return $instance->acceptsJson();
  9229. }
  9230. /**
  9231. * Determines whether a request accepts HTML.
  9232. *
  9233. * @return bool
  9234. * @static
  9235. */
  9236. public static function acceptsHtml()
  9237. {
  9238. /** @var \Illuminate\Http\Request $instance */
  9239. return $instance->acceptsHtml();
  9240. }
  9241. /**
  9242. * Get the data format expected in the response.
  9243. *
  9244. * @param string $default
  9245. * @return string
  9246. * @static
  9247. */
  9248. public static function format($default = 'html')
  9249. {
  9250. /** @var \Illuminate\Http\Request $instance */
  9251. return $instance->format($default);
  9252. }
  9253. /**
  9254. * Retrieve an old input item.
  9255. *
  9256. * @param string|null $key
  9257. * @param string|array|null $default
  9258. * @return string|array
  9259. * @static
  9260. */
  9261. public static function old($key = null, $default = null)
  9262. {
  9263. /** @var \Illuminate\Http\Request $instance */
  9264. return $instance->old($key, $default);
  9265. }
  9266. /**
  9267. * Flash the input for the current request to the session.
  9268. *
  9269. * @return void
  9270. * @static
  9271. */
  9272. public static function flash()
  9273. {
  9274. /** @var \Illuminate\Http\Request $instance */
  9275. $instance->flash();
  9276. }
  9277. /**
  9278. * Flash only some of the input to the session.
  9279. *
  9280. * @param array|mixed $keys
  9281. * @return void
  9282. * @static
  9283. */
  9284. public static function flashOnly($keys)
  9285. {
  9286. /** @var \Illuminate\Http\Request $instance */
  9287. $instance->flashOnly($keys);
  9288. }
  9289. /**
  9290. * Flash only some of the input to the session.
  9291. *
  9292. * @param array|mixed $keys
  9293. * @return void
  9294. * @static
  9295. */
  9296. public static function flashExcept($keys)
  9297. {
  9298. /** @var \Illuminate\Http\Request $instance */
  9299. $instance->flashExcept($keys);
  9300. }
  9301. /**
  9302. * Flush all of the old input from the session.
  9303. *
  9304. * @return void
  9305. * @static
  9306. */
  9307. public static function flush()
  9308. {
  9309. /** @var \Illuminate\Http\Request $instance */
  9310. $instance->flush();
  9311. }
  9312. /**
  9313. * Retrieve a server variable from the request.
  9314. *
  9315. * @param string|null $key
  9316. * @param string|array|null $default
  9317. * @return string|array|null
  9318. * @static
  9319. */
  9320. public static function server($key = null, $default = null)
  9321. {
  9322. /** @var \Illuminate\Http\Request $instance */
  9323. return $instance->server($key, $default);
  9324. }
  9325. /**
  9326. * Determine if a header is set on the request.
  9327. *
  9328. * @param string $key
  9329. * @return bool
  9330. * @static
  9331. */
  9332. public static function hasHeader($key)
  9333. {
  9334. /** @var \Illuminate\Http\Request $instance */
  9335. return $instance->hasHeader($key);
  9336. }
  9337. /**
  9338. * Retrieve a header from the request.
  9339. *
  9340. * @param string|null $key
  9341. * @param string|array|null $default
  9342. * @return string|array|null
  9343. * @static
  9344. */
  9345. public static function header($key = null, $default = null)
  9346. {
  9347. /** @var \Illuminate\Http\Request $instance */
  9348. return $instance->header($key, $default);
  9349. }
  9350. /**
  9351. * Get the bearer token from the request headers.
  9352. *
  9353. * @return string|null
  9354. * @static
  9355. */
  9356. public static function bearerToken()
  9357. {
  9358. /** @var \Illuminate\Http\Request $instance */
  9359. return $instance->bearerToken();
  9360. }
  9361. /**
  9362. * Determine if the request contains a given input item key.
  9363. *
  9364. * @param string|array $key
  9365. * @return bool
  9366. * @static
  9367. */
  9368. public static function exists($key)
  9369. {
  9370. /** @var \Illuminate\Http\Request $instance */
  9371. return $instance->exists($key);
  9372. }
  9373. /**
  9374. * Determine if the request contains a given input item key.
  9375. *
  9376. * @param string|array $key
  9377. * @return bool
  9378. * @static
  9379. */
  9380. public static function has($key)
  9381. {
  9382. /** @var \Illuminate\Http\Request $instance */
  9383. return $instance->has($key);
  9384. }
  9385. /**
  9386. * Determine if the request contains any of the given inputs.
  9387. *
  9388. * @param string|array $keys
  9389. * @return bool
  9390. * @static
  9391. */
  9392. public static function hasAny($keys)
  9393. {
  9394. /** @var \Illuminate\Http\Request $instance */
  9395. return $instance->hasAny($keys);
  9396. }
  9397. /**
  9398. * Determine if the request contains a non-empty value for an input item.
  9399. *
  9400. * @param string|array $key
  9401. * @return bool
  9402. * @static
  9403. */
  9404. public static function filled($key)
  9405. {
  9406. /** @var \Illuminate\Http\Request $instance */
  9407. return $instance->filled($key);
  9408. }
  9409. /**
  9410. * Determine if the request contains a non-empty value for any of the given inputs.
  9411. *
  9412. * @param string|array $keys
  9413. * @return bool
  9414. * @static
  9415. */
  9416. public static function anyFilled($keys)
  9417. {
  9418. /** @var \Illuminate\Http\Request $instance */
  9419. return $instance->anyFilled($keys);
  9420. }
  9421. /**
  9422. * Get the keys for all of the input and files.
  9423. *
  9424. * @return array
  9425. * @static
  9426. */
  9427. public static function keys()
  9428. {
  9429. /** @var \Illuminate\Http\Request $instance */
  9430. return $instance->keys();
  9431. }
  9432. /**
  9433. * Get all of the input and files for the request.
  9434. *
  9435. * @param array|mixed|null $keys
  9436. * @return array
  9437. * @static
  9438. */
  9439. public static function all($keys = null)
  9440. {
  9441. /** @var \Illuminate\Http\Request $instance */
  9442. return $instance->all($keys);
  9443. }
  9444. /**
  9445. * Retrieve an input item from the request.
  9446. *
  9447. * @param string|null $key
  9448. * @param string|array|null $default
  9449. * @return string|array|null
  9450. * @static
  9451. */
  9452. public static function input($key = null, $default = null)
  9453. {
  9454. /** @var \Illuminate\Http\Request $instance */
  9455. return $instance->input($key, $default);
  9456. }
  9457. /**
  9458. * Get a subset containing the provided keys with values from the input data.
  9459. *
  9460. * @param array|mixed $keys
  9461. * @return array
  9462. * @static
  9463. */
  9464. public static function only($keys)
  9465. {
  9466. /** @var \Illuminate\Http\Request $instance */
  9467. return $instance->only($keys);
  9468. }
  9469. /**
  9470. * Get all of the input except for a specified array of items.
  9471. *
  9472. * @param array|mixed $keys
  9473. * @return array
  9474. * @static
  9475. */
  9476. public static function except($keys)
  9477. {
  9478. /** @var \Illuminate\Http\Request $instance */
  9479. return $instance->except($keys);
  9480. }
  9481. /**
  9482. * Retrieve a query string item from the request.
  9483. *
  9484. * @param string|null $key
  9485. * @param string|array|null $default
  9486. * @return string|array|null
  9487. * @static
  9488. */
  9489. public static function query($key = null, $default = null)
  9490. {
  9491. /** @var \Illuminate\Http\Request $instance */
  9492. return $instance->query($key, $default);
  9493. }
  9494. /**
  9495. * Retrieve a request payload item from the request.
  9496. *
  9497. * @param string|null $key
  9498. * @param string|array|null $default
  9499. * @return string|array|null
  9500. * @static
  9501. */
  9502. public static function post($key = null, $default = null)
  9503. {
  9504. /** @var \Illuminate\Http\Request $instance */
  9505. return $instance->post($key, $default);
  9506. }
  9507. /**
  9508. * Determine if a cookie is set on the request.
  9509. *
  9510. * @param string $key
  9511. * @return bool
  9512. * @static
  9513. */
  9514. public static function hasCookie($key)
  9515. {
  9516. /** @var \Illuminate\Http\Request $instance */
  9517. return $instance->hasCookie($key);
  9518. }
  9519. /**
  9520. * Retrieve a cookie from the request.
  9521. *
  9522. * @param string|null $key
  9523. * @param string|array|null $default
  9524. * @return string|array|null
  9525. * @static
  9526. */
  9527. public static function cookie($key = null, $default = null)
  9528. {
  9529. /** @var \Illuminate\Http\Request $instance */
  9530. return $instance->cookie($key, $default);
  9531. }
  9532. /**
  9533. * Get an array of all of the files on the request.
  9534. *
  9535. * @return array
  9536. * @static
  9537. */
  9538. public static function allFiles()
  9539. {
  9540. /** @var \Illuminate\Http\Request $instance */
  9541. return $instance->allFiles();
  9542. }
  9543. /**
  9544. * Determine if the uploaded data contains a file.
  9545. *
  9546. * @param string $key
  9547. * @return bool
  9548. * @static
  9549. */
  9550. public static function hasFile($key)
  9551. {
  9552. /** @var \Illuminate\Http\Request $instance */
  9553. return $instance->hasFile($key);
  9554. }
  9555. /**
  9556. * Retrieve a file from the request.
  9557. *
  9558. * @param string|null $key
  9559. * @param mixed $default
  9560. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  9561. * @static
  9562. */
  9563. public static function file($key = null, $default = null)
  9564. {
  9565. /** @var \Illuminate\Http\Request $instance */
  9566. return $instance->file($key, $default);
  9567. }
  9568. /**
  9569. * Register a custom macro.
  9570. *
  9571. * @param string $name
  9572. * @param object|callable $macro
  9573. * @return void
  9574. * @static
  9575. */
  9576. public static function macro($name, $macro)
  9577. {
  9578. \Illuminate\Http\Request::macro($name, $macro);
  9579. }
  9580. /**
  9581. * Mix another object into the class.
  9582. *
  9583. * @param object $mixin
  9584. * @param bool $replace
  9585. * @return void
  9586. * @throws \ReflectionException
  9587. * @static
  9588. */
  9589. public static function mixin($mixin, $replace = true)
  9590. {
  9591. \Illuminate\Http\Request::mixin($mixin, $replace);
  9592. }
  9593. /**
  9594. * Checks if macro is registered.
  9595. *
  9596. * @param string $name
  9597. * @return bool
  9598. * @static
  9599. */
  9600. public static function hasMacro($name)
  9601. {
  9602. return \Illuminate\Http\Request::hasMacro($name);
  9603. }
  9604. /**
  9605. *
  9606. *
  9607. * @static
  9608. */
  9609. public static function validate($rules, ...$params)
  9610. {
  9611. return \Illuminate\Http\Request::validate($rules, ...$params);
  9612. }
  9613. /**
  9614. *
  9615. *
  9616. * @static
  9617. */
  9618. public static function hasValidSignature($absolute = true)
  9619. {
  9620. return \Illuminate\Http\Request::hasValidSignature($absolute);
  9621. }
  9622. }
  9623. /**
  9624. *
  9625. *
  9626. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9627. */
  9628. class Response {
  9629. /**
  9630. * Create a new response instance.
  9631. *
  9632. * @param string $content
  9633. * @param int $status
  9634. * @param array $headers
  9635. * @return \Illuminate\Http\Response
  9636. * @static
  9637. */
  9638. public static function make($content = '', $status = 200, $headers = [])
  9639. {
  9640. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9641. return $instance->make($content, $status, $headers);
  9642. }
  9643. /**
  9644. * Create a new "no content" response.
  9645. *
  9646. * @param int $status
  9647. * @param array $headers
  9648. * @return \Illuminate\Http\Response
  9649. * @static
  9650. */
  9651. public static function noContent($status = 204, $headers = [])
  9652. {
  9653. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9654. return $instance->noContent($status, $headers);
  9655. }
  9656. /**
  9657. * Create a new response for a given view.
  9658. *
  9659. * @param string $view
  9660. * @param array $data
  9661. * @param int $status
  9662. * @param array $headers
  9663. * @return \Illuminate\Http\Response
  9664. * @static
  9665. */
  9666. public static function view($view, $data = [], $status = 200, $headers = [])
  9667. {
  9668. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9669. return $instance->view($view, $data, $status, $headers);
  9670. }
  9671. /**
  9672. * Create a new JSON response instance.
  9673. *
  9674. * @param mixed $data
  9675. * @param int $status
  9676. * @param array $headers
  9677. * @param int $options
  9678. * @return \Illuminate\Http\JsonResponse
  9679. * @static
  9680. */
  9681. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  9682. {
  9683. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9684. return $instance->json($data, $status, $headers, $options);
  9685. }
  9686. /**
  9687. * Create a new JSONP response instance.
  9688. *
  9689. * @param string $callback
  9690. * @param mixed $data
  9691. * @param int $status
  9692. * @param array $headers
  9693. * @param int $options
  9694. * @return \Illuminate\Http\JsonResponse
  9695. * @static
  9696. */
  9697. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  9698. {
  9699. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9700. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9701. }
  9702. /**
  9703. * Create a new streamed response instance.
  9704. *
  9705. * @param \Closure $callback
  9706. * @param int $status
  9707. * @param array $headers
  9708. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9709. * @static
  9710. */
  9711. public static function stream($callback, $status = 200, $headers = [])
  9712. {
  9713. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9714. return $instance->stream($callback, $status, $headers);
  9715. }
  9716. /**
  9717. * Create a new streamed response instance as a file download.
  9718. *
  9719. * @param \Closure $callback
  9720. * @param string|null $name
  9721. * @param array $headers
  9722. * @param string|null $disposition
  9723. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9724. * @static
  9725. */
  9726. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  9727. {
  9728. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9729. return $instance->streamDownload($callback, $name, $headers, $disposition);
  9730. }
  9731. /**
  9732. * Create a new file download response.
  9733. *
  9734. * @param \SplFileInfo|string $file
  9735. * @param string|null $name
  9736. * @param array $headers
  9737. * @param string|null $disposition
  9738. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9739. * @static
  9740. */
  9741. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  9742. {
  9743. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9744. return $instance->download($file, $name, $headers, $disposition);
  9745. }
  9746. /**
  9747. * Return the raw contents of a binary file.
  9748. *
  9749. * @param \SplFileInfo|string $file
  9750. * @param array $headers
  9751. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9752. * @static
  9753. */
  9754. public static function file($file, $headers = [])
  9755. {
  9756. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9757. return $instance->file($file, $headers);
  9758. }
  9759. /**
  9760. * Create a new redirect response to the given path.
  9761. *
  9762. * @param string $path
  9763. * @param int $status
  9764. * @param array $headers
  9765. * @param bool|null $secure
  9766. * @return \Illuminate\Http\RedirectResponse
  9767. * @static
  9768. */
  9769. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  9770. {
  9771. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9772. return $instance->redirectTo($path, $status, $headers, $secure);
  9773. }
  9774. /**
  9775. * Create a new redirect response to a named route.
  9776. *
  9777. * @param string $route
  9778. * @param array $parameters
  9779. * @param int $status
  9780. * @param array $headers
  9781. * @return \Illuminate\Http\RedirectResponse
  9782. * @static
  9783. */
  9784. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  9785. {
  9786. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9787. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9788. }
  9789. /**
  9790. * Create a new redirect response to a controller action.
  9791. *
  9792. * @param string $action
  9793. * @param array $parameters
  9794. * @param int $status
  9795. * @param array $headers
  9796. * @return \Illuminate\Http\RedirectResponse
  9797. * @static
  9798. */
  9799. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  9800. {
  9801. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9802. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9803. }
  9804. /**
  9805. * Create a new redirect response, while putting the current URL in the session.
  9806. *
  9807. * @param string $path
  9808. * @param int $status
  9809. * @param array $headers
  9810. * @param bool|null $secure
  9811. * @return \Illuminate\Http\RedirectResponse
  9812. * @static
  9813. */
  9814. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  9815. {
  9816. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9817. return $instance->redirectGuest($path, $status, $headers, $secure);
  9818. }
  9819. /**
  9820. * Create a new redirect response to the previously intended location.
  9821. *
  9822. * @param string $default
  9823. * @param int $status
  9824. * @param array $headers
  9825. * @param bool|null $secure
  9826. * @return \Illuminate\Http\RedirectResponse
  9827. * @static
  9828. */
  9829. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  9830. {
  9831. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9832. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9833. }
  9834. /**
  9835. * Register a custom macro.
  9836. *
  9837. * @param string $name
  9838. * @param object|callable $macro
  9839. * @return void
  9840. * @static
  9841. */
  9842. public static function macro($name, $macro)
  9843. {
  9844. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9845. }
  9846. /**
  9847. * Mix another object into the class.
  9848. *
  9849. * @param object $mixin
  9850. * @param bool $replace
  9851. * @return void
  9852. * @throws \ReflectionException
  9853. * @static
  9854. */
  9855. public static function mixin($mixin, $replace = true)
  9856. {
  9857. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  9858. }
  9859. /**
  9860. * Checks if macro is registered.
  9861. *
  9862. * @param string $name
  9863. * @return bool
  9864. * @static
  9865. */
  9866. public static function hasMacro($name)
  9867. {
  9868. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9869. }
  9870. }
  9871. /**
  9872. *
  9873. *
  9874. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  9875. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  9876. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9877. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  9878. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  9879. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  9880. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  9881. * @see \Illuminate\Routing\Router
  9882. */
  9883. class Route {
  9884. /**
  9885. * Register a new GET route with the router.
  9886. *
  9887. * @param string $uri
  9888. * @param \Closure|array|string|callable|null $action
  9889. * @return \Illuminate\Routing\Route
  9890. * @static
  9891. */
  9892. public static function get($uri, $action = null)
  9893. {
  9894. /** @var \Illuminate\Routing\Router $instance */
  9895. return $instance->get($uri, $action);
  9896. }
  9897. /**
  9898. * Register a new POST route with the router.
  9899. *
  9900. * @param string $uri
  9901. * @param \Closure|array|string|callable|null $action
  9902. * @return \Illuminate\Routing\Route
  9903. * @static
  9904. */
  9905. public static function post($uri, $action = null)
  9906. {
  9907. /** @var \Illuminate\Routing\Router $instance */
  9908. return $instance->post($uri, $action);
  9909. }
  9910. /**
  9911. * Register a new PUT route with the router.
  9912. *
  9913. * @param string $uri
  9914. * @param \Closure|array|string|callable|null $action
  9915. * @return \Illuminate\Routing\Route
  9916. * @static
  9917. */
  9918. public static function put($uri, $action = null)
  9919. {
  9920. /** @var \Illuminate\Routing\Router $instance */
  9921. return $instance->put($uri, $action);
  9922. }
  9923. /**
  9924. * Register a new PATCH route with the router.
  9925. *
  9926. * @param string $uri
  9927. * @param \Closure|array|string|callable|null $action
  9928. * @return \Illuminate\Routing\Route
  9929. * @static
  9930. */
  9931. public static function patch($uri, $action = null)
  9932. {
  9933. /** @var \Illuminate\Routing\Router $instance */
  9934. return $instance->patch($uri, $action);
  9935. }
  9936. /**
  9937. * Register a new DELETE route with the router.
  9938. *
  9939. * @param string $uri
  9940. * @param \Closure|array|string|callable|null $action
  9941. * @return \Illuminate\Routing\Route
  9942. * @static
  9943. */
  9944. public static function delete($uri, $action = null)
  9945. {
  9946. /** @var \Illuminate\Routing\Router $instance */
  9947. return $instance->delete($uri, $action);
  9948. }
  9949. /**
  9950. * Register a new OPTIONS route with the router.
  9951. *
  9952. * @param string $uri
  9953. * @param \Closure|array|string|callable|null $action
  9954. * @return \Illuminate\Routing\Route
  9955. * @static
  9956. */
  9957. public static function options($uri, $action = null)
  9958. {
  9959. /** @var \Illuminate\Routing\Router $instance */
  9960. return $instance->options($uri, $action);
  9961. }
  9962. /**
  9963. * Register a new route responding to all verbs.
  9964. *
  9965. * @param string $uri
  9966. * @param \Closure|array|string|callable|null $action
  9967. * @return \Illuminate\Routing\Route
  9968. * @static
  9969. */
  9970. public static function any($uri, $action = null)
  9971. {
  9972. /** @var \Illuminate\Routing\Router $instance */
  9973. return $instance->any($uri, $action);
  9974. }
  9975. /**
  9976. * Register a new Fallback route with the router.
  9977. *
  9978. * @param \Closure|array|string|callable|null $action
  9979. * @return \Illuminate\Routing\Route
  9980. * @static
  9981. */
  9982. public static function fallback($action)
  9983. {
  9984. /** @var \Illuminate\Routing\Router $instance */
  9985. return $instance->fallback($action);
  9986. }
  9987. /**
  9988. * Create a redirect from one URI to another.
  9989. *
  9990. * @param string $uri
  9991. * @param string $destination
  9992. * @param int $status
  9993. * @return \Illuminate\Routing\Route
  9994. * @static
  9995. */
  9996. public static function redirect($uri, $destination, $status = 302)
  9997. {
  9998. /** @var \Illuminate\Routing\Router $instance */
  9999. return $instance->redirect($uri, $destination, $status);
  10000. }
  10001. /**
  10002. * Create a permanent redirect from one URI to another.
  10003. *
  10004. * @param string $uri
  10005. * @param string $destination
  10006. * @return \Illuminate\Routing\Route
  10007. * @static
  10008. */
  10009. public static function permanentRedirect($uri, $destination)
  10010. {
  10011. /** @var \Illuminate\Routing\Router $instance */
  10012. return $instance->permanentRedirect($uri, $destination);
  10013. }
  10014. /**
  10015. * Register a new route that returns a view.
  10016. *
  10017. * @param string $uri
  10018. * @param string $view
  10019. * @param array $data
  10020. * @return \Illuminate\Routing\Route
  10021. * @static
  10022. */
  10023. public static function view($uri, $view, $data = [])
  10024. {
  10025. /** @var \Illuminate\Routing\Router $instance */
  10026. return $instance->view($uri, $view, $data);
  10027. }
  10028. /**
  10029. * Register a new route with the given verbs.
  10030. *
  10031. * @param array|string $methods
  10032. * @param string $uri
  10033. * @param \Closure|array|string|callable|null $action
  10034. * @return \Illuminate\Routing\Route
  10035. * @static
  10036. */
  10037. public static function match($methods, $uri, $action = null)
  10038. {
  10039. /** @var \Illuminate\Routing\Router $instance */
  10040. return $instance->match($methods, $uri, $action);
  10041. }
  10042. /**
  10043. * Register an array of resource controllers.
  10044. *
  10045. * @param array $resources
  10046. * @param array $options
  10047. * @return void
  10048. * @static
  10049. */
  10050. public static function resources($resources, $options = [])
  10051. {
  10052. /** @var \Illuminate\Routing\Router $instance */
  10053. $instance->resources($resources, $options);
  10054. }
  10055. /**
  10056. * Route a resource to a controller.
  10057. *
  10058. * @param string $name
  10059. * @param string $controller
  10060. * @param array $options
  10061. * @return \Illuminate\Routing\PendingResourceRegistration
  10062. * @static
  10063. */
  10064. public static function resource($name, $controller, $options = [])
  10065. {
  10066. /** @var \Illuminate\Routing\Router $instance */
  10067. return $instance->resource($name, $controller, $options);
  10068. }
  10069. /**
  10070. * Register an array of API resource controllers.
  10071. *
  10072. * @param array $resources
  10073. * @param array $options
  10074. * @return void
  10075. * @static
  10076. */
  10077. public static function apiResources($resources, $options = [])
  10078. {
  10079. /** @var \Illuminate\Routing\Router $instance */
  10080. $instance->apiResources($resources, $options);
  10081. }
  10082. /**
  10083. * Route an API resource to a controller.
  10084. *
  10085. * @param string $name
  10086. * @param string $controller
  10087. * @param array $options
  10088. * @return \Illuminate\Routing\PendingResourceRegistration
  10089. * @static
  10090. */
  10091. public static function apiResource($name, $controller, $options = [])
  10092. {
  10093. /** @var \Illuminate\Routing\Router $instance */
  10094. return $instance->apiResource($name, $controller, $options);
  10095. }
  10096. /**
  10097. * Create a route group with shared attributes.
  10098. *
  10099. * @param array $attributes
  10100. * @param \Closure|string $routes
  10101. * @return void
  10102. * @static
  10103. */
  10104. public static function group($attributes, $routes)
  10105. {
  10106. /** @var \Illuminate\Routing\Router $instance */
  10107. $instance->group($attributes, $routes);
  10108. }
  10109. /**
  10110. * Merge the given array with the last group stack.
  10111. *
  10112. * @param array $new
  10113. * @return array
  10114. * @static
  10115. */
  10116. public static function mergeWithLastGroup($new)
  10117. {
  10118. /** @var \Illuminate\Routing\Router $instance */
  10119. return $instance->mergeWithLastGroup($new);
  10120. }
  10121. /**
  10122. * Get the prefix from the last group on the stack.
  10123. *
  10124. * @return string
  10125. * @static
  10126. */
  10127. public static function getLastGroupPrefix()
  10128. {
  10129. /** @var \Illuminate\Routing\Router $instance */
  10130. return $instance->getLastGroupPrefix();
  10131. }
  10132. /**
  10133. * Add a route to the underlying route collection.
  10134. *
  10135. * @param array|string $methods
  10136. * @param string $uri
  10137. * @param \Closure|array|string|callable|null $action
  10138. * @return \Illuminate\Routing\Route
  10139. * @static
  10140. */
  10141. public static function addRoute($methods, $uri, $action)
  10142. {
  10143. /** @var \Illuminate\Routing\Router $instance */
  10144. return $instance->addRoute($methods, $uri, $action);
  10145. }
  10146. /**
  10147. * Return the response returned by the given route.
  10148. *
  10149. * @param string $name
  10150. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10151. * @static
  10152. */
  10153. public static function respondWithRoute($name)
  10154. {
  10155. /** @var \Illuminate\Routing\Router $instance */
  10156. return $instance->respondWithRoute($name);
  10157. }
  10158. /**
  10159. * Dispatch the request to the application.
  10160. *
  10161. * @param \Illuminate\Http\Request $request
  10162. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10163. * @static
  10164. */
  10165. public static function dispatch($request)
  10166. {
  10167. /** @var \Illuminate\Routing\Router $instance */
  10168. return $instance->dispatch($request);
  10169. }
  10170. /**
  10171. * Dispatch the request to a route and return the response.
  10172. *
  10173. * @param \Illuminate\Http\Request $request
  10174. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10175. * @static
  10176. */
  10177. public static function dispatchToRoute($request)
  10178. {
  10179. /** @var \Illuminate\Routing\Router $instance */
  10180. return $instance->dispatchToRoute($request);
  10181. }
  10182. /**
  10183. * Gather the middleware for the given route with resolved class names.
  10184. *
  10185. * @param \Illuminate\Routing\Route $route
  10186. * @return array
  10187. * @static
  10188. */
  10189. public static function gatherRouteMiddleware($route)
  10190. {
  10191. /** @var \Illuminate\Routing\Router $instance */
  10192. return $instance->gatherRouteMiddleware($route);
  10193. }
  10194. /**
  10195. * Create a response instance from the given value.
  10196. *
  10197. * @param \Symfony\Component\HttpFoundation\Request $request
  10198. * @param mixed $response
  10199. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10200. * @static
  10201. */
  10202. public static function prepareResponse($request, $response)
  10203. {
  10204. /** @var \Illuminate\Routing\Router $instance */
  10205. return $instance->prepareResponse($request, $response);
  10206. }
  10207. /**
  10208. * Static version of prepareResponse.
  10209. *
  10210. * @param \Symfony\Component\HttpFoundation\Request $request
  10211. * @param mixed $response
  10212. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10213. * @static
  10214. */
  10215. public static function toResponse($request, $response)
  10216. {
  10217. return \Illuminate\Routing\Router::toResponse($request, $response);
  10218. }
  10219. /**
  10220. * Substitute the route bindings onto the route.
  10221. *
  10222. * @param \Illuminate\Routing\Route $route
  10223. * @return \Illuminate\Routing\Route
  10224. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10225. * @static
  10226. */
  10227. public static function substituteBindings($route)
  10228. {
  10229. /** @var \Illuminate\Routing\Router $instance */
  10230. return $instance->substituteBindings($route);
  10231. }
  10232. /**
  10233. * Substitute the implicit Eloquent model bindings for the route.
  10234. *
  10235. * @param \Illuminate\Routing\Route $route
  10236. * @return void
  10237. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10238. * @static
  10239. */
  10240. public static function substituteImplicitBindings($route)
  10241. {
  10242. /** @var \Illuminate\Routing\Router $instance */
  10243. $instance->substituteImplicitBindings($route);
  10244. }
  10245. /**
  10246. * Register a route matched event listener.
  10247. *
  10248. * @param string|callable $callback
  10249. * @return void
  10250. * @static
  10251. */
  10252. public static function matched($callback)
  10253. {
  10254. /** @var \Illuminate\Routing\Router $instance */
  10255. $instance->matched($callback);
  10256. }
  10257. /**
  10258. * Get all of the defined middleware short-hand names.
  10259. *
  10260. * @return array
  10261. * @static
  10262. */
  10263. public static function getMiddleware()
  10264. {
  10265. /** @var \Illuminate\Routing\Router $instance */
  10266. return $instance->getMiddleware();
  10267. }
  10268. /**
  10269. * Register a short-hand name for a middleware.
  10270. *
  10271. * @param string $name
  10272. * @param string $class
  10273. * @return \Illuminate\Routing\Router
  10274. * @static
  10275. */
  10276. public static function aliasMiddleware($name, $class)
  10277. {
  10278. /** @var \Illuminate\Routing\Router $instance */
  10279. return $instance->aliasMiddleware($name, $class);
  10280. }
  10281. /**
  10282. * Check if a middlewareGroup with the given name exists.
  10283. *
  10284. * @param string $name
  10285. * @return bool
  10286. * @static
  10287. */
  10288. public static function hasMiddlewareGroup($name)
  10289. {
  10290. /** @var \Illuminate\Routing\Router $instance */
  10291. return $instance->hasMiddlewareGroup($name);
  10292. }
  10293. /**
  10294. * Get all of the defined middleware groups.
  10295. *
  10296. * @return array
  10297. * @static
  10298. */
  10299. public static function getMiddlewareGroups()
  10300. {
  10301. /** @var \Illuminate\Routing\Router $instance */
  10302. return $instance->getMiddlewareGroups();
  10303. }
  10304. /**
  10305. * Register a group of middleware.
  10306. *
  10307. * @param string $name
  10308. * @param array $middleware
  10309. * @return \Illuminate\Routing\Router
  10310. * @static
  10311. */
  10312. public static function middlewareGroup($name, $middleware)
  10313. {
  10314. /** @var \Illuminate\Routing\Router $instance */
  10315. return $instance->middlewareGroup($name, $middleware);
  10316. }
  10317. /**
  10318. * Add a middleware to the beginning of a middleware group.
  10319. *
  10320. * If the middleware is already in the group, it will not be added again.
  10321. *
  10322. * @param string $group
  10323. * @param string $middleware
  10324. * @return \Illuminate\Routing\Router
  10325. * @static
  10326. */
  10327. public static function prependMiddlewareToGroup($group, $middleware)
  10328. {
  10329. /** @var \Illuminate\Routing\Router $instance */
  10330. return $instance->prependMiddlewareToGroup($group, $middleware);
  10331. }
  10332. /**
  10333. * Add a middleware to the end of a middleware group.
  10334. *
  10335. * If the middleware is already in the group, it will not be added again.
  10336. *
  10337. * @param string $group
  10338. * @param string $middleware
  10339. * @return \Illuminate\Routing\Router
  10340. * @static
  10341. */
  10342. public static function pushMiddlewareToGroup($group, $middleware)
  10343. {
  10344. /** @var \Illuminate\Routing\Router $instance */
  10345. return $instance->pushMiddlewareToGroup($group, $middleware);
  10346. }
  10347. /**
  10348. * Add a new route parameter binder.
  10349. *
  10350. * @param string $key
  10351. * @param string|callable $binder
  10352. * @return void
  10353. * @static
  10354. */
  10355. public static function bind($key, $binder)
  10356. {
  10357. /** @var \Illuminate\Routing\Router $instance */
  10358. $instance->bind($key, $binder);
  10359. }
  10360. /**
  10361. * Register a model binder for a wildcard.
  10362. *
  10363. * @param string $key
  10364. * @param string $class
  10365. * @param \Closure|null $callback
  10366. * @return void
  10367. * @static
  10368. */
  10369. public static function model($key, $class, $callback = null)
  10370. {
  10371. /** @var \Illuminate\Routing\Router $instance */
  10372. $instance->model($key, $class, $callback);
  10373. }
  10374. /**
  10375. * Get the binding callback for a given binding.
  10376. *
  10377. * @param string $key
  10378. * @return \Closure|null
  10379. * @static
  10380. */
  10381. public static function getBindingCallback($key)
  10382. {
  10383. /** @var \Illuminate\Routing\Router $instance */
  10384. return $instance->getBindingCallback($key);
  10385. }
  10386. /**
  10387. * Get the global "where" patterns.
  10388. *
  10389. * @return array
  10390. * @static
  10391. */
  10392. public static function getPatterns()
  10393. {
  10394. /** @var \Illuminate\Routing\Router $instance */
  10395. return $instance->getPatterns();
  10396. }
  10397. /**
  10398. * Set a global where pattern on all routes.
  10399. *
  10400. * @param string $key
  10401. * @param string $pattern
  10402. * @return void
  10403. * @static
  10404. */
  10405. public static function pattern($key, $pattern)
  10406. {
  10407. /** @var \Illuminate\Routing\Router $instance */
  10408. $instance->pattern($key, $pattern);
  10409. }
  10410. /**
  10411. * Set a group of global where patterns on all routes.
  10412. *
  10413. * @param array $patterns
  10414. * @return void
  10415. * @static
  10416. */
  10417. public static function patterns($patterns)
  10418. {
  10419. /** @var \Illuminate\Routing\Router $instance */
  10420. $instance->patterns($patterns);
  10421. }
  10422. /**
  10423. * Determine if the router currently has a group stack.
  10424. *
  10425. * @return bool
  10426. * @static
  10427. */
  10428. public static function hasGroupStack()
  10429. {
  10430. /** @var \Illuminate\Routing\Router $instance */
  10431. return $instance->hasGroupStack();
  10432. }
  10433. /**
  10434. * Get the current group stack for the router.
  10435. *
  10436. * @return array
  10437. * @static
  10438. */
  10439. public static function getGroupStack()
  10440. {
  10441. /** @var \Illuminate\Routing\Router $instance */
  10442. return $instance->getGroupStack();
  10443. }
  10444. /**
  10445. * Get a route parameter for the current route.
  10446. *
  10447. * @param string $key
  10448. * @param string|null $default
  10449. * @return mixed
  10450. * @static
  10451. */
  10452. public static function input($key, $default = null)
  10453. {
  10454. /** @var \Illuminate\Routing\Router $instance */
  10455. return $instance->input($key, $default);
  10456. }
  10457. /**
  10458. * Get the request currently being dispatched.
  10459. *
  10460. * @return \Illuminate\Http\Request
  10461. * @static
  10462. */
  10463. public static function getCurrentRequest()
  10464. {
  10465. /** @var \Illuminate\Routing\Router $instance */
  10466. return $instance->getCurrentRequest();
  10467. }
  10468. /**
  10469. * Get the currently dispatched route instance.
  10470. *
  10471. * @return \Illuminate\Routing\Route
  10472. * @static
  10473. */
  10474. public static function getCurrentRoute()
  10475. {
  10476. /** @var \Illuminate\Routing\Router $instance */
  10477. return $instance->getCurrentRoute();
  10478. }
  10479. /**
  10480. * Get the currently dispatched route instance.
  10481. *
  10482. * @return \Illuminate\Routing\Route|null
  10483. * @static
  10484. */
  10485. public static function current()
  10486. {
  10487. /** @var \Illuminate\Routing\Router $instance */
  10488. return $instance->current();
  10489. }
  10490. /**
  10491. * Check if a route with the given name exists.
  10492. *
  10493. * @param string $name
  10494. * @return bool
  10495. * @static
  10496. */
  10497. public static function has($name)
  10498. {
  10499. /** @var \Illuminate\Routing\Router $instance */
  10500. return $instance->has($name);
  10501. }
  10502. /**
  10503. * Get the current route name.
  10504. *
  10505. * @return string|null
  10506. * @static
  10507. */
  10508. public static function currentRouteName()
  10509. {
  10510. /** @var \Illuminate\Routing\Router $instance */
  10511. return $instance->currentRouteName();
  10512. }
  10513. /**
  10514. * Alias for the "currentRouteNamed" method.
  10515. *
  10516. * @param mixed $patterns
  10517. * @return bool
  10518. * @static
  10519. */
  10520. public static function is(...$patterns)
  10521. {
  10522. /** @var \Illuminate\Routing\Router $instance */
  10523. return $instance->is(...$patterns);
  10524. }
  10525. /**
  10526. * Determine if the current route matches a pattern.
  10527. *
  10528. * @param mixed $patterns
  10529. * @return bool
  10530. * @static
  10531. */
  10532. public static function currentRouteNamed(...$patterns)
  10533. {
  10534. /** @var \Illuminate\Routing\Router $instance */
  10535. return $instance->currentRouteNamed(...$patterns);
  10536. }
  10537. /**
  10538. * Get the current route action.
  10539. *
  10540. * @return string|null
  10541. * @static
  10542. */
  10543. public static function currentRouteAction()
  10544. {
  10545. /** @var \Illuminate\Routing\Router $instance */
  10546. return $instance->currentRouteAction();
  10547. }
  10548. /**
  10549. * Alias for the "currentRouteUses" method.
  10550. *
  10551. * @param array $patterns
  10552. * @return bool
  10553. * @static
  10554. */
  10555. public static function uses(...$patterns)
  10556. {
  10557. /** @var \Illuminate\Routing\Router $instance */
  10558. return $instance->uses(...$patterns);
  10559. }
  10560. /**
  10561. * Determine if the current route action matches a given action.
  10562. *
  10563. * @param string $action
  10564. * @return bool
  10565. * @static
  10566. */
  10567. public static function currentRouteUses($action)
  10568. {
  10569. /** @var \Illuminate\Routing\Router $instance */
  10570. return $instance->currentRouteUses($action);
  10571. }
  10572. /**
  10573. * Register the typical authentication routes for an application.
  10574. *
  10575. * @param array $options
  10576. * @return void
  10577. * @static
  10578. */
  10579. public static function auth($options = [])
  10580. {
  10581. /** @var \Illuminate\Routing\Router $instance */
  10582. $instance->auth($options);
  10583. }
  10584. /**
  10585. * Register the typical reset password routes for an application.
  10586. *
  10587. * @return void
  10588. * @static
  10589. */
  10590. public static function resetPassword()
  10591. {
  10592. /** @var \Illuminate\Routing\Router $instance */
  10593. $instance->resetPassword();
  10594. }
  10595. /**
  10596. * Register the typical email verification routes for an application.
  10597. *
  10598. * @return void
  10599. * @static
  10600. */
  10601. public static function emailVerification()
  10602. {
  10603. /** @var \Illuminate\Routing\Router $instance */
  10604. $instance->emailVerification();
  10605. }
  10606. /**
  10607. * Set the unmapped global resource parameters to singular.
  10608. *
  10609. * @param bool $singular
  10610. * @return void
  10611. * @static
  10612. */
  10613. public static function singularResourceParameters($singular = true)
  10614. {
  10615. /** @var \Illuminate\Routing\Router $instance */
  10616. $instance->singularResourceParameters($singular);
  10617. }
  10618. /**
  10619. * Set the global resource parameter mapping.
  10620. *
  10621. * @param array $parameters
  10622. * @return void
  10623. * @static
  10624. */
  10625. public static function resourceParameters($parameters = [])
  10626. {
  10627. /** @var \Illuminate\Routing\Router $instance */
  10628. $instance->resourceParameters($parameters);
  10629. }
  10630. /**
  10631. * Get or set the verbs used in the resource URIs.
  10632. *
  10633. * @param array $verbs
  10634. * @return array|null
  10635. * @static
  10636. */
  10637. public static function resourceVerbs($verbs = [])
  10638. {
  10639. /** @var \Illuminate\Routing\Router $instance */
  10640. return $instance->resourceVerbs($verbs);
  10641. }
  10642. /**
  10643. * Get the underlying route collection.
  10644. *
  10645. * @return \Illuminate\Routing\RouteCollection
  10646. * @static
  10647. */
  10648. public static function getRoutes()
  10649. {
  10650. /** @var \Illuminate\Routing\Router $instance */
  10651. return $instance->getRoutes();
  10652. }
  10653. /**
  10654. * Set the route collection instance.
  10655. *
  10656. * @param \Illuminate\Routing\RouteCollection $routes
  10657. * @return void
  10658. * @static
  10659. */
  10660. public static function setRoutes($routes)
  10661. {
  10662. /** @var \Illuminate\Routing\Router $instance */
  10663. $instance->setRoutes($routes);
  10664. }
  10665. /**
  10666. * Register a custom macro.
  10667. *
  10668. * @param string $name
  10669. * @param object|callable $macro
  10670. * @return void
  10671. * @static
  10672. */
  10673. public static function macro($name, $macro)
  10674. {
  10675. \Illuminate\Routing\Router::macro($name, $macro);
  10676. }
  10677. /**
  10678. * Mix another object into the class.
  10679. *
  10680. * @param object $mixin
  10681. * @param bool $replace
  10682. * @return void
  10683. * @throws \ReflectionException
  10684. * @static
  10685. */
  10686. public static function mixin($mixin, $replace = true)
  10687. {
  10688. \Illuminate\Routing\Router::mixin($mixin, $replace);
  10689. }
  10690. /**
  10691. * Checks if macro is registered.
  10692. *
  10693. * @param string $name
  10694. * @return bool
  10695. * @static
  10696. */
  10697. public static function hasMacro($name)
  10698. {
  10699. return \Illuminate\Routing\Router::hasMacro($name);
  10700. }
  10701. /**
  10702. * Dynamically handle calls to the class.
  10703. *
  10704. * @param string $method
  10705. * @param array $parameters
  10706. * @return mixed
  10707. * @throws \BadMethodCallException
  10708. * @static
  10709. */
  10710. public static function macroCall($method, $parameters)
  10711. {
  10712. /** @var \Illuminate\Routing\Router $instance */
  10713. return $instance->macroCall($method, $parameters);
  10714. }
  10715. }
  10716. /**
  10717. *
  10718. *
  10719. * @see \Illuminate\Database\Schema\Builder
  10720. */
  10721. class Schema {
  10722. /**
  10723. * Determine if the given table exists.
  10724. *
  10725. * @param string $table
  10726. * @return bool
  10727. * @static
  10728. */
  10729. public static function hasTable($table)
  10730. {
  10731. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10732. return $instance->hasTable($table);
  10733. }
  10734. /**
  10735. * Get the column listing for a given table.
  10736. *
  10737. * @param string $table
  10738. * @return array
  10739. * @static
  10740. */
  10741. public static function getColumnListing($table)
  10742. {
  10743. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10744. return $instance->getColumnListing($table);
  10745. }
  10746. /**
  10747. * Drop all tables from the database.
  10748. *
  10749. * @return void
  10750. * @static
  10751. */
  10752. public static function dropAllTables()
  10753. {
  10754. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10755. $instance->dropAllTables();
  10756. }
  10757. /**
  10758. * Drop all views from the database.
  10759. *
  10760. * @return void
  10761. * @static
  10762. */
  10763. public static function dropAllViews()
  10764. {
  10765. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10766. $instance->dropAllViews();
  10767. }
  10768. /**
  10769. * Set the default string length for migrations.
  10770. *
  10771. * @param int $length
  10772. * @return void
  10773. * @static
  10774. */
  10775. public static function defaultStringLength($length)
  10776. {
  10777. //Method inherited from \Illuminate\Database\Schema\Builder
  10778. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10779. }
  10780. /**
  10781. * Determine if the given table has a given column.
  10782. *
  10783. * @param string $table
  10784. * @param string $column
  10785. * @return bool
  10786. * @static
  10787. */
  10788. public static function hasColumn($table, $column)
  10789. {
  10790. //Method inherited from \Illuminate\Database\Schema\Builder
  10791. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10792. return $instance->hasColumn($table, $column);
  10793. }
  10794. /**
  10795. * Determine if the given table has given columns.
  10796. *
  10797. * @param string $table
  10798. * @param array $columns
  10799. * @return bool
  10800. * @static
  10801. */
  10802. public static function hasColumns($table, $columns)
  10803. {
  10804. //Method inherited from \Illuminate\Database\Schema\Builder
  10805. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10806. return $instance->hasColumns($table, $columns);
  10807. }
  10808. /**
  10809. * Get the data type for the given column name.
  10810. *
  10811. * @param string $table
  10812. * @param string $column
  10813. * @return string
  10814. * @static
  10815. */
  10816. public static function getColumnType($table, $column)
  10817. {
  10818. //Method inherited from \Illuminate\Database\Schema\Builder
  10819. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10820. return $instance->getColumnType($table, $column);
  10821. }
  10822. /**
  10823. * Modify a table on the schema.
  10824. *
  10825. * @param string $table
  10826. * @param \Closure $callback
  10827. * @return void
  10828. * @static
  10829. */
  10830. public static function table($table, $callback)
  10831. {
  10832. //Method inherited from \Illuminate\Database\Schema\Builder
  10833. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10834. $instance->table($table, $callback);
  10835. }
  10836. /**
  10837. * Create a new table on the schema.
  10838. *
  10839. * @param string $table
  10840. * @param \Closure $callback
  10841. * @return void
  10842. * @static
  10843. */
  10844. public static function create($table, $callback)
  10845. {
  10846. //Method inherited from \Illuminate\Database\Schema\Builder
  10847. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10848. $instance->create($table, $callback);
  10849. }
  10850. /**
  10851. * Drop a table from the schema.
  10852. *
  10853. * @param string $table
  10854. * @return void
  10855. * @static
  10856. */
  10857. public static function drop($table)
  10858. {
  10859. //Method inherited from \Illuminate\Database\Schema\Builder
  10860. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10861. $instance->drop($table);
  10862. }
  10863. /**
  10864. * Drop a table from the schema if it exists.
  10865. *
  10866. * @param string $table
  10867. * @return void
  10868. * @static
  10869. */
  10870. public static function dropIfExists($table)
  10871. {
  10872. //Method inherited from \Illuminate\Database\Schema\Builder
  10873. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10874. $instance->dropIfExists($table);
  10875. }
  10876. /**
  10877. * Drop all types from the database.
  10878. *
  10879. * @return void
  10880. * @throws \LogicException
  10881. * @static
  10882. */
  10883. public static function dropAllTypes()
  10884. {
  10885. //Method inherited from \Illuminate\Database\Schema\Builder
  10886. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10887. $instance->dropAllTypes();
  10888. }
  10889. /**
  10890. * Rename a table on the schema.
  10891. *
  10892. * @param string $from
  10893. * @param string $to
  10894. * @return void
  10895. * @static
  10896. */
  10897. public static function rename($from, $to)
  10898. {
  10899. //Method inherited from \Illuminate\Database\Schema\Builder
  10900. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10901. $instance->rename($from, $to);
  10902. }
  10903. /**
  10904. * Enable foreign key constraints.
  10905. *
  10906. * @return bool
  10907. * @static
  10908. */
  10909. public static function enableForeignKeyConstraints()
  10910. {
  10911. //Method inherited from \Illuminate\Database\Schema\Builder
  10912. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10913. return $instance->enableForeignKeyConstraints();
  10914. }
  10915. /**
  10916. * Disable foreign key constraints.
  10917. *
  10918. * @return bool
  10919. * @static
  10920. */
  10921. public static function disableForeignKeyConstraints()
  10922. {
  10923. //Method inherited from \Illuminate\Database\Schema\Builder
  10924. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10925. return $instance->disableForeignKeyConstraints();
  10926. }
  10927. /**
  10928. * Register a custom Doctrine mapping type.
  10929. *
  10930. * @param string $class
  10931. * @param string $name
  10932. * @param string $type
  10933. * @return void
  10934. * @throws \Doctrine\DBAL\DBALException
  10935. * @static
  10936. */
  10937. public static function registerCustomDoctrineType($class, $name, $type)
  10938. {
  10939. //Method inherited from \Illuminate\Database\Schema\Builder
  10940. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10941. $instance->registerCustomDoctrineType($class, $name, $type);
  10942. }
  10943. /**
  10944. * Get the database connection instance.
  10945. *
  10946. * @return \Illuminate\Database\Connection
  10947. * @static
  10948. */
  10949. public static function getConnection()
  10950. {
  10951. //Method inherited from \Illuminate\Database\Schema\Builder
  10952. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10953. return $instance->getConnection();
  10954. }
  10955. /**
  10956. * Set the database connection instance.
  10957. *
  10958. * @param \Illuminate\Database\Connection $connection
  10959. * @return \Illuminate\Database\Schema\MySqlBuilder
  10960. * @static
  10961. */
  10962. public static function setConnection($connection)
  10963. {
  10964. //Method inherited from \Illuminate\Database\Schema\Builder
  10965. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10966. return $instance->setConnection($connection);
  10967. }
  10968. /**
  10969. * Set the Schema Blueprint resolver callback.
  10970. *
  10971. * @param \Closure $resolver
  10972. * @return void
  10973. * @static
  10974. */
  10975. public static function blueprintResolver($resolver)
  10976. {
  10977. //Method inherited from \Illuminate\Database\Schema\Builder
  10978. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10979. $instance->blueprintResolver($resolver);
  10980. }
  10981. }
  10982. /**
  10983. *
  10984. *
  10985. * @see \Illuminate\Session\SessionManager
  10986. * @see \Illuminate\Session\Store
  10987. */
  10988. class Session {
  10989. /**
  10990. * Get the session configuration.
  10991. *
  10992. * @return array
  10993. * @static
  10994. */
  10995. public static function getSessionConfig()
  10996. {
  10997. /** @var \Illuminate\Session\SessionManager $instance */
  10998. return $instance->getSessionConfig();
  10999. }
  11000. /**
  11001. * Get the default session driver name.
  11002. *
  11003. * @return string
  11004. * @static
  11005. */
  11006. public static function getDefaultDriver()
  11007. {
  11008. /** @var \Illuminate\Session\SessionManager $instance */
  11009. return $instance->getDefaultDriver();
  11010. }
  11011. /**
  11012. * Set the default session driver name.
  11013. *
  11014. * @param string $name
  11015. * @return void
  11016. * @static
  11017. */
  11018. public static function setDefaultDriver($name)
  11019. {
  11020. /** @var \Illuminate\Session\SessionManager $instance */
  11021. $instance->setDefaultDriver($name);
  11022. }
  11023. /**
  11024. * Get a driver instance.
  11025. *
  11026. * @param string $driver
  11027. * @return mixed
  11028. * @throws \InvalidArgumentException
  11029. * @static
  11030. */
  11031. public static function driver($driver = null)
  11032. {
  11033. //Method inherited from \Illuminate\Support\Manager
  11034. /** @var \Illuminate\Session\SessionManager $instance */
  11035. return $instance->driver($driver);
  11036. }
  11037. /**
  11038. * Register a custom driver creator Closure.
  11039. *
  11040. * @param string $driver
  11041. * @param \Closure $callback
  11042. * @return \Illuminate\Session\SessionManager
  11043. * @static
  11044. */
  11045. public static function extend($driver, $callback)
  11046. {
  11047. //Method inherited from \Illuminate\Support\Manager
  11048. /** @var \Illuminate\Session\SessionManager $instance */
  11049. return $instance->extend($driver, $callback);
  11050. }
  11051. /**
  11052. * Get all of the created "drivers".
  11053. *
  11054. * @return array
  11055. * @static
  11056. */
  11057. public static function getDrivers()
  11058. {
  11059. //Method inherited from \Illuminate\Support\Manager
  11060. /** @var \Illuminate\Session\SessionManager $instance */
  11061. return $instance->getDrivers();
  11062. }
  11063. /**
  11064. * Start the session, reading the data from a handler.
  11065. *
  11066. * @return bool
  11067. * @static
  11068. */
  11069. public static function start()
  11070. {
  11071. /** @var \Illuminate\Session\Store $instance */
  11072. return $instance->start();
  11073. }
  11074. /**
  11075. * Save the session data to storage.
  11076. *
  11077. * @return void
  11078. * @static
  11079. */
  11080. public static function save()
  11081. {
  11082. /** @var \Illuminate\Session\Store $instance */
  11083. $instance->save();
  11084. }
  11085. /**
  11086. * Age the flash data for the session.
  11087. *
  11088. * @return void
  11089. * @static
  11090. */
  11091. public static function ageFlashData()
  11092. {
  11093. /** @var \Illuminate\Session\Store $instance */
  11094. $instance->ageFlashData();
  11095. }
  11096. /**
  11097. * Get all of the session data.
  11098. *
  11099. * @return array
  11100. * @static
  11101. */
  11102. public static function all()
  11103. {
  11104. /** @var \Illuminate\Session\Store $instance */
  11105. return $instance->all();
  11106. }
  11107. /**
  11108. * Get a subset of the session data.
  11109. *
  11110. * @param array $keys
  11111. * @return array
  11112. * @static
  11113. */
  11114. public static function only($keys)
  11115. {
  11116. /** @var \Illuminate\Session\Store $instance */
  11117. return $instance->only($keys);
  11118. }
  11119. /**
  11120. * Checks if a key exists.
  11121. *
  11122. * @param string|array $key
  11123. * @return bool
  11124. * @static
  11125. */
  11126. public static function exists($key)
  11127. {
  11128. /** @var \Illuminate\Session\Store $instance */
  11129. return $instance->exists($key);
  11130. }
  11131. /**
  11132. * Checks if a key is present and not null.
  11133. *
  11134. * @param string|array $key
  11135. * @return bool
  11136. * @static
  11137. */
  11138. public static function has($key)
  11139. {
  11140. /** @var \Illuminate\Session\Store $instance */
  11141. return $instance->has($key);
  11142. }
  11143. /**
  11144. * Get an item from the session.
  11145. *
  11146. * @param string $key
  11147. * @param mixed $default
  11148. * @return mixed
  11149. * @static
  11150. */
  11151. public static function get($key, $default = null)
  11152. {
  11153. /** @var \Illuminate\Session\Store $instance */
  11154. return $instance->get($key, $default);
  11155. }
  11156. /**
  11157. * Get the value of a given key and then forget it.
  11158. *
  11159. * @param string $key
  11160. * @param string|null $default
  11161. * @return mixed
  11162. * @static
  11163. */
  11164. public static function pull($key, $default = null)
  11165. {
  11166. /** @var \Illuminate\Session\Store $instance */
  11167. return $instance->pull($key, $default);
  11168. }
  11169. /**
  11170. * Determine if the session contains old input.
  11171. *
  11172. * @param string|null $key
  11173. * @return bool
  11174. * @static
  11175. */
  11176. public static function hasOldInput($key = null)
  11177. {
  11178. /** @var \Illuminate\Session\Store $instance */
  11179. return $instance->hasOldInput($key);
  11180. }
  11181. /**
  11182. * Get the requested item from the flashed input array.
  11183. *
  11184. * @param string|null $key
  11185. * @param mixed $default
  11186. * @return mixed
  11187. * @static
  11188. */
  11189. public static function getOldInput($key = null, $default = null)
  11190. {
  11191. /** @var \Illuminate\Session\Store $instance */
  11192. return $instance->getOldInput($key, $default);
  11193. }
  11194. /**
  11195. * Replace the given session attributes entirely.
  11196. *
  11197. * @param array $attributes
  11198. * @return void
  11199. * @static
  11200. */
  11201. public static function replace($attributes)
  11202. {
  11203. /** @var \Illuminate\Session\Store $instance */
  11204. $instance->replace($attributes);
  11205. }
  11206. /**
  11207. * Put a key / value pair or array of key / value pairs in the session.
  11208. *
  11209. * @param string|array $key
  11210. * @param mixed $value
  11211. * @return void
  11212. * @static
  11213. */
  11214. public static function put($key, $value = null)
  11215. {
  11216. /** @var \Illuminate\Session\Store $instance */
  11217. $instance->put($key, $value);
  11218. }
  11219. /**
  11220. * Get an item from the session, or store the default value.
  11221. *
  11222. * @param string $key
  11223. * @param \Closure $callback
  11224. * @return mixed
  11225. * @static
  11226. */
  11227. public static function remember($key, $callback)
  11228. {
  11229. /** @var \Illuminate\Session\Store $instance */
  11230. return $instance->remember($key, $callback);
  11231. }
  11232. /**
  11233. * Push a value onto a session array.
  11234. *
  11235. * @param string $key
  11236. * @param mixed $value
  11237. * @return void
  11238. * @static
  11239. */
  11240. public static function push($key, $value)
  11241. {
  11242. /** @var \Illuminate\Session\Store $instance */
  11243. $instance->push($key, $value);
  11244. }
  11245. /**
  11246. * Increment the value of an item in the session.
  11247. *
  11248. * @param string $key
  11249. * @param int $amount
  11250. * @return mixed
  11251. * @static
  11252. */
  11253. public static function increment($key, $amount = 1)
  11254. {
  11255. /** @var \Illuminate\Session\Store $instance */
  11256. return $instance->increment($key, $amount);
  11257. }
  11258. /**
  11259. * Decrement the value of an item in the session.
  11260. *
  11261. * @param string $key
  11262. * @param int $amount
  11263. * @return int
  11264. * @static
  11265. */
  11266. public static function decrement($key, $amount = 1)
  11267. {
  11268. /** @var \Illuminate\Session\Store $instance */
  11269. return $instance->decrement($key, $amount);
  11270. }
  11271. /**
  11272. * Flash a key / value pair to the session.
  11273. *
  11274. * @param string $key
  11275. * @param mixed $value
  11276. * @return void
  11277. * @static
  11278. */
  11279. public static function flash($key, $value = true)
  11280. {
  11281. /** @var \Illuminate\Session\Store $instance */
  11282. $instance->flash($key, $value);
  11283. }
  11284. /**
  11285. * Flash a key / value pair to the session for immediate use.
  11286. *
  11287. * @param string $key
  11288. * @param mixed $value
  11289. * @return void
  11290. * @static
  11291. */
  11292. public static function now($key, $value)
  11293. {
  11294. /** @var \Illuminate\Session\Store $instance */
  11295. $instance->now($key, $value);
  11296. }
  11297. /**
  11298. * Reflash all of the session flash data.
  11299. *
  11300. * @return void
  11301. * @static
  11302. */
  11303. public static function reflash()
  11304. {
  11305. /** @var \Illuminate\Session\Store $instance */
  11306. $instance->reflash();
  11307. }
  11308. /**
  11309. * Reflash a subset of the current flash data.
  11310. *
  11311. * @param array|mixed $keys
  11312. * @return void
  11313. * @static
  11314. */
  11315. public static function keep($keys = null)
  11316. {
  11317. /** @var \Illuminate\Session\Store $instance */
  11318. $instance->keep($keys);
  11319. }
  11320. /**
  11321. * Flash an input array to the session.
  11322. *
  11323. * @param array $value
  11324. * @return void
  11325. * @static
  11326. */
  11327. public static function flashInput($value)
  11328. {
  11329. /** @var \Illuminate\Session\Store $instance */
  11330. $instance->flashInput($value);
  11331. }
  11332. /**
  11333. * Remove an item from the session, returning its value.
  11334. *
  11335. * @param string $key
  11336. * @return mixed
  11337. * @static
  11338. */
  11339. public static function remove($key)
  11340. {
  11341. /** @var \Illuminate\Session\Store $instance */
  11342. return $instance->remove($key);
  11343. }
  11344. /**
  11345. * Remove one or many items from the session.
  11346. *
  11347. * @param string|array $keys
  11348. * @return void
  11349. * @static
  11350. */
  11351. public static function forget($keys)
  11352. {
  11353. /** @var \Illuminate\Session\Store $instance */
  11354. $instance->forget($keys);
  11355. }
  11356. /**
  11357. * Remove all of the items from the session.
  11358. *
  11359. * @return void
  11360. * @static
  11361. */
  11362. public static function flush()
  11363. {
  11364. /** @var \Illuminate\Session\Store $instance */
  11365. $instance->flush();
  11366. }
  11367. /**
  11368. * Flush the session data and regenerate the ID.
  11369. *
  11370. * @return bool
  11371. * @static
  11372. */
  11373. public static function invalidate()
  11374. {
  11375. /** @var \Illuminate\Session\Store $instance */
  11376. return $instance->invalidate();
  11377. }
  11378. /**
  11379. * Generate a new session identifier.
  11380. *
  11381. * @param bool $destroy
  11382. * @return bool
  11383. * @static
  11384. */
  11385. public static function regenerate($destroy = false)
  11386. {
  11387. /** @var \Illuminate\Session\Store $instance */
  11388. return $instance->regenerate($destroy);
  11389. }
  11390. /**
  11391. * Generate a new session ID for the session.
  11392. *
  11393. * @param bool $destroy
  11394. * @return bool
  11395. * @static
  11396. */
  11397. public static function migrate($destroy = false)
  11398. {
  11399. /** @var \Illuminate\Session\Store $instance */
  11400. return $instance->migrate($destroy);
  11401. }
  11402. /**
  11403. * Determine if the session has been started.
  11404. *
  11405. * @return bool
  11406. * @static
  11407. */
  11408. public static function isStarted()
  11409. {
  11410. /** @var \Illuminate\Session\Store $instance */
  11411. return $instance->isStarted();
  11412. }
  11413. /**
  11414. * Get the name of the session.
  11415. *
  11416. * @return string
  11417. * @static
  11418. */
  11419. public static function getName()
  11420. {
  11421. /** @var \Illuminate\Session\Store $instance */
  11422. return $instance->getName();
  11423. }
  11424. /**
  11425. * Set the name of the session.
  11426. *
  11427. * @param string $name
  11428. * @return void
  11429. * @static
  11430. */
  11431. public static function setName($name)
  11432. {
  11433. /** @var \Illuminate\Session\Store $instance */
  11434. $instance->setName($name);
  11435. }
  11436. /**
  11437. * Get the current session ID.
  11438. *
  11439. * @return string
  11440. * @static
  11441. */
  11442. public static function getId()
  11443. {
  11444. /** @var \Illuminate\Session\Store $instance */
  11445. return $instance->getId();
  11446. }
  11447. /**
  11448. * Set the session ID.
  11449. *
  11450. * @param string $id
  11451. * @return void
  11452. * @static
  11453. */
  11454. public static function setId($id)
  11455. {
  11456. /** @var \Illuminate\Session\Store $instance */
  11457. $instance->setId($id);
  11458. }
  11459. /**
  11460. * Determine if this is a valid session ID.
  11461. *
  11462. * @param string $id
  11463. * @return bool
  11464. * @static
  11465. */
  11466. public static function isValidId($id)
  11467. {
  11468. /** @var \Illuminate\Session\Store $instance */
  11469. return $instance->isValidId($id);
  11470. }
  11471. /**
  11472. * Set the existence of the session on the handler if applicable.
  11473. *
  11474. * @param bool $value
  11475. * @return void
  11476. * @static
  11477. */
  11478. public static function setExists($value)
  11479. {
  11480. /** @var \Illuminate\Session\Store $instance */
  11481. $instance->setExists($value);
  11482. }
  11483. /**
  11484. * Get the CSRF token value.
  11485. *
  11486. * @return string
  11487. * @static
  11488. */
  11489. public static function token()
  11490. {
  11491. /** @var \Illuminate\Session\Store $instance */
  11492. return $instance->token();
  11493. }
  11494. /**
  11495. * Regenerate the CSRF token value.
  11496. *
  11497. * @return void
  11498. * @static
  11499. */
  11500. public static function regenerateToken()
  11501. {
  11502. /** @var \Illuminate\Session\Store $instance */
  11503. $instance->regenerateToken();
  11504. }
  11505. /**
  11506. * Get the previous URL from the session.
  11507. *
  11508. * @return string|null
  11509. * @static
  11510. */
  11511. public static function previousUrl()
  11512. {
  11513. /** @var \Illuminate\Session\Store $instance */
  11514. return $instance->previousUrl();
  11515. }
  11516. /**
  11517. * Set the "previous" URL in the session.
  11518. *
  11519. * @param string $url
  11520. * @return void
  11521. * @static
  11522. */
  11523. public static function setPreviousUrl($url)
  11524. {
  11525. /** @var \Illuminate\Session\Store $instance */
  11526. $instance->setPreviousUrl($url);
  11527. }
  11528. /**
  11529. * Get the underlying session handler implementation.
  11530. *
  11531. * @return \SessionHandlerInterface
  11532. * @static
  11533. */
  11534. public static function getHandler()
  11535. {
  11536. /** @var \Illuminate\Session\Store $instance */
  11537. return $instance->getHandler();
  11538. }
  11539. /**
  11540. * Determine if the session handler needs a request.
  11541. *
  11542. * @return bool
  11543. * @static
  11544. */
  11545. public static function handlerNeedsRequest()
  11546. {
  11547. /** @var \Illuminate\Session\Store $instance */
  11548. return $instance->handlerNeedsRequest();
  11549. }
  11550. /**
  11551. * Set the request on the handler instance.
  11552. *
  11553. * @param \Illuminate\Http\Request $request
  11554. * @return void
  11555. * @static
  11556. */
  11557. public static function setRequestOnHandler($request)
  11558. {
  11559. /** @var \Illuminate\Session\Store $instance */
  11560. $instance->setRequestOnHandler($request);
  11561. }
  11562. }
  11563. /**
  11564. *
  11565. *
  11566. * @see \Illuminate\Filesystem\FilesystemManager
  11567. */
  11568. class Storage {
  11569. /**
  11570. * Get a filesystem instance.
  11571. *
  11572. * @param string|null $name
  11573. * @return \Illuminate\Filesystem\FilesystemAdapter
  11574. * @static
  11575. */
  11576. public static function drive($name = null)
  11577. {
  11578. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11579. return $instance->drive($name);
  11580. }
  11581. /**
  11582. * Get a filesystem instance.
  11583. *
  11584. * @param string|null $name
  11585. * @return \Illuminate\Filesystem\FilesystemAdapter
  11586. * @static
  11587. */
  11588. public static function disk($name = null)
  11589. {
  11590. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11591. return $instance->disk($name);
  11592. }
  11593. /**
  11594. * Get a default cloud filesystem instance.
  11595. *
  11596. * @return \Illuminate\Filesystem\FilesystemAdapter
  11597. * @static
  11598. */
  11599. public static function cloud()
  11600. {
  11601. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11602. return $instance->cloud();
  11603. }
  11604. /**
  11605. * Create an instance of the local driver.
  11606. *
  11607. * @param array $config
  11608. * @return \Illuminate\Filesystem\FilesystemAdapter
  11609. * @static
  11610. */
  11611. public static function createLocalDriver($config)
  11612. {
  11613. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11614. return $instance->createLocalDriver($config);
  11615. }
  11616. /**
  11617. * Create an instance of the ftp driver.
  11618. *
  11619. * @param array $config
  11620. * @return \Illuminate\Filesystem\FilesystemAdapter
  11621. * @static
  11622. */
  11623. public static function createFtpDriver($config)
  11624. {
  11625. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11626. return $instance->createFtpDriver($config);
  11627. }
  11628. /**
  11629. * Create an instance of the sftp driver.
  11630. *
  11631. * @param array $config
  11632. * @return \Illuminate\Filesystem\FilesystemAdapter
  11633. * @static
  11634. */
  11635. public static function createSftpDriver($config)
  11636. {
  11637. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11638. return $instance->createSftpDriver($config);
  11639. }
  11640. /**
  11641. * Create an instance of the Amazon S3 driver.
  11642. *
  11643. * @param array $config
  11644. * @return \Illuminate\Contracts\Filesystem\Cloud
  11645. * @static
  11646. */
  11647. public static function createS3Driver($config)
  11648. {
  11649. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11650. return $instance->createS3Driver($config);
  11651. }
  11652. /**
  11653. * Create an instance of the Rackspace driver.
  11654. *
  11655. * @param array $config
  11656. * @return \Illuminate\Contracts\Filesystem\Cloud
  11657. * @static
  11658. */
  11659. public static function createRackspaceDriver($config)
  11660. {
  11661. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11662. return $instance->createRackspaceDriver($config);
  11663. }
  11664. /**
  11665. * Set the given disk instance.
  11666. *
  11667. * @param string $name
  11668. * @param mixed $disk
  11669. * @return \Illuminate\Filesystem\FilesystemManager
  11670. * @static
  11671. */
  11672. public static function set($name, $disk)
  11673. {
  11674. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11675. return $instance->set($name, $disk);
  11676. }
  11677. /**
  11678. * Get the default driver name.
  11679. *
  11680. * @return string
  11681. * @static
  11682. */
  11683. public static function getDefaultDriver()
  11684. {
  11685. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11686. return $instance->getDefaultDriver();
  11687. }
  11688. /**
  11689. * Get the default cloud driver name.
  11690. *
  11691. * @return string
  11692. * @static
  11693. */
  11694. public static function getDefaultCloudDriver()
  11695. {
  11696. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11697. return $instance->getDefaultCloudDriver();
  11698. }
  11699. /**
  11700. * Unset the given disk instances.
  11701. *
  11702. * @param array|string $disk
  11703. * @return \Illuminate\Filesystem\FilesystemManager
  11704. * @static
  11705. */
  11706. public static function forgetDisk($disk)
  11707. {
  11708. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11709. return $instance->forgetDisk($disk);
  11710. }
  11711. /**
  11712. * Register a custom driver creator Closure.
  11713. *
  11714. * @param string $driver
  11715. * @param \Closure $callback
  11716. * @return \Illuminate\Filesystem\FilesystemManager
  11717. * @static
  11718. */
  11719. public static function extend($driver, $callback)
  11720. {
  11721. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11722. return $instance->extend($driver, $callback);
  11723. }
  11724. /**
  11725. * Assert that the given file exists.
  11726. *
  11727. * @param string|array $path
  11728. * @return \Illuminate\Filesystem\FilesystemAdapter
  11729. * @static
  11730. */
  11731. public static function assertExists($path)
  11732. {
  11733. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11734. return $instance->assertExists($path);
  11735. }
  11736. /**
  11737. * Assert that the given file does not exist.
  11738. *
  11739. * @param string|array $path
  11740. * @return \Illuminate\Filesystem\FilesystemAdapter
  11741. * @static
  11742. */
  11743. public static function assertMissing($path)
  11744. {
  11745. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11746. return $instance->assertMissing($path);
  11747. }
  11748. /**
  11749. * Determine if a file exists.
  11750. *
  11751. * @param string $path
  11752. * @return bool
  11753. * @static
  11754. */
  11755. public static function exists($path)
  11756. {
  11757. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11758. return $instance->exists($path);
  11759. }
  11760. /**
  11761. * Get the full path for the file at the given "short" path.
  11762. *
  11763. * @param string $path
  11764. * @return string
  11765. * @static
  11766. */
  11767. public static function path($path)
  11768. {
  11769. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11770. return $instance->path($path);
  11771. }
  11772. /**
  11773. * Get the contents of a file.
  11774. *
  11775. * @param string $path
  11776. * @return string
  11777. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11778. * @static
  11779. */
  11780. public static function get($path)
  11781. {
  11782. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11783. return $instance->get($path);
  11784. }
  11785. /**
  11786. * Create a streamed response for a given file.
  11787. *
  11788. * @param string $path
  11789. * @param string|null $name
  11790. * @param array|null $headers
  11791. * @param string|null $disposition
  11792. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11793. * @static
  11794. */
  11795. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  11796. {
  11797. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11798. return $instance->response($path, $name, $headers, $disposition);
  11799. }
  11800. /**
  11801. * Create a streamed download response for a given file.
  11802. *
  11803. * @param string $path
  11804. * @param string|null $name
  11805. * @param array|null $headers
  11806. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11807. * @static
  11808. */
  11809. public static function download($path, $name = null, $headers = [])
  11810. {
  11811. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11812. return $instance->download($path, $name, $headers);
  11813. }
  11814. /**
  11815. * Write the contents of a file.
  11816. *
  11817. * @param string $path
  11818. * @param string|resource $contents
  11819. * @param mixed $options
  11820. * @return bool
  11821. * @static
  11822. */
  11823. public static function put($path, $contents, $options = [])
  11824. {
  11825. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11826. return $instance->put($path, $contents, $options);
  11827. }
  11828. /**
  11829. * Store the uploaded file on the disk.
  11830. *
  11831. * @param string $path
  11832. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11833. * @param array $options
  11834. * @return string|false
  11835. * @static
  11836. */
  11837. public static function putFile($path, $file, $options = [])
  11838. {
  11839. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11840. return $instance->putFile($path, $file, $options);
  11841. }
  11842. /**
  11843. * Store the uploaded file on the disk with a given name.
  11844. *
  11845. * @param string $path
  11846. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11847. * @param string $name
  11848. * @param array $options
  11849. * @return string|false
  11850. * @static
  11851. */
  11852. public static function putFileAs($path, $file, $name, $options = [])
  11853. {
  11854. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11855. return $instance->putFileAs($path, $file, $name, $options);
  11856. }
  11857. /**
  11858. * Get the visibility for the given path.
  11859. *
  11860. * @param string $path
  11861. * @return string
  11862. * @static
  11863. */
  11864. public static function getVisibility($path)
  11865. {
  11866. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11867. return $instance->getVisibility($path);
  11868. }
  11869. /**
  11870. * Set the visibility for the given path.
  11871. *
  11872. * @param string $path
  11873. * @param string $visibility
  11874. * @return bool
  11875. * @static
  11876. */
  11877. public static function setVisibility($path, $visibility)
  11878. {
  11879. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11880. return $instance->setVisibility($path, $visibility);
  11881. }
  11882. /**
  11883. * Prepend to a file.
  11884. *
  11885. * @param string $path
  11886. * @param string $data
  11887. * @param string $separator
  11888. * @return bool
  11889. * @static
  11890. */
  11891. public static function prepend($path, $data, $separator = '')
  11892. {
  11893. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11894. return $instance->prepend($path, $data, $separator);
  11895. }
  11896. /**
  11897. * Append to a file.
  11898. *
  11899. * @param string $path
  11900. * @param string $data
  11901. * @param string $separator
  11902. * @return bool
  11903. * @static
  11904. */
  11905. public static function append($path, $data, $separator = '')
  11906. {
  11907. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11908. return $instance->append($path, $data, $separator);
  11909. }
  11910. /**
  11911. * Delete the file at a given path.
  11912. *
  11913. * @param string|array $paths
  11914. * @return bool
  11915. * @static
  11916. */
  11917. public static function delete($paths)
  11918. {
  11919. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11920. return $instance->delete($paths);
  11921. }
  11922. /**
  11923. * Copy a file to a new location.
  11924. *
  11925. * @param string $from
  11926. * @param string $to
  11927. * @return bool
  11928. * @static
  11929. */
  11930. public static function copy($from, $to)
  11931. {
  11932. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11933. return $instance->copy($from, $to);
  11934. }
  11935. /**
  11936. * Move a file to a new location.
  11937. *
  11938. * @param string $from
  11939. * @param string $to
  11940. * @return bool
  11941. * @static
  11942. */
  11943. public static function move($from, $to)
  11944. {
  11945. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11946. return $instance->move($from, $to);
  11947. }
  11948. /**
  11949. * Get the file size of a given file.
  11950. *
  11951. * @param string $path
  11952. * @return int
  11953. * @static
  11954. */
  11955. public static function size($path)
  11956. {
  11957. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11958. return $instance->size($path);
  11959. }
  11960. /**
  11961. * Get the mime-type of a given file.
  11962. *
  11963. * @param string $path
  11964. * @return string|false
  11965. * @static
  11966. */
  11967. public static function mimeType($path)
  11968. {
  11969. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11970. return $instance->mimeType($path);
  11971. }
  11972. /**
  11973. * Get the file's last modification time.
  11974. *
  11975. * @param string $path
  11976. * @return int
  11977. * @static
  11978. */
  11979. public static function lastModified($path)
  11980. {
  11981. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11982. return $instance->lastModified($path);
  11983. }
  11984. /**
  11985. * Get the URL for the file at the given path.
  11986. *
  11987. * @param string $path
  11988. * @return string
  11989. * @throws \RuntimeException
  11990. * @static
  11991. */
  11992. public static function url($path)
  11993. {
  11994. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11995. return $instance->url($path);
  11996. }
  11997. /**
  11998. * Get a resource to read the file.
  11999. *
  12000. * @param string $path
  12001. * @return resource|null The path resource or null on failure.
  12002. * @throws FileNotFoundException
  12003. * @static
  12004. */
  12005. public static function readStream($path)
  12006. {
  12007. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12008. return $instance->readStream($path);
  12009. }
  12010. /**
  12011. * Write a new file using a stream.
  12012. *
  12013. * @param string $path
  12014. * @param resource $resource
  12015. * @param array $options
  12016. * @return bool
  12017. * @throws \InvalidArgumentException If $resource is not a file handle.
  12018. * @throws FileExistsException
  12019. * @static
  12020. */
  12021. public static function writeStream($path, $resource, $options = [])
  12022. {
  12023. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12024. return $instance->writeStream($path, $resource, $options);
  12025. }
  12026. /**
  12027. * Get a temporary URL for the file at the given path.
  12028. *
  12029. * @param string $path
  12030. * @param \DateTimeInterface $expiration
  12031. * @param array $options
  12032. * @return string
  12033. * @throws \RuntimeException
  12034. * @static
  12035. */
  12036. public static function temporaryUrl($path, $expiration, $options = [])
  12037. {
  12038. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12039. return $instance->temporaryUrl($path, $expiration, $options);
  12040. }
  12041. /**
  12042. * Get a temporary URL for the file at the given path.
  12043. *
  12044. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  12045. * @param string $path
  12046. * @param \DateTimeInterface $expiration
  12047. * @param array $options
  12048. * @return string
  12049. * @static
  12050. */
  12051. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  12052. {
  12053. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12054. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  12055. }
  12056. /**
  12057. * Get a temporary URL for the file at the given path.
  12058. *
  12059. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  12060. * @param string $path
  12061. * @param \DateTimeInterface $expiration
  12062. * @param array $options
  12063. * @return string
  12064. * @static
  12065. */
  12066. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  12067. {
  12068. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12069. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  12070. }
  12071. /**
  12072. * Get an array of all files in a directory.
  12073. *
  12074. * @param string|null $directory
  12075. * @param bool $recursive
  12076. * @return array
  12077. * @static
  12078. */
  12079. public static function files($directory = null, $recursive = false)
  12080. {
  12081. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12082. return $instance->files($directory, $recursive);
  12083. }
  12084. /**
  12085. * Get all of the files from the given directory (recursive).
  12086. *
  12087. * @param string|null $directory
  12088. * @return array
  12089. * @static
  12090. */
  12091. public static function allFiles($directory = null)
  12092. {
  12093. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12094. return $instance->allFiles($directory);
  12095. }
  12096. /**
  12097. * Get all of the directories within a given directory.
  12098. *
  12099. * @param string|null $directory
  12100. * @param bool $recursive
  12101. * @return array
  12102. * @static
  12103. */
  12104. public static function directories($directory = null, $recursive = false)
  12105. {
  12106. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12107. return $instance->directories($directory, $recursive);
  12108. }
  12109. /**
  12110. * Get all (recursive) of the directories within a given directory.
  12111. *
  12112. * @param string|null $directory
  12113. * @return array
  12114. * @static
  12115. */
  12116. public static function allDirectories($directory = null)
  12117. {
  12118. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12119. return $instance->allDirectories($directory);
  12120. }
  12121. /**
  12122. * Create a directory.
  12123. *
  12124. * @param string $path
  12125. * @return bool
  12126. * @static
  12127. */
  12128. public static function makeDirectory($path)
  12129. {
  12130. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12131. return $instance->makeDirectory($path);
  12132. }
  12133. /**
  12134. * Recursively delete a directory.
  12135. *
  12136. * @param string $directory
  12137. * @return bool
  12138. * @static
  12139. */
  12140. public static function deleteDirectory($directory)
  12141. {
  12142. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12143. return $instance->deleteDirectory($directory);
  12144. }
  12145. /**
  12146. * Flush the Flysystem cache.
  12147. *
  12148. * @return void
  12149. * @static
  12150. */
  12151. public static function flushCache()
  12152. {
  12153. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12154. $instance->flushCache();
  12155. }
  12156. /**
  12157. * Get the Flysystem driver.
  12158. *
  12159. * @return \League\Flysystem\FilesystemInterface
  12160. * @static
  12161. */
  12162. public static function getDriver()
  12163. {
  12164. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12165. return $instance->getDriver();
  12166. }
  12167. }
  12168. /**
  12169. *
  12170. *
  12171. * @see \Illuminate\Routing\UrlGenerator
  12172. */
  12173. class URL {
  12174. /**
  12175. * Get the full URL for the current request.
  12176. *
  12177. * @return string
  12178. * @static
  12179. */
  12180. public static function full()
  12181. {
  12182. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12183. return $instance->full();
  12184. }
  12185. /**
  12186. * Get the current URL for the request.
  12187. *
  12188. * @return string
  12189. * @static
  12190. */
  12191. public static function current()
  12192. {
  12193. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12194. return $instance->current();
  12195. }
  12196. /**
  12197. * Get the URL for the previous request.
  12198. *
  12199. * @param mixed $fallback
  12200. * @return string
  12201. * @static
  12202. */
  12203. public static function previous($fallback = false)
  12204. {
  12205. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12206. return $instance->previous($fallback);
  12207. }
  12208. /**
  12209. * Generate an absolute URL to the given path.
  12210. *
  12211. * @param string $path
  12212. * @param mixed $extra
  12213. * @param bool|null $secure
  12214. * @return string
  12215. * @static
  12216. */
  12217. public static function to($path, $extra = [], $secure = null)
  12218. {
  12219. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12220. return $instance->to($path, $extra, $secure);
  12221. }
  12222. /**
  12223. * Generate a secure, absolute URL to the given path.
  12224. *
  12225. * @param string $path
  12226. * @param array $parameters
  12227. * @return string
  12228. * @static
  12229. */
  12230. public static function secure($path, $parameters = [])
  12231. {
  12232. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12233. return $instance->secure($path, $parameters);
  12234. }
  12235. /**
  12236. * Generate the URL to an application asset.
  12237. *
  12238. * @param string $path
  12239. * @param bool|null $secure
  12240. * @return string
  12241. * @static
  12242. */
  12243. public static function asset($path, $secure = null)
  12244. {
  12245. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12246. return $instance->asset($path, $secure);
  12247. }
  12248. /**
  12249. * Generate the URL to a secure asset.
  12250. *
  12251. * @param string $path
  12252. * @return string
  12253. * @static
  12254. */
  12255. public static function secureAsset($path)
  12256. {
  12257. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12258. return $instance->secureAsset($path);
  12259. }
  12260. /**
  12261. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  12262. *
  12263. * @param string $root
  12264. * @param string $path
  12265. * @param bool|null $secure
  12266. * @return string
  12267. * @static
  12268. */
  12269. public static function assetFrom($root, $path, $secure = null)
  12270. {
  12271. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12272. return $instance->assetFrom($root, $path, $secure);
  12273. }
  12274. /**
  12275. * Get the default scheme for a raw URL.
  12276. *
  12277. * @param bool|null $secure
  12278. * @return string
  12279. * @static
  12280. */
  12281. public static function formatScheme($secure = null)
  12282. {
  12283. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12284. return $instance->formatScheme($secure);
  12285. }
  12286. /**
  12287. * Create a signed route URL for a named route.
  12288. *
  12289. * @param string $name
  12290. * @param array $parameters
  12291. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  12292. * @param bool $absolute
  12293. * @return string
  12294. * @static
  12295. */
  12296. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  12297. {
  12298. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12299. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  12300. }
  12301. /**
  12302. * Create a temporary signed route URL for a named route.
  12303. *
  12304. * @param string $name
  12305. * @param \DateTimeInterface|\DateInterval|int $expiration
  12306. * @param array $parameters
  12307. * @param bool $absolute
  12308. * @return string
  12309. * @static
  12310. */
  12311. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  12312. {
  12313. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12314. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  12315. }
  12316. /**
  12317. * Determine if the given request has a valid signature.
  12318. *
  12319. * @param \Illuminate\Http\Request $request
  12320. * @param bool $absolute
  12321. * @return bool
  12322. * @static
  12323. */
  12324. public static function hasValidSignature($request, $absolute = true)
  12325. {
  12326. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12327. return $instance->hasValidSignature($request, $absolute);
  12328. }
  12329. /**
  12330. * Get the URL to a named route.
  12331. *
  12332. * @param string $name
  12333. * @param mixed $parameters
  12334. * @param bool $absolute
  12335. * @return string
  12336. * @throws \InvalidArgumentException
  12337. * @static
  12338. */
  12339. public static function route($name, $parameters = [], $absolute = true)
  12340. {
  12341. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12342. return $instance->route($name, $parameters, $absolute);
  12343. }
  12344. /**
  12345. * Get the URL to a controller action.
  12346. *
  12347. * @param string|array $action
  12348. * @param mixed $parameters
  12349. * @param bool $absolute
  12350. * @return string
  12351. * @throws \InvalidArgumentException
  12352. * @static
  12353. */
  12354. public static function action($action, $parameters = [], $absolute = true)
  12355. {
  12356. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12357. return $instance->action($action, $parameters, $absolute);
  12358. }
  12359. /**
  12360. * Format the array of URL parameters.
  12361. *
  12362. * @param mixed|array $parameters
  12363. * @return array
  12364. * @static
  12365. */
  12366. public static function formatParameters($parameters)
  12367. {
  12368. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12369. return $instance->formatParameters($parameters);
  12370. }
  12371. /**
  12372. * Get the base URL for the request.
  12373. *
  12374. * @param string $scheme
  12375. * @param string|null $root
  12376. * @return string
  12377. * @static
  12378. */
  12379. public static function formatRoot($scheme, $root = null)
  12380. {
  12381. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12382. return $instance->formatRoot($scheme, $root);
  12383. }
  12384. /**
  12385. * Format the given URL segments into a single URL.
  12386. *
  12387. * @param string $root
  12388. * @param string $path
  12389. * @param \Illuminate\Routing\Route|null $route
  12390. * @return string
  12391. * @static
  12392. */
  12393. public static function format($root, $path, $route = null)
  12394. {
  12395. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12396. return $instance->format($root, $path, $route);
  12397. }
  12398. /**
  12399. * Determine if the given path is a valid URL.
  12400. *
  12401. * @param string $path
  12402. * @return bool
  12403. * @static
  12404. */
  12405. public static function isValidUrl($path)
  12406. {
  12407. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12408. return $instance->isValidUrl($path);
  12409. }
  12410. /**
  12411. * Set the default named parameters used by the URL generator.
  12412. *
  12413. * @param array $defaults
  12414. * @return void
  12415. * @static
  12416. */
  12417. public static function defaults($defaults)
  12418. {
  12419. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12420. $instance->defaults($defaults);
  12421. }
  12422. /**
  12423. * Get the default named parameters used by the URL generator.
  12424. *
  12425. * @return array
  12426. * @static
  12427. */
  12428. public static function getDefaultParameters()
  12429. {
  12430. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12431. return $instance->getDefaultParameters();
  12432. }
  12433. /**
  12434. * Force the scheme for URLs.
  12435. *
  12436. * @param string $scheme
  12437. * @return void
  12438. * @static
  12439. */
  12440. public static function forceScheme($scheme)
  12441. {
  12442. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12443. $instance->forceScheme($scheme);
  12444. }
  12445. /**
  12446. * Set the forced root URL.
  12447. *
  12448. * @param string $root
  12449. * @return void
  12450. * @static
  12451. */
  12452. public static function forceRootUrl($root)
  12453. {
  12454. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12455. $instance->forceRootUrl($root);
  12456. }
  12457. /**
  12458. * Set a callback to be used to format the host of generated URLs.
  12459. *
  12460. * @param \Closure $callback
  12461. * @return \Illuminate\Routing\UrlGenerator
  12462. * @static
  12463. */
  12464. public static function formatHostUsing($callback)
  12465. {
  12466. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12467. return $instance->formatHostUsing($callback);
  12468. }
  12469. /**
  12470. * Set a callback to be used to format the path of generated URLs.
  12471. *
  12472. * @param \Closure $callback
  12473. * @return \Illuminate\Routing\UrlGenerator
  12474. * @static
  12475. */
  12476. public static function formatPathUsing($callback)
  12477. {
  12478. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12479. return $instance->formatPathUsing($callback);
  12480. }
  12481. /**
  12482. * Get the path formatter being used by the URL generator.
  12483. *
  12484. * @return \Closure
  12485. * @static
  12486. */
  12487. public static function pathFormatter()
  12488. {
  12489. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12490. return $instance->pathFormatter();
  12491. }
  12492. /**
  12493. * Get the request instance.
  12494. *
  12495. * @return \Illuminate\Http\Request
  12496. * @static
  12497. */
  12498. public static function getRequest()
  12499. {
  12500. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12501. return $instance->getRequest();
  12502. }
  12503. /**
  12504. * Set the current request instance.
  12505. *
  12506. * @param \Illuminate\Http\Request $request
  12507. * @return void
  12508. * @static
  12509. */
  12510. public static function setRequest($request)
  12511. {
  12512. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12513. $instance->setRequest($request);
  12514. }
  12515. /**
  12516. * Set the route collection.
  12517. *
  12518. * @param \Illuminate\Routing\RouteCollection $routes
  12519. * @return \Illuminate\Routing\UrlGenerator
  12520. * @static
  12521. */
  12522. public static function setRoutes($routes)
  12523. {
  12524. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12525. return $instance->setRoutes($routes);
  12526. }
  12527. /**
  12528. * Set the session resolver for the generator.
  12529. *
  12530. * @param callable $sessionResolver
  12531. * @return \Illuminate\Routing\UrlGenerator
  12532. * @static
  12533. */
  12534. public static function setSessionResolver($sessionResolver)
  12535. {
  12536. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12537. return $instance->setSessionResolver($sessionResolver);
  12538. }
  12539. /**
  12540. * Set the encryption key resolver.
  12541. *
  12542. * @param callable $keyResolver
  12543. * @return \Illuminate\Routing\UrlGenerator
  12544. * @static
  12545. */
  12546. public static function setKeyResolver($keyResolver)
  12547. {
  12548. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12549. return $instance->setKeyResolver($keyResolver);
  12550. }
  12551. /**
  12552. * Set the root controller namespace.
  12553. *
  12554. * @param string $rootNamespace
  12555. * @return \Illuminate\Routing\UrlGenerator
  12556. * @static
  12557. */
  12558. public static function setRootControllerNamespace($rootNamespace)
  12559. {
  12560. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12561. return $instance->setRootControllerNamespace($rootNamespace);
  12562. }
  12563. /**
  12564. * Register a custom macro.
  12565. *
  12566. * @param string $name
  12567. * @param object|callable $macro
  12568. * @return void
  12569. * @static
  12570. */
  12571. public static function macro($name, $macro)
  12572. {
  12573. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  12574. }
  12575. /**
  12576. * Mix another object into the class.
  12577. *
  12578. * @param object $mixin
  12579. * @param bool $replace
  12580. * @return void
  12581. * @throws \ReflectionException
  12582. * @static
  12583. */
  12584. public static function mixin($mixin, $replace = true)
  12585. {
  12586. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  12587. }
  12588. /**
  12589. * Checks if macro is registered.
  12590. *
  12591. * @param string $name
  12592. * @return bool
  12593. * @static
  12594. */
  12595. public static function hasMacro($name)
  12596. {
  12597. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  12598. }
  12599. }
  12600. /**
  12601. *
  12602. *
  12603. * @see \Illuminate\Validation\Factory
  12604. */
  12605. class Validator {
  12606. /**
  12607. * Create a new Validator instance.
  12608. *
  12609. * @param array $data
  12610. * @param array $rules
  12611. * @param array $messages
  12612. * @param array $customAttributes
  12613. * @return \Illuminate\Validation\Validator
  12614. * @static
  12615. */
  12616. public static function make($data, $rules, $messages = [], $customAttributes = [])
  12617. {
  12618. /** @var \Illuminate\Validation\Factory $instance */
  12619. return $instance->make($data, $rules, $messages, $customAttributes);
  12620. }
  12621. /**
  12622. * Validate the given data against the provided rules.
  12623. *
  12624. * @param array $data
  12625. * @param array $rules
  12626. * @param array $messages
  12627. * @param array $customAttributes
  12628. * @return array
  12629. * @throws \Illuminate\Validation\ValidationException
  12630. * @static
  12631. */
  12632. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  12633. {
  12634. /** @var \Illuminate\Validation\Factory $instance */
  12635. return $instance->validate($data, $rules, $messages, $customAttributes);
  12636. }
  12637. /**
  12638. * Register a custom validator extension.
  12639. *
  12640. * @param string $rule
  12641. * @param \Closure|string $extension
  12642. * @param string|null $message
  12643. * @return void
  12644. * @static
  12645. */
  12646. public static function extend($rule, $extension, $message = null)
  12647. {
  12648. /** @var \Illuminate\Validation\Factory $instance */
  12649. $instance->extend($rule, $extension, $message);
  12650. }
  12651. /**
  12652. * Register a custom implicit validator extension.
  12653. *
  12654. * @param string $rule
  12655. * @param \Closure|string $extension
  12656. * @param string|null $message
  12657. * @return void
  12658. * @static
  12659. */
  12660. public static function extendImplicit($rule, $extension, $message = null)
  12661. {
  12662. /** @var \Illuminate\Validation\Factory $instance */
  12663. $instance->extendImplicit($rule, $extension, $message);
  12664. }
  12665. /**
  12666. * Register a custom dependent validator extension.
  12667. *
  12668. * @param string $rule
  12669. * @param \Closure|string $extension
  12670. * @param string|null $message
  12671. * @return void
  12672. * @static
  12673. */
  12674. public static function extendDependent($rule, $extension, $message = null)
  12675. {
  12676. /** @var \Illuminate\Validation\Factory $instance */
  12677. $instance->extendDependent($rule, $extension, $message);
  12678. }
  12679. /**
  12680. * Register a custom validator message replacer.
  12681. *
  12682. * @param string $rule
  12683. * @param \Closure|string $replacer
  12684. * @return void
  12685. * @static
  12686. */
  12687. public static function replacer($rule, $replacer)
  12688. {
  12689. /** @var \Illuminate\Validation\Factory $instance */
  12690. $instance->replacer($rule, $replacer);
  12691. }
  12692. /**
  12693. * Set the Validator instance resolver.
  12694. *
  12695. * @param \Closure $resolver
  12696. * @return void
  12697. * @static
  12698. */
  12699. public static function resolver($resolver)
  12700. {
  12701. /** @var \Illuminate\Validation\Factory $instance */
  12702. $instance->resolver($resolver);
  12703. }
  12704. /**
  12705. * Get the Translator implementation.
  12706. *
  12707. * @return \Illuminate\Contracts\Translation\Translator
  12708. * @static
  12709. */
  12710. public static function getTranslator()
  12711. {
  12712. /** @var \Illuminate\Validation\Factory $instance */
  12713. return $instance->getTranslator();
  12714. }
  12715. /**
  12716. * Get the Presence Verifier implementation.
  12717. *
  12718. * @return \Illuminate\Validation\PresenceVerifierInterface
  12719. * @static
  12720. */
  12721. public static function getPresenceVerifier()
  12722. {
  12723. /** @var \Illuminate\Validation\Factory $instance */
  12724. return $instance->getPresenceVerifier();
  12725. }
  12726. /**
  12727. * Set the Presence Verifier implementation.
  12728. *
  12729. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  12730. * @return void
  12731. * @static
  12732. */
  12733. public static function setPresenceVerifier($presenceVerifier)
  12734. {
  12735. /** @var \Illuminate\Validation\Factory $instance */
  12736. $instance->setPresenceVerifier($presenceVerifier);
  12737. }
  12738. }
  12739. /**
  12740. *
  12741. *
  12742. * @see \Illuminate\View\Factory
  12743. */
  12744. class View {
  12745. /**
  12746. * Get the evaluated view contents for the given view.
  12747. *
  12748. * @param string $path
  12749. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12750. * @param array $mergeData
  12751. * @return \Illuminate\Contracts\View\View
  12752. * @static
  12753. */
  12754. public static function file($path, $data = [], $mergeData = [])
  12755. {
  12756. /** @var \Illuminate\View\Factory $instance */
  12757. return $instance->file($path, $data, $mergeData);
  12758. }
  12759. /**
  12760. * Get the evaluated view contents for the given view.
  12761. *
  12762. * @param string $view
  12763. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12764. * @param array $mergeData
  12765. * @return \Illuminate\Contracts\View\View
  12766. * @static
  12767. */
  12768. public static function make($view, $data = [], $mergeData = [])
  12769. {
  12770. /** @var \Illuminate\View\Factory $instance */
  12771. return $instance->make($view, $data, $mergeData);
  12772. }
  12773. /**
  12774. * Get the first view that actually exists from the given list.
  12775. *
  12776. * @param array $views
  12777. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12778. * @param array $mergeData
  12779. * @return \Illuminate\Contracts\View\View
  12780. * @throws \InvalidArgumentException
  12781. * @static
  12782. */
  12783. public static function first($views, $data = [], $mergeData = [])
  12784. {
  12785. /** @var \Illuminate\View\Factory $instance */
  12786. return $instance->first($views, $data, $mergeData);
  12787. }
  12788. /**
  12789. * Get the rendered content of the view based on a given condition.
  12790. *
  12791. * @param bool $condition
  12792. * @param string $view
  12793. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12794. * @param array $mergeData
  12795. * @return string
  12796. * @static
  12797. */
  12798. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  12799. {
  12800. /** @var \Illuminate\View\Factory $instance */
  12801. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12802. }
  12803. /**
  12804. * Get the rendered contents of a partial from a loop.
  12805. *
  12806. * @param string $view
  12807. * @param array $data
  12808. * @param string $iterator
  12809. * @param string $empty
  12810. * @return string
  12811. * @static
  12812. */
  12813. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12814. {
  12815. /** @var \Illuminate\View\Factory $instance */
  12816. return $instance->renderEach($view, $data, $iterator, $empty);
  12817. }
  12818. /**
  12819. * Determine if a given view exists.
  12820. *
  12821. * @param string $view
  12822. * @return bool
  12823. * @static
  12824. */
  12825. public static function exists($view)
  12826. {
  12827. /** @var \Illuminate\View\Factory $instance */
  12828. return $instance->exists($view);
  12829. }
  12830. /**
  12831. * Get the appropriate view engine for the given path.
  12832. *
  12833. * @param string $path
  12834. * @return \Illuminate\Contracts\View\Engine
  12835. * @throws \InvalidArgumentException
  12836. * @static
  12837. */
  12838. public static function getEngineFromPath($path)
  12839. {
  12840. /** @var \Illuminate\View\Factory $instance */
  12841. return $instance->getEngineFromPath($path);
  12842. }
  12843. /**
  12844. * Add a piece of shared data to the environment.
  12845. *
  12846. * @param array|string $key
  12847. * @param mixed|null $value
  12848. * @return mixed
  12849. * @static
  12850. */
  12851. public static function share($key, $value = null)
  12852. {
  12853. /** @var \Illuminate\View\Factory $instance */
  12854. return $instance->share($key, $value);
  12855. }
  12856. /**
  12857. * Increment the rendering counter.
  12858. *
  12859. * @return void
  12860. * @static
  12861. */
  12862. public static function incrementRender()
  12863. {
  12864. /** @var \Illuminate\View\Factory $instance */
  12865. $instance->incrementRender();
  12866. }
  12867. /**
  12868. * Decrement the rendering counter.
  12869. *
  12870. * @return void
  12871. * @static
  12872. */
  12873. public static function decrementRender()
  12874. {
  12875. /** @var \Illuminate\View\Factory $instance */
  12876. $instance->decrementRender();
  12877. }
  12878. /**
  12879. * Check if there are no active render operations.
  12880. *
  12881. * @return bool
  12882. * @static
  12883. */
  12884. public static function doneRendering()
  12885. {
  12886. /** @var \Illuminate\View\Factory $instance */
  12887. return $instance->doneRendering();
  12888. }
  12889. /**
  12890. * Add a location to the array of view locations.
  12891. *
  12892. * @param string $location
  12893. * @return void
  12894. * @static
  12895. */
  12896. public static function addLocation($location)
  12897. {
  12898. /** @var \Illuminate\View\Factory $instance */
  12899. $instance->addLocation($location);
  12900. }
  12901. /**
  12902. * Add a new namespace to the loader.
  12903. *
  12904. * @param string $namespace
  12905. * @param string|array $hints
  12906. * @return \Illuminate\View\Factory
  12907. * @static
  12908. */
  12909. public static function addNamespace($namespace, $hints)
  12910. {
  12911. /** @var \Illuminate\View\Factory $instance */
  12912. return $instance->addNamespace($namespace, $hints);
  12913. }
  12914. /**
  12915. * Prepend a new namespace to the loader.
  12916. *
  12917. * @param string $namespace
  12918. * @param string|array $hints
  12919. * @return \Illuminate\View\Factory
  12920. * @static
  12921. */
  12922. public static function prependNamespace($namespace, $hints)
  12923. {
  12924. /** @var \Illuminate\View\Factory $instance */
  12925. return $instance->prependNamespace($namespace, $hints);
  12926. }
  12927. /**
  12928. * Replace the namespace hints for the given namespace.
  12929. *
  12930. * @param string $namespace
  12931. * @param string|array $hints
  12932. * @return \Illuminate\View\Factory
  12933. * @static
  12934. */
  12935. public static function replaceNamespace($namespace, $hints)
  12936. {
  12937. /** @var \Illuminate\View\Factory $instance */
  12938. return $instance->replaceNamespace($namespace, $hints);
  12939. }
  12940. /**
  12941. * Register a valid view extension and its engine.
  12942. *
  12943. * @param string $extension
  12944. * @param string $engine
  12945. * @param \Closure|null $resolver
  12946. * @return void
  12947. * @static
  12948. */
  12949. public static function addExtension($extension, $engine, $resolver = null)
  12950. {
  12951. /** @var \Illuminate\View\Factory $instance */
  12952. $instance->addExtension($extension, $engine, $resolver);
  12953. }
  12954. /**
  12955. * Flush all of the factory state like sections and stacks.
  12956. *
  12957. * @return void
  12958. * @static
  12959. */
  12960. public static function flushState()
  12961. {
  12962. /** @var \Illuminate\View\Factory $instance */
  12963. $instance->flushState();
  12964. }
  12965. /**
  12966. * Flush all of the section contents if done rendering.
  12967. *
  12968. * @return void
  12969. * @static
  12970. */
  12971. public static function flushStateIfDoneRendering()
  12972. {
  12973. /** @var \Illuminate\View\Factory $instance */
  12974. $instance->flushStateIfDoneRendering();
  12975. }
  12976. /**
  12977. * Get the extension to engine bindings.
  12978. *
  12979. * @return array
  12980. * @static
  12981. */
  12982. public static function getExtensions()
  12983. {
  12984. /** @var \Illuminate\View\Factory $instance */
  12985. return $instance->getExtensions();
  12986. }
  12987. /**
  12988. * Get the engine resolver instance.
  12989. *
  12990. * @return \Illuminate\View\Engines\EngineResolver
  12991. * @static
  12992. */
  12993. public static function getEngineResolver()
  12994. {
  12995. /** @var \Illuminate\View\Factory $instance */
  12996. return $instance->getEngineResolver();
  12997. }
  12998. /**
  12999. * Get the view finder instance.
  13000. *
  13001. * @return \Illuminate\View\ViewFinderInterface
  13002. * @static
  13003. */
  13004. public static function getFinder()
  13005. {
  13006. /** @var \Illuminate\View\Factory $instance */
  13007. return $instance->getFinder();
  13008. }
  13009. /**
  13010. * Set the view finder instance.
  13011. *
  13012. * @param \Illuminate\View\ViewFinderInterface $finder
  13013. * @return void
  13014. * @static
  13015. */
  13016. public static function setFinder($finder)
  13017. {
  13018. /** @var \Illuminate\View\Factory $instance */
  13019. $instance->setFinder($finder);
  13020. }
  13021. /**
  13022. * Flush the cache of views located by the finder.
  13023. *
  13024. * @return void
  13025. * @static
  13026. */
  13027. public static function flushFinderCache()
  13028. {
  13029. /** @var \Illuminate\View\Factory $instance */
  13030. $instance->flushFinderCache();
  13031. }
  13032. /**
  13033. * Get the event dispatcher instance.
  13034. *
  13035. * @return \Illuminate\Contracts\Events\Dispatcher
  13036. * @static
  13037. */
  13038. public static function getDispatcher()
  13039. {
  13040. /** @var \Illuminate\View\Factory $instance */
  13041. return $instance->getDispatcher();
  13042. }
  13043. /**
  13044. * Set the event dispatcher instance.
  13045. *
  13046. * @param \Illuminate\Contracts\Events\Dispatcher $events
  13047. * @return void
  13048. * @static
  13049. */
  13050. public static function setDispatcher($events)
  13051. {
  13052. /** @var \Illuminate\View\Factory $instance */
  13053. $instance->setDispatcher($events);
  13054. }
  13055. /**
  13056. * Get the IoC container instance.
  13057. *
  13058. * @return \Illuminate\Contracts\Container\Container
  13059. * @static
  13060. */
  13061. public static function getContainer()
  13062. {
  13063. /** @var \Illuminate\View\Factory $instance */
  13064. return $instance->getContainer();
  13065. }
  13066. /**
  13067. * Set the IoC container instance.
  13068. *
  13069. * @param \Illuminate\Contracts\Container\Container $container
  13070. * @return void
  13071. * @static
  13072. */
  13073. public static function setContainer($container)
  13074. {
  13075. /** @var \Illuminate\View\Factory $instance */
  13076. $instance->setContainer($container);
  13077. }
  13078. /**
  13079. * Get an item from the shared data.
  13080. *
  13081. * @param string $key
  13082. * @param mixed $default
  13083. * @return mixed
  13084. * @static
  13085. */
  13086. public static function shared($key, $default = null)
  13087. {
  13088. /** @var \Illuminate\View\Factory $instance */
  13089. return $instance->shared($key, $default);
  13090. }
  13091. /**
  13092. * Get all of the shared data for the environment.
  13093. *
  13094. * @return array
  13095. * @static
  13096. */
  13097. public static function getShared()
  13098. {
  13099. /** @var \Illuminate\View\Factory $instance */
  13100. return $instance->getShared();
  13101. }
  13102. /**
  13103. * Register a custom macro.
  13104. *
  13105. * @param string $name
  13106. * @param object|callable $macro
  13107. * @return void
  13108. * @static
  13109. */
  13110. public static function macro($name, $macro)
  13111. {
  13112. \Illuminate\View\Factory::macro($name, $macro);
  13113. }
  13114. /**
  13115. * Mix another object into the class.
  13116. *
  13117. * @param object $mixin
  13118. * @param bool $replace
  13119. * @return void
  13120. * @throws \ReflectionException
  13121. * @static
  13122. */
  13123. public static function mixin($mixin, $replace = true)
  13124. {
  13125. \Illuminate\View\Factory::mixin($mixin, $replace);
  13126. }
  13127. /**
  13128. * Checks if macro is registered.
  13129. *
  13130. * @param string $name
  13131. * @return bool
  13132. * @static
  13133. */
  13134. public static function hasMacro($name)
  13135. {
  13136. return \Illuminate\View\Factory::hasMacro($name);
  13137. }
  13138. /**
  13139. * Start a component rendering process.
  13140. *
  13141. * @param string $name
  13142. * @param array $data
  13143. * @return void
  13144. * @static
  13145. */
  13146. public static function startComponent($name, $data = [])
  13147. {
  13148. /** @var \Illuminate\View\Factory $instance */
  13149. $instance->startComponent($name, $data);
  13150. }
  13151. /**
  13152. * Get the first view that actually exists from the given list, and start a component.
  13153. *
  13154. * @param array $names
  13155. * @param array $data
  13156. * @return void
  13157. * @static
  13158. */
  13159. public static function startComponentFirst($names, $data = [])
  13160. {
  13161. /** @var \Illuminate\View\Factory $instance */
  13162. $instance->startComponentFirst($names, $data);
  13163. }
  13164. /**
  13165. * Render the current component.
  13166. *
  13167. * @return string
  13168. * @static
  13169. */
  13170. public static function renderComponent()
  13171. {
  13172. /** @var \Illuminate\View\Factory $instance */
  13173. return $instance->renderComponent();
  13174. }
  13175. /**
  13176. * Start the slot rendering process.
  13177. *
  13178. * @param string $name
  13179. * @param string|null $content
  13180. * @return void
  13181. * @static
  13182. */
  13183. public static function slot($name, $content = null)
  13184. {
  13185. /** @var \Illuminate\View\Factory $instance */
  13186. $instance->slot($name, $content);
  13187. }
  13188. /**
  13189. * Save the slot content for rendering.
  13190. *
  13191. * @return void
  13192. * @static
  13193. */
  13194. public static function endSlot()
  13195. {
  13196. /** @var \Illuminate\View\Factory $instance */
  13197. $instance->endSlot();
  13198. }
  13199. /**
  13200. * Register a view creator event.
  13201. *
  13202. * @param array|string $views
  13203. * @param \Closure|string $callback
  13204. * @return array
  13205. * @static
  13206. */
  13207. public static function creator($views, $callback)
  13208. {
  13209. /** @var \Illuminate\View\Factory $instance */
  13210. return $instance->creator($views, $callback);
  13211. }
  13212. /**
  13213. * Register multiple view composers via an array.
  13214. *
  13215. * @param array $composers
  13216. * @return array
  13217. * @static
  13218. */
  13219. public static function composers($composers)
  13220. {
  13221. /** @var \Illuminate\View\Factory $instance */
  13222. return $instance->composers($composers);
  13223. }
  13224. /**
  13225. * Register a view composer event.
  13226. *
  13227. * @param array|string $views
  13228. * @param \Closure|string $callback
  13229. * @return array
  13230. * @static
  13231. */
  13232. public static function composer($views, $callback)
  13233. {
  13234. /** @var \Illuminate\View\Factory $instance */
  13235. return $instance->composer($views, $callback);
  13236. }
  13237. /**
  13238. * Call the composer for a given view.
  13239. *
  13240. * @param \Illuminate\Contracts\View\View $view
  13241. * @return void
  13242. * @static
  13243. */
  13244. public static function callComposer($view)
  13245. {
  13246. /** @var \Illuminate\View\Factory $instance */
  13247. $instance->callComposer($view);
  13248. }
  13249. /**
  13250. * Call the creator for a given view.
  13251. *
  13252. * @param \Illuminate\Contracts\View\View $view
  13253. * @return void
  13254. * @static
  13255. */
  13256. public static function callCreator($view)
  13257. {
  13258. /** @var \Illuminate\View\Factory $instance */
  13259. $instance->callCreator($view);
  13260. }
  13261. /**
  13262. * Start injecting content into a section.
  13263. *
  13264. * @param string $section
  13265. * @param string|null $content
  13266. * @return void
  13267. * @static
  13268. */
  13269. public static function startSection($section, $content = null)
  13270. {
  13271. /** @var \Illuminate\View\Factory $instance */
  13272. $instance->startSection($section, $content);
  13273. }
  13274. /**
  13275. * Inject inline content into a section.
  13276. *
  13277. * @param string $section
  13278. * @param string $content
  13279. * @return void
  13280. * @static
  13281. */
  13282. public static function inject($section, $content)
  13283. {
  13284. /** @var \Illuminate\View\Factory $instance */
  13285. $instance->inject($section, $content);
  13286. }
  13287. /**
  13288. * Stop injecting content into a section and return its contents.
  13289. *
  13290. * @return string
  13291. * @static
  13292. */
  13293. public static function yieldSection()
  13294. {
  13295. /** @var \Illuminate\View\Factory $instance */
  13296. return $instance->yieldSection();
  13297. }
  13298. /**
  13299. * Stop injecting content into a section.
  13300. *
  13301. * @param bool $overwrite
  13302. * @return string
  13303. * @throws \InvalidArgumentException
  13304. * @static
  13305. */
  13306. public static function stopSection($overwrite = false)
  13307. {
  13308. /** @var \Illuminate\View\Factory $instance */
  13309. return $instance->stopSection($overwrite);
  13310. }
  13311. /**
  13312. * Stop injecting content into a section and append it.
  13313. *
  13314. * @return string
  13315. * @throws \InvalidArgumentException
  13316. * @static
  13317. */
  13318. public static function appendSection()
  13319. {
  13320. /** @var \Illuminate\View\Factory $instance */
  13321. return $instance->appendSection();
  13322. }
  13323. /**
  13324. * Get the string contents of a section.
  13325. *
  13326. * @param string $section
  13327. * @param string $default
  13328. * @return string
  13329. * @static
  13330. */
  13331. public static function yieldContent($section, $default = '')
  13332. {
  13333. /** @var \Illuminate\View\Factory $instance */
  13334. return $instance->yieldContent($section, $default);
  13335. }
  13336. /**
  13337. * Get the parent placeholder for the current request.
  13338. *
  13339. * @param string $section
  13340. * @return string
  13341. * @static
  13342. */
  13343. public static function parentPlaceholder($section = '')
  13344. {
  13345. return \Illuminate\View\Factory::parentPlaceholder($section);
  13346. }
  13347. /**
  13348. * Check if section exists.
  13349. *
  13350. * @param string $name
  13351. * @return bool
  13352. * @static
  13353. */
  13354. public static function hasSection($name)
  13355. {
  13356. /** @var \Illuminate\View\Factory $instance */
  13357. return $instance->hasSection($name);
  13358. }
  13359. /**
  13360. * Get the contents of a section.
  13361. *
  13362. * @param string $name
  13363. * @param string|null $default
  13364. * @return mixed
  13365. * @static
  13366. */
  13367. public static function getSection($name, $default = null)
  13368. {
  13369. /** @var \Illuminate\View\Factory $instance */
  13370. return $instance->getSection($name, $default);
  13371. }
  13372. /**
  13373. * Get the entire array of sections.
  13374. *
  13375. * @return array
  13376. * @static
  13377. */
  13378. public static function getSections()
  13379. {
  13380. /** @var \Illuminate\View\Factory $instance */
  13381. return $instance->getSections();
  13382. }
  13383. /**
  13384. * Flush all of the sections.
  13385. *
  13386. * @return void
  13387. * @static
  13388. */
  13389. public static function flushSections()
  13390. {
  13391. /** @var \Illuminate\View\Factory $instance */
  13392. $instance->flushSections();
  13393. }
  13394. /**
  13395. * Add new loop to the stack.
  13396. *
  13397. * @param \Countable|array $data
  13398. * @return void
  13399. * @static
  13400. */
  13401. public static function addLoop($data)
  13402. {
  13403. /** @var \Illuminate\View\Factory $instance */
  13404. $instance->addLoop($data);
  13405. }
  13406. /**
  13407. * Increment the top loop's indices.
  13408. *
  13409. * @return void
  13410. * @static
  13411. */
  13412. public static function incrementLoopIndices()
  13413. {
  13414. /** @var \Illuminate\View\Factory $instance */
  13415. $instance->incrementLoopIndices();
  13416. }
  13417. /**
  13418. * Pop a loop from the top of the loop stack.
  13419. *
  13420. * @return void
  13421. * @static
  13422. */
  13423. public static function popLoop()
  13424. {
  13425. /** @var \Illuminate\View\Factory $instance */
  13426. $instance->popLoop();
  13427. }
  13428. /**
  13429. * Get an instance of the last loop in the stack.
  13430. *
  13431. * @return \stdClass|null
  13432. * @static
  13433. */
  13434. public static function getLastLoop()
  13435. {
  13436. /** @var \Illuminate\View\Factory $instance */
  13437. return $instance->getLastLoop();
  13438. }
  13439. /**
  13440. * Get the entire loop stack.
  13441. *
  13442. * @return array
  13443. * @static
  13444. */
  13445. public static function getLoopStack()
  13446. {
  13447. /** @var \Illuminate\View\Factory $instance */
  13448. return $instance->getLoopStack();
  13449. }
  13450. /**
  13451. * Start injecting content into a push section.
  13452. *
  13453. * @param string $section
  13454. * @param string $content
  13455. * @return void
  13456. * @static
  13457. */
  13458. public static function startPush($section, $content = '')
  13459. {
  13460. /** @var \Illuminate\View\Factory $instance */
  13461. $instance->startPush($section, $content);
  13462. }
  13463. /**
  13464. * Stop injecting content into a push section.
  13465. *
  13466. * @return string
  13467. * @throws \InvalidArgumentException
  13468. * @static
  13469. */
  13470. public static function stopPush()
  13471. {
  13472. /** @var \Illuminate\View\Factory $instance */
  13473. return $instance->stopPush();
  13474. }
  13475. /**
  13476. * Start prepending content into a push section.
  13477. *
  13478. * @param string $section
  13479. * @param string $content
  13480. * @return void
  13481. * @static
  13482. */
  13483. public static function startPrepend($section, $content = '')
  13484. {
  13485. /** @var \Illuminate\View\Factory $instance */
  13486. $instance->startPrepend($section, $content);
  13487. }
  13488. /**
  13489. * Stop prepending content into a push section.
  13490. *
  13491. * @return string
  13492. * @throws \InvalidArgumentException
  13493. * @static
  13494. */
  13495. public static function stopPrepend()
  13496. {
  13497. /** @var \Illuminate\View\Factory $instance */
  13498. return $instance->stopPrepend();
  13499. }
  13500. /**
  13501. * Get the string contents of a push section.
  13502. *
  13503. * @param string $section
  13504. * @param string $default
  13505. * @return string
  13506. * @static
  13507. */
  13508. public static function yieldPushContent($section, $default = '')
  13509. {
  13510. /** @var \Illuminate\View\Factory $instance */
  13511. return $instance->yieldPushContent($section, $default);
  13512. }
  13513. /**
  13514. * Flush all of the stacks.
  13515. *
  13516. * @return void
  13517. * @static
  13518. */
  13519. public static function flushStacks()
  13520. {
  13521. /** @var \Illuminate\View\Factory $instance */
  13522. $instance->flushStacks();
  13523. }
  13524. /**
  13525. * Start a translation block.
  13526. *
  13527. * @param array $replacements
  13528. * @return void
  13529. * @static
  13530. */
  13531. public static function startTranslation($replacements = [])
  13532. {
  13533. /** @var \Illuminate\View\Factory $instance */
  13534. $instance->startTranslation($replacements);
  13535. }
  13536. /**
  13537. * Render the current translation.
  13538. *
  13539. * @return string
  13540. * @static
  13541. */
  13542. public static function renderTranslation()
  13543. {
  13544. /** @var \Illuminate\View\Factory $instance */
  13545. return $instance->renderTranslation();
  13546. }
  13547. }
  13548. }
  13549. namespace Barryvdh\Debugbar {
  13550. /**
  13551. *
  13552. *
  13553. * @method static void alert(string $message)
  13554. * @method static void critical(string $message)
  13555. * @method static void debug(string $message)
  13556. * @method static void emergency(string $message)
  13557. * @method static void error(string $message)
  13558. * @method static void info(string $message)
  13559. * @method static void log(string $message)
  13560. * @method static void notice(string $message)
  13561. * @method static void warning(string $message)
  13562. * @see \Barryvdh\Debugbar\LaravelDebugbar
  13563. */
  13564. class Facade {
  13565. /**
  13566. * Enable the Debugbar and boot, if not already booted.
  13567. *
  13568. * @static
  13569. */
  13570. public static function enable()
  13571. {
  13572. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13573. return $instance->enable();
  13574. }
  13575. /**
  13576. * Boot the debugbar (add collectors, renderer and listener)
  13577. *
  13578. * @static
  13579. */
  13580. public static function boot()
  13581. {
  13582. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13583. return $instance->boot();
  13584. }
  13585. /**
  13586. *
  13587. *
  13588. * @static
  13589. */
  13590. public static function shouldCollect($name, $default = false)
  13591. {
  13592. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13593. return $instance->shouldCollect($name, $default);
  13594. }
  13595. /**
  13596. * Adds a data collector
  13597. *
  13598. * @param \Barryvdh\Debugbar\DataCollectorInterface $collector
  13599. * @throws DebugBarException
  13600. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13601. * @static
  13602. */
  13603. public static function addCollector($collector)
  13604. {
  13605. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13606. return $instance->addCollector($collector);
  13607. }
  13608. /**
  13609. * Handle silenced errors
  13610. *
  13611. * @param $level
  13612. * @param $message
  13613. * @param string $file
  13614. * @param int $line
  13615. * @param array $context
  13616. * @throws \ErrorException
  13617. * @static
  13618. */
  13619. public static function handleError($level, $message, $file = '', $line = 0, $context = [])
  13620. {
  13621. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13622. return $instance->handleError($level, $message, $file, $line, $context);
  13623. }
  13624. /**
  13625. * Starts a measure
  13626. *
  13627. * @param string $name Internal name, used to stop the measure
  13628. * @param string $label Public name
  13629. * @static
  13630. */
  13631. public static function startMeasure($name, $label = null)
  13632. {
  13633. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13634. return $instance->startMeasure($name, $label);
  13635. }
  13636. /**
  13637. * Stops a measure
  13638. *
  13639. * @param string $name
  13640. * @static
  13641. */
  13642. public static function stopMeasure($name)
  13643. {
  13644. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13645. return $instance->stopMeasure($name);
  13646. }
  13647. /**
  13648. * Adds an exception to be profiled in the debug bar
  13649. *
  13650. * @param \Exception $e
  13651. * @deprecated in favor of addThrowable
  13652. * @static
  13653. */
  13654. public static function addException($e)
  13655. {
  13656. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13657. return $instance->addException($e);
  13658. }
  13659. /**
  13660. * Adds an exception to be profiled in the debug bar
  13661. *
  13662. * @param \Exception $e
  13663. * @static
  13664. */
  13665. public static function addThrowable($e)
  13666. {
  13667. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13668. return $instance->addThrowable($e);
  13669. }
  13670. /**
  13671. * Returns a JavascriptRenderer for this instance
  13672. *
  13673. * @param string $baseUrl
  13674. * @param string $basePathng
  13675. * @return \Barryvdh\Debugbar\JavascriptRenderer
  13676. * @static
  13677. */
  13678. public static function getJavascriptRenderer($baseUrl = null, $basePath = null)
  13679. {
  13680. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13681. return $instance->getJavascriptRenderer($baseUrl, $basePath);
  13682. }
  13683. /**
  13684. * Modify the response and inject the debugbar (or data in headers)
  13685. *
  13686. * @param \Symfony\Component\HttpFoundation\Request $request
  13687. * @param \Symfony\Component\HttpFoundation\Response $response
  13688. * @return \Symfony\Component\HttpFoundation\Response
  13689. * @static
  13690. */
  13691. public static function modifyResponse($request, $response)
  13692. {
  13693. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13694. return $instance->modifyResponse($request, $response);
  13695. }
  13696. /**
  13697. * Check if the Debugbar is enabled
  13698. *
  13699. * @return boolean
  13700. * @static
  13701. */
  13702. public static function isEnabled()
  13703. {
  13704. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13705. return $instance->isEnabled();
  13706. }
  13707. /**
  13708. * Collects the data from the collectors
  13709. *
  13710. * @return array
  13711. * @static
  13712. */
  13713. public static function collect()
  13714. {
  13715. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13716. return $instance->collect();
  13717. }
  13718. /**
  13719. * Injects the web debug toolbar into the given Response.
  13720. *
  13721. * @param \Symfony\Component\HttpFoundation\Response $response A Response instance
  13722. * Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php
  13723. * @static
  13724. */
  13725. public static function injectDebugbar($response)
  13726. {
  13727. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13728. return $instance->injectDebugbar($response);
  13729. }
  13730. /**
  13731. * Disable the Debugbar
  13732. *
  13733. * @static
  13734. */
  13735. public static function disable()
  13736. {
  13737. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13738. return $instance->disable();
  13739. }
  13740. /**
  13741. * Adds a measure
  13742. *
  13743. * @param string $label
  13744. * @param float $start
  13745. * @param float $end
  13746. * @static
  13747. */
  13748. public static function addMeasure($label, $start, $end)
  13749. {
  13750. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13751. return $instance->addMeasure($label, $start, $end);
  13752. }
  13753. /**
  13754. * Utility function to measure the execution of a Closure
  13755. *
  13756. * @param string $label
  13757. * @param \Closure $closure
  13758. * @static
  13759. */
  13760. public static function measure($label, $closure)
  13761. {
  13762. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13763. return $instance->measure($label, $closure);
  13764. }
  13765. /**
  13766. * Collect data in a CLI request
  13767. *
  13768. * @return array
  13769. * @static
  13770. */
  13771. public static function collectConsole()
  13772. {
  13773. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13774. return $instance->collectConsole();
  13775. }
  13776. /**
  13777. * Adds a message to the MessagesCollector
  13778. *
  13779. * A message can be anything from an object to a string
  13780. *
  13781. * @param mixed $message
  13782. * @param string $label
  13783. * @static
  13784. */
  13785. public static function addMessage($message, $label = 'info')
  13786. {
  13787. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13788. return $instance->addMessage($message, $label);
  13789. }
  13790. /**
  13791. * Checks if a data collector has been added
  13792. *
  13793. * @param string $name
  13794. * @return boolean
  13795. * @static
  13796. */
  13797. public static function hasCollector($name)
  13798. {
  13799. //Method inherited from \DebugBar\DebugBar
  13800. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13801. return $instance->hasCollector($name);
  13802. }
  13803. /**
  13804. * Returns a data collector
  13805. *
  13806. * @param string $name
  13807. * @return \DebugBar\DataCollectorInterface
  13808. * @throws DebugBarException
  13809. * @static
  13810. */
  13811. public static function getCollector($name)
  13812. {
  13813. //Method inherited from \DebugBar\DebugBar
  13814. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13815. return $instance->getCollector($name);
  13816. }
  13817. /**
  13818. * Returns an array of all data collectors
  13819. *
  13820. * @return \DebugBar\array[DataCollectorInterface]
  13821. * @static
  13822. */
  13823. public static function getCollectors()
  13824. {
  13825. //Method inherited from \DebugBar\DebugBar
  13826. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13827. return $instance->getCollectors();
  13828. }
  13829. /**
  13830. * Sets the request id generator
  13831. *
  13832. * @param \DebugBar\RequestIdGeneratorInterface $generator
  13833. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13834. * @static
  13835. */
  13836. public static function setRequestIdGenerator($generator)
  13837. {
  13838. //Method inherited from \DebugBar\DebugBar
  13839. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13840. return $instance->setRequestIdGenerator($generator);
  13841. }
  13842. /**
  13843. *
  13844. *
  13845. * @return \DebugBar\RequestIdGeneratorInterface
  13846. * @static
  13847. */
  13848. public static function getRequestIdGenerator()
  13849. {
  13850. //Method inherited from \DebugBar\DebugBar
  13851. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13852. return $instance->getRequestIdGenerator();
  13853. }
  13854. /**
  13855. * Returns the id of the current request
  13856. *
  13857. * @return string
  13858. * @static
  13859. */
  13860. public static function getCurrentRequestId()
  13861. {
  13862. //Method inherited from \DebugBar\DebugBar
  13863. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13864. return $instance->getCurrentRequestId();
  13865. }
  13866. /**
  13867. * Sets the storage backend to use to store the collected data
  13868. *
  13869. * @param \DebugBar\StorageInterface $storage
  13870. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13871. * @static
  13872. */
  13873. public static function setStorage($storage = null)
  13874. {
  13875. //Method inherited from \DebugBar\DebugBar
  13876. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13877. return $instance->setStorage($storage);
  13878. }
  13879. /**
  13880. *
  13881. *
  13882. * @return \DebugBar\StorageInterface
  13883. * @static
  13884. */
  13885. public static function getStorage()
  13886. {
  13887. //Method inherited from \DebugBar\DebugBar
  13888. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13889. return $instance->getStorage();
  13890. }
  13891. /**
  13892. * Checks if the data will be persisted
  13893. *
  13894. * @return boolean
  13895. * @static
  13896. */
  13897. public static function isDataPersisted()
  13898. {
  13899. //Method inherited from \DebugBar\DebugBar
  13900. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13901. return $instance->isDataPersisted();
  13902. }
  13903. /**
  13904. * Sets the HTTP driver
  13905. *
  13906. * @param \DebugBar\HttpDriverInterface $driver
  13907. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13908. * @static
  13909. */
  13910. public static function setHttpDriver($driver)
  13911. {
  13912. //Method inherited from \DebugBar\DebugBar
  13913. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13914. return $instance->setHttpDriver($driver);
  13915. }
  13916. /**
  13917. * Returns the HTTP driver
  13918. *
  13919. * If no http driver where defined, a PhpHttpDriver is automatically created
  13920. *
  13921. * @return \DebugBar\HttpDriverInterface
  13922. * @static
  13923. */
  13924. public static function getHttpDriver()
  13925. {
  13926. //Method inherited from \DebugBar\DebugBar
  13927. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13928. return $instance->getHttpDriver();
  13929. }
  13930. /**
  13931. * Returns collected data
  13932. *
  13933. * Will collect the data if none have been collected yet
  13934. *
  13935. * @return array
  13936. * @static
  13937. */
  13938. public static function getData()
  13939. {
  13940. //Method inherited from \DebugBar\DebugBar
  13941. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13942. return $instance->getData();
  13943. }
  13944. /**
  13945. * Returns an array of HTTP headers containing the data
  13946. *
  13947. * @param string $headerName
  13948. * @param integer $maxHeaderLength
  13949. * @return array
  13950. * @static
  13951. */
  13952. public static function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
  13953. {
  13954. //Method inherited from \DebugBar\DebugBar
  13955. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13956. return $instance->getDataAsHeaders($headerName, $maxHeaderLength, $maxTotalHeaderLength);
  13957. }
  13958. /**
  13959. * Sends the data through the HTTP headers
  13960. *
  13961. * @param bool $useOpenHandler
  13962. * @param string $headerName
  13963. * @param integer $maxHeaderLength
  13964. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13965. * @static
  13966. */
  13967. public static function sendDataInHeaders($useOpenHandler = null, $headerName = 'phpdebugbar', $maxHeaderLength = 4096)
  13968. {
  13969. //Method inherited from \DebugBar\DebugBar
  13970. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13971. return $instance->sendDataInHeaders($useOpenHandler, $headerName, $maxHeaderLength);
  13972. }
  13973. /**
  13974. * Stacks the data in the session for later rendering
  13975. *
  13976. * @static
  13977. */
  13978. public static function stackData()
  13979. {
  13980. //Method inherited from \DebugBar\DebugBar
  13981. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13982. return $instance->stackData();
  13983. }
  13984. /**
  13985. * Checks if there is stacked data in the session
  13986. *
  13987. * @return boolean
  13988. * @static
  13989. */
  13990. public static function hasStackedData()
  13991. {
  13992. //Method inherited from \DebugBar\DebugBar
  13993. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13994. return $instance->hasStackedData();
  13995. }
  13996. /**
  13997. * Returns the data stacked in the session
  13998. *
  13999. * @param boolean $delete Whether to delete the data in the session
  14000. * @return array
  14001. * @static
  14002. */
  14003. public static function getStackedData($delete = true)
  14004. {
  14005. //Method inherited from \DebugBar\DebugBar
  14006. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14007. return $instance->getStackedData($delete);
  14008. }
  14009. /**
  14010. * Sets the key to use in the $_SESSION array
  14011. *
  14012. * @param string $ns
  14013. * @return \Barryvdh\Debugbar\LaravelDebugbar
  14014. * @static
  14015. */
  14016. public static function setStackDataSessionNamespace($ns)
  14017. {
  14018. //Method inherited from \DebugBar\DebugBar
  14019. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14020. return $instance->setStackDataSessionNamespace($ns);
  14021. }
  14022. /**
  14023. * Returns the key used in the $_SESSION array
  14024. *
  14025. * @return string
  14026. * @static
  14027. */
  14028. public static function getStackDataSessionNamespace()
  14029. {
  14030. //Method inherited from \DebugBar\DebugBar
  14031. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14032. return $instance->getStackDataSessionNamespace();
  14033. }
  14034. /**
  14035. * Sets whether to only use the session to store stacked data even
  14036. * if a storage is enabled
  14037. *
  14038. * @param boolean $enabled
  14039. * @return \Barryvdh\Debugbar\LaravelDebugbar
  14040. * @static
  14041. */
  14042. public static function setStackAlwaysUseSessionStorage($enabled = true)
  14043. {
  14044. //Method inherited from \DebugBar\DebugBar
  14045. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14046. return $instance->setStackAlwaysUseSessionStorage($enabled);
  14047. }
  14048. /**
  14049. * Checks if the session is always used to store stacked data
  14050. * even if a storage is enabled
  14051. *
  14052. * @return boolean
  14053. * @static
  14054. */
  14055. public static function isStackAlwaysUseSessionStorage()
  14056. {
  14057. //Method inherited from \DebugBar\DebugBar
  14058. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14059. return $instance->isStackAlwaysUseSessionStorage();
  14060. }
  14061. /**
  14062. *
  14063. *
  14064. * @static
  14065. */
  14066. public static function offsetSet($key, $value)
  14067. {
  14068. //Method inherited from \DebugBar\DebugBar
  14069. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14070. return $instance->offsetSet($key, $value);
  14071. }
  14072. /**
  14073. *
  14074. *
  14075. * @static
  14076. */
  14077. public static function offsetGet($key)
  14078. {
  14079. //Method inherited from \DebugBar\DebugBar
  14080. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14081. return $instance->offsetGet($key);
  14082. }
  14083. /**
  14084. *
  14085. *
  14086. * @static
  14087. */
  14088. public static function offsetExists($key)
  14089. {
  14090. //Method inherited from \DebugBar\DebugBar
  14091. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14092. return $instance->offsetExists($key);
  14093. }
  14094. /**
  14095. *
  14096. *
  14097. * @static
  14098. */
  14099. public static function offsetUnset($key)
  14100. {
  14101. //Method inherited from \DebugBar\DebugBar
  14102. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14103. return $instance->offsetUnset($key);
  14104. }
  14105. }
  14106. }
  14107. namespace SSRPanel\HCaptcha\Facades {
  14108. /**
  14109. *
  14110. *
  14111. */
  14112. class HCaptcha {
  14113. /**
  14114. * Render HTML captcha.
  14115. *
  14116. * @param array $attributes
  14117. * @return string
  14118. * @static
  14119. */
  14120. public static function display($attributes = [])
  14121. {
  14122. /** @var \SSRPanel\HCaptcha\HCaptcha $instance */
  14123. return $instance->display($attributes);
  14124. }
  14125. /**
  14126. *
  14127. *
  14128. * @see display()
  14129. * @static
  14130. */
  14131. public static function displayWidget($attributes = [])
  14132. {
  14133. /** @var \SSRPanel\HCaptcha\HCaptcha $instance */
  14134. return $instance->displayWidget($attributes);
  14135. }
  14136. /**
  14137. * Display a Invisible hCaptcha by embedding a callback into a form submit button.
  14138. *
  14139. * @param string $formIdentifier the html ID of the form that should be submitted.
  14140. * @param string $text the text inside the form button
  14141. * @param array $attributes array of additional html elements
  14142. * @return string
  14143. * @static
  14144. */
  14145. public static function displaySubmit($formIdentifier, $text = 'submit', $attributes = [])
  14146. {
  14147. /** @var \SSRPanel\HCaptcha\HCaptcha $instance */
  14148. return $instance->displaySubmit($formIdentifier, $text, $attributes);
  14149. }
  14150. /**
  14151. * Render js source
  14152. *
  14153. * @param null $lang
  14154. * @param bool $callback
  14155. * @param string $onLoadClass
  14156. * @return string
  14157. * @static
  14158. */
  14159. public static function renderJs($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  14160. {
  14161. /** @var \SSRPanel\HCaptcha\HCaptcha $instance */
  14162. return $instance->renderJs($lang, $callback, $onLoadClass);
  14163. }
  14164. /**
  14165. * Verify no-captcha response.
  14166. *
  14167. * @param string $response
  14168. * @param string $clientIp
  14169. * @return bool
  14170. * @static
  14171. */
  14172. public static function verifyResponse($response, $clientIp = null)
  14173. {
  14174. /** @var \SSRPanel\HCaptcha\HCaptcha $instance */
  14175. return $instance->verifyResponse($response, $clientIp);
  14176. }
  14177. /**
  14178. * Verify no-captcha response by Symfony Request.
  14179. *
  14180. * @param \Request $request
  14181. * @return bool
  14182. * @static
  14183. */
  14184. public static function verifyRequest($request)
  14185. {
  14186. /** @var \SSRPanel\HCaptcha\HCaptcha $instance */
  14187. return $instance->verifyRequest($request);
  14188. }
  14189. /**
  14190. * Get hCaptcha js link.
  14191. *
  14192. * @param string $lang
  14193. * @param boolean $callback
  14194. * @param string $onLoadClass
  14195. * @return string
  14196. * @static
  14197. */
  14198. public static function getJsLink($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  14199. {
  14200. /** @var \SSRPanel\HCaptcha\HCaptcha $instance */
  14201. return $instance->getJsLink($lang, $callback, $onLoadClass);
  14202. }
  14203. }
  14204. }
  14205. namespace Mews\Captcha\Facades {
  14206. /**
  14207. *
  14208. *
  14209. * @see \Mews\Captcha\Captcha
  14210. */
  14211. class Captcha {
  14212. /**
  14213. * Create captcha image
  14214. *
  14215. * @param string $config
  14216. * @param bool $api
  14217. * @return array|mixed
  14218. * @throws Exception
  14219. * @static
  14220. */
  14221. public static function create($config = 'default', $api = false)
  14222. {
  14223. /** @var \Mews\Captcha\Captcha $instance */
  14224. return $instance->create($config, $api);
  14225. }
  14226. /**
  14227. * Captcha check
  14228. *
  14229. * @param string $value
  14230. * @return bool
  14231. * @static
  14232. */
  14233. public static function check($value)
  14234. {
  14235. /** @var \Mews\Captcha\Captcha $instance */
  14236. return $instance->check($value);
  14237. }
  14238. /**
  14239. * Captcha check
  14240. *
  14241. * @param string $value
  14242. * @param string $key
  14243. * @return bool
  14244. * @static
  14245. */
  14246. public static function check_api($value, $key)
  14247. {
  14248. /** @var \Mews\Captcha\Captcha $instance */
  14249. return $instance->check_api($value, $key);
  14250. }
  14251. /**
  14252. * Generate captcha image source
  14253. *
  14254. * @param string $config
  14255. * @return string
  14256. * @static
  14257. */
  14258. public static function src($config = 'default')
  14259. {
  14260. /** @var \Mews\Captcha\Captcha $instance */
  14261. return $instance->src($config);
  14262. }
  14263. /**
  14264. * Generate captcha image html tag
  14265. *
  14266. * @param string $config
  14267. * @param array $attrs $attrs -> HTML attributes supplied to the image tag where key is the attribute and the value is the attribute value
  14268. * @return string
  14269. * @static
  14270. */
  14271. public static function img($config = 'default', $attrs = [])
  14272. {
  14273. /** @var \Mews\Captcha\Captcha $instance */
  14274. return $instance->img($config, $attrs);
  14275. }
  14276. }
  14277. }
  14278. namespace Jenssegers\Agent\Facades {
  14279. /**
  14280. *
  14281. *
  14282. */
  14283. class Agent {
  14284. /**
  14285. * Get all detection rules. These rules include the additional
  14286. * platforms and browsers and utilities.
  14287. *
  14288. * @return array
  14289. * @static
  14290. */
  14291. public static function getDetectionRulesExtended()
  14292. {
  14293. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  14294. }
  14295. /**
  14296. *
  14297. *
  14298. * @static
  14299. */
  14300. public static function getRules()
  14301. {
  14302. /** @var \Jenssegers\Agent\Agent $instance */
  14303. return $instance->getRules();
  14304. }
  14305. /**
  14306. *
  14307. *
  14308. * @return \Jenssegers\Agent\CrawlerDetect
  14309. * @static
  14310. */
  14311. public static function getCrawlerDetect()
  14312. {
  14313. /** @var \Jenssegers\Agent\Agent $instance */
  14314. return $instance->getCrawlerDetect();
  14315. }
  14316. /**
  14317. *
  14318. *
  14319. * @static
  14320. */
  14321. public static function getBrowsers()
  14322. {
  14323. return \Jenssegers\Agent\Agent::getBrowsers();
  14324. }
  14325. /**
  14326. *
  14327. *
  14328. * @static
  14329. */
  14330. public static function getOperatingSystems()
  14331. {
  14332. return \Jenssegers\Agent\Agent::getOperatingSystems();
  14333. }
  14334. /**
  14335. *
  14336. *
  14337. * @static
  14338. */
  14339. public static function getPlatforms()
  14340. {
  14341. return \Jenssegers\Agent\Agent::getPlatforms();
  14342. }
  14343. /**
  14344. *
  14345. *
  14346. * @static
  14347. */
  14348. public static function getDesktopDevices()
  14349. {
  14350. return \Jenssegers\Agent\Agent::getDesktopDevices();
  14351. }
  14352. /**
  14353. *
  14354. *
  14355. * @static
  14356. */
  14357. public static function getProperties()
  14358. {
  14359. return \Jenssegers\Agent\Agent::getProperties();
  14360. }
  14361. /**
  14362. * Get accept languages.
  14363. *
  14364. * @param string $acceptLanguage
  14365. * @return array
  14366. * @static
  14367. */
  14368. public static function languages($acceptLanguage = null)
  14369. {
  14370. /** @var \Jenssegers\Agent\Agent $instance */
  14371. return $instance->languages($acceptLanguage);
  14372. }
  14373. /**
  14374. * Get the browser name.
  14375. *
  14376. * @param string|null $userAgent
  14377. * @return string
  14378. * @static
  14379. */
  14380. public static function browser($userAgent = null)
  14381. {
  14382. /** @var \Jenssegers\Agent\Agent $instance */
  14383. return $instance->browser($userAgent);
  14384. }
  14385. /**
  14386. * Get the platform name.
  14387. *
  14388. * @param string|null $userAgent
  14389. * @return string
  14390. * @static
  14391. */
  14392. public static function platform($userAgent = null)
  14393. {
  14394. /** @var \Jenssegers\Agent\Agent $instance */
  14395. return $instance->platform($userAgent);
  14396. }
  14397. /**
  14398. * Get the device name.
  14399. *
  14400. * @param string|null $userAgent
  14401. * @return string
  14402. * @static
  14403. */
  14404. public static function device($userAgent = null)
  14405. {
  14406. /** @var \Jenssegers\Agent\Agent $instance */
  14407. return $instance->device($userAgent);
  14408. }
  14409. /**
  14410. * Check if the device is a desktop computer.
  14411. *
  14412. * @param string|null $userAgent deprecated
  14413. * @param array $httpHeaders deprecated
  14414. * @return bool
  14415. * @static
  14416. */
  14417. public static function isDesktop($userAgent = null, $httpHeaders = null)
  14418. {
  14419. /** @var \Jenssegers\Agent\Agent $instance */
  14420. return $instance->isDesktop($userAgent, $httpHeaders);
  14421. }
  14422. /**
  14423. * Check if the device is a mobile phone.
  14424. *
  14425. * @param string|null $userAgent deprecated
  14426. * @param array $httpHeaders deprecated
  14427. * @return bool
  14428. * @static
  14429. */
  14430. public static function isPhone($userAgent = null, $httpHeaders = null)
  14431. {
  14432. /** @var \Jenssegers\Agent\Agent $instance */
  14433. return $instance->isPhone($userAgent, $httpHeaders);
  14434. }
  14435. /**
  14436. * Get the robot name.
  14437. *
  14438. * @param string|null $userAgent
  14439. * @return string|bool
  14440. * @static
  14441. */
  14442. public static function robot($userAgent = null)
  14443. {
  14444. /** @var \Jenssegers\Agent\Agent $instance */
  14445. return $instance->robot($userAgent);
  14446. }
  14447. /**
  14448. * Check if device is a robot.
  14449. *
  14450. * @param string|null $userAgent
  14451. * @return bool
  14452. * @static
  14453. */
  14454. public static function isRobot($userAgent = null)
  14455. {
  14456. /** @var \Jenssegers\Agent\Agent $instance */
  14457. return $instance->isRobot($userAgent);
  14458. }
  14459. /**
  14460. *
  14461. *
  14462. * @static
  14463. */
  14464. public static function version($propertyName, $type = 'text')
  14465. {
  14466. /** @var \Jenssegers\Agent\Agent $instance */
  14467. return $instance->version($propertyName, $type);
  14468. }
  14469. /**
  14470. * Get the current script version.
  14471. *
  14472. * This is useful for the demo.php file,
  14473. * so people can check on what version they are testing
  14474. * for mobile devices.
  14475. *
  14476. * @return string The version number in semantic version format.
  14477. * @static
  14478. */
  14479. public static function getScriptVersion()
  14480. {
  14481. //Method inherited from \Mobile_Detect
  14482. return \Jenssegers\Agent\Agent::getScriptVersion();
  14483. }
  14484. /**
  14485. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  14486. *
  14487. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  14488. * the headers. The default null is left for backwards compatibility.
  14489. * @static
  14490. */
  14491. public static function setHttpHeaders($httpHeaders = null)
  14492. {
  14493. //Method inherited from \Mobile_Detect
  14494. /** @var \Jenssegers\Agent\Agent $instance */
  14495. return $instance->setHttpHeaders($httpHeaders);
  14496. }
  14497. /**
  14498. * Retrieves the HTTP headers.
  14499. *
  14500. * @return array
  14501. * @static
  14502. */
  14503. public static function getHttpHeaders()
  14504. {
  14505. //Method inherited from \Mobile_Detect
  14506. /** @var \Jenssegers\Agent\Agent $instance */
  14507. return $instance->getHttpHeaders();
  14508. }
  14509. /**
  14510. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  14511. *
  14512. * Simply null is returned.
  14513. *
  14514. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  14515. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  14516. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  14517. * @return string|null The value of the header.
  14518. * @static
  14519. */
  14520. public static function getHttpHeader($header)
  14521. {
  14522. //Method inherited from \Mobile_Detect
  14523. /** @var \Jenssegers\Agent\Agent $instance */
  14524. return $instance->getHttpHeader($header);
  14525. }
  14526. /**
  14527. *
  14528. *
  14529. * @static
  14530. */
  14531. public static function getMobileHeaders()
  14532. {
  14533. //Method inherited from \Mobile_Detect
  14534. /** @var \Jenssegers\Agent\Agent $instance */
  14535. return $instance->getMobileHeaders();
  14536. }
  14537. /**
  14538. * Get all possible HTTP headers that
  14539. * can contain the User-Agent string.
  14540. *
  14541. * @return array List of HTTP headers.
  14542. * @static
  14543. */
  14544. public static function getUaHttpHeaders()
  14545. {
  14546. //Method inherited from \Mobile_Detect
  14547. /** @var \Jenssegers\Agent\Agent $instance */
  14548. return $instance->getUaHttpHeaders();
  14549. }
  14550. /**
  14551. * Set CloudFront headers
  14552. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  14553. *
  14554. * @param array $cfHeaders List of HTTP headers
  14555. * @return boolean If there were CloudFront headers to be set
  14556. * @static
  14557. */
  14558. public static function setCfHeaders($cfHeaders = null)
  14559. {
  14560. //Method inherited from \Mobile_Detect
  14561. /** @var \Jenssegers\Agent\Agent $instance */
  14562. return $instance->setCfHeaders($cfHeaders);
  14563. }
  14564. /**
  14565. * Retrieves the cloudfront headers.
  14566. *
  14567. * @return array
  14568. * @static
  14569. */
  14570. public static function getCfHeaders()
  14571. {
  14572. //Method inherited from \Mobile_Detect
  14573. /** @var \Jenssegers\Agent\Agent $instance */
  14574. return $instance->getCfHeaders();
  14575. }
  14576. /**
  14577. * Set the User-Agent to be used.
  14578. *
  14579. * @param string $userAgent The user agent string to set.
  14580. * @return string|null
  14581. * @static
  14582. */
  14583. public static function setUserAgent($userAgent = null)
  14584. {
  14585. //Method inherited from \Mobile_Detect
  14586. /** @var \Jenssegers\Agent\Agent $instance */
  14587. return $instance->setUserAgent($userAgent);
  14588. }
  14589. /**
  14590. * Retrieve the User-Agent.
  14591. *
  14592. * @return string|null The user agent if it's set.
  14593. * @static
  14594. */
  14595. public static function getUserAgent()
  14596. {
  14597. //Method inherited from \Mobile_Detect
  14598. /** @var \Jenssegers\Agent\Agent $instance */
  14599. return $instance->getUserAgent();
  14600. }
  14601. /**
  14602. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  14603. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  14604. *
  14605. * @deprecated since version 2.6.9
  14606. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  14607. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  14608. * @static
  14609. */
  14610. public static function setDetectionType($type = null)
  14611. {
  14612. //Method inherited from \Mobile_Detect
  14613. /** @var \Jenssegers\Agent\Agent $instance */
  14614. return $instance->setDetectionType($type);
  14615. }
  14616. /**
  14617. *
  14618. *
  14619. * @static
  14620. */
  14621. public static function getMatchingRegex()
  14622. {
  14623. //Method inherited from \Mobile_Detect
  14624. /** @var \Jenssegers\Agent\Agent $instance */
  14625. return $instance->getMatchingRegex();
  14626. }
  14627. /**
  14628. *
  14629. *
  14630. * @static
  14631. */
  14632. public static function getMatchesArray()
  14633. {
  14634. //Method inherited from \Mobile_Detect
  14635. /** @var \Jenssegers\Agent\Agent $instance */
  14636. return $instance->getMatchesArray();
  14637. }
  14638. /**
  14639. * Retrieve the list of known phone devices.
  14640. *
  14641. * @return array List of phone devices.
  14642. * @static
  14643. */
  14644. public static function getPhoneDevices()
  14645. {
  14646. //Method inherited from \Mobile_Detect
  14647. return \Jenssegers\Agent\Agent::getPhoneDevices();
  14648. }
  14649. /**
  14650. * Retrieve the list of known tablet devices.
  14651. *
  14652. * @return array List of tablet devices.
  14653. * @static
  14654. */
  14655. public static function getTabletDevices()
  14656. {
  14657. //Method inherited from \Mobile_Detect
  14658. return \Jenssegers\Agent\Agent::getTabletDevices();
  14659. }
  14660. /**
  14661. * Alias for getBrowsers() method.
  14662. *
  14663. * @return array List of user agents.
  14664. * @static
  14665. */
  14666. public static function getUserAgents()
  14667. {
  14668. //Method inherited from \Mobile_Detect
  14669. return \Jenssegers\Agent\Agent::getUserAgents();
  14670. }
  14671. /**
  14672. * Retrieve the list of known utilities.
  14673. *
  14674. * @return array List of utilities.
  14675. * @static
  14676. */
  14677. public static function getUtilities()
  14678. {
  14679. //Method inherited from \Mobile_Detect
  14680. return \Jenssegers\Agent\Agent::getUtilities();
  14681. }
  14682. /**
  14683. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  14684. *
  14685. * @deprecated since version 2.6.9
  14686. * @return array All the rules (but not extended).
  14687. * @static
  14688. */
  14689. public static function getMobileDetectionRules()
  14690. {
  14691. //Method inherited from \Mobile_Detect
  14692. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  14693. }
  14694. /**
  14695. * Method gets the mobile detection rules + utilities.
  14696. *
  14697. * The reason this is separate is because utilities rules
  14698. * don't necessary imply mobile. This method is used inside
  14699. * the new $detect->is('stuff') method.
  14700. *
  14701. * @deprecated since version 2.6.9
  14702. * @return array All the rules + extended.
  14703. * @static
  14704. */
  14705. public static function getMobileDetectionRulesExtended()
  14706. {
  14707. //Method inherited from \Mobile_Detect
  14708. /** @var \Jenssegers\Agent\Agent $instance */
  14709. return $instance->getMobileDetectionRulesExtended();
  14710. }
  14711. /**
  14712. * Check the HTTP headers for signs of mobile.
  14713. *
  14714. * This is the fastest mobile check possible; it's used
  14715. * inside isMobile() method.
  14716. *
  14717. * @return bool
  14718. * @static
  14719. */
  14720. public static function checkHttpHeadersForMobile()
  14721. {
  14722. //Method inherited from \Mobile_Detect
  14723. /** @var \Jenssegers\Agent\Agent $instance */
  14724. return $instance->checkHttpHeadersForMobile();
  14725. }
  14726. /**
  14727. * Check if the device is mobile.
  14728. *
  14729. * Returns true if any type of mobile device detected, including special ones
  14730. *
  14731. * @param null $userAgent deprecated
  14732. * @param null $httpHeaders deprecated
  14733. * @return bool
  14734. * @static
  14735. */
  14736. public static function isMobile($userAgent = null, $httpHeaders = null)
  14737. {
  14738. //Method inherited from \Mobile_Detect
  14739. /** @var \Jenssegers\Agent\Agent $instance */
  14740. return $instance->isMobile($userAgent, $httpHeaders);
  14741. }
  14742. /**
  14743. * Check if the device is a tablet.
  14744. *
  14745. * Return true if any type of tablet device is detected.
  14746. *
  14747. * @param string $userAgent deprecated
  14748. * @param array $httpHeaders deprecated
  14749. * @return bool
  14750. * @static
  14751. */
  14752. public static function isTablet($userAgent = null, $httpHeaders = null)
  14753. {
  14754. //Method inherited from \Mobile_Detect
  14755. /** @var \Jenssegers\Agent\Agent $instance */
  14756. return $instance->isTablet($userAgent, $httpHeaders);
  14757. }
  14758. /**
  14759. * This method checks for a certain property in the
  14760. * userAgent.
  14761. *
  14762. * @todo : The httpHeaders part is not yet used.
  14763. * @param string $key
  14764. * @param string $userAgent deprecated
  14765. * @param string $httpHeaders deprecated
  14766. * @return bool|int|null
  14767. * @static
  14768. */
  14769. public static function is($key, $userAgent = null, $httpHeaders = null)
  14770. {
  14771. //Method inherited from \Mobile_Detect
  14772. /** @var \Jenssegers\Agent\Agent $instance */
  14773. return $instance->is($key, $userAgent, $httpHeaders);
  14774. }
  14775. /**
  14776. * Some detection rules are relative (not standard),
  14777. * because of the diversity of devices, vendors and
  14778. * their conventions in representing the User-Agent or
  14779. * the HTTP headers.
  14780. *
  14781. * This method will be used to check custom regexes against
  14782. * the User-Agent string.
  14783. *
  14784. * @param $regex
  14785. * @param string $userAgent
  14786. * @return bool
  14787. * @todo : search in the HTTP headers too.
  14788. * @static
  14789. */
  14790. public static function match($regex, $userAgent = null)
  14791. {
  14792. //Method inherited from \Mobile_Detect
  14793. /** @var \Jenssegers\Agent\Agent $instance */
  14794. return $instance->match($regex, $userAgent);
  14795. }
  14796. /**
  14797. * Prepare the version number.
  14798. *
  14799. * @todo Remove the error supression from str_replace() call.
  14800. * @param string $ver The string version, like "2.6.21.2152";
  14801. * @return float
  14802. * @static
  14803. */
  14804. public static function prepareVersionNo($ver)
  14805. {
  14806. //Method inherited from \Mobile_Detect
  14807. /** @var \Jenssegers\Agent\Agent $instance */
  14808. return $instance->prepareVersionNo($ver);
  14809. }
  14810. /**
  14811. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  14812. *
  14813. * @return string One of the self::MOBILE_GRADE_* constants.
  14814. * @static
  14815. */
  14816. public static function mobileGrade()
  14817. {
  14818. //Method inherited from \Mobile_Detect
  14819. /** @var \Jenssegers\Agent\Agent $instance */
  14820. return $instance->mobileGrade();
  14821. }
  14822. }
  14823. }
  14824. namespace Mews\Purifier\Facades {
  14825. /**
  14826. *
  14827. *
  14828. * @see \Mews\Purifier
  14829. */
  14830. class Purifier {
  14831. /**
  14832. *
  14833. *
  14834. * @param $dirty
  14835. * @param null $config
  14836. * @param \Closure|null $postCreateConfigHook
  14837. * @return mixed
  14838. * @static
  14839. */
  14840. public static function clean($dirty, $config = null, $postCreateConfigHook = null)
  14841. {
  14842. /** @var \Mews\Purifier\Purifier $instance */
  14843. return $instance->clean($dirty, $config, $postCreateConfigHook);
  14844. }
  14845. /**
  14846. * Get HTMLPurifier instance.
  14847. *
  14848. * @return \HTMLPurifier
  14849. * @static
  14850. */
  14851. public static function getInstance()
  14852. {
  14853. /** @var \Mews\Purifier\Purifier $instance */
  14854. return $instance->getInstance();
  14855. }
  14856. }
  14857. }
  14858. namespace Misechow\Geetest {
  14859. /**
  14860. *
  14861. *
  14862. */
  14863. class Geetest {
  14864. /**
  14865. *
  14866. *
  14867. * @return string
  14868. * @static
  14869. */
  14870. public static function getGeetestUrl()
  14871. {
  14872. /** @var \Misechow\Geetest\GeetestLib $instance */
  14873. return $instance->getGeetestUrl();
  14874. }
  14875. /**
  14876. *
  14877. *
  14878. * @param string $geetestUrl
  14879. * @return \Misechow\Geetest\GeetestLib
  14880. * @static
  14881. */
  14882. public static function setGeetestUrl($url)
  14883. {
  14884. /** @var \Misechow\Geetest\GeetestLib $instance */
  14885. return $instance->setGeetestUrl($url);
  14886. }
  14887. /**
  14888. * Check Geetest server is running or not.
  14889. *
  14890. * @param null $user_id
  14891. * @return int
  14892. * @static
  14893. */
  14894. public static function preProcess($param, $new_captcha = 1)
  14895. {
  14896. /** @var \Misechow\Geetest\GeetestLib $instance */
  14897. return $instance->preProcess($param, $new_captcha);
  14898. }
  14899. /**
  14900. *
  14901. *
  14902. * @return mixed
  14903. * @static
  14904. */
  14905. public static function getResponseStr()
  14906. {
  14907. /** @var \Misechow\Geetest\GeetestLib $instance */
  14908. return $instance->getResponseStr();
  14909. }
  14910. /**
  14911. *
  14912. *
  14913. * @return mixed
  14914. * @static
  14915. */
  14916. public static function getResponse()
  14917. {
  14918. /** @var \Misechow\Geetest\GeetestLib $instance */
  14919. return $instance->getResponse();
  14920. }
  14921. /**
  14922. * Get success validate result.
  14923. *
  14924. * @param $challenge
  14925. * @param $validate
  14926. * @param $seccode
  14927. * @param null $user_id
  14928. * @return int
  14929. * @static
  14930. */
  14931. public static function successValidate($challenge, $validate, $seccode, $param, $json_format = 1)
  14932. {
  14933. /** @var \Misechow\Geetest\GeetestLib $instance */
  14934. return $instance->successValidate($challenge, $validate, $seccode, $param, $json_format);
  14935. }
  14936. /**
  14937. * Get fail result.
  14938. *
  14939. * @param $challenge
  14940. * @param $validate
  14941. * @param $seccode
  14942. * @return int
  14943. * @static
  14944. */
  14945. public static function failValidate($challenge, $validate, $seccode)
  14946. {
  14947. /** @var \Misechow\Geetest\GeetestLib $instance */
  14948. return $instance->failValidate($challenge, $validate, $seccode);
  14949. }
  14950. /**
  14951. *
  14952. *
  14953. * @param string $product
  14954. * @static
  14955. */
  14956. public static function render($product = 'float', $captchaId = 'geetest-captcha')
  14957. {
  14958. /** @var \Misechow\Geetest\GeetestLib $instance */
  14959. return $instance->render($product, $captchaId);
  14960. }
  14961. }
  14962. }
  14963. namespace Misechow\NoCaptcha\Facades {
  14964. /**
  14965. *
  14966. *
  14967. */
  14968. class NoCaptcha {
  14969. /**
  14970. * Render HTML captcha.
  14971. *
  14972. * @param array $attributes
  14973. * @return string
  14974. * @static
  14975. */
  14976. public static function display($attributes = [])
  14977. {
  14978. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14979. return $instance->display($attributes);
  14980. }
  14981. /**
  14982. *
  14983. *
  14984. * @see display()
  14985. * @static
  14986. */
  14987. public static function displayWidget($attributes = [])
  14988. {
  14989. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14990. return $instance->displayWidget($attributes);
  14991. }
  14992. /**
  14993. * Display a Invisible reCAPTCHA by embedding a callback into a form submit button.
  14994. *
  14995. * @param string $formIdentifier the html ID of the form that should be submitted.
  14996. * @param string $text the text inside the form button
  14997. * @param array $attributes array of additional html elements
  14998. * @return string
  14999. * @static
  15000. */
  15001. public static function displaySubmit($formIdentifier, $text = 'submit', $attributes = [])
  15002. {
  15003. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  15004. return $instance->displaySubmit($formIdentifier, $text, $attributes);
  15005. }
  15006. /**
  15007. * Render js source
  15008. *
  15009. * @param null $lang
  15010. * @param bool $callback
  15011. * @param string $onLoadClass
  15012. * @return string
  15013. * @static
  15014. */
  15015. public static function renderJs($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  15016. {
  15017. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  15018. return $instance->renderJs($lang, $callback, $onLoadClass);
  15019. }
  15020. /**
  15021. * Verify no-captcha response.
  15022. *
  15023. * @param string $response
  15024. * @param string $clientIp
  15025. * @return bool
  15026. * @static
  15027. */
  15028. public static function verifyResponse($response, $clientIp = null)
  15029. {
  15030. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  15031. return $instance->verifyResponse($response, $clientIp);
  15032. }
  15033. /**
  15034. * Verify no-captcha response by Symfony Request.
  15035. *
  15036. * @param \Request $request
  15037. * @return bool
  15038. * @static
  15039. */
  15040. public static function verifyRequest($request)
  15041. {
  15042. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  15043. return $instance->verifyRequest($request);
  15044. }
  15045. /**
  15046. * Get recaptcha js link.
  15047. *
  15048. * @param string $lang
  15049. * @param boolean $callback
  15050. * @param string $onLoadClass
  15051. * @return string
  15052. * @static
  15053. */
  15054. public static function getJsLink($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  15055. {
  15056. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  15057. return $instance->getJsLink($lang, $callback, $onLoadClass);
  15058. }
  15059. }
  15060. }
  15061. namespace Intervention\Image\Facades {
  15062. /**
  15063. *
  15064. *
  15065. */
  15066. class Image {
  15067. /**
  15068. * Overrides configuration settings
  15069. *
  15070. * @param array $config
  15071. * @return self
  15072. * @static
  15073. */
  15074. public static function configure($config = [])
  15075. {
  15076. /** @var \Intervention\Image\ImageManager $instance */
  15077. return $instance->configure($config);
  15078. }
  15079. /**
  15080. * Initiates an Image instance from different input types
  15081. *
  15082. * @param mixed $data
  15083. * @return \Intervention\Image\Image
  15084. * @static
  15085. */
  15086. public static function make($data)
  15087. {
  15088. /** @var \Intervention\Image\ImageManager $instance */
  15089. return $instance->make($data);
  15090. }
  15091. /**
  15092. * Creates an empty image canvas
  15093. *
  15094. * @param int $width
  15095. * @param int $height
  15096. * @param mixed $background
  15097. * @return \Intervention\Image\Image
  15098. * @static
  15099. */
  15100. public static function canvas($width, $height, $background = null)
  15101. {
  15102. /** @var \Intervention\Image\ImageManager $instance */
  15103. return $instance->canvas($width, $height, $background);
  15104. }
  15105. /**
  15106. * Create new cached image and run callback
  15107. * (requires additional package intervention/imagecache)
  15108. *
  15109. * @param \Closure $callback
  15110. * @param int $lifetime
  15111. * @param boolean $returnObj
  15112. * @return \Image
  15113. * @static
  15114. */
  15115. public static function cache($callback, $lifetime = null, $returnObj = false)
  15116. {
  15117. /** @var \Intervention\Image\ImageManager $instance */
  15118. return $instance->cache($callback, $lifetime, $returnObj);
  15119. }
  15120. }
  15121. }
  15122. namespace {
  15123. class App extends \Illuminate\Support\Facades\App {}
  15124. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  15125. class Auth extends \Illuminate\Support\Facades\Auth {}
  15126. class Blade extends \Illuminate\Support\Facades\Blade {}
  15127. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  15128. class Debugbar extends \Barryvdh\Debugbar\Facade {}
  15129. class Bus extends \Illuminate\Support\Facades\Bus {}
  15130. class Cache extends \Illuminate\Support\Facades\Cache {}
  15131. class Config extends \Illuminate\Support\Facades\Config {}
  15132. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  15133. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  15134. class DB extends \Illuminate\Support\Facades\DB {}
  15135. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  15136. /**
  15137. * Create and return an un-saved model instance.
  15138. *
  15139. * @param array $attributes
  15140. * @return \Illuminate\Database\Eloquent\Model
  15141. * @static
  15142. */
  15143. public static function make($attributes = [])
  15144. {
  15145. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15146. return $instance->make($attributes);
  15147. }
  15148. /**
  15149. * Register a new global scope.
  15150. *
  15151. * @param string $identifier
  15152. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  15153. * @return \Illuminate\Database\Eloquent\Builder
  15154. * @static
  15155. */
  15156. public static function withGlobalScope($identifier, $scope)
  15157. {
  15158. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15159. return $instance->withGlobalScope($identifier, $scope);
  15160. }
  15161. /**
  15162. * Remove a registered global scope.
  15163. *
  15164. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  15165. * @return \Illuminate\Database\Eloquent\Builder
  15166. * @static
  15167. */
  15168. public static function withoutGlobalScope($scope)
  15169. {
  15170. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15171. return $instance->withoutGlobalScope($scope);
  15172. }
  15173. /**
  15174. * Remove all or passed registered global scopes.
  15175. *
  15176. * @param array|null $scopes
  15177. * @return \Illuminate\Database\Eloquent\Builder
  15178. * @static
  15179. */
  15180. public static function withoutGlobalScopes($scopes = null)
  15181. {
  15182. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15183. return $instance->withoutGlobalScopes($scopes);
  15184. }
  15185. /**
  15186. * Get an array of global scopes that were removed from the query.
  15187. *
  15188. * @return array
  15189. * @static
  15190. */
  15191. public static function removedScopes()
  15192. {
  15193. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15194. return $instance->removedScopes();
  15195. }
  15196. /**
  15197. * Add a where clause on the primary key to the query.
  15198. *
  15199. * @param mixed $id
  15200. * @return \Illuminate\Database\Eloquent\Builder
  15201. * @static
  15202. */
  15203. public static function whereKey($id)
  15204. {
  15205. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15206. return $instance->whereKey($id);
  15207. }
  15208. /**
  15209. * Add a where clause on the primary key to the query.
  15210. *
  15211. * @param mixed $id
  15212. * @return \Illuminate\Database\Eloquent\Builder
  15213. * @static
  15214. */
  15215. public static function whereKeyNot($id)
  15216. {
  15217. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15218. return $instance->whereKeyNot($id);
  15219. }
  15220. /**
  15221. * Add a basic where clause to the query.
  15222. *
  15223. * @param string|array|\Closure $column
  15224. * @param mixed $operator
  15225. * @param mixed $value
  15226. * @param string $boolean
  15227. * @return \Illuminate\Database\Eloquent\Builder
  15228. * @static
  15229. */
  15230. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  15231. {
  15232. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15233. return $instance->where($column, $operator, $value, $boolean);
  15234. }
  15235. /**
  15236. * Add an "or where" clause to the query.
  15237. *
  15238. * @param \Closure|array|string $column
  15239. * @param mixed $operator
  15240. * @param mixed $value
  15241. * @return \Illuminate\Database\Eloquent\Builder|static
  15242. * @static
  15243. */
  15244. public static function orWhere($column, $operator = null, $value = null)
  15245. {
  15246. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15247. return $instance->orWhere($column, $operator, $value);
  15248. }
  15249. /**
  15250. * Add an "order by" clause for a timestamp to the query.
  15251. *
  15252. * @param string $column
  15253. * @return \Illuminate\Database\Eloquent\Builder
  15254. * @static
  15255. */
  15256. public static function latest($column = null)
  15257. {
  15258. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15259. return $instance->latest($column);
  15260. }
  15261. /**
  15262. * Add an "order by" clause for a timestamp to the query.
  15263. *
  15264. * @param string $column
  15265. * @return \Illuminate\Database\Eloquent\Builder
  15266. * @static
  15267. */
  15268. public static function oldest($column = null)
  15269. {
  15270. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15271. return $instance->oldest($column);
  15272. }
  15273. /**
  15274. * Create a collection of models from plain arrays.
  15275. *
  15276. * @param array $items
  15277. * @return \Illuminate\Database\Eloquent\Collection
  15278. * @static
  15279. */
  15280. public static function hydrate($items)
  15281. {
  15282. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15283. return $instance->hydrate($items);
  15284. }
  15285. /**
  15286. * Create a collection of models from a raw query.
  15287. *
  15288. * @param string $query
  15289. * @param array $bindings
  15290. * @return \Illuminate\Database\Eloquent\Collection
  15291. * @static
  15292. */
  15293. public static function fromQuery($query, $bindings = [])
  15294. {
  15295. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15296. return $instance->fromQuery($query, $bindings);
  15297. }
  15298. /**
  15299. * Find a model by its primary key.
  15300. *
  15301. * @param mixed $id
  15302. * @param array $columns
  15303. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  15304. * @static
  15305. */
  15306. public static function find($id, $columns = [])
  15307. {
  15308. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15309. return $instance->find($id, $columns);
  15310. }
  15311. /**
  15312. * Find multiple models by their primary keys.
  15313. *
  15314. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  15315. * @param array $columns
  15316. * @return \Illuminate\Database\Eloquent\Collection
  15317. * @static
  15318. */
  15319. public static function findMany($ids, $columns = [])
  15320. {
  15321. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15322. return $instance->findMany($ids, $columns);
  15323. }
  15324. /**
  15325. * Find a model by its primary key or throw an exception.
  15326. *
  15327. * @param mixed $id
  15328. * @param array $columns
  15329. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  15330. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  15331. * @static
  15332. */
  15333. public static function findOrFail($id, $columns = [])
  15334. {
  15335. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15336. return $instance->findOrFail($id, $columns);
  15337. }
  15338. /**
  15339. * Find a model by its primary key or return fresh model instance.
  15340. *
  15341. * @param mixed $id
  15342. * @param array $columns
  15343. * @return \Illuminate\Database\Eloquent\Model|static
  15344. * @static
  15345. */
  15346. public static function findOrNew($id, $columns = [])
  15347. {
  15348. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15349. return $instance->findOrNew($id, $columns);
  15350. }
  15351. /**
  15352. * Get the first record matching the attributes or instantiate it.
  15353. *
  15354. * @param array $attributes
  15355. * @param array $values
  15356. * @return \Illuminate\Database\Eloquent\Model|static
  15357. * @static
  15358. */
  15359. public static function firstOrNew($attributes, $values = [])
  15360. {
  15361. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15362. return $instance->firstOrNew($attributes, $values);
  15363. }
  15364. /**
  15365. * Get the first record matching the attributes or create it.
  15366. *
  15367. * @param array $attributes
  15368. * @param array $values
  15369. * @return \Illuminate\Database\Eloquent\Model|static
  15370. * @static
  15371. */
  15372. public static function firstOrCreate($attributes, $values = [])
  15373. {
  15374. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15375. return $instance->firstOrCreate($attributes, $values);
  15376. }
  15377. /**
  15378. * Create or update a record matching the attributes, and fill it with values.
  15379. *
  15380. * @param array $attributes
  15381. * @param array $values
  15382. * @return \Illuminate\Database\Eloquent\Model|static
  15383. * @static
  15384. */
  15385. public static function updateOrCreate($attributes, $values = [])
  15386. {
  15387. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15388. return $instance->updateOrCreate($attributes, $values);
  15389. }
  15390. /**
  15391. * Execute the query and get the first result or throw an exception.
  15392. *
  15393. * @param array $columns
  15394. * @return \Illuminate\Database\Eloquent\Model|static
  15395. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  15396. * @static
  15397. */
  15398. public static function firstOrFail($columns = [])
  15399. {
  15400. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15401. return $instance->firstOrFail($columns);
  15402. }
  15403. /**
  15404. * Execute the query and get the first result or call a callback.
  15405. *
  15406. * @param \Closure|array $columns
  15407. * @param \Closure|null $callback
  15408. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  15409. * @static
  15410. */
  15411. public static function firstOr($columns = [], $callback = null)
  15412. {
  15413. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15414. return $instance->firstOr($columns, $callback);
  15415. }
  15416. /**
  15417. * Get a single column's value from the first result of a query.
  15418. *
  15419. * @param string $column
  15420. * @return mixed
  15421. * @static
  15422. */
  15423. public static function value($column)
  15424. {
  15425. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15426. return $instance->value($column);
  15427. }
  15428. /**
  15429. * Execute the query as a "select" statement.
  15430. *
  15431. * @param array $columns
  15432. * @return \Illuminate\Database\Eloquent\Collection|static[]
  15433. * @static
  15434. */
  15435. public static function get($columns = [])
  15436. {
  15437. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15438. return $instance->get($columns);
  15439. }
  15440. /**
  15441. * Get the hydrated models without eager loading.
  15442. *
  15443. * @param array $columns
  15444. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  15445. * @static
  15446. */
  15447. public static function getModels($columns = [])
  15448. {
  15449. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15450. return $instance->getModels($columns);
  15451. }
  15452. /**
  15453. * Eager load the relationships for the models.
  15454. *
  15455. * @param array $models
  15456. * @return array
  15457. * @static
  15458. */
  15459. public static function eagerLoadRelations($models)
  15460. {
  15461. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15462. return $instance->eagerLoadRelations($models);
  15463. }
  15464. /**
  15465. * Get a generator for the given query.
  15466. *
  15467. * @return \Generator
  15468. * @static
  15469. */
  15470. public static function cursor()
  15471. {
  15472. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15473. return $instance->cursor();
  15474. }
  15475. /**
  15476. * Chunk the results of a query by comparing numeric IDs.
  15477. *
  15478. * @param int $count
  15479. * @param callable $callback
  15480. * @param string|null $column
  15481. * @param string|null $alias
  15482. * @return bool
  15483. * @static
  15484. */
  15485. public static function chunkById($count, $callback, $column = null, $alias = null)
  15486. {
  15487. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15488. return $instance->chunkById($count, $callback, $column, $alias);
  15489. }
  15490. /**
  15491. * Get an array with the values of a given column.
  15492. *
  15493. * @param string $column
  15494. * @param string|null $key
  15495. * @return \Illuminate\Support\Collection
  15496. * @static
  15497. */
  15498. public static function pluck($column, $key = null)
  15499. {
  15500. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15501. return $instance->pluck($column, $key);
  15502. }
  15503. /**
  15504. * Paginate the given query.
  15505. *
  15506. * @param int $perPage
  15507. * @param array $columns
  15508. * @param string $pageName
  15509. * @param int|null $page
  15510. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  15511. * @throws \InvalidArgumentException
  15512. * @static
  15513. */
  15514. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15515. {
  15516. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15517. return $instance->paginate($perPage, $columns, $pageName, $page);
  15518. }
  15519. /**
  15520. * Paginate the given query into a simple paginator.
  15521. *
  15522. * @param int $perPage
  15523. * @param array $columns
  15524. * @param string $pageName
  15525. * @param int|null $page
  15526. * @return \Illuminate\Contracts\Pagination\Paginator
  15527. * @static
  15528. */
  15529. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15530. {
  15531. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15532. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  15533. }
  15534. /**
  15535. * Save a new model and return the instance.
  15536. *
  15537. * @param array $attributes
  15538. * @return \Illuminate\Database\Eloquent\Model|$this
  15539. * @static
  15540. */
  15541. public static function create($attributes = [])
  15542. {
  15543. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15544. return $instance->create($attributes);
  15545. }
  15546. /**
  15547. * Save a new model and return the instance. Allow mass-assignment.
  15548. *
  15549. * @param array $attributes
  15550. * @return \Illuminate\Database\Eloquent\Model|$this
  15551. * @static
  15552. */
  15553. public static function forceCreate($attributes)
  15554. {
  15555. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15556. return $instance->forceCreate($attributes);
  15557. }
  15558. /**
  15559. * Register a replacement for the default delete function.
  15560. *
  15561. * @param \Closure $callback
  15562. * @return void
  15563. * @static
  15564. */
  15565. public static function onDelete($callback)
  15566. {
  15567. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15568. $instance->onDelete($callback);
  15569. }
  15570. /**
  15571. * Call the given local model scopes.
  15572. *
  15573. * @param array $scopes
  15574. * @return static|mixed
  15575. * @static
  15576. */
  15577. public static function scopes($scopes)
  15578. {
  15579. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15580. return $instance->scopes($scopes);
  15581. }
  15582. /**
  15583. * Apply the scopes to the Eloquent builder instance and return it.
  15584. *
  15585. * @return static
  15586. * @static
  15587. */
  15588. public static function applyScopes()
  15589. {
  15590. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15591. return $instance->applyScopes();
  15592. }
  15593. /**
  15594. * Prevent the specified relations from being eager loaded.
  15595. *
  15596. * @param mixed $relations
  15597. * @return \Illuminate\Database\Eloquent\Builder
  15598. * @static
  15599. */
  15600. public static function without($relations)
  15601. {
  15602. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15603. return $instance->without($relations);
  15604. }
  15605. /**
  15606. * Create a new instance of the model being queried.
  15607. *
  15608. * @param array $attributes
  15609. * @return \Illuminate\Database\Eloquent\Model|static
  15610. * @static
  15611. */
  15612. public static function newModelInstance($attributes = [])
  15613. {
  15614. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15615. return $instance->newModelInstance($attributes);
  15616. }
  15617. /**
  15618. * Get the underlying query builder instance.
  15619. *
  15620. * @return \Illuminate\Database\Query\Builder
  15621. * @static
  15622. */
  15623. public static function getQuery()
  15624. {
  15625. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15626. return $instance->getQuery();
  15627. }
  15628. /**
  15629. * Set the underlying query builder instance.
  15630. *
  15631. * @param \Illuminate\Database\Query\Builder $query
  15632. * @return \Illuminate\Database\Eloquent\Builder
  15633. * @static
  15634. */
  15635. public static function setQuery($query)
  15636. {
  15637. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15638. return $instance->setQuery($query);
  15639. }
  15640. /**
  15641. * Get a base query builder instance.
  15642. *
  15643. * @return \Illuminate\Database\Query\Builder
  15644. * @static
  15645. */
  15646. public static function toBase()
  15647. {
  15648. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15649. return $instance->toBase();
  15650. }
  15651. /**
  15652. * Get the relationships being eagerly loaded.
  15653. *
  15654. * @return array
  15655. * @static
  15656. */
  15657. public static function getEagerLoads()
  15658. {
  15659. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15660. return $instance->getEagerLoads();
  15661. }
  15662. /**
  15663. * Set the relationships being eagerly loaded.
  15664. *
  15665. * @param array $eagerLoad
  15666. * @return \Illuminate\Database\Eloquent\Builder
  15667. * @static
  15668. */
  15669. public static function setEagerLoads($eagerLoad)
  15670. {
  15671. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15672. return $instance->setEagerLoads($eagerLoad);
  15673. }
  15674. /**
  15675. * Get the model instance being queried.
  15676. *
  15677. * @return \Illuminate\Database\Eloquent\Model|static
  15678. * @static
  15679. */
  15680. public static function getModel()
  15681. {
  15682. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15683. return $instance->getModel();
  15684. }
  15685. /**
  15686. * Set a model instance for the model being queried.
  15687. *
  15688. * @param \Illuminate\Database\Eloquent\Model $model
  15689. * @return \Illuminate\Database\Eloquent\Builder
  15690. * @static
  15691. */
  15692. public static function setModel($model)
  15693. {
  15694. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15695. return $instance->setModel($model);
  15696. }
  15697. /**
  15698. * Get the given macro by name.
  15699. *
  15700. * @param string $name
  15701. * @return \Closure
  15702. * @static
  15703. */
  15704. public static function getMacro($name)
  15705. {
  15706. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15707. return $instance->getMacro($name);
  15708. }
  15709. /**
  15710. * Chunk the results of the query.
  15711. *
  15712. * @param int $count
  15713. * @param callable $callback
  15714. * @return bool
  15715. * @static
  15716. */
  15717. public static function chunk($count, $callback)
  15718. {
  15719. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15720. return $instance->chunk($count, $callback);
  15721. }
  15722. /**
  15723. * Execute a callback over each item while chunking.
  15724. *
  15725. * @param callable $callback
  15726. * @param int $count
  15727. * @return bool
  15728. * @static
  15729. */
  15730. public static function each($callback, $count = 1000)
  15731. {
  15732. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15733. return $instance->each($callback, $count);
  15734. }
  15735. /**
  15736. * Execute the query and get the first result.
  15737. *
  15738. * @param array $columns
  15739. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15740. * @static
  15741. */
  15742. public static function first($columns = [])
  15743. {
  15744. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15745. return $instance->first($columns);
  15746. }
  15747. /**
  15748. * Apply the callback's query changes if the given "value" is true.
  15749. *
  15750. * @param mixed $value
  15751. * @param callable $callback
  15752. * @param callable|null $default
  15753. * @return mixed|$this
  15754. * @static
  15755. */
  15756. public static function when($value, $callback, $default = null)
  15757. {
  15758. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15759. return $instance->when($value, $callback, $default);
  15760. }
  15761. /**
  15762. * Pass the query to a given callback.
  15763. *
  15764. * @param callable $callback
  15765. * @return \Illuminate\Database\Query\Builder
  15766. * @static
  15767. */
  15768. public static function tap($callback)
  15769. {
  15770. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15771. return $instance->tap($callback);
  15772. }
  15773. /**
  15774. * Apply the callback's query changes if the given "value" is false.
  15775. *
  15776. * @param mixed $value
  15777. * @param callable $callback
  15778. * @param callable|null $default
  15779. * @return mixed|$this
  15780. * @static
  15781. */
  15782. public static function unless($value, $callback, $default = null)
  15783. {
  15784. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15785. return $instance->unless($value, $callback, $default);
  15786. }
  15787. /**
  15788. * Add a relationship count / exists condition to the query.
  15789. *
  15790. * @param string|\Illuminate\Database\Eloquent\Relations\Relation $relation
  15791. * @param string $operator
  15792. * @param int $count
  15793. * @param string $boolean
  15794. * @param \Closure|null $callback
  15795. * @return \Illuminate\Database\Eloquent\Builder|static
  15796. * @static
  15797. */
  15798. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15799. {
  15800. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15801. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15802. }
  15803. /**
  15804. * Add a relationship count / exists condition to the query with an "or".
  15805. *
  15806. * @param string $relation
  15807. * @param string $operator
  15808. * @param int $count
  15809. * @return \Illuminate\Database\Eloquent\Builder|static
  15810. * @static
  15811. */
  15812. public static function orHas($relation, $operator = '>=', $count = 1)
  15813. {
  15814. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15815. return $instance->orHas($relation, $operator, $count);
  15816. }
  15817. /**
  15818. * Add a relationship count / exists condition to the query.
  15819. *
  15820. * @param string $relation
  15821. * @param string $boolean
  15822. * @param \Closure|null $callback
  15823. * @return \Illuminate\Database\Eloquent\Builder|static
  15824. * @static
  15825. */
  15826. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15827. {
  15828. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15829. return $instance->doesntHave($relation, $boolean, $callback);
  15830. }
  15831. /**
  15832. * Add a relationship count / exists condition to the query with an "or".
  15833. *
  15834. * @param string $relation
  15835. * @return \Illuminate\Database\Eloquent\Builder|static
  15836. * @static
  15837. */
  15838. public static function orDoesntHave($relation)
  15839. {
  15840. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15841. return $instance->orDoesntHave($relation);
  15842. }
  15843. /**
  15844. * Add a relationship count / exists condition to the query with where clauses.
  15845. *
  15846. * @param string $relation
  15847. * @param \Closure|null $callback
  15848. * @param string $operator
  15849. * @param int $count
  15850. * @return \Illuminate\Database\Eloquent\Builder|static
  15851. * @static
  15852. */
  15853. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15854. {
  15855. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15856. return $instance->whereHas($relation, $callback, $operator, $count);
  15857. }
  15858. /**
  15859. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15860. *
  15861. * @param string $relation
  15862. * @param \Closure $callback
  15863. * @param string $operator
  15864. * @param int $count
  15865. * @return \Illuminate\Database\Eloquent\Builder|static
  15866. * @static
  15867. */
  15868. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15869. {
  15870. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15871. return $instance->orWhereHas($relation, $callback, $operator, $count);
  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. * @return \Illuminate\Database\Eloquent\Builder|static
  15879. * @static
  15880. */
  15881. public static function whereDoesntHave($relation, $callback = null)
  15882. {
  15883. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15884. return $instance->whereDoesntHave($relation, $callback);
  15885. }
  15886. /**
  15887. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15888. *
  15889. * @param string $relation
  15890. * @param \Closure $callback
  15891. * @return \Illuminate\Database\Eloquent\Builder|static
  15892. * @static
  15893. */
  15894. public static function orWhereDoesntHave($relation, $callback = null)
  15895. {
  15896. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15897. return $instance->orWhereDoesntHave($relation, $callback);
  15898. }
  15899. /**
  15900. * Add a polymorphic relationship count / exists condition to the query.
  15901. *
  15902. * @param string $relation
  15903. * @param string|array $types
  15904. * @param string $operator
  15905. * @param int $count
  15906. * @param string $boolean
  15907. * @param \Closure|null $callback
  15908. * @return \Illuminate\Database\Eloquent\Builder|static
  15909. * @static
  15910. */
  15911. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15912. {
  15913. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15914. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  15915. }
  15916. /**
  15917. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15918. *
  15919. * @param string $relation
  15920. * @param string|array $types
  15921. * @param string $operator
  15922. * @param int $count
  15923. * @return \Illuminate\Database\Eloquent\Builder|static
  15924. * @static
  15925. */
  15926. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  15927. {
  15928. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15929. return $instance->orHasMorph($relation, $types, $operator, $count);
  15930. }
  15931. /**
  15932. * Add a polymorphic relationship count / exists condition to the query.
  15933. *
  15934. * @param string $relation
  15935. * @param string|array $types
  15936. * @param string $boolean
  15937. * @param \Closure|null $callback
  15938. * @return \Illuminate\Database\Eloquent\Builder|static
  15939. * @static
  15940. */
  15941. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  15942. {
  15943. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15944. return $instance->doesntHaveMorph($relation, $types, $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. * @return \Illuminate\Database\Eloquent\Builder|static
  15952. * @static
  15953. */
  15954. public static function orDoesntHaveMorph($relation, $types)
  15955. {
  15956. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15957. return $instance->orDoesntHaveMorph($relation, $types);
  15958. }
  15959. /**
  15960. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15961. *
  15962. * @param string $relation
  15963. * @param string|array $types
  15964. * @param \Closure|null $callback
  15965. * @param string $operator
  15966. * @param int $count
  15967. * @return \Illuminate\Database\Eloquent\Builder|static
  15968. * @static
  15969. */
  15970. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  15971. {
  15972. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15973. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  15974. }
  15975. /**
  15976. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  15977. *
  15978. * @param string $relation
  15979. * @param string|array $types
  15980. * @param \Closure $callback
  15981. * @param string $operator
  15982. * @param int $count
  15983. * @return \Illuminate\Database\Eloquent\Builder|static
  15984. * @static
  15985. */
  15986. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  15987. {
  15988. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15989. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  15990. }
  15991. /**
  15992. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15993. *
  15994. * @param string $relation
  15995. * @param string|array $types
  15996. * @param \Closure|null $callback
  15997. * @return \Illuminate\Database\Eloquent\Builder|static
  15998. * @static
  15999. */
  16000. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  16001. {
  16002. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16003. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  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 $callback
  16011. * @return \Illuminate\Database\Eloquent\Builder|static
  16012. * @static
  16013. */
  16014. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  16015. {
  16016. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16017. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  16018. }
  16019. /**
  16020. * Add subselect queries to count the relations.
  16021. *
  16022. * @param mixed $relations
  16023. * @return \Illuminate\Database\Eloquent\Builder
  16024. * @static
  16025. */
  16026. public static function withCount($relations)
  16027. {
  16028. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16029. return $instance->withCount($relations);
  16030. }
  16031. /**
  16032. * Merge the where constraints from another query to the current query.
  16033. *
  16034. * @param \Illuminate\Database\Eloquent\Builder $from
  16035. * @return \Illuminate\Database\Eloquent\Builder|static
  16036. * @static
  16037. */
  16038. public static function mergeConstraintsFrom($from)
  16039. {
  16040. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  16041. return $instance->mergeConstraintsFrom($from);
  16042. }
  16043. /**
  16044. * Set the columns to be selected.
  16045. *
  16046. * @param array|mixed $columns
  16047. * @return \Illuminate\Database\Query\Builder
  16048. * @static
  16049. */
  16050. public static function select($columns = [])
  16051. {
  16052. /** @var \Illuminate\Database\Query\Builder $instance */
  16053. return $instance->select($columns);
  16054. }
  16055. /**
  16056. * Add a subselect expression to the query.
  16057. *
  16058. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16059. * @param string $as
  16060. * @return \Illuminate\Database\Query\Builder|static
  16061. * @throws \InvalidArgumentException
  16062. * @static
  16063. */
  16064. public static function selectSub($query, $as)
  16065. {
  16066. /** @var \Illuminate\Database\Query\Builder $instance */
  16067. return $instance->selectSub($query, $as);
  16068. }
  16069. /**
  16070. * Add a new "raw" select expression to the query.
  16071. *
  16072. * @param string $expression
  16073. * @param array $bindings
  16074. * @return \Illuminate\Database\Query\Builder|static
  16075. * @static
  16076. */
  16077. public static function selectRaw($expression, $bindings = [])
  16078. {
  16079. /** @var \Illuminate\Database\Query\Builder $instance */
  16080. return $instance->selectRaw($expression, $bindings);
  16081. }
  16082. /**
  16083. * Makes "from" fetch from a subquery.
  16084. *
  16085. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16086. * @param string $as
  16087. * @return \Illuminate\Database\Query\Builder|static
  16088. * @throws \InvalidArgumentException
  16089. * @static
  16090. */
  16091. public static function fromSub($query, $as)
  16092. {
  16093. /** @var \Illuminate\Database\Query\Builder $instance */
  16094. return $instance->fromSub($query, $as);
  16095. }
  16096. /**
  16097. * Add a raw from clause to the query.
  16098. *
  16099. * @param string $expression
  16100. * @param mixed $bindings
  16101. * @return \Illuminate\Database\Query\Builder|static
  16102. * @static
  16103. */
  16104. public static function fromRaw($expression, $bindings = [])
  16105. {
  16106. /** @var \Illuminate\Database\Query\Builder $instance */
  16107. return $instance->fromRaw($expression, $bindings);
  16108. }
  16109. /**
  16110. * Add a new select column to the query.
  16111. *
  16112. * @param array|mixed $column
  16113. * @return \Illuminate\Database\Query\Builder
  16114. * @static
  16115. */
  16116. public static function addSelect($column)
  16117. {
  16118. /** @var \Illuminate\Database\Query\Builder $instance */
  16119. return $instance->addSelect($column);
  16120. }
  16121. /**
  16122. * Force the query to only return distinct results.
  16123. *
  16124. * @return \Illuminate\Database\Query\Builder
  16125. * @static
  16126. */
  16127. public static function distinct()
  16128. {
  16129. /** @var \Illuminate\Database\Query\Builder $instance */
  16130. return $instance->distinct();
  16131. }
  16132. /**
  16133. * Set the table which the query is targeting.
  16134. *
  16135. * @param string $table
  16136. * @return \Illuminate\Database\Query\Builder
  16137. * @static
  16138. */
  16139. public static function from($table)
  16140. {
  16141. /** @var \Illuminate\Database\Query\Builder $instance */
  16142. return $instance->from($table);
  16143. }
  16144. /**
  16145. * Add a join clause to the query.
  16146. *
  16147. * @param string $table
  16148. * @param \Closure|string $first
  16149. * @param string|null $operator
  16150. * @param string|null $second
  16151. * @param string $type
  16152. * @param bool $where
  16153. * @return \Illuminate\Database\Query\Builder
  16154. * @static
  16155. */
  16156. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  16157. {
  16158. /** @var \Illuminate\Database\Query\Builder $instance */
  16159. return $instance->join($table, $first, $operator, $second, $type, $where);
  16160. }
  16161. /**
  16162. * Add a "join where" clause to the query.
  16163. *
  16164. * @param string $table
  16165. * @param \Closure|string $first
  16166. * @param string $operator
  16167. * @param string $second
  16168. * @param string $type
  16169. * @return \Illuminate\Database\Query\Builder|static
  16170. * @static
  16171. */
  16172. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  16173. {
  16174. /** @var \Illuminate\Database\Query\Builder $instance */
  16175. return $instance->joinWhere($table, $first, $operator, $second, $type);
  16176. }
  16177. /**
  16178. * Add a subquery join clause to the query.
  16179. *
  16180. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16181. * @param string $as
  16182. * @param \Closure|string $first
  16183. * @param string|null $operator
  16184. * @param string|null $second
  16185. * @param string $type
  16186. * @param bool $where
  16187. * @return \Illuminate\Database\Query\Builder|static
  16188. * @throws \InvalidArgumentException
  16189. * @static
  16190. */
  16191. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  16192. {
  16193. /** @var \Illuminate\Database\Query\Builder $instance */
  16194. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  16195. }
  16196. /**
  16197. * Add a left join to the query.
  16198. *
  16199. * @param string $table
  16200. * @param \Closure|string $first
  16201. * @param string|null $operator
  16202. * @param string|null $second
  16203. * @return \Illuminate\Database\Query\Builder|static
  16204. * @static
  16205. */
  16206. public static function leftJoin($table, $first, $operator = null, $second = null)
  16207. {
  16208. /** @var \Illuminate\Database\Query\Builder $instance */
  16209. return $instance->leftJoin($table, $first, $operator, $second);
  16210. }
  16211. /**
  16212. * Add a "join where" clause to the query.
  16213. *
  16214. * @param string $table
  16215. * @param \Closure|string $first
  16216. * @param string $operator
  16217. * @param string $second
  16218. * @return \Illuminate\Database\Query\Builder|static
  16219. * @static
  16220. */
  16221. public static function leftJoinWhere($table, $first, $operator, $second)
  16222. {
  16223. /** @var \Illuminate\Database\Query\Builder $instance */
  16224. return $instance->leftJoinWhere($table, $first, $operator, $second);
  16225. }
  16226. /**
  16227. * Add a subquery left join to the query.
  16228. *
  16229. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16230. * @param string $as
  16231. * @param \Closure|string $first
  16232. * @param string|null $operator
  16233. * @param string|null $second
  16234. * @return \Illuminate\Database\Query\Builder|static
  16235. * @static
  16236. */
  16237. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  16238. {
  16239. /** @var \Illuminate\Database\Query\Builder $instance */
  16240. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  16241. }
  16242. /**
  16243. * Add a right join to the query.
  16244. *
  16245. * @param string $table
  16246. * @param \Closure|string $first
  16247. * @param string|null $operator
  16248. * @param string|null $second
  16249. * @return \Illuminate\Database\Query\Builder|static
  16250. * @static
  16251. */
  16252. public static function rightJoin($table, $first, $operator = null, $second = null)
  16253. {
  16254. /** @var \Illuminate\Database\Query\Builder $instance */
  16255. return $instance->rightJoin($table, $first, $operator, $second);
  16256. }
  16257. /**
  16258. * Add a "right join where" clause to the query.
  16259. *
  16260. * @param string $table
  16261. * @param \Closure|string $first
  16262. * @param string $operator
  16263. * @param string $second
  16264. * @return \Illuminate\Database\Query\Builder|static
  16265. * @static
  16266. */
  16267. public static function rightJoinWhere($table, $first, $operator, $second)
  16268. {
  16269. /** @var \Illuminate\Database\Query\Builder $instance */
  16270. return $instance->rightJoinWhere($table, $first, $operator, $second);
  16271. }
  16272. /**
  16273. * Add a subquery right join to the query.
  16274. *
  16275. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16276. * @param string $as
  16277. * @param \Closure|string $first
  16278. * @param string|null $operator
  16279. * @param string|null $second
  16280. * @return \Illuminate\Database\Query\Builder|static
  16281. * @static
  16282. */
  16283. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  16284. {
  16285. /** @var \Illuminate\Database\Query\Builder $instance */
  16286. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  16287. }
  16288. /**
  16289. * Add a "cross join" clause to the query.
  16290. *
  16291. * @param string $table
  16292. * @param \Closure|string|null $first
  16293. * @param string|null $operator
  16294. * @param string|null $second
  16295. * @return \Illuminate\Database\Query\Builder|static
  16296. * @static
  16297. */
  16298. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  16299. {
  16300. /** @var \Illuminate\Database\Query\Builder $instance */
  16301. return $instance->crossJoin($table, $first, $operator, $second);
  16302. }
  16303. /**
  16304. * Merge an array of where clauses and bindings.
  16305. *
  16306. * @param array $wheres
  16307. * @param array $bindings
  16308. * @return void
  16309. * @static
  16310. */
  16311. public static function mergeWheres($wheres, $bindings)
  16312. {
  16313. /** @var \Illuminate\Database\Query\Builder $instance */
  16314. $instance->mergeWheres($wheres, $bindings);
  16315. }
  16316. /**
  16317. * Prepare the value and operator for a where clause.
  16318. *
  16319. * @param string $value
  16320. * @param string $operator
  16321. * @param bool $useDefault
  16322. * @return array
  16323. * @throws \InvalidArgumentException
  16324. * @static
  16325. */
  16326. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  16327. {
  16328. /** @var \Illuminate\Database\Query\Builder $instance */
  16329. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  16330. }
  16331. /**
  16332. * Add a "where" clause comparing two columns to the query.
  16333. *
  16334. * @param string|array $first
  16335. * @param string|null $operator
  16336. * @param string|null $second
  16337. * @param string|null $boolean
  16338. * @return \Illuminate\Database\Query\Builder|static
  16339. * @static
  16340. */
  16341. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  16342. {
  16343. /** @var \Illuminate\Database\Query\Builder $instance */
  16344. return $instance->whereColumn($first, $operator, $second, $boolean);
  16345. }
  16346. /**
  16347. * Add an "or where" clause comparing two columns to the query.
  16348. *
  16349. * @param string|array $first
  16350. * @param string|null $operator
  16351. * @param string|null $second
  16352. * @return \Illuminate\Database\Query\Builder|static
  16353. * @static
  16354. */
  16355. public static function orWhereColumn($first, $operator = null, $second = null)
  16356. {
  16357. /** @var \Illuminate\Database\Query\Builder $instance */
  16358. return $instance->orWhereColumn($first, $operator, $second);
  16359. }
  16360. /**
  16361. * Add a raw where clause to the query.
  16362. *
  16363. * @param string $sql
  16364. * @param mixed $bindings
  16365. * @param string $boolean
  16366. * @return \Illuminate\Database\Query\Builder
  16367. * @static
  16368. */
  16369. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  16370. {
  16371. /** @var \Illuminate\Database\Query\Builder $instance */
  16372. return $instance->whereRaw($sql, $bindings, $boolean);
  16373. }
  16374. /**
  16375. * Add a raw or where clause to the query.
  16376. *
  16377. * @param string $sql
  16378. * @param mixed $bindings
  16379. * @return \Illuminate\Database\Query\Builder|static
  16380. * @static
  16381. */
  16382. public static function orWhereRaw($sql, $bindings = [])
  16383. {
  16384. /** @var \Illuminate\Database\Query\Builder $instance */
  16385. return $instance->orWhereRaw($sql, $bindings);
  16386. }
  16387. /**
  16388. * Add a "where in" clause to the query.
  16389. *
  16390. * @param string $column
  16391. * @param mixed $values
  16392. * @param string $boolean
  16393. * @param bool $not
  16394. * @return \Illuminate\Database\Query\Builder
  16395. * @static
  16396. */
  16397. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  16398. {
  16399. /** @var \Illuminate\Database\Query\Builder $instance */
  16400. return $instance->whereIn($column, $values, $boolean, $not);
  16401. }
  16402. /**
  16403. * Add an "or where in" clause to the query.
  16404. *
  16405. * @param string $column
  16406. * @param mixed $values
  16407. * @return \Illuminate\Database\Query\Builder|static
  16408. * @static
  16409. */
  16410. public static function orWhereIn($column, $values)
  16411. {
  16412. /** @var \Illuminate\Database\Query\Builder $instance */
  16413. return $instance->orWhereIn($column, $values);
  16414. }
  16415. /**
  16416. * Add a "where not in" clause to the query.
  16417. *
  16418. * @param string $column
  16419. * @param mixed $values
  16420. * @param string $boolean
  16421. * @return \Illuminate\Database\Query\Builder|static
  16422. * @static
  16423. */
  16424. public static function whereNotIn($column, $values, $boolean = 'and')
  16425. {
  16426. /** @var \Illuminate\Database\Query\Builder $instance */
  16427. return $instance->whereNotIn($column, $values, $boolean);
  16428. }
  16429. /**
  16430. * Add an "or where not in" clause to the query.
  16431. *
  16432. * @param string $column
  16433. * @param mixed $values
  16434. * @return \Illuminate\Database\Query\Builder|static
  16435. * @static
  16436. */
  16437. public static function orWhereNotIn($column, $values)
  16438. {
  16439. /** @var \Illuminate\Database\Query\Builder $instance */
  16440. return $instance->orWhereNotIn($column, $values);
  16441. }
  16442. /**
  16443. * Add a "where in raw" clause for integer values to the query.
  16444. *
  16445. * @param string $column
  16446. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16447. * @param string $boolean
  16448. * @param bool $not
  16449. * @return \Illuminate\Database\Query\Builder
  16450. * @static
  16451. */
  16452. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  16453. {
  16454. /** @var \Illuminate\Database\Query\Builder $instance */
  16455. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  16456. }
  16457. /**
  16458. * Add a "where not in raw" clause for integer values to the query.
  16459. *
  16460. * @param string $column
  16461. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16462. * @param string $boolean
  16463. * @return \Illuminate\Database\Query\Builder
  16464. * @static
  16465. */
  16466. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  16467. {
  16468. /** @var \Illuminate\Database\Query\Builder $instance */
  16469. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  16470. }
  16471. /**
  16472. * Add a "where null" clause to the query.
  16473. *
  16474. * @param string|array $columns
  16475. * @param string $boolean
  16476. * @param bool $not
  16477. * @return \Illuminate\Database\Query\Builder
  16478. * @static
  16479. */
  16480. public static function whereNull($columns, $boolean = 'and', $not = false)
  16481. {
  16482. /** @var \Illuminate\Database\Query\Builder $instance */
  16483. return $instance->whereNull($columns, $boolean, $not);
  16484. }
  16485. /**
  16486. * Add an "or where null" clause to the query.
  16487. *
  16488. * @param string $column
  16489. * @return \Illuminate\Database\Query\Builder|static
  16490. * @static
  16491. */
  16492. public static function orWhereNull($column)
  16493. {
  16494. /** @var \Illuminate\Database\Query\Builder $instance */
  16495. return $instance->orWhereNull($column);
  16496. }
  16497. /**
  16498. * Add a "where not null" clause to the query.
  16499. *
  16500. * @param string $column
  16501. * @param string $boolean
  16502. * @return \Illuminate\Database\Query\Builder|static
  16503. * @static
  16504. */
  16505. public static function whereNotNull($column, $boolean = 'and')
  16506. {
  16507. /** @var \Illuminate\Database\Query\Builder $instance */
  16508. return $instance->whereNotNull($column, $boolean);
  16509. }
  16510. /**
  16511. * Add a where between statement to the query.
  16512. *
  16513. * @param string $column
  16514. * @param array $values
  16515. * @param string $boolean
  16516. * @param bool $not
  16517. * @return \Illuminate\Database\Query\Builder
  16518. * @static
  16519. */
  16520. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  16521. {
  16522. /** @var \Illuminate\Database\Query\Builder $instance */
  16523. return $instance->whereBetween($column, $values, $boolean, $not);
  16524. }
  16525. /**
  16526. * Add an or where between statement to the query.
  16527. *
  16528. * @param string $column
  16529. * @param array $values
  16530. * @return \Illuminate\Database\Query\Builder|static
  16531. * @static
  16532. */
  16533. public static function orWhereBetween($column, $values)
  16534. {
  16535. /** @var \Illuminate\Database\Query\Builder $instance */
  16536. return $instance->orWhereBetween($column, $values);
  16537. }
  16538. /**
  16539. * Add a where not between statement to the query.
  16540. *
  16541. * @param string $column
  16542. * @param array $values
  16543. * @param string $boolean
  16544. * @return \Illuminate\Database\Query\Builder|static
  16545. * @static
  16546. */
  16547. public static function whereNotBetween($column, $values, $boolean = 'and')
  16548. {
  16549. /** @var \Illuminate\Database\Query\Builder $instance */
  16550. return $instance->whereNotBetween($column, $values, $boolean);
  16551. }
  16552. /**
  16553. * Add an or where not between statement to the query.
  16554. *
  16555. * @param string $column
  16556. * @param array $values
  16557. * @return \Illuminate\Database\Query\Builder|static
  16558. * @static
  16559. */
  16560. public static function orWhereNotBetween($column, $values)
  16561. {
  16562. /** @var \Illuminate\Database\Query\Builder $instance */
  16563. return $instance->orWhereNotBetween($column, $values);
  16564. }
  16565. /**
  16566. * Add an "or where not null" clause to the query.
  16567. *
  16568. * @param string $column
  16569. * @return \Illuminate\Database\Query\Builder|static
  16570. * @static
  16571. */
  16572. public static function orWhereNotNull($column)
  16573. {
  16574. /** @var \Illuminate\Database\Query\Builder $instance */
  16575. return $instance->orWhereNotNull($column);
  16576. }
  16577. /**
  16578. * Add a "where date" statement to the query.
  16579. *
  16580. * @param string $column
  16581. * @param string $operator
  16582. * @param \DateTimeInterface|string|null $value
  16583. * @param string $boolean
  16584. * @return \Illuminate\Database\Query\Builder|static
  16585. * @static
  16586. */
  16587. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  16588. {
  16589. /** @var \Illuminate\Database\Query\Builder $instance */
  16590. return $instance->whereDate($column, $operator, $value, $boolean);
  16591. }
  16592. /**
  16593. * Add an "or where date" statement to the query.
  16594. *
  16595. * @param string $column
  16596. * @param string $operator
  16597. * @param \DateTimeInterface|string|null $value
  16598. * @return \Illuminate\Database\Query\Builder|static
  16599. * @static
  16600. */
  16601. public static function orWhereDate($column, $operator, $value = null)
  16602. {
  16603. /** @var \Illuminate\Database\Query\Builder $instance */
  16604. return $instance->orWhereDate($column, $operator, $value);
  16605. }
  16606. /**
  16607. * Add a "where time" statement to the query.
  16608. *
  16609. * @param string $column
  16610. * @param string $operator
  16611. * @param \DateTimeInterface|string|null $value
  16612. * @param string $boolean
  16613. * @return \Illuminate\Database\Query\Builder|static
  16614. * @static
  16615. */
  16616. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  16617. {
  16618. /** @var \Illuminate\Database\Query\Builder $instance */
  16619. return $instance->whereTime($column, $operator, $value, $boolean);
  16620. }
  16621. /**
  16622. * Add an "or where time" statement to the query.
  16623. *
  16624. * @param string $column
  16625. * @param string $operator
  16626. * @param \DateTimeInterface|string|null $value
  16627. * @return \Illuminate\Database\Query\Builder|static
  16628. * @static
  16629. */
  16630. public static function orWhereTime($column, $operator, $value = null)
  16631. {
  16632. /** @var \Illuminate\Database\Query\Builder $instance */
  16633. return $instance->orWhereTime($column, $operator, $value);
  16634. }
  16635. /**
  16636. * Add a "where day" statement to the query.
  16637. *
  16638. * @param string $column
  16639. * @param string $operator
  16640. * @param \DateTimeInterface|string|null $value
  16641. * @param string $boolean
  16642. * @return \Illuminate\Database\Query\Builder|static
  16643. * @static
  16644. */
  16645. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  16646. {
  16647. /** @var \Illuminate\Database\Query\Builder $instance */
  16648. return $instance->whereDay($column, $operator, $value, $boolean);
  16649. }
  16650. /**
  16651. * Add an "or where day" statement to the query.
  16652. *
  16653. * @param string $column
  16654. * @param string $operator
  16655. * @param \DateTimeInterface|string|null $value
  16656. * @return \Illuminate\Database\Query\Builder|static
  16657. * @static
  16658. */
  16659. public static function orWhereDay($column, $operator, $value = null)
  16660. {
  16661. /** @var \Illuminate\Database\Query\Builder $instance */
  16662. return $instance->orWhereDay($column, $operator, $value);
  16663. }
  16664. /**
  16665. * Add a "where month" statement to the query.
  16666. *
  16667. * @param string $column
  16668. * @param string $operator
  16669. * @param \DateTimeInterface|string|null $value
  16670. * @param string $boolean
  16671. * @return \Illuminate\Database\Query\Builder|static
  16672. * @static
  16673. */
  16674. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  16675. {
  16676. /** @var \Illuminate\Database\Query\Builder $instance */
  16677. return $instance->whereMonth($column, $operator, $value, $boolean);
  16678. }
  16679. /**
  16680. * Add an "or where month" statement to the query.
  16681. *
  16682. * @param string $column
  16683. * @param string $operator
  16684. * @param \DateTimeInterface|string|null $value
  16685. * @return \Illuminate\Database\Query\Builder|static
  16686. * @static
  16687. */
  16688. public static function orWhereMonth($column, $operator, $value = null)
  16689. {
  16690. /** @var \Illuminate\Database\Query\Builder $instance */
  16691. return $instance->orWhereMonth($column, $operator, $value);
  16692. }
  16693. /**
  16694. * Add a "where year" statement to the query.
  16695. *
  16696. * @param string $column
  16697. * @param string $operator
  16698. * @param \DateTimeInterface|string|int|null $value
  16699. * @param string $boolean
  16700. * @return \Illuminate\Database\Query\Builder|static
  16701. * @static
  16702. */
  16703. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  16704. {
  16705. /** @var \Illuminate\Database\Query\Builder $instance */
  16706. return $instance->whereYear($column, $operator, $value, $boolean);
  16707. }
  16708. /**
  16709. * Add an "or where year" statement to the query.
  16710. *
  16711. * @param string $column
  16712. * @param string $operator
  16713. * @param \DateTimeInterface|string|int|null $value
  16714. * @return \Illuminate\Database\Query\Builder|static
  16715. * @static
  16716. */
  16717. public static function orWhereYear($column, $operator, $value = null)
  16718. {
  16719. /** @var \Illuminate\Database\Query\Builder $instance */
  16720. return $instance->orWhereYear($column, $operator, $value);
  16721. }
  16722. /**
  16723. * Add a nested where statement to the query.
  16724. *
  16725. * @param \Closure $callback
  16726. * @param string $boolean
  16727. * @return \Illuminate\Database\Query\Builder|static
  16728. * @static
  16729. */
  16730. public static function whereNested($callback, $boolean = 'and')
  16731. {
  16732. /** @var \Illuminate\Database\Query\Builder $instance */
  16733. return $instance->whereNested($callback, $boolean);
  16734. }
  16735. /**
  16736. * Create a new query instance for nested where condition.
  16737. *
  16738. * @return \Illuminate\Database\Query\Builder
  16739. * @static
  16740. */
  16741. public static function forNestedWhere()
  16742. {
  16743. /** @var \Illuminate\Database\Query\Builder $instance */
  16744. return $instance->forNestedWhere();
  16745. }
  16746. /**
  16747. * Add another query builder as a nested where to the query builder.
  16748. *
  16749. * @param \Illuminate\Database\Query\Builder|static $query
  16750. * @param string $boolean
  16751. * @return \Illuminate\Database\Query\Builder
  16752. * @static
  16753. */
  16754. public static function addNestedWhereQuery($query, $boolean = 'and')
  16755. {
  16756. /** @var \Illuminate\Database\Query\Builder $instance */
  16757. return $instance->addNestedWhereQuery($query, $boolean);
  16758. }
  16759. /**
  16760. * Add an exists clause to the query.
  16761. *
  16762. * @param \Closure $callback
  16763. * @param string $boolean
  16764. * @param bool $not
  16765. * @return \Illuminate\Database\Query\Builder
  16766. * @static
  16767. */
  16768. public static function whereExists($callback, $boolean = 'and', $not = false)
  16769. {
  16770. /** @var \Illuminate\Database\Query\Builder $instance */
  16771. return $instance->whereExists($callback, $boolean, $not);
  16772. }
  16773. /**
  16774. * Add an or exists clause to the query.
  16775. *
  16776. * @param \Closure $callback
  16777. * @param bool $not
  16778. * @return \Illuminate\Database\Query\Builder|static
  16779. * @static
  16780. */
  16781. public static function orWhereExists($callback, $not = false)
  16782. {
  16783. /** @var \Illuminate\Database\Query\Builder $instance */
  16784. return $instance->orWhereExists($callback, $not);
  16785. }
  16786. /**
  16787. * Add a where not exists clause to the query.
  16788. *
  16789. * @param \Closure $callback
  16790. * @param string $boolean
  16791. * @return \Illuminate\Database\Query\Builder|static
  16792. * @static
  16793. */
  16794. public static function whereNotExists($callback, $boolean = 'and')
  16795. {
  16796. /** @var \Illuminate\Database\Query\Builder $instance */
  16797. return $instance->whereNotExists($callback, $boolean);
  16798. }
  16799. /**
  16800. * Add a where not exists clause to the query.
  16801. *
  16802. * @param \Closure $callback
  16803. * @return \Illuminate\Database\Query\Builder|static
  16804. * @static
  16805. */
  16806. public static function orWhereNotExists($callback)
  16807. {
  16808. /** @var \Illuminate\Database\Query\Builder $instance */
  16809. return $instance->orWhereNotExists($callback);
  16810. }
  16811. /**
  16812. * Add an exists clause to the query.
  16813. *
  16814. * @param \Illuminate\Database\Query\Builder $query
  16815. * @param string $boolean
  16816. * @param bool $not
  16817. * @return \Illuminate\Database\Query\Builder
  16818. * @static
  16819. */
  16820. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16821. {
  16822. /** @var \Illuminate\Database\Query\Builder $instance */
  16823. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16824. }
  16825. /**
  16826. * Adds a where condition using row values.
  16827. *
  16828. * @param array $columns
  16829. * @param string $operator
  16830. * @param array $values
  16831. * @param string $boolean
  16832. * @return \Illuminate\Database\Query\Builder
  16833. * @static
  16834. */
  16835. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16836. {
  16837. /** @var \Illuminate\Database\Query\Builder $instance */
  16838. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16839. }
  16840. /**
  16841. * Adds a or where condition using row values.
  16842. *
  16843. * @param array $columns
  16844. * @param string $operator
  16845. * @param array $values
  16846. * @return \Illuminate\Database\Query\Builder
  16847. * @static
  16848. */
  16849. public static function orWhereRowValues($columns, $operator, $values)
  16850. {
  16851. /** @var \Illuminate\Database\Query\Builder $instance */
  16852. return $instance->orWhereRowValues($columns, $operator, $values);
  16853. }
  16854. /**
  16855. * Add a "where JSON contains" clause to the query.
  16856. *
  16857. * @param string $column
  16858. * @param mixed $value
  16859. * @param string $boolean
  16860. * @param bool $not
  16861. * @return \Illuminate\Database\Query\Builder
  16862. * @static
  16863. */
  16864. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16865. {
  16866. /** @var \Illuminate\Database\Query\Builder $instance */
  16867. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16868. }
  16869. /**
  16870. * Add a "or where JSON contains" clause to the query.
  16871. *
  16872. * @param string $column
  16873. * @param mixed $value
  16874. * @return \Illuminate\Database\Query\Builder
  16875. * @static
  16876. */
  16877. public static function orWhereJsonContains($column, $value)
  16878. {
  16879. /** @var \Illuminate\Database\Query\Builder $instance */
  16880. return $instance->orWhereJsonContains($column, $value);
  16881. }
  16882. /**
  16883. * Add a "where JSON not contains" clause to the query.
  16884. *
  16885. * @param string $column
  16886. * @param mixed $value
  16887. * @param string $boolean
  16888. * @return \Illuminate\Database\Query\Builder
  16889. * @static
  16890. */
  16891. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  16892. {
  16893. /** @var \Illuminate\Database\Query\Builder $instance */
  16894. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  16895. }
  16896. /**
  16897. * Add a "or where JSON not contains" clause to the query.
  16898. *
  16899. * @param string $column
  16900. * @param mixed $value
  16901. * @return \Illuminate\Database\Query\Builder
  16902. * @static
  16903. */
  16904. public static function orWhereJsonDoesntContain($column, $value)
  16905. {
  16906. /** @var \Illuminate\Database\Query\Builder $instance */
  16907. return $instance->orWhereJsonDoesntContain($column, $value);
  16908. }
  16909. /**
  16910. * Add a "where JSON length" clause to the query.
  16911. *
  16912. * @param string $column
  16913. * @param mixed $operator
  16914. * @param mixed $value
  16915. * @param string $boolean
  16916. * @return \Illuminate\Database\Query\Builder
  16917. * @static
  16918. */
  16919. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  16920. {
  16921. /** @var \Illuminate\Database\Query\Builder $instance */
  16922. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  16923. }
  16924. /**
  16925. * Add a "or where JSON length" clause to the query.
  16926. *
  16927. * @param string $column
  16928. * @param mixed $operator
  16929. * @param mixed $value
  16930. * @return \Illuminate\Database\Query\Builder
  16931. * @static
  16932. */
  16933. public static function orWhereJsonLength($column, $operator, $value = null)
  16934. {
  16935. /** @var \Illuminate\Database\Query\Builder $instance */
  16936. return $instance->orWhereJsonLength($column, $operator, $value);
  16937. }
  16938. /**
  16939. * Handles dynamic "where" clauses to the query.
  16940. *
  16941. * @param string $method
  16942. * @param array $parameters
  16943. * @return \Illuminate\Database\Query\Builder
  16944. * @static
  16945. */
  16946. public static function dynamicWhere($method, $parameters)
  16947. {
  16948. /** @var \Illuminate\Database\Query\Builder $instance */
  16949. return $instance->dynamicWhere($method, $parameters);
  16950. }
  16951. /**
  16952. * Add a "group by" clause to the query.
  16953. *
  16954. * @param array $groups
  16955. * @return \Illuminate\Database\Query\Builder
  16956. * @static
  16957. */
  16958. public static function groupBy(...$groups)
  16959. {
  16960. /** @var \Illuminate\Database\Query\Builder $instance */
  16961. return $instance->groupBy(...$groups);
  16962. }
  16963. /**
  16964. * Add a "having" clause to the query.
  16965. *
  16966. * @param string $column
  16967. * @param string|null $operator
  16968. * @param string|null $value
  16969. * @param string $boolean
  16970. * @return \Illuminate\Database\Query\Builder
  16971. * @static
  16972. */
  16973. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  16974. {
  16975. /** @var \Illuminate\Database\Query\Builder $instance */
  16976. return $instance->having($column, $operator, $value, $boolean);
  16977. }
  16978. /**
  16979. * Add a "or having" clause to the query.
  16980. *
  16981. * @param string $column
  16982. * @param string|null $operator
  16983. * @param string|null $value
  16984. * @return \Illuminate\Database\Query\Builder|static
  16985. * @static
  16986. */
  16987. public static function orHaving($column, $operator = null, $value = null)
  16988. {
  16989. /** @var \Illuminate\Database\Query\Builder $instance */
  16990. return $instance->orHaving($column, $operator, $value);
  16991. }
  16992. /**
  16993. * Add a "having between " clause to the query.
  16994. *
  16995. * @param string $column
  16996. * @param array $values
  16997. * @param string $boolean
  16998. * @param bool $not
  16999. * @return \Illuminate\Database\Query\Builder|static
  17000. * @static
  17001. */
  17002. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  17003. {
  17004. /** @var \Illuminate\Database\Query\Builder $instance */
  17005. return $instance->havingBetween($column, $values, $boolean, $not);
  17006. }
  17007. /**
  17008. * Add a raw having clause to the query.
  17009. *
  17010. * @param string $sql
  17011. * @param array $bindings
  17012. * @param string $boolean
  17013. * @return \Illuminate\Database\Query\Builder
  17014. * @static
  17015. */
  17016. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  17017. {
  17018. /** @var \Illuminate\Database\Query\Builder $instance */
  17019. return $instance->havingRaw($sql, $bindings, $boolean);
  17020. }
  17021. /**
  17022. * Add a raw or having clause to the query.
  17023. *
  17024. * @param string $sql
  17025. * @param array $bindings
  17026. * @return \Illuminate\Database\Query\Builder|static
  17027. * @static
  17028. */
  17029. public static function orHavingRaw($sql, $bindings = [])
  17030. {
  17031. /** @var \Illuminate\Database\Query\Builder $instance */
  17032. return $instance->orHavingRaw($sql, $bindings);
  17033. }
  17034. /**
  17035. * Add an "order by" clause to the query.
  17036. *
  17037. * @param string $column
  17038. * @param string $direction
  17039. * @return \Illuminate\Database\Query\Builder
  17040. * @throws \InvalidArgumentException
  17041. * @static
  17042. */
  17043. public static function orderBy($column, $direction = 'asc')
  17044. {
  17045. /** @var \Illuminate\Database\Query\Builder $instance */
  17046. return $instance->orderBy($column, $direction);
  17047. }
  17048. /**
  17049. * Add a descending "order by" clause to the query.
  17050. *
  17051. * @param string $column
  17052. * @return \Illuminate\Database\Query\Builder
  17053. * @static
  17054. */
  17055. public static function orderByDesc($column)
  17056. {
  17057. /** @var \Illuminate\Database\Query\Builder $instance */
  17058. return $instance->orderByDesc($column);
  17059. }
  17060. /**
  17061. * Put the query's results in random order.
  17062. *
  17063. * @param string $seed
  17064. * @return \Illuminate\Database\Query\Builder
  17065. * @static
  17066. */
  17067. public static function inRandomOrder($seed = '')
  17068. {
  17069. /** @var \Illuminate\Database\Query\Builder $instance */
  17070. return $instance->inRandomOrder($seed);
  17071. }
  17072. /**
  17073. * Add a raw "order by" clause to the query.
  17074. *
  17075. * @param string $sql
  17076. * @param array $bindings
  17077. * @return \Illuminate\Database\Query\Builder
  17078. * @static
  17079. */
  17080. public static function orderByRaw($sql, $bindings = [])
  17081. {
  17082. /** @var \Illuminate\Database\Query\Builder $instance */
  17083. return $instance->orderByRaw($sql, $bindings);
  17084. }
  17085. /**
  17086. * Alias to set the "offset" value of the query.
  17087. *
  17088. * @param int $value
  17089. * @return \Illuminate\Database\Query\Builder|static
  17090. * @static
  17091. */
  17092. public static function skip($value)
  17093. {
  17094. /** @var \Illuminate\Database\Query\Builder $instance */
  17095. return $instance->skip($value);
  17096. }
  17097. /**
  17098. * Set the "offset" value of the query.
  17099. *
  17100. * @param int $value
  17101. * @return \Illuminate\Database\Query\Builder
  17102. * @static
  17103. */
  17104. public static function offset($value)
  17105. {
  17106. /** @var \Illuminate\Database\Query\Builder $instance */
  17107. return $instance->offset($value);
  17108. }
  17109. /**
  17110. * Alias to set the "limit" value of the query.
  17111. *
  17112. * @param int $value
  17113. * @return \Illuminate\Database\Query\Builder|static
  17114. * @static
  17115. */
  17116. public static function take($value)
  17117. {
  17118. /** @var \Illuminate\Database\Query\Builder $instance */
  17119. return $instance->take($value);
  17120. }
  17121. /**
  17122. * Set the "limit" value of the query.
  17123. *
  17124. * @param int $value
  17125. * @return \Illuminate\Database\Query\Builder
  17126. * @static
  17127. */
  17128. public static function limit($value)
  17129. {
  17130. /** @var \Illuminate\Database\Query\Builder $instance */
  17131. return $instance->limit($value);
  17132. }
  17133. /**
  17134. * Set the limit and offset for a given page.
  17135. *
  17136. * @param int $page
  17137. * @param int $perPage
  17138. * @return \Illuminate\Database\Query\Builder|static
  17139. * @static
  17140. */
  17141. public static function forPage($page, $perPage = 15)
  17142. {
  17143. /** @var \Illuminate\Database\Query\Builder $instance */
  17144. return $instance->forPage($page, $perPage);
  17145. }
  17146. /**
  17147. * Constrain the query to the previous "page" of results before a given ID.
  17148. *
  17149. * @param int $perPage
  17150. * @param int|null $lastId
  17151. * @param string $column
  17152. * @return \Illuminate\Database\Query\Builder|static
  17153. * @static
  17154. */
  17155. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  17156. {
  17157. /** @var \Illuminate\Database\Query\Builder $instance */
  17158. return $instance->forPageBeforeId($perPage, $lastId, $column);
  17159. }
  17160. /**
  17161. * Constrain the query to the next "page" of results after a given ID.
  17162. *
  17163. * @param int $perPage
  17164. * @param int|null $lastId
  17165. * @param string $column
  17166. * @return \Illuminate\Database\Query\Builder|static
  17167. * @static
  17168. */
  17169. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  17170. {
  17171. /** @var \Illuminate\Database\Query\Builder $instance */
  17172. return $instance->forPageAfterId($perPage, $lastId, $column);
  17173. }
  17174. /**
  17175. * Add a union statement to the query.
  17176. *
  17177. * @param \Illuminate\Database\Query\Builder|\Closure $query
  17178. * @param bool $all
  17179. * @return \Illuminate\Database\Query\Builder|static
  17180. * @static
  17181. */
  17182. public static function union($query, $all = false)
  17183. {
  17184. /** @var \Illuminate\Database\Query\Builder $instance */
  17185. return $instance->union($query, $all);
  17186. }
  17187. /**
  17188. * Add a union all statement to the query.
  17189. *
  17190. * @param \Illuminate\Database\Query\Builder|\Closure $query
  17191. * @return \Illuminate\Database\Query\Builder|static
  17192. * @static
  17193. */
  17194. public static function unionAll($query)
  17195. {
  17196. /** @var \Illuminate\Database\Query\Builder $instance */
  17197. return $instance->unionAll($query);
  17198. }
  17199. /**
  17200. * Lock the selected rows in the table.
  17201. *
  17202. * @param string|bool $value
  17203. * @return \Illuminate\Database\Query\Builder
  17204. * @static
  17205. */
  17206. public static function lock($value = true)
  17207. {
  17208. /** @var \Illuminate\Database\Query\Builder $instance */
  17209. return $instance->lock($value);
  17210. }
  17211. /**
  17212. * Lock the selected rows in the table for updating.
  17213. *
  17214. * @return \Illuminate\Database\Query\Builder
  17215. * @static
  17216. */
  17217. public static function lockForUpdate()
  17218. {
  17219. /** @var \Illuminate\Database\Query\Builder $instance */
  17220. return $instance->lockForUpdate();
  17221. }
  17222. /**
  17223. * Share lock the selected rows in the table.
  17224. *
  17225. * @return \Illuminate\Database\Query\Builder
  17226. * @static
  17227. */
  17228. public static function sharedLock()
  17229. {
  17230. /** @var \Illuminate\Database\Query\Builder $instance */
  17231. return $instance->sharedLock();
  17232. }
  17233. /**
  17234. * Get the SQL representation of the query.
  17235. *
  17236. * @return string
  17237. * @static
  17238. */
  17239. public static function toSql()
  17240. {
  17241. /** @var \Illuminate\Database\Query\Builder $instance */
  17242. return $instance->toSql();
  17243. }
  17244. /**
  17245. * Get the count of the total records for the paginator.
  17246. *
  17247. * @param array $columns
  17248. * @return int
  17249. * @static
  17250. */
  17251. public static function getCountForPagination($columns = [])
  17252. {
  17253. /** @var \Illuminate\Database\Query\Builder $instance */
  17254. return $instance->getCountForPagination($columns);
  17255. }
  17256. /**
  17257. * Concatenate values of a given column as a string.
  17258. *
  17259. * @param string $column
  17260. * @param string $glue
  17261. * @return string
  17262. * @static
  17263. */
  17264. public static function implode($column, $glue = '')
  17265. {
  17266. /** @var \Illuminate\Database\Query\Builder $instance */
  17267. return $instance->implode($column, $glue);
  17268. }
  17269. /**
  17270. * Determine if any rows exist for the current query.
  17271. *
  17272. * @return bool
  17273. * @static
  17274. */
  17275. public static function exists()
  17276. {
  17277. /** @var \Illuminate\Database\Query\Builder $instance */
  17278. return $instance->exists();
  17279. }
  17280. /**
  17281. * Determine if no rows exist for the current query.
  17282. *
  17283. * @return bool
  17284. * @static
  17285. */
  17286. public static function doesntExist()
  17287. {
  17288. /** @var \Illuminate\Database\Query\Builder $instance */
  17289. return $instance->doesntExist();
  17290. }
  17291. /**
  17292. * Retrieve the "count" result of the query.
  17293. *
  17294. * @param string $columns
  17295. * @return int
  17296. * @static
  17297. */
  17298. public static function count($columns = '*')
  17299. {
  17300. /** @var \Illuminate\Database\Query\Builder $instance */
  17301. return $instance->count($columns);
  17302. }
  17303. /**
  17304. * Retrieve the minimum value of a given column.
  17305. *
  17306. * @param string $column
  17307. * @return mixed
  17308. * @static
  17309. */
  17310. public static function min($column)
  17311. {
  17312. /** @var \Illuminate\Database\Query\Builder $instance */
  17313. return $instance->min($column);
  17314. }
  17315. /**
  17316. * Retrieve the maximum value of a given column.
  17317. *
  17318. * @param string $column
  17319. * @return mixed
  17320. * @static
  17321. */
  17322. public static function max($column)
  17323. {
  17324. /** @var \Illuminate\Database\Query\Builder $instance */
  17325. return $instance->max($column);
  17326. }
  17327. /**
  17328. * Retrieve the sum of the values of a given column.
  17329. *
  17330. * @param string $column
  17331. * @return mixed
  17332. * @static
  17333. */
  17334. public static function sum($column)
  17335. {
  17336. /** @var \Illuminate\Database\Query\Builder $instance */
  17337. return $instance->sum($column);
  17338. }
  17339. /**
  17340. * Retrieve the average of the values of a given column.
  17341. *
  17342. * @param string $column
  17343. * @return mixed
  17344. * @static
  17345. */
  17346. public static function avg($column)
  17347. {
  17348. /** @var \Illuminate\Database\Query\Builder $instance */
  17349. return $instance->avg($column);
  17350. }
  17351. /**
  17352. * Alias for the "avg" method.
  17353. *
  17354. * @param string $column
  17355. * @return mixed
  17356. * @static
  17357. */
  17358. public static function average($column)
  17359. {
  17360. /** @var \Illuminate\Database\Query\Builder $instance */
  17361. return $instance->average($column);
  17362. }
  17363. /**
  17364. * Execute an aggregate function on the database.
  17365. *
  17366. * @param string $function
  17367. * @param array $columns
  17368. * @return mixed
  17369. * @static
  17370. */
  17371. public static function aggregate($function, $columns = [])
  17372. {
  17373. /** @var \Illuminate\Database\Query\Builder $instance */
  17374. return $instance->aggregate($function, $columns);
  17375. }
  17376. /**
  17377. * Execute a numeric aggregate function on the database.
  17378. *
  17379. * @param string $function
  17380. * @param array $columns
  17381. * @return float|int
  17382. * @static
  17383. */
  17384. public static function numericAggregate($function, $columns = [])
  17385. {
  17386. /** @var \Illuminate\Database\Query\Builder $instance */
  17387. return $instance->numericAggregate($function, $columns);
  17388. }
  17389. /**
  17390. * Insert a new record into the database.
  17391. *
  17392. * @param array $values
  17393. * @return bool
  17394. * @static
  17395. */
  17396. public static function insert($values)
  17397. {
  17398. /** @var \Illuminate\Database\Query\Builder $instance */
  17399. return $instance->insert($values);
  17400. }
  17401. /**
  17402. * Insert a new record into the database while ignoring errors.
  17403. *
  17404. * @param array $values
  17405. * @return int
  17406. * @static
  17407. */
  17408. public static function insertOrIgnore($values)
  17409. {
  17410. /** @var \Illuminate\Database\Query\Builder $instance */
  17411. return $instance->insertOrIgnore($values);
  17412. }
  17413. /**
  17414. * Insert a new record and get the value of the primary key.
  17415. *
  17416. * @param array $values
  17417. * @param string|null $sequence
  17418. * @return int
  17419. * @static
  17420. */
  17421. public static function insertGetId($values, $sequence = null)
  17422. {
  17423. /** @var \Illuminate\Database\Query\Builder $instance */
  17424. return $instance->insertGetId($values, $sequence);
  17425. }
  17426. /**
  17427. * Insert new records into the table using a subquery.
  17428. *
  17429. * @param array $columns
  17430. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17431. * @return bool
  17432. * @static
  17433. */
  17434. public static function insertUsing($columns, $query)
  17435. {
  17436. /** @var \Illuminate\Database\Query\Builder $instance */
  17437. return $instance->insertUsing($columns, $query);
  17438. }
  17439. /**
  17440. * Insert or update a record matching the attributes, and fill it with values.
  17441. *
  17442. * @param array $attributes
  17443. * @param array $values
  17444. * @return bool
  17445. * @static
  17446. */
  17447. public static function updateOrInsert($attributes, $values = [])
  17448. {
  17449. /** @var \Illuminate\Database\Query\Builder $instance */
  17450. return $instance->updateOrInsert($attributes, $values);
  17451. }
  17452. /**
  17453. * Run a truncate statement on the table.
  17454. *
  17455. * @return void
  17456. * @static
  17457. */
  17458. public static function truncate()
  17459. {
  17460. /** @var \Illuminate\Database\Query\Builder $instance */
  17461. $instance->truncate();
  17462. }
  17463. /**
  17464. * Create a raw database expression.
  17465. *
  17466. * @param mixed $value
  17467. * @return \Illuminate\Database\Query\Expression
  17468. * @static
  17469. */
  17470. public static function raw($value)
  17471. {
  17472. /** @var \Illuminate\Database\Query\Builder $instance */
  17473. return $instance->raw($value);
  17474. }
  17475. /**
  17476. * Get the current query value bindings in a flattened array.
  17477. *
  17478. * @return array
  17479. * @static
  17480. */
  17481. public static function getBindings()
  17482. {
  17483. /** @var \Illuminate\Database\Query\Builder $instance */
  17484. return $instance->getBindings();
  17485. }
  17486. /**
  17487. * Get the raw array of bindings.
  17488. *
  17489. * @return array
  17490. * @static
  17491. */
  17492. public static function getRawBindings()
  17493. {
  17494. /** @var \Illuminate\Database\Query\Builder $instance */
  17495. return $instance->getRawBindings();
  17496. }
  17497. /**
  17498. * Set the bindings on the query builder.
  17499. *
  17500. * @param array $bindings
  17501. * @param string $type
  17502. * @return \Illuminate\Database\Query\Builder
  17503. * @throws \InvalidArgumentException
  17504. * @static
  17505. */
  17506. public static function setBindings($bindings, $type = 'where')
  17507. {
  17508. /** @var \Illuminate\Database\Query\Builder $instance */
  17509. return $instance->setBindings($bindings, $type);
  17510. }
  17511. /**
  17512. * Add a binding to the query.
  17513. *
  17514. * @param mixed $value
  17515. * @param string $type
  17516. * @return \Illuminate\Database\Query\Builder
  17517. * @throws \InvalidArgumentException
  17518. * @static
  17519. */
  17520. public static function addBinding($value, $type = 'where')
  17521. {
  17522. /** @var \Illuminate\Database\Query\Builder $instance */
  17523. return $instance->addBinding($value, $type);
  17524. }
  17525. /**
  17526. * Merge an array of bindings into our bindings.
  17527. *
  17528. * @param \Illuminate\Database\Query\Builder $query
  17529. * @return \Illuminate\Database\Query\Builder
  17530. * @static
  17531. */
  17532. public static function mergeBindings($query)
  17533. {
  17534. /** @var \Illuminate\Database\Query\Builder $instance */
  17535. return $instance->mergeBindings($query);
  17536. }
  17537. /**
  17538. * Get the database query processor instance.
  17539. *
  17540. * @return \Illuminate\Database\Query\Processors\Processor
  17541. * @static
  17542. */
  17543. public static function getProcessor()
  17544. {
  17545. /** @var \Illuminate\Database\Query\Builder $instance */
  17546. return $instance->getProcessor();
  17547. }
  17548. /**
  17549. * Get the query grammar instance.
  17550. *
  17551. * @return \Illuminate\Database\Query\Grammars\Grammar
  17552. * @static
  17553. */
  17554. public static function getGrammar()
  17555. {
  17556. /** @var \Illuminate\Database\Query\Builder $instance */
  17557. return $instance->getGrammar();
  17558. }
  17559. /**
  17560. * Use the write pdo for query.
  17561. *
  17562. * @return \Illuminate\Database\Query\Builder
  17563. * @static
  17564. */
  17565. public static function useWritePdo()
  17566. {
  17567. /** @var \Illuminate\Database\Query\Builder $instance */
  17568. return $instance->useWritePdo();
  17569. }
  17570. /**
  17571. * Clone the query without the given properties.
  17572. *
  17573. * @param array $properties
  17574. * @return static
  17575. * @static
  17576. */
  17577. public static function cloneWithout($properties)
  17578. {
  17579. /** @var \Illuminate\Database\Query\Builder $instance */
  17580. return $instance->cloneWithout($properties);
  17581. }
  17582. /**
  17583. * Clone the query without the given bindings.
  17584. *
  17585. * @param array $except
  17586. * @return static
  17587. * @static
  17588. */
  17589. public static function cloneWithoutBindings($except)
  17590. {
  17591. /** @var \Illuminate\Database\Query\Builder $instance */
  17592. return $instance->cloneWithoutBindings($except);
  17593. }
  17594. /**
  17595. * Dump the current SQL and bindings.
  17596. *
  17597. * @return \Illuminate\Database\Query\Builder
  17598. * @static
  17599. */
  17600. public static function dump()
  17601. {
  17602. /** @var \Illuminate\Database\Query\Builder $instance */
  17603. return $instance->dump();
  17604. }
  17605. /**
  17606. * Die and dump the current SQL and bindings.
  17607. *
  17608. * @return void
  17609. * @static
  17610. */
  17611. public static function dd()
  17612. {
  17613. /** @var \Illuminate\Database\Query\Builder $instance */
  17614. $instance->dd();
  17615. }
  17616. /**
  17617. * Register a custom macro.
  17618. *
  17619. * @param string $name
  17620. * @param object|callable $macro
  17621. * @return void
  17622. * @static
  17623. */
  17624. public static function macro($name, $macro)
  17625. {
  17626. \Illuminate\Database\Query\Builder::macro($name, $macro);
  17627. }
  17628. /**
  17629. * Mix another object into the class.
  17630. *
  17631. * @param object $mixin
  17632. * @param bool $replace
  17633. * @return void
  17634. * @throws \ReflectionException
  17635. * @static
  17636. */
  17637. public static function mixin($mixin, $replace = true)
  17638. {
  17639. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  17640. }
  17641. /**
  17642. * Checks if macro is registered.
  17643. *
  17644. * @param string $name
  17645. * @return bool
  17646. * @static
  17647. */
  17648. public static function hasMacro($name)
  17649. {
  17650. return \Illuminate\Database\Query\Builder::hasMacro($name);
  17651. }
  17652. /**
  17653. * Dynamically handle calls to the class.
  17654. *
  17655. * @param string $method
  17656. * @param array $parameters
  17657. * @return mixed
  17658. * @throws \BadMethodCallException
  17659. * @static
  17660. */
  17661. public static function macroCall($method, $parameters)
  17662. {
  17663. /** @var \Illuminate\Database\Query\Builder $instance */
  17664. return $instance->macroCall($method, $parameters);
  17665. }
  17666. }
  17667. class Event extends \Illuminate\Support\Facades\Event {}
  17668. class File extends \Illuminate\Support\Facades\File {}
  17669. class Gate extends \Illuminate\Support\Facades\Gate {}
  17670. class Hash extends \Illuminate\Support\Facades\Hash {}
  17671. class HCaptcha extends \SSRPanel\HCaptcha\Facades\HCaptcha {}
  17672. class Lang extends \Illuminate\Support\Facades\Lang {}
  17673. class Log extends \Illuminate\Support\Facades\Log {}
  17674. class Mail extends \Illuminate\Support\Facades\Mail {}
  17675. class Notification extends \Illuminate\Support\Facades\Notification {}
  17676. class Password extends \Illuminate\Support\Facades\Password {}
  17677. class Queue extends \Illuminate\Support\Facades\Queue {}
  17678. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  17679. class Redis extends \Illuminate\Support\Facades\Redis {}
  17680. class Request extends \Illuminate\Support\Facades\Request {}
  17681. class Response extends \Illuminate\Support\Facades\Response {}
  17682. class Route extends \Illuminate\Support\Facades\Route {}
  17683. class Schema extends \Illuminate\Support\Facades\Schema {}
  17684. class Session extends \Illuminate\Support\Facades\Session {}
  17685. class Storage extends \Illuminate\Support\Facades\Storage {}
  17686. class URL extends \Illuminate\Support\Facades\URL {}
  17687. class Validator extends \Illuminate\Support\Facades\Validator {}
  17688. class View extends \Illuminate\Support\Facades\View {}
  17689. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  17690. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  17691. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  17692. class Geetest extends \Misechow\Geetest\Geetest {}
  17693. class NoCaptcha extends \Misechow\NoCaptcha\Facades\NoCaptcha {}
  17694. class Image extends \Intervention\Image\Facades\Image {}
  17695. }