_ide_helper.php 623 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151
  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.36 on 2020-01-05 03:12:08.
  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 = null)
  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 = null)
  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 = null)
  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. * Release a reserved job back onto the queue.
  7293. *
  7294. * @param string $queue
  7295. * @param \Illuminate\Queue\Jobs\DatabaseJobRecord $job
  7296. * @param int $delay
  7297. * @return mixed
  7298. * @static
  7299. */
  7300. public static function release($queue, $job, $delay)
  7301. {
  7302. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7303. return $instance->release($queue, $job, $delay);
  7304. }
  7305. /**
  7306. * Delete a reserved job from the queue.
  7307. *
  7308. * @param string $queue
  7309. * @param string $id
  7310. * @return void
  7311. * @throws \Exception|\Throwable
  7312. * @static
  7313. */
  7314. public static function deleteReserved($queue, $id)
  7315. {
  7316. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7317. $instance->deleteReserved($queue, $id);
  7318. }
  7319. /**
  7320. * Get the queue or return the default.
  7321. *
  7322. * @param string|null $queue
  7323. * @return string
  7324. * @static
  7325. */
  7326. public static function getQueue($queue)
  7327. {
  7328. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7329. return $instance->getQueue($queue);
  7330. }
  7331. /**
  7332. * Get the underlying database instance.
  7333. *
  7334. * @return \Illuminate\Database\Connection
  7335. * @static
  7336. */
  7337. public static function getDatabase()
  7338. {
  7339. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7340. return $instance->getDatabase();
  7341. }
  7342. /**
  7343. * Get the retry delay for an object-based queue handler.
  7344. *
  7345. * @param mixed $job
  7346. * @return mixed
  7347. * @static
  7348. */
  7349. public static function getJobRetryDelay($job)
  7350. {
  7351. //Method inherited from \Illuminate\Queue\Queue
  7352. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7353. return $instance->getJobRetryDelay($job);
  7354. }
  7355. /**
  7356. * Get the expiration timestamp for an object-based queue handler.
  7357. *
  7358. * @param mixed $job
  7359. * @return mixed
  7360. * @static
  7361. */
  7362. public static function getJobExpiration($job)
  7363. {
  7364. //Method inherited from \Illuminate\Queue\Queue
  7365. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7366. return $instance->getJobExpiration($job);
  7367. }
  7368. /**
  7369. * Register a callback to be executed when creating job payloads.
  7370. *
  7371. * @param callable $callback
  7372. * @return void
  7373. * @static
  7374. */
  7375. public static function createPayloadUsing($callback)
  7376. {
  7377. //Method inherited from \Illuminate\Queue\Queue
  7378. \Illuminate\Queue\DatabaseQueue::createPayloadUsing($callback);
  7379. }
  7380. /**
  7381. * Set the IoC container instance.
  7382. *
  7383. * @param \Illuminate\Container\Container $container
  7384. * @return void
  7385. * @static
  7386. */
  7387. public static function setContainer($container)
  7388. {
  7389. //Method inherited from \Illuminate\Queue\Queue
  7390. /** @var \Illuminate\Queue\DatabaseQueue $instance */
  7391. $instance->setContainer($container);
  7392. }
  7393. }
  7394. /**
  7395. *
  7396. *
  7397. * @see \Illuminate\Routing\Redirector
  7398. */
  7399. class Redirect {
  7400. /**
  7401. * Create a new redirect response to the "home" route.
  7402. *
  7403. * @param int $status
  7404. * @return \Illuminate\Http\RedirectResponse
  7405. * @static
  7406. */
  7407. public static function home($status = 302)
  7408. {
  7409. /** @var \Illuminate\Routing\Redirector $instance */
  7410. return $instance->home($status);
  7411. }
  7412. /**
  7413. * Create a new redirect response to the previous location.
  7414. *
  7415. * @param int $status
  7416. * @param array $headers
  7417. * @param mixed $fallback
  7418. * @return \Illuminate\Http\RedirectResponse
  7419. * @static
  7420. */
  7421. public static function back($status = 302, $headers = [], $fallback = false)
  7422. {
  7423. /** @var \Illuminate\Routing\Redirector $instance */
  7424. return $instance->back($status, $headers, $fallback);
  7425. }
  7426. /**
  7427. * Create a new redirect response to the current URI.
  7428. *
  7429. * @param int $status
  7430. * @param array $headers
  7431. * @return \Illuminate\Http\RedirectResponse
  7432. * @static
  7433. */
  7434. public static function refresh($status = 302, $headers = [])
  7435. {
  7436. /** @var \Illuminate\Routing\Redirector $instance */
  7437. return $instance->refresh($status, $headers);
  7438. }
  7439. /**
  7440. * Create a new redirect response, while putting the current URL in the session.
  7441. *
  7442. * @param string $path
  7443. * @param int $status
  7444. * @param array $headers
  7445. * @param bool|null $secure
  7446. * @return \Illuminate\Http\RedirectResponse
  7447. * @static
  7448. */
  7449. public static function guest($path, $status = 302, $headers = [], $secure = null)
  7450. {
  7451. /** @var \Illuminate\Routing\Redirector $instance */
  7452. return $instance->guest($path, $status, $headers, $secure);
  7453. }
  7454. /**
  7455. * Create a new redirect response to the previously intended location.
  7456. *
  7457. * @param string $default
  7458. * @param int $status
  7459. * @param array $headers
  7460. * @param bool|null $secure
  7461. * @return \Illuminate\Http\RedirectResponse
  7462. * @static
  7463. */
  7464. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  7465. {
  7466. /** @var \Illuminate\Routing\Redirector $instance */
  7467. return $instance->intended($default, $status, $headers, $secure);
  7468. }
  7469. /**
  7470. * Set the intended url.
  7471. *
  7472. * @param string $url
  7473. * @return void
  7474. * @static
  7475. */
  7476. public static function setIntendedUrl($url)
  7477. {
  7478. /** @var \Illuminate\Routing\Redirector $instance */
  7479. $instance->setIntendedUrl($url);
  7480. }
  7481. /**
  7482. * Create a new redirect response to the given path.
  7483. *
  7484. * @param string $path
  7485. * @param int $status
  7486. * @param array $headers
  7487. * @param bool|null $secure
  7488. * @return \Illuminate\Http\RedirectResponse
  7489. * @static
  7490. */
  7491. public static function to($path, $status = 302, $headers = [], $secure = null)
  7492. {
  7493. /** @var \Illuminate\Routing\Redirector $instance */
  7494. return $instance->to($path, $status, $headers, $secure);
  7495. }
  7496. /**
  7497. * Create a new redirect response to an external URL (no validation).
  7498. *
  7499. * @param string $path
  7500. * @param int $status
  7501. * @param array $headers
  7502. * @return \Illuminate\Http\RedirectResponse
  7503. * @static
  7504. */
  7505. public static function away($path, $status = 302, $headers = [])
  7506. {
  7507. /** @var \Illuminate\Routing\Redirector $instance */
  7508. return $instance->away($path, $status, $headers);
  7509. }
  7510. /**
  7511. * Create a new redirect response to the given HTTPS path.
  7512. *
  7513. * @param string $path
  7514. * @param int $status
  7515. * @param array $headers
  7516. * @return \Illuminate\Http\RedirectResponse
  7517. * @static
  7518. */
  7519. public static function secure($path, $status = 302, $headers = [])
  7520. {
  7521. /** @var \Illuminate\Routing\Redirector $instance */
  7522. return $instance->secure($path, $status, $headers);
  7523. }
  7524. /**
  7525. * Create a new redirect response to a named route.
  7526. *
  7527. * @param string $route
  7528. * @param mixed $parameters
  7529. * @param int $status
  7530. * @param array $headers
  7531. * @return \Illuminate\Http\RedirectResponse
  7532. * @static
  7533. */
  7534. public static function route($route, $parameters = [], $status = 302, $headers = [])
  7535. {
  7536. /** @var \Illuminate\Routing\Redirector $instance */
  7537. return $instance->route($route, $parameters, $status, $headers);
  7538. }
  7539. /**
  7540. * Create a new redirect response to a controller action.
  7541. *
  7542. * @param string|array $action
  7543. * @param mixed $parameters
  7544. * @param int $status
  7545. * @param array $headers
  7546. * @return \Illuminate\Http\RedirectResponse
  7547. * @static
  7548. */
  7549. public static function action($action, $parameters = [], $status = 302, $headers = [])
  7550. {
  7551. /** @var \Illuminate\Routing\Redirector $instance */
  7552. return $instance->action($action, $parameters, $status, $headers);
  7553. }
  7554. /**
  7555. * Get the URL generator instance.
  7556. *
  7557. * @return \Illuminate\Routing\UrlGenerator
  7558. * @static
  7559. */
  7560. public static function getUrlGenerator()
  7561. {
  7562. /** @var \Illuminate\Routing\Redirector $instance */
  7563. return $instance->getUrlGenerator();
  7564. }
  7565. /**
  7566. * Set the active session store.
  7567. *
  7568. * @param \Illuminate\Session\Store $session
  7569. * @return void
  7570. * @static
  7571. */
  7572. public static function setSession($session)
  7573. {
  7574. /** @var \Illuminate\Routing\Redirector $instance */
  7575. $instance->setSession($session);
  7576. }
  7577. /**
  7578. * Register a custom macro.
  7579. *
  7580. * @param string $name
  7581. * @param object|callable $macro
  7582. * @return void
  7583. * @static
  7584. */
  7585. public static function macro($name, $macro)
  7586. {
  7587. \Illuminate\Routing\Redirector::macro($name, $macro);
  7588. }
  7589. /**
  7590. * Mix another object into the class.
  7591. *
  7592. * @param object $mixin
  7593. * @param bool $replace
  7594. * @return void
  7595. * @throws \ReflectionException
  7596. * @static
  7597. */
  7598. public static function mixin($mixin, $replace = true)
  7599. {
  7600. \Illuminate\Routing\Redirector::mixin($mixin, $replace);
  7601. }
  7602. /**
  7603. * Checks if macro is registered.
  7604. *
  7605. * @param string $name
  7606. * @return bool
  7607. * @static
  7608. */
  7609. public static function hasMacro($name)
  7610. {
  7611. return \Illuminate\Routing\Redirector::hasMacro($name);
  7612. }
  7613. }
  7614. /**
  7615. *
  7616. *
  7617. * @see \Illuminate\Redis\RedisManager
  7618. * @see \Illuminate\Contracts\Redis\Factory
  7619. */
  7620. class Redis {
  7621. /**
  7622. * Get a Redis connection by name.
  7623. *
  7624. * @param string|null $name
  7625. * @return \Illuminate\Redis\Connections\Connection
  7626. * @static
  7627. */
  7628. public static function connection($name = null)
  7629. {
  7630. /** @var \Illuminate\Redis\RedisManager $instance */
  7631. return $instance->connection($name);
  7632. }
  7633. /**
  7634. * Resolve the given connection by name.
  7635. *
  7636. * @param string|null $name
  7637. * @return \Illuminate\Redis\Connections\Connection
  7638. * @throws \InvalidArgumentException
  7639. * @static
  7640. */
  7641. public static function resolve($name = null)
  7642. {
  7643. /** @var \Illuminate\Redis\RedisManager $instance */
  7644. return $instance->resolve($name);
  7645. }
  7646. /**
  7647. * Return all of the created connections.
  7648. *
  7649. * @return array
  7650. * @static
  7651. */
  7652. public static function connections()
  7653. {
  7654. /** @var \Illuminate\Redis\RedisManager $instance */
  7655. return $instance->connections();
  7656. }
  7657. /**
  7658. * Enable the firing of Redis command events.
  7659. *
  7660. * @return void
  7661. * @static
  7662. */
  7663. public static function enableEvents()
  7664. {
  7665. /** @var \Illuminate\Redis\RedisManager $instance */
  7666. $instance->enableEvents();
  7667. }
  7668. /**
  7669. * Disable the firing of Redis command events.
  7670. *
  7671. * @return void
  7672. * @static
  7673. */
  7674. public static function disableEvents()
  7675. {
  7676. /** @var \Illuminate\Redis\RedisManager $instance */
  7677. $instance->disableEvents();
  7678. }
  7679. /**
  7680. * Set the default driver.
  7681. *
  7682. * @param string $driver
  7683. * @return void
  7684. * @static
  7685. */
  7686. public static function setDriver($driver)
  7687. {
  7688. /** @var \Illuminate\Redis\RedisManager $instance */
  7689. $instance->setDriver($driver);
  7690. }
  7691. /**
  7692. * Register a custom driver creator Closure.
  7693. *
  7694. * @param string $driver
  7695. * @param \Closure $callback
  7696. * @return \Illuminate\Redis\RedisManager
  7697. * @static
  7698. */
  7699. public static function extend($driver, $callback)
  7700. {
  7701. /** @var \Illuminate\Redis\RedisManager $instance */
  7702. return $instance->extend($driver, $callback);
  7703. }
  7704. }
  7705. /**
  7706. *
  7707. *
  7708. * @see \Illuminate\Http\Request
  7709. */
  7710. class Request {
  7711. /**
  7712. * Create a new Illuminate HTTP request from server variables.
  7713. *
  7714. * @return static
  7715. * @static
  7716. */
  7717. public static function capture()
  7718. {
  7719. return \Illuminate\Http\Request::capture();
  7720. }
  7721. /**
  7722. * Return the Request instance.
  7723. *
  7724. * @return \Illuminate\Http\Request
  7725. * @static
  7726. */
  7727. public static function instance()
  7728. {
  7729. /** @var \Illuminate\Http\Request $instance */
  7730. return $instance->instance();
  7731. }
  7732. /**
  7733. * Get the request method.
  7734. *
  7735. * @return string
  7736. * @static
  7737. */
  7738. public static function method()
  7739. {
  7740. /** @var \Illuminate\Http\Request $instance */
  7741. return $instance->method();
  7742. }
  7743. /**
  7744. * Get the root URL for the application.
  7745. *
  7746. * @return string
  7747. * @static
  7748. */
  7749. public static function root()
  7750. {
  7751. /** @var \Illuminate\Http\Request $instance */
  7752. return $instance->root();
  7753. }
  7754. /**
  7755. * Get the URL (no query string) for the request.
  7756. *
  7757. * @return string
  7758. * @static
  7759. */
  7760. public static function url()
  7761. {
  7762. /** @var \Illuminate\Http\Request $instance */
  7763. return $instance->url();
  7764. }
  7765. /**
  7766. * Get the full URL for the request.
  7767. *
  7768. * @return string
  7769. * @static
  7770. */
  7771. public static function fullUrl()
  7772. {
  7773. /** @var \Illuminate\Http\Request $instance */
  7774. return $instance->fullUrl();
  7775. }
  7776. /**
  7777. * Get the full URL for the request with the added query string parameters.
  7778. *
  7779. * @param array $query
  7780. * @return string
  7781. * @static
  7782. */
  7783. public static function fullUrlWithQuery($query)
  7784. {
  7785. /** @var \Illuminate\Http\Request $instance */
  7786. return $instance->fullUrlWithQuery($query);
  7787. }
  7788. /**
  7789. * Get the current path info for the request.
  7790. *
  7791. * @return string
  7792. * @static
  7793. */
  7794. public static function path()
  7795. {
  7796. /** @var \Illuminate\Http\Request $instance */
  7797. return $instance->path();
  7798. }
  7799. /**
  7800. * Get the current decoded path info for the request.
  7801. *
  7802. * @return string
  7803. * @static
  7804. */
  7805. public static function decodedPath()
  7806. {
  7807. /** @var \Illuminate\Http\Request $instance */
  7808. return $instance->decodedPath();
  7809. }
  7810. /**
  7811. * Get a segment from the URI (1 based index).
  7812. *
  7813. * @param int $index
  7814. * @param string|null $default
  7815. * @return string|null
  7816. * @static
  7817. */
  7818. public static function segment($index, $default = null)
  7819. {
  7820. /** @var \Illuminate\Http\Request $instance */
  7821. return $instance->segment($index, $default);
  7822. }
  7823. /**
  7824. * Get all of the segments for the request path.
  7825. *
  7826. * @return array
  7827. * @static
  7828. */
  7829. public static function segments()
  7830. {
  7831. /** @var \Illuminate\Http\Request $instance */
  7832. return $instance->segments();
  7833. }
  7834. /**
  7835. * Determine if the current request URI matches a pattern.
  7836. *
  7837. * @param mixed $patterns
  7838. * @return bool
  7839. * @static
  7840. */
  7841. public static function is($patterns = null)
  7842. {
  7843. /** @var \Illuminate\Http\Request $instance */
  7844. return $instance->is($patterns);
  7845. }
  7846. /**
  7847. * Determine if the route name matches a given pattern.
  7848. *
  7849. * @param mixed $patterns
  7850. * @return bool
  7851. * @static
  7852. */
  7853. public static function routeIs($patterns = null)
  7854. {
  7855. /** @var \Illuminate\Http\Request $instance */
  7856. return $instance->routeIs($patterns);
  7857. }
  7858. /**
  7859. * Determine if the current request URL and query string matches a pattern.
  7860. *
  7861. * @param mixed $patterns
  7862. * @return bool
  7863. * @static
  7864. */
  7865. public static function fullUrlIs($patterns = null)
  7866. {
  7867. /** @var \Illuminate\Http\Request $instance */
  7868. return $instance->fullUrlIs($patterns);
  7869. }
  7870. /**
  7871. * Determine if the request is the result of an AJAX call.
  7872. *
  7873. * @return bool
  7874. * @static
  7875. */
  7876. public static function ajax()
  7877. {
  7878. /** @var \Illuminate\Http\Request $instance */
  7879. return $instance->ajax();
  7880. }
  7881. /**
  7882. * Determine if the request is the result of an PJAX call.
  7883. *
  7884. * @return bool
  7885. * @static
  7886. */
  7887. public static function pjax()
  7888. {
  7889. /** @var \Illuminate\Http\Request $instance */
  7890. return $instance->pjax();
  7891. }
  7892. /**
  7893. * Determine if the request is the result of an prefetch call.
  7894. *
  7895. * @return bool
  7896. * @static
  7897. */
  7898. public static function prefetch()
  7899. {
  7900. /** @var \Illuminate\Http\Request $instance */
  7901. return $instance->prefetch();
  7902. }
  7903. /**
  7904. * Determine if the request is over HTTPS.
  7905. *
  7906. * @return bool
  7907. * @static
  7908. */
  7909. public static function secure()
  7910. {
  7911. /** @var \Illuminate\Http\Request $instance */
  7912. return $instance->secure();
  7913. }
  7914. /**
  7915. * Get the client IP address.
  7916. *
  7917. * @return string|null
  7918. * @static
  7919. */
  7920. public static function ip()
  7921. {
  7922. /** @var \Illuminate\Http\Request $instance */
  7923. return $instance->ip();
  7924. }
  7925. /**
  7926. * Get the client IP addresses.
  7927. *
  7928. * @return array
  7929. * @static
  7930. */
  7931. public static function ips()
  7932. {
  7933. /** @var \Illuminate\Http\Request $instance */
  7934. return $instance->ips();
  7935. }
  7936. /**
  7937. * Get the client user agent.
  7938. *
  7939. * @return string
  7940. * @static
  7941. */
  7942. public static function userAgent()
  7943. {
  7944. /** @var \Illuminate\Http\Request $instance */
  7945. return $instance->userAgent();
  7946. }
  7947. /**
  7948. * Merge new input into the current request's input array.
  7949. *
  7950. * @param array $input
  7951. * @return \Illuminate\Http\Request
  7952. * @static
  7953. */
  7954. public static function merge($input)
  7955. {
  7956. /** @var \Illuminate\Http\Request $instance */
  7957. return $instance->merge($input);
  7958. }
  7959. /**
  7960. * Replace the input for the current request.
  7961. *
  7962. * @param array $input
  7963. * @return \Illuminate\Http\Request
  7964. * @static
  7965. */
  7966. public static function replace($input)
  7967. {
  7968. /** @var \Illuminate\Http\Request $instance */
  7969. return $instance->replace($input);
  7970. }
  7971. /**
  7972. * This method belongs to Symfony HttpFoundation and is not usually needed when using Laravel.
  7973. *
  7974. * Instead, you may use the "input" method.
  7975. *
  7976. * @param string $key
  7977. * @param mixed $default
  7978. * @return mixed
  7979. * @static
  7980. */
  7981. public static function get($key, $default = null)
  7982. {
  7983. /** @var \Illuminate\Http\Request $instance */
  7984. return $instance->get($key, $default);
  7985. }
  7986. /**
  7987. * Get the JSON payload for the request.
  7988. *
  7989. * @param string|null $key
  7990. * @param mixed $default
  7991. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7992. * @static
  7993. */
  7994. public static function json($key = null, $default = null)
  7995. {
  7996. /** @var \Illuminate\Http\Request $instance */
  7997. return $instance->json($key, $default);
  7998. }
  7999. /**
  8000. * Create a new request instance from the given Laravel request.
  8001. *
  8002. * @param \Illuminate\Http\Request $from
  8003. * @param \Illuminate\Http\Request|null $to
  8004. * @return static
  8005. * @static
  8006. */
  8007. public static function createFrom($from, $to = null)
  8008. {
  8009. return \Illuminate\Http\Request::createFrom($from, $to);
  8010. }
  8011. /**
  8012. * Create an Illuminate request from a Symfony instance.
  8013. *
  8014. * @param \Symfony\Component\HttpFoundation\Request $request
  8015. * @return static
  8016. * @static
  8017. */
  8018. public static function createFromBase($request)
  8019. {
  8020. return \Illuminate\Http\Request::createFromBase($request);
  8021. }
  8022. /**
  8023. * Clones a request and overrides some of its parameters.
  8024. *
  8025. * @param array $query The GET parameters
  8026. * @param array $request The POST parameters
  8027. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8028. * @param array $cookies The COOKIE parameters
  8029. * @param array $files The FILES parameters
  8030. * @param array $server The SERVER parameters
  8031. * @return static
  8032. * @static
  8033. */
  8034. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  8035. {
  8036. /** @var \Illuminate\Http\Request $instance */
  8037. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  8038. }
  8039. /**
  8040. * Get the session associated with the request.
  8041. *
  8042. * @return \Illuminate\Session\Store
  8043. * @throws \RuntimeException
  8044. * @static
  8045. */
  8046. public static function session()
  8047. {
  8048. /** @var \Illuminate\Http\Request $instance */
  8049. return $instance->session();
  8050. }
  8051. /**
  8052. * Get the session associated with the request.
  8053. *
  8054. * @return \Illuminate\Session\Store|null
  8055. * @static
  8056. */
  8057. public static function getSession()
  8058. {
  8059. /** @var \Illuminate\Http\Request $instance */
  8060. return $instance->getSession();
  8061. }
  8062. /**
  8063. * Set the session instance on the request.
  8064. *
  8065. * @param \Illuminate\Contracts\Session\Session $session
  8066. * @return void
  8067. * @static
  8068. */
  8069. public static function setLaravelSession($session)
  8070. {
  8071. /** @var \Illuminate\Http\Request $instance */
  8072. $instance->setLaravelSession($session);
  8073. }
  8074. /**
  8075. * Get the user making the request.
  8076. *
  8077. * @param string|null $guard
  8078. * @return mixed
  8079. * @static
  8080. */
  8081. public static function user($guard = null)
  8082. {
  8083. /** @var \Illuminate\Http\Request $instance */
  8084. return $instance->user($guard);
  8085. }
  8086. /**
  8087. * Get the route handling the request.
  8088. *
  8089. * @param string|null $param
  8090. * @param mixed $default
  8091. * @return \Illuminate\Routing\Route|object|string
  8092. * @static
  8093. */
  8094. public static function route($param = null, $default = null)
  8095. {
  8096. /** @var \Illuminate\Http\Request $instance */
  8097. return $instance->route($param, $default);
  8098. }
  8099. /**
  8100. * Get a unique fingerprint for the request / route / IP address.
  8101. *
  8102. * @return string
  8103. * @throws \RuntimeException
  8104. * @static
  8105. */
  8106. public static function fingerprint()
  8107. {
  8108. /** @var \Illuminate\Http\Request $instance */
  8109. return $instance->fingerprint();
  8110. }
  8111. /**
  8112. * Set the JSON payload for the request.
  8113. *
  8114. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  8115. * @return \Illuminate\Http\Request
  8116. * @static
  8117. */
  8118. public static function setJson($json)
  8119. {
  8120. /** @var \Illuminate\Http\Request $instance */
  8121. return $instance->setJson($json);
  8122. }
  8123. /**
  8124. * Get the user resolver callback.
  8125. *
  8126. * @return \Closure
  8127. * @static
  8128. */
  8129. public static function getUserResolver()
  8130. {
  8131. /** @var \Illuminate\Http\Request $instance */
  8132. return $instance->getUserResolver();
  8133. }
  8134. /**
  8135. * Set the user resolver callback.
  8136. *
  8137. * @param \Closure $callback
  8138. * @return \Illuminate\Http\Request
  8139. * @static
  8140. */
  8141. public static function setUserResolver($callback)
  8142. {
  8143. /** @var \Illuminate\Http\Request $instance */
  8144. return $instance->setUserResolver($callback);
  8145. }
  8146. /**
  8147. * Get the route resolver callback.
  8148. *
  8149. * @return \Closure
  8150. * @static
  8151. */
  8152. public static function getRouteResolver()
  8153. {
  8154. /** @var \Illuminate\Http\Request $instance */
  8155. return $instance->getRouteResolver();
  8156. }
  8157. /**
  8158. * Set the route resolver callback.
  8159. *
  8160. * @param \Closure $callback
  8161. * @return \Illuminate\Http\Request
  8162. * @static
  8163. */
  8164. public static function setRouteResolver($callback)
  8165. {
  8166. /** @var \Illuminate\Http\Request $instance */
  8167. return $instance->setRouteResolver($callback);
  8168. }
  8169. /**
  8170. * Get all of the input and files for the request.
  8171. *
  8172. * @return array
  8173. * @static
  8174. */
  8175. public static function toArray()
  8176. {
  8177. /** @var \Illuminate\Http\Request $instance */
  8178. return $instance->toArray();
  8179. }
  8180. /**
  8181. * Determine if the given offset exists.
  8182. *
  8183. * @param string $offset
  8184. * @return bool
  8185. * @static
  8186. */
  8187. public static function offsetExists($offset)
  8188. {
  8189. /** @var \Illuminate\Http\Request $instance */
  8190. return $instance->offsetExists($offset);
  8191. }
  8192. /**
  8193. * Get the value at the given offset.
  8194. *
  8195. * @param string $offset
  8196. * @return mixed
  8197. * @static
  8198. */
  8199. public static function offsetGet($offset)
  8200. {
  8201. /** @var \Illuminate\Http\Request $instance */
  8202. return $instance->offsetGet($offset);
  8203. }
  8204. /**
  8205. * Set the value at the given offset.
  8206. *
  8207. * @param string $offset
  8208. * @param mixed $value
  8209. * @return void
  8210. * @static
  8211. */
  8212. public static function offsetSet($offset, $value)
  8213. {
  8214. /** @var \Illuminate\Http\Request $instance */
  8215. $instance->offsetSet($offset, $value);
  8216. }
  8217. /**
  8218. * Remove the value at the given offset.
  8219. *
  8220. * @param string $offset
  8221. * @return void
  8222. * @static
  8223. */
  8224. public static function offsetUnset($offset)
  8225. {
  8226. /** @var \Illuminate\Http\Request $instance */
  8227. $instance->offsetUnset($offset);
  8228. }
  8229. /**
  8230. * Sets the parameters for this request.
  8231. *
  8232. * This method also re-initializes all properties.
  8233. *
  8234. * @param array $query The GET parameters
  8235. * @param array $request The POST parameters
  8236. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  8237. * @param array $cookies The COOKIE parameters
  8238. * @param array $files The FILES parameters
  8239. * @param array $server The SERVER parameters
  8240. * @param string|resource|null $content The raw body data
  8241. * @static
  8242. */
  8243. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  8244. {
  8245. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8246. /** @var \Illuminate\Http\Request $instance */
  8247. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  8248. }
  8249. /**
  8250. * Creates a new request with values from PHP's super globals.
  8251. *
  8252. * @return static
  8253. * @static
  8254. */
  8255. public static function createFromGlobals()
  8256. {
  8257. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8258. return \Illuminate\Http\Request::createFromGlobals();
  8259. }
  8260. /**
  8261. * Creates a Request based on a given URI and configuration.
  8262. *
  8263. * The information contained in the URI always take precedence
  8264. * over the other information (server and parameters).
  8265. *
  8266. * @param string $uri The URI
  8267. * @param string $method The HTTP method
  8268. * @param array $parameters The query (GET) or request (POST) parameters
  8269. * @param array $cookies The request cookies ($_COOKIE)
  8270. * @param array $files The request files ($_FILES)
  8271. * @param array $server The server parameters ($_SERVER)
  8272. * @param string|resource|null $content The raw body data
  8273. * @return static
  8274. * @static
  8275. */
  8276. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  8277. {
  8278. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8279. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  8280. }
  8281. /**
  8282. * Sets a callable able to create a Request instance.
  8283. *
  8284. * This is mainly useful when you need to override the Request class
  8285. * to keep BC with an existing system. It should not be used for any
  8286. * other purpose.
  8287. *
  8288. * @param callable|null $callable A PHP callable
  8289. * @static
  8290. */
  8291. public static function setFactory($callable)
  8292. {
  8293. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8294. return \Illuminate\Http\Request::setFactory($callable);
  8295. }
  8296. /**
  8297. * Overrides the PHP global variables according to this request instance.
  8298. *
  8299. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  8300. * $_FILES is never overridden, see rfc1867
  8301. *
  8302. * @static
  8303. */
  8304. public static function overrideGlobals()
  8305. {
  8306. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8307. /** @var \Illuminate\Http\Request $instance */
  8308. return $instance->overrideGlobals();
  8309. }
  8310. /**
  8311. * Sets a list of trusted proxies.
  8312. *
  8313. * You should only list the reverse proxies that you manage directly.
  8314. *
  8315. * @param array $proxies A list of trusted proxies, the string 'REMOTE_ADDR' will be replaced with $_SERVER['REMOTE_ADDR']
  8316. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  8317. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  8318. * @static
  8319. */
  8320. public static function setTrustedProxies($proxies, $trustedHeaderSet)
  8321. {
  8322. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8323. return \Illuminate\Http\Request::setTrustedProxies($proxies, $trustedHeaderSet);
  8324. }
  8325. /**
  8326. * Gets the list of trusted proxies.
  8327. *
  8328. * @return array An array of trusted proxies
  8329. * @static
  8330. */
  8331. public static function getTrustedProxies()
  8332. {
  8333. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8334. return \Illuminate\Http\Request::getTrustedProxies();
  8335. }
  8336. /**
  8337. * Gets the set of trusted headers from trusted proxies.
  8338. *
  8339. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  8340. * @static
  8341. */
  8342. public static function getTrustedHeaderSet()
  8343. {
  8344. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8345. return \Illuminate\Http\Request::getTrustedHeaderSet();
  8346. }
  8347. /**
  8348. * Sets a list of trusted host patterns.
  8349. *
  8350. * You should only list the hosts you manage using regexs.
  8351. *
  8352. * @param array $hostPatterns A list of trusted host patterns
  8353. * @static
  8354. */
  8355. public static function setTrustedHosts($hostPatterns)
  8356. {
  8357. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8358. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  8359. }
  8360. /**
  8361. * Gets the list of trusted host patterns.
  8362. *
  8363. * @return array An array of trusted host patterns
  8364. * @static
  8365. */
  8366. public static function getTrustedHosts()
  8367. {
  8368. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8369. return \Illuminate\Http\Request::getTrustedHosts();
  8370. }
  8371. /**
  8372. * Normalizes a query string.
  8373. *
  8374. * It builds a normalized query string, where keys/value pairs are alphabetized,
  8375. * have consistent escaping and unneeded delimiters are removed.
  8376. *
  8377. * @param string $qs Query string
  8378. * @return string A normalized query string for the Request
  8379. * @static
  8380. */
  8381. public static function normalizeQueryString($qs)
  8382. {
  8383. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8384. return \Illuminate\Http\Request::normalizeQueryString($qs);
  8385. }
  8386. /**
  8387. * Enables support for the _method request parameter to determine the intended HTTP method.
  8388. *
  8389. * Be warned that enabling this feature might lead to CSRF issues in your code.
  8390. * Check that you are using CSRF tokens when required.
  8391. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  8392. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  8393. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  8394. *
  8395. * The HTTP method can only be overridden when the real HTTP method is POST.
  8396. *
  8397. * @static
  8398. */
  8399. public static function enableHttpMethodParameterOverride()
  8400. {
  8401. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8402. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  8403. }
  8404. /**
  8405. * Checks whether support for the _method request parameter is enabled.
  8406. *
  8407. * @return bool True when the _method request parameter is enabled, false otherwise
  8408. * @static
  8409. */
  8410. public static function getHttpMethodParameterOverride()
  8411. {
  8412. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8413. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  8414. }
  8415. /**
  8416. * Whether the request contains a Session which was started in one of the
  8417. * previous requests.
  8418. *
  8419. * @return bool
  8420. * @static
  8421. */
  8422. public static function hasPreviousSession()
  8423. {
  8424. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8425. /** @var \Illuminate\Http\Request $instance */
  8426. return $instance->hasPreviousSession();
  8427. }
  8428. /**
  8429. * Whether the request contains a Session object.
  8430. *
  8431. * This method does not give any information about the state of the session object,
  8432. * like whether the session is started or not. It is just a way to check if this Request
  8433. * is associated with a Session instance.
  8434. *
  8435. * @return bool true when the Request contains a Session object, false otherwise
  8436. * @static
  8437. */
  8438. public static function hasSession()
  8439. {
  8440. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8441. /** @var \Illuminate\Http\Request $instance */
  8442. return $instance->hasSession();
  8443. }
  8444. /**
  8445. *
  8446. *
  8447. * @static
  8448. */
  8449. public static function setSession($session)
  8450. {
  8451. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8452. /** @var \Illuminate\Http\Request $instance */
  8453. return $instance->setSession($session);
  8454. }
  8455. /**
  8456. *
  8457. *
  8458. * @internal
  8459. * @static
  8460. */
  8461. public static function setSessionFactory($factory)
  8462. {
  8463. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8464. /** @var \Illuminate\Http\Request $instance */
  8465. return $instance->setSessionFactory($factory);
  8466. }
  8467. /**
  8468. * Returns the client IP addresses.
  8469. *
  8470. * In the returned array the most trusted IP address is first, and the
  8471. * least trusted one last. The "real" client IP address is the last one,
  8472. * but this is also the least trusted one. Trusted proxies are stripped.
  8473. *
  8474. * Use this method carefully; you should use getClientIp() instead.
  8475. *
  8476. * @return array The client IP addresses
  8477. * @see getClientIp()
  8478. * @static
  8479. */
  8480. public static function getClientIps()
  8481. {
  8482. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8483. /** @var \Illuminate\Http\Request $instance */
  8484. return $instance->getClientIps();
  8485. }
  8486. /**
  8487. * Returns the client IP address.
  8488. *
  8489. * This method can read the client IP address from the "X-Forwarded-For" header
  8490. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  8491. * header value is a comma+space separated list of IP addresses, the left-most
  8492. * being the original client, and each successive proxy that passed the request
  8493. * adding the IP address where it received the request from.
  8494. *
  8495. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  8496. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  8497. * argument of the Request::setTrustedProxies() method instead.
  8498. *
  8499. * @return string|null The client IP address
  8500. * @see getClientIps()
  8501. * @see https://wikipedia.org/wiki/X-Forwarded-For
  8502. * @static
  8503. */
  8504. public static function getClientIp()
  8505. {
  8506. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8507. /** @var \Illuminate\Http\Request $instance */
  8508. return $instance->getClientIp();
  8509. }
  8510. /**
  8511. * Returns current script name.
  8512. *
  8513. * @return string
  8514. * @static
  8515. */
  8516. public static function getScriptName()
  8517. {
  8518. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8519. /** @var \Illuminate\Http\Request $instance */
  8520. return $instance->getScriptName();
  8521. }
  8522. /**
  8523. * Returns the path being requested relative to the executed script.
  8524. *
  8525. * The path info always starts with a /.
  8526. *
  8527. * Suppose this request is instantiated from /mysite on localhost:
  8528. *
  8529. * * http://localhost/mysite returns an empty string
  8530. * * http://localhost/mysite/about returns '/about'
  8531. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8532. * * http://localhost/mysite/about?var=1 returns '/about'
  8533. *
  8534. * @return string The raw path (i.e. not urldecoded)
  8535. * @static
  8536. */
  8537. public static function getPathInfo()
  8538. {
  8539. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8540. /** @var \Illuminate\Http\Request $instance */
  8541. return $instance->getPathInfo();
  8542. }
  8543. /**
  8544. * Returns the root path from which this request is executed.
  8545. *
  8546. * Suppose that an index.php file instantiates this request object:
  8547. *
  8548. * * http://localhost/index.php returns an empty string
  8549. * * http://localhost/index.php/page returns an empty string
  8550. * * http://localhost/web/index.php returns '/web'
  8551. * * http://localhost/we%20b/index.php returns '/we%20b'
  8552. *
  8553. * @return string The raw path (i.e. not urldecoded)
  8554. * @static
  8555. */
  8556. public static function getBasePath()
  8557. {
  8558. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8559. /** @var \Illuminate\Http\Request $instance */
  8560. return $instance->getBasePath();
  8561. }
  8562. /**
  8563. * Returns the root URL from which this request is executed.
  8564. *
  8565. * The base URL never ends with a /.
  8566. *
  8567. * This is similar to getBasePath(), except that it also includes the
  8568. * script filename (e.g. index.php) if one exists.
  8569. *
  8570. * @return string The raw URL (i.e. not urldecoded)
  8571. * @static
  8572. */
  8573. public static function getBaseUrl()
  8574. {
  8575. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8576. /** @var \Illuminate\Http\Request $instance */
  8577. return $instance->getBaseUrl();
  8578. }
  8579. /**
  8580. * Gets the request's scheme.
  8581. *
  8582. * @return string
  8583. * @static
  8584. */
  8585. public static function getScheme()
  8586. {
  8587. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8588. /** @var \Illuminate\Http\Request $instance */
  8589. return $instance->getScheme();
  8590. }
  8591. /**
  8592. * Returns the port on which the request is made.
  8593. *
  8594. * This method can read the client port from the "X-Forwarded-Port" header
  8595. * when trusted proxies were set via "setTrustedProxies()".
  8596. *
  8597. * The "X-Forwarded-Port" header must contain the client port.
  8598. *
  8599. * @return int|string can be a string if fetched from the server bag
  8600. * @static
  8601. */
  8602. public static function getPort()
  8603. {
  8604. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8605. /** @var \Illuminate\Http\Request $instance */
  8606. return $instance->getPort();
  8607. }
  8608. /**
  8609. * Returns the user.
  8610. *
  8611. * @return string|null
  8612. * @static
  8613. */
  8614. public static function getUser()
  8615. {
  8616. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8617. /** @var \Illuminate\Http\Request $instance */
  8618. return $instance->getUser();
  8619. }
  8620. /**
  8621. * Returns the password.
  8622. *
  8623. * @return string|null
  8624. * @static
  8625. */
  8626. public static function getPassword()
  8627. {
  8628. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8629. /** @var \Illuminate\Http\Request $instance */
  8630. return $instance->getPassword();
  8631. }
  8632. /**
  8633. * Gets the user info.
  8634. *
  8635. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8636. * @static
  8637. */
  8638. public static function getUserInfo()
  8639. {
  8640. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8641. /** @var \Illuminate\Http\Request $instance */
  8642. return $instance->getUserInfo();
  8643. }
  8644. /**
  8645. * Returns the HTTP host being requested.
  8646. *
  8647. * The port name will be appended to the host if it's non-standard.
  8648. *
  8649. * @return string
  8650. * @static
  8651. */
  8652. public static function getHttpHost()
  8653. {
  8654. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8655. /** @var \Illuminate\Http\Request $instance */
  8656. return $instance->getHttpHost();
  8657. }
  8658. /**
  8659. * Returns the requested URI (path and query string).
  8660. *
  8661. * @return string The raw URI (i.e. not URI decoded)
  8662. * @static
  8663. */
  8664. public static function getRequestUri()
  8665. {
  8666. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8667. /** @var \Illuminate\Http\Request $instance */
  8668. return $instance->getRequestUri();
  8669. }
  8670. /**
  8671. * Gets the scheme and HTTP host.
  8672. *
  8673. * If the URL was called with basic authentication, the user
  8674. * and the password are not added to the generated string.
  8675. *
  8676. * @return string The scheme and HTTP host
  8677. * @static
  8678. */
  8679. public static function getSchemeAndHttpHost()
  8680. {
  8681. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8682. /** @var \Illuminate\Http\Request $instance */
  8683. return $instance->getSchemeAndHttpHost();
  8684. }
  8685. /**
  8686. * Generates a normalized URI (URL) for the Request.
  8687. *
  8688. * @return string A normalized URI (URL) for the Request
  8689. * @see getQueryString()
  8690. * @static
  8691. */
  8692. public static function getUri()
  8693. {
  8694. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8695. /** @var \Illuminate\Http\Request $instance */
  8696. return $instance->getUri();
  8697. }
  8698. /**
  8699. * Generates a normalized URI for the given path.
  8700. *
  8701. * @param string $path A path to use instead of the current one
  8702. * @return string The normalized URI for the path
  8703. * @static
  8704. */
  8705. public static function getUriForPath($path)
  8706. {
  8707. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8708. /** @var \Illuminate\Http\Request $instance */
  8709. return $instance->getUriForPath($path);
  8710. }
  8711. /**
  8712. * Returns the path as relative reference from the current Request path.
  8713. *
  8714. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8715. * Both paths must be absolute and not contain relative parts.
  8716. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8717. * Furthermore, they can be used to reduce the link size in documents.
  8718. *
  8719. * Example target paths, given a base path of "/a/b/c/d":
  8720. * - "/a/b/c/d" -> ""
  8721. * - "/a/b/c/" -> "./"
  8722. * - "/a/b/" -> "../"
  8723. * - "/a/b/c/other" -> "other"
  8724. * - "/a/x/y" -> "../../x/y"
  8725. *
  8726. * @param string $path The target path
  8727. * @return string The relative target path
  8728. * @static
  8729. */
  8730. public static function getRelativeUriForPath($path)
  8731. {
  8732. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8733. /** @var \Illuminate\Http\Request $instance */
  8734. return $instance->getRelativeUriForPath($path);
  8735. }
  8736. /**
  8737. * Generates the normalized query string for the Request.
  8738. *
  8739. * It builds a normalized query string, where keys/value pairs are alphabetized
  8740. * and have consistent escaping.
  8741. *
  8742. * @return string|null A normalized query string for the Request
  8743. * @static
  8744. */
  8745. public static function getQueryString()
  8746. {
  8747. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8748. /** @var \Illuminate\Http\Request $instance */
  8749. return $instance->getQueryString();
  8750. }
  8751. /**
  8752. * Checks whether the request is secure or not.
  8753. *
  8754. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8755. * when trusted proxies were set via "setTrustedProxies()".
  8756. *
  8757. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8758. *
  8759. * @return bool
  8760. * @static
  8761. */
  8762. public static function isSecure()
  8763. {
  8764. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8765. /** @var \Illuminate\Http\Request $instance */
  8766. return $instance->isSecure();
  8767. }
  8768. /**
  8769. * Returns the host name.
  8770. *
  8771. * This method can read the client host name from the "X-Forwarded-Host" header
  8772. * when trusted proxies were set via "setTrustedProxies()".
  8773. *
  8774. * The "X-Forwarded-Host" header must contain the client host name.
  8775. *
  8776. * @return string
  8777. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8778. * @static
  8779. */
  8780. public static function getHost()
  8781. {
  8782. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8783. /** @var \Illuminate\Http\Request $instance */
  8784. return $instance->getHost();
  8785. }
  8786. /**
  8787. * Sets the request method.
  8788. *
  8789. * @param string $method
  8790. * @static
  8791. */
  8792. public static function setMethod($method)
  8793. {
  8794. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8795. /** @var \Illuminate\Http\Request $instance */
  8796. return $instance->setMethod($method);
  8797. }
  8798. /**
  8799. * Gets the request "intended" method.
  8800. *
  8801. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8802. * then it is used to determine the "real" intended HTTP method.
  8803. *
  8804. * The _method request parameter can also be used to determine the HTTP method,
  8805. * but only if enableHttpMethodParameterOverride() has been called.
  8806. *
  8807. * The method is always an uppercased string.
  8808. *
  8809. * @return string The request method
  8810. * @see getRealMethod()
  8811. * @static
  8812. */
  8813. public static function getMethod()
  8814. {
  8815. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8816. /** @var \Illuminate\Http\Request $instance */
  8817. return $instance->getMethod();
  8818. }
  8819. /**
  8820. * Gets the "real" request method.
  8821. *
  8822. * @return string The request method
  8823. * @see getMethod()
  8824. * @static
  8825. */
  8826. public static function getRealMethod()
  8827. {
  8828. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8829. /** @var \Illuminate\Http\Request $instance */
  8830. return $instance->getRealMethod();
  8831. }
  8832. /**
  8833. * Gets the mime type associated with the format.
  8834. *
  8835. * @param string $format The format
  8836. * @return string|null The associated mime type (null if not found)
  8837. * @static
  8838. */
  8839. public static function getMimeType($format)
  8840. {
  8841. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8842. /** @var \Illuminate\Http\Request $instance */
  8843. return $instance->getMimeType($format);
  8844. }
  8845. /**
  8846. * Gets the mime types associated with the format.
  8847. *
  8848. * @param string $format The format
  8849. * @return array The associated mime types
  8850. * @static
  8851. */
  8852. public static function getMimeTypes($format)
  8853. {
  8854. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8855. return \Illuminate\Http\Request::getMimeTypes($format);
  8856. }
  8857. /**
  8858. * Gets the format associated with the mime type.
  8859. *
  8860. * @param string $mimeType The associated mime type
  8861. * @return string|null The format (null if not found)
  8862. * @static
  8863. */
  8864. public static function getFormat($mimeType)
  8865. {
  8866. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8867. /** @var \Illuminate\Http\Request $instance */
  8868. return $instance->getFormat($mimeType);
  8869. }
  8870. /**
  8871. * Associates a format with mime types.
  8872. *
  8873. * @param string $format The format
  8874. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8875. * @static
  8876. */
  8877. public static function setFormat($format, $mimeTypes)
  8878. {
  8879. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8880. /** @var \Illuminate\Http\Request $instance */
  8881. return $instance->setFormat($format, $mimeTypes);
  8882. }
  8883. /**
  8884. * Gets the request format.
  8885. *
  8886. * Here is the process to determine the format:
  8887. *
  8888. * * format defined by the user (with setRequestFormat())
  8889. * * _format request attribute
  8890. * * $default
  8891. *
  8892. * @see getPreferredFormat
  8893. * @param string|null $default The default format
  8894. * @return string|null The request format
  8895. * @static
  8896. */
  8897. public static function getRequestFormat($default = 'html')
  8898. {
  8899. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8900. /** @var \Illuminate\Http\Request $instance */
  8901. return $instance->getRequestFormat($default);
  8902. }
  8903. /**
  8904. * Sets the request format.
  8905. *
  8906. * @param string $format The request format
  8907. * @static
  8908. */
  8909. public static function setRequestFormat($format)
  8910. {
  8911. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8912. /** @var \Illuminate\Http\Request $instance */
  8913. return $instance->setRequestFormat($format);
  8914. }
  8915. /**
  8916. * Gets the format associated with the request.
  8917. *
  8918. * @return string|null The format (null if no content type is present)
  8919. * @static
  8920. */
  8921. public static function getContentType()
  8922. {
  8923. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8924. /** @var \Illuminate\Http\Request $instance */
  8925. return $instance->getContentType();
  8926. }
  8927. /**
  8928. * Sets the default locale.
  8929. *
  8930. * @param string $locale
  8931. * @static
  8932. */
  8933. public static function setDefaultLocale($locale)
  8934. {
  8935. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8936. /** @var \Illuminate\Http\Request $instance */
  8937. return $instance->setDefaultLocale($locale);
  8938. }
  8939. /**
  8940. * Get the default locale.
  8941. *
  8942. * @return string
  8943. * @static
  8944. */
  8945. public static function getDefaultLocale()
  8946. {
  8947. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8948. /** @var \Illuminate\Http\Request $instance */
  8949. return $instance->getDefaultLocale();
  8950. }
  8951. /**
  8952. * Sets the locale.
  8953. *
  8954. * @param string $locale
  8955. * @static
  8956. */
  8957. public static function setLocale($locale)
  8958. {
  8959. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8960. /** @var \Illuminate\Http\Request $instance */
  8961. return $instance->setLocale($locale);
  8962. }
  8963. /**
  8964. * Get the locale.
  8965. *
  8966. * @return string
  8967. * @static
  8968. */
  8969. public static function getLocale()
  8970. {
  8971. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8972. /** @var \Illuminate\Http\Request $instance */
  8973. return $instance->getLocale();
  8974. }
  8975. /**
  8976. * Checks if the request method is of specified type.
  8977. *
  8978. * @param string $method Uppercase request method (GET, POST etc)
  8979. * @return bool
  8980. * @static
  8981. */
  8982. public static function isMethod($method)
  8983. {
  8984. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8985. /** @var \Illuminate\Http\Request $instance */
  8986. return $instance->isMethod($method);
  8987. }
  8988. /**
  8989. * Checks whether or not the method is safe.
  8990. *
  8991. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8992. * @return bool
  8993. * @static
  8994. */
  8995. public static function isMethodSafe()
  8996. {
  8997. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8998. /** @var \Illuminate\Http\Request $instance */
  8999. return $instance->isMethodSafe();
  9000. }
  9001. /**
  9002. * Checks whether or not the method is idempotent.
  9003. *
  9004. * @return bool
  9005. * @static
  9006. */
  9007. public static function isMethodIdempotent()
  9008. {
  9009. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9010. /** @var \Illuminate\Http\Request $instance */
  9011. return $instance->isMethodIdempotent();
  9012. }
  9013. /**
  9014. * Checks whether the method is cacheable or not.
  9015. *
  9016. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  9017. * @return bool True for GET and HEAD, false otherwise
  9018. * @static
  9019. */
  9020. public static function isMethodCacheable()
  9021. {
  9022. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9023. /** @var \Illuminate\Http\Request $instance */
  9024. return $instance->isMethodCacheable();
  9025. }
  9026. /**
  9027. * Returns the protocol version.
  9028. *
  9029. * If the application is behind a proxy, the protocol version used in the
  9030. * requests between the client and the proxy and between the proxy and the
  9031. * server might be different. This returns the former (from the "Via" header)
  9032. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  9033. * the latter (from the "SERVER_PROTOCOL" server parameter).
  9034. *
  9035. * @return string
  9036. * @static
  9037. */
  9038. public static function getProtocolVersion()
  9039. {
  9040. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9041. /** @var \Illuminate\Http\Request $instance */
  9042. return $instance->getProtocolVersion();
  9043. }
  9044. /**
  9045. * Returns the request body content.
  9046. *
  9047. * @param bool $asResource If true, a resource will be returned
  9048. * @return string|resource The request body content or a resource to read the body stream
  9049. * @throws \LogicException
  9050. * @static
  9051. */
  9052. public static function getContent($asResource = false)
  9053. {
  9054. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9055. /** @var \Illuminate\Http\Request $instance */
  9056. return $instance->getContent($asResource);
  9057. }
  9058. /**
  9059. * Gets the Etags.
  9060. *
  9061. * @return array The entity tags
  9062. * @static
  9063. */
  9064. public static function getETags()
  9065. {
  9066. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9067. /** @var \Illuminate\Http\Request $instance */
  9068. return $instance->getETags();
  9069. }
  9070. /**
  9071. *
  9072. *
  9073. * @return bool
  9074. * @static
  9075. */
  9076. public static function isNoCache()
  9077. {
  9078. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9079. /** @var \Illuminate\Http\Request $instance */
  9080. return $instance->isNoCache();
  9081. }
  9082. /**
  9083. * Gets the preferred format for the response by inspecting, in the following order:
  9084. * * the request format set using setRequestFormat
  9085. * * the values of the Accept HTTP header
  9086. * * the content type of the body of the request.
  9087. *
  9088. * @static
  9089. */
  9090. public static function getPreferredFormat($default = 'html')
  9091. {
  9092. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9093. /** @var \Illuminate\Http\Request $instance */
  9094. return $instance->getPreferredFormat($default);
  9095. }
  9096. /**
  9097. * Returns the preferred language.
  9098. *
  9099. * @param string[] $locales An array of ordered available locales
  9100. * @return string|null The preferred locale
  9101. * @static
  9102. */
  9103. public static function getPreferredLanguage($locales = null)
  9104. {
  9105. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9106. /** @var \Illuminate\Http\Request $instance */
  9107. return $instance->getPreferredLanguage($locales);
  9108. }
  9109. /**
  9110. * Gets a list of languages acceptable by the client browser.
  9111. *
  9112. * @return array Languages ordered in the user browser preferences
  9113. * @static
  9114. */
  9115. public static function getLanguages()
  9116. {
  9117. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9118. /** @var \Illuminate\Http\Request $instance */
  9119. return $instance->getLanguages();
  9120. }
  9121. /**
  9122. * Gets a list of charsets acceptable by the client browser.
  9123. *
  9124. * @return array List of charsets in preferable order
  9125. * @static
  9126. */
  9127. public static function getCharsets()
  9128. {
  9129. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9130. /** @var \Illuminate\Http\Request $instance */
  9131. return $instance->getCharsets();
  9132. }
  9133. /**
  9134. * Gets a list of encodings acceptable by the client browser.
  9135. *
  9136. * @return array List of encodings in preferable order
  9137. * @static
  9138. */
  9139. public static function getEncodings()
  9140. {
  9141. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9142. /** @var \Illuminate\Http\Request $instance */
  9143. return $instance->getEncodings();
  9144. }
  9145. /**
  9146. * Gets a list of content types acceptable by the client browser.
  9147. *
  9148. * @return array List of content types in preferable order
  9149. * @static
  9150. */
  9151. public static function getAcceptableContentTypes()
  9152. {
  9153. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9154. /** @var \Illuminate\Http\Request $instance */
  9155. return $instance->getAcceptableContentTypes();
  9156. }
  9157. /**
  9158. * Returns true if the request is a XMLHttpRequest.
  9159. *
  9160. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  9161. * It is known to work with common JavaScript frameworks:
  9162. *
  9163. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  9164. * @return bool true if the request is an XMLHttpRequest, false otherwise
  9165. * @static
  9166. */
  9167. public static function isXmlHttpRequest()
  9168. {
  9169. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9170. /** @var \Illuminate\Http\Request $instance */
  9171. return $instance->isXmlHttpRequest();
  9172. }
  9173. /**
  9174. * Indicates whether this request originated from a trusted proxy.
  9175. *
  9176. * This can be useful to determine whether or not to trust the
  9177. * contents of a proxy-specific header.
  9178. *
  9179. * @return bool true if the request came from a trusted proxy, false otherwise
  9180. * @static
  9181. */
  9182. public static function isFromTrustedProxy()
  9183. {
  9184. //Method inherited from \Symfony\Component\HttpFoundation\Request
  9185. /** @var \Illuminate\Http\Request $instance */
  9186. return $instance->isFromTrustedProxy();
  9187. }
  9188. /**
  9189. * Determine if the given content types match.
  9190. *
  9191. * @param string $actual
  9192. * @param string $type
  9193. * @return bool
  9194. * @static
  9195. */
  9196. public static function matchesType($actual, $type)
  9197. {
  9198. return \Illuminate\Http\Request::matchesType($actual, $type);
  9199. }
  9200. /**
  9201. * Determine if the request is sending JSON.
  9202. *
  9203. * @return bool
  9204. * @static
  9205. */
  9206. public static function isJson()
  9207. {
  9208. /** @var \Illuminate\Http\Request $instance */
  9209. return $instance->isJson();
  9210. }
  9211. /**
  9212. * Determine if the current request probably expects a JSON response.
  9213. *
  9214. * @return bool
  9215. * @static
  9216. */
  9217. public static function expectsJson()
  9218. {
  9219. /** @var \Illuminate\Http\Request $instance */
  9220. return $instance->expectsJson();
  9221. }
  9222. /**
  9223. * Determine if the current request is asking for JSON.
  9224. *
  9225. * @return bool
  9226. * @static
  9227. */
  9228. public static function wantsJson()
  9229. {
  9230. /** @var \Illuminate\Http\Request $instance */
  9231. return $instance->wantsJson();
  9232. }
  9233. /**
  9234. * Determines whether the current requests accepts a given content type.
  9235. *
  9236. * @param string|array $contentTypes
  9237. * @return bool
  9238. * @static
  9239. */
  9240. public static function accepts($contentTypes)
  9241. {
  9242. /** @var \Illuminate\Http\Request $instance */
  9243. return $instance->accepts($contentTypes);
  9244. }
  9245. /**
  9246. * Return the most suitable content type from the given array based on content negotiation.
  9247. *
  9248. * @param string|array $contentTypes
  9249. * @return string|null
  9250. * @static
  9251. */
  9252. public static function prefers($contentTypes)
  9253. {
  9254. /** @var \Illuminate\Http\Request $instance */
  9255. return $instance->prefers($contentTypes);
  9256. }
  9257. /**
  9258. * Determine if the current request accepts any content type.
  9259. *
  9260. * @return bool
  9261. * @static
  9262. */
  9263. public static function acceptsAnyContentType()
  9264. {
  9265. /** @var \Illuminate\Http\Request $instance */
  9266. return $instance->acceptsAnyContentType();
  9267. }
  9268. /**
  9269. * Determines whether a request accepts JSON.
  9270. *
  9271. * @return bool
  9272. * @static
  9273. */
  9274. public static function acceptsJson()
  9275. {
  9276. /** @var \Illuminate\Http\Request $instance */
  9277. return $instance->acceptsJson();
  9278. }
  9279. /**
  9280. * Determines whether a request accepts HTML.
  9281. *
  9282. * @return bool
  9283. * @static
  9284. */
  9285. public static function acceptsHtml()
  9286. {
  9287. /** @var \Illuminate\Http\Request $instance */
  9288. return $instance->acceptsHtml();
  9289. }
  9290. /**
  9291. * Get the data format expected in the response.
  9292. *
  9293. * @param string $default
  9294. * @return string
  9295. * @static
  9296. */
  9297. public static function format($default = 'html')
  9298. {
  9299. /** @var \Illuminate\Http\Request $instance */
  9300. return $instance->format($default);
  9301. }
  9302. /**
  9303. * Retrieve an old input item.
  9304. *
  9305. * @param string|null $key
  9306. * @param string|array|null $default
  9307. * @return string|array
  9308. * @static
  9309. */
  9310. public static function old($key = null, $default = null)
  9311. {
  9312. /** @var \Illuminate\Http\Request $instance */
  9313. return $instance->old($key, $default);
  9314. }
  9315. /**
  9316. * Flash the input for the current request to the session.
  9317. *
  9318. * @return void
  9319. * @static
  9320. */
  9321. public static function flash()
  9322. {
  9323. /** @var \Illuminate\Http\Request $instance */
  9324. $instance->flash();
  9325. }
  9326. /**
  9327. * Flash only some of the input to the session.
  9328. *
  9329. * @param array|mixed $keys
  9330. * @return void
  9331. * @static
  9332. */
  9333. public static function flashOnly($keys)
  9334. {
  9335. /** @var \Illuminate\Http\Request $instance */
  9336. $instance->flashOnly($keys);
  9337. }
  9338. /**
  9339. * Flash only some of the input to the session.
  9340. *
  9341. * @param array|mixed $keys
  9342. * @return void
  9343. * @static
  9344. */
  9345. public static function flashExcept($keys)
  9346. {
  9347. /** @var \Illuminate\Http\Request $instance */
  9348. $instance->flashExcept($keys);
  9349. }
  9350. /**
  9351. * Flush all of the old input from the session.
  9352. *
  9353. * @return void
  9354. * @static
  9355. */
  9356. public static function flush()
  9357. {
  9358. /** @var \Illuminate\Http\Request $instance */
  9359. $instance->flush();
  9360. }
  9361. /**
  9362. * Retrieve a server variable from the request.
  9363. *
  9364. * @param string|null $key
  9365. * @param string|array|null $default
  9366. * @return string|array|null
  9367. * @static
  9368. */
  9369. public static function server($key = null, $default = null)
  9370. {
  9371. /** @var \Illuminate\Http\Request $instance */
  9372. return $instance->server($key, $default);
  9373. }
  9374. /**
  9375. * Determine if a header is set on the request.
  9376. *
  9377. * @param string $key
  9378. * @return bool
  9379. * @static
  9380. */
  9381. public static function hasHeader($key)
  9382. {
  9383. /** @var \Illuminate\Http\Request $instance */
  9384. return $instance->hasHeader($key);
  9385. }
  9386. /**
  9387. * Retrieve a header from the request.
  9388. *
  9389. * @param string|null $key
  9390. * @param string|array|null $default
  9391. * @return string|array|null
  9392. * @static
  9393. */
  9394. public static function header($key = null, $default = null)
  9395. {
  9396. /** @var \Illuminate\Http\Request $instance */
  9397. return $instance->header($key, $default);
  9398. }
  9399. /**
  9400. * Get the bearer token from the request headers.
  9401. *
  9402. * @return string|null
  9403. * @static
  9404. */
  9405. public static function bearerToken()
  9406. {
  9407. /** @var \Illuminate\Http\Request $instance */
  9408. return $instance->bearerToken();
  9409. }
  9410. /**
  9411. * Determine if the request contains a given input item key.
  9412. *
  9413. * @param string|array $key
  9414. * @return bool
  9415. * @static
  9416. */
  9417. public static function exists($key)
  9418. {
  9419. /** @var \Illuminate\Http\Request $instance */
  9420. return $instance->exists($key);
  9421. }
  9422. /**
  9423. * Determine if the request contains a given input item key.
  9424. *
  9425. * @param string|array $key
  9426. * @return bool
  9427. * @static
  9428. */
  9429. public static function has($key)
  9430. {
  9431. /** @var \Illuminate\Http\Request $instance */
  9432. return $instance->has($key);
  9433. }
  9434. /**
  9435. * Determine if the request contains any of the given inputs.
  9436. *
  9437. * @param string|array $keys
  9438. * @return bool
  9439. * @static
  9440. */
  9441. public static function hasAny($keys)
  9442. {
  9443. /** @var \Illuminate\Http\Request $instance */
  9444. return $instance->hasAny($keys);
  9445. }
  9446. /**
  9447. * Determine if the request contains a non-empty value for an input item.
  9448. *
  9449. * @param string|array $key
  9450. * @return bool
  9451. * @static
  9452. */
  9453. public static function filled($key)
  9454. {
  9455. /** @var \Illuminate\Http\Request $instance */
  9456. return $instance->filled($key);
  9457. }
  9458. /**
  9459. * Determine if the request contains a non-empty value for any of the given inputs.
  9460. *
  9461. * @param string|array $keys
  9462. * @return bool
  9463. * @static
  9464. */
  9465. public static function anyFilled($keys)
  9466. {
  9467. /** @var \Illuminate\Http\Request $instance */
  9468. return $instance->anyFilled($keys);
  9469. }
  9470. /**
  9471. * Get the keys for all of the input and files.
  9472. *
  9473. * @return array
  9474. * @static
  9475. */
  9476. public static function keys()
  9477. {
  9478. /** @var \Illuminate\Http\Request $instance */
  9479. return $instance->keys();
  9480. }
  9481. /**
  9482. * Get all of the input and files for the request.
  9483. *
  9484. * @param array|mixed|null $keys
  9485. * @return array
  9486. * @static
  9487. */
  9488. public static function all($keys = null)
  9489. {
  9490. /** @var \Illuminate\Http\Request $instance */
  9491. return $instance->all($keys);
  9492. }
  9493. /**
  9494. * Retrieve an input item from the request.
  9495. *
  9496. * @param string|null $key
  9497. * @param string|array|null $default
  9498. * @return string|array|null
  9499. * @static
  9500. */
  9501. public static function input($key = null, $default = null)
  9502. {
  9503. /** @var \Illuminate\Http\Request $instance */
  9504. return $instance->input($key, $default);
  9505. }
  9506. /**
  9507. * Get a subset containing the provided keys with values from the input data.
  9508. *
  9509. * @param array|mixed $keys
  9510. * @return array
  9511. * @static
  9512. */
  9513. public static function only($keys)
  9514. {
  9515. /** @var \Illuminate\Http\Request $instance */
  9516. return $instance->only($keys);
  9517. }
  9518. /**
  9519. * Get all of the input except for a specified array of items.
  9520. *
  9521. * @param array|mixed $keys
  9522. * @return array
  9523. * @static
  9524. */
  9525. public static function except($keys)
  9526. {
  9527. /** @var \Illuminate\Http\Request $instance */
  9528. return $instance->except($keys);
  9529. }
  9530. /**
  9531. * Retrieve a query string item from the request.
  9532. *
  9533. * @param string|null $key
  9534. * @param string|array|null $default
  9535. * @return string|array|null
  9536. * @static
  9537. */
  9538. public static function query($key = null, $default = null)
  9539. {
  9540. /** @var \Illuminate\Http\Request $instance */
  9541. return $instance->query($key, $default);
  9542. }
  9543. /**
  9544. * Retrieve a request payload item from the request.
  9545. *
  9546. * @param string|null $key
  9547. * @param string|array|null $default
  9548. * @return string|array|null
  9549. * @static
  9550. */
  9551. public static function post($key = null, $default = null)
  9552. {
  9553. /** @var \Illuminate\Http\Request $instance */
  9554. return $instance->post($key, $default);
  9555. }
  9556. /**
  9557. * Determine if a cookie is set on the request.
  9558. *
  9559. * @param string $key
  9560. * @return bool
  9561. * @static
  9562. */
  9563. public static function hasCookie($key)
  9564. {
  9565. /** @var \Illuminate\Http\Request $instance */
  9566. return $instance->hasCookie($key);
  9567. }
  9568. /**
  9569. * Retrieve a cookie from the request.
  9570. *
  9571. * @param string|null $key
  9572. * @param string|array|null $default
  9573. * @return string|array|null
  9574. * @static
  9575. */
  9576. public static function cookie($key = null, $default = null)
  9577. {
  9578. /** @var \Illuminate\Http\Request $instance */
  9579. return $instance->cookie($key, $default);
  9580. }
  9581. /**
  9582. * Get an array of all of the files on the request.
  9583. *
  9584. * @return array
  9585. * @static
  9586. */
  9587. public static function allFiles()
  9588. {
  9589. /** @var \Illuminate\Http\Request $instance */
  9590. return $instance->allFiles();
  9591. }
  9592. /**
  9593. * Determine if the uploaded data contains a file.
  9594. *
  9595. * @param string $key
  9596. * @return bool
  9597. * @static
  9598. */
  9599. public static function hasFile($key)
  9600. {
  9601. /** @var \Illuminate\Http\Request $instance */
  9602. return $instance->hasFile($key);
  9603. }
  9604. /**
  9605. * Retrieve a file from the request.
  9606. *
  9607. * @param string|null $key
  9608. * @param mixed $default
  9609. * @return \Illuminate\Http\UploadedFile|\Illuminate\Http\UploadedFile[]|array|null
  9610. * @static
  9611. */
  9612. public static function file($key = null, $default = null)
  9613. {
  9614. /** @var \Illuminate\Http\Request $instance */
  9615. return $instance->file($key, $default);
  9616. }
  9617. /**
  9618. * Register a custom macro.
  9619. *
  9620. * @param string $name
  9621. * @param object|callable $macro
  9622. * @return void
  9623. * @static
  9624. */
  9625. public static function macro($name, $macro)
  9626. {
  9627. \Illuminate\Http\Request::macro($name, $macro);
  9628. }
  9629. /**
  9630. * Mix another object into the class.
  9631. *
  9632. * @param object $mixin
  9633. * @param bool $replace
  9634. * @return void
  9635. * @throws \ReflectionException
  9636. * @static
  9637. */
  9638. public static function mixin($mixin, $replace = true)
  9639. {
  9640. \Illuminate\Http\Request::mixin($mixin, $replace);
  9641. }
  9642. /**
  9643. * Checks if macro is registered.
  9644. *
  9645. * @param string $name
  9646. * @return bool
  9647. * @static
  9648. */
  9649. public static function hasMacro($name)
  9650. {
  9651. return \Illuminate\Http\Request::hasMacro($name);
  9652. }
  9653. /**
  9654. *
  9655. *
  9656. * @static
  9657. */
  9658. public static function validate($rules, $params = null)
  9659. {
  9660. return \Illuminate\Http\Request::validate($rules, $params);
  9661. }
  9662. /**
  9663. *
  9664. *
  9665. * @static
  9666. */
  9667. public static function hasValidSignature($absolute = true)
  9668. {
  9669. return \Illuminate\Http\Request::hasValidSignature($absolute);
  9670. }
  9671. }
  9672. /**
  9673. *
  9674. *
  9675. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9676. */
  9677. class Response {
  9678. /**
  9679. * Create a new response instance.
  9680. *
  9681. * @param string $content
  9682. * @param int $status
  9683. * @param array $headers
  9684. * @return \Illuminate\Http\Response
  9685. * @static
  9686. */
  9687. public static function make($content = '', $status = 200, $headers = [])
  9688. {
  9689. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9690. return $instance->make($content, $status, $headers);
  9691. }
  9692. /**
  9693. * Create a new "no content" response.
  9694. *
  9695. * @param int $status
  9696. * @param array $headers
  9697. * @return \Illuminate\Http\Response
  9698. * @static
  9699. */
  9700. public static function noContent($status = 204, $headers = [])
  9701. {
  9702. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9703. return $instance->noContent($status, $headers);
  9704. }
  9705. /**
  9706. * Create a new response for a given view.
  9707. *
  9708. * @param string $view
  9709. * @param array $data
  9710. * @param int $status
  9711. * @param array $headers
  9712. * @return \Illuminate\Http\Response
  9713. * @static
  9714. */
  9715. public static function view($view, $data = [], $status = 200, $headers = [])
  9716. {
  9717. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9718. return $instance->view($view, $data, $status, $headers);
  9719. }
  9720. /**
  9721. * Create a new JSON response instance.
  9722. *
  9723. * @param mixed $data
  9724. * @param int $status
  9725. * @param array $headers
  9726. * @param int $options
  9727. * @return \Illuminate\Http\JsonResponse
  9728. * @static
  9729. */
  9730. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  9731. {
  9732. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9733. return $instance->json($data, $status, $headers, $options);
  9734. }
  9735. /**
  9736. * Create a new JSONP response instance.
  9737. *
  9738. * @param string $callback
  9739. * @param mixed $data
  9740. * @param int $status
  9741. * @param array $headers
  9742. * @param int $options
  9743. * @return \Illuminate\Http\JsonResponse
  9744. * @static
  9745. */
  9746. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  9747. {
  9748. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9749. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9750. }
  9751. /**
  9752. * Create a new streamed response instance.
  9753. *
  9754. * @param \Closure $callback
  9755. * @param int $status
  9756. * @param array $headers
  9757. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9758. * @static
  9759. */
  9760. public static function stream($callback, $status = 200, $headers = [])
  9761. {
  9762. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9763. return $instance->stream($callback, $status, $headers);
  9764. }
  9765. /**
  9766. * Create a new streamed response instance as a file download.
  9767. *
  9768. * @param \Closure $callback
  9769. * @param string|null $name
  9770. * @param array $headers
  9771. * @param string|null $disposition
  9772. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9773. * @static
  9774. */
  9775. public static function streamDownload($callback, $name = null, $headers = [], $disposition = 'attachment')
  9776. {
  9777. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9778. return $instance->streamDownload($callback, $name, $headers, $disposition);
  9779. }
  9780. /**
  9781. * Create a new file download response.
  9782. *
  9783. * @param \SplFileInfo|string $file
  9784. * @param string|null $name
  9785. * @param array $headers
  9786. * @param string|null $disposition
  9787. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9788. * @static
  9789. */
  9790. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  9791. {
  9792. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9793. return $instance->download($file, $name, $headers, $disposition);
  9794. }
  9795. /**
  9796. * Return the raw contents of a binary file.
  9797. *
  9798. * @param \SplFileInfo|string $file
  9799. * @param array $headers
  9800. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9801. * @static
  9802. */
  9803. public static function file($file, $headers = [])
  9804. {
  9805. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9806. return $instance->file($file, $headers);
  9807. }
  9808. /**
  9809. * Create a new redirect response to the given path.
  9810. *
  9811. * @param string $path
  9812. * @param int $status
  9813. * @param array $headers
  9814. * @param bool|null $secure
  9815. * @return \Illuminate\Http\RedirectResponse
  9816. * @static
  9817. */
  9818. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  9819. {
  9820. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9821. return $instance->redirectTo($path, $status, $headers, $secure);
  9822. }
  9823. /**
  9824. * Create a new redirect response to a named route.
  9825. *
  9826. * @param string $route
  9827. * @param array $parameters
  9828. * @param int $status
  9829. * @param array $headers
  9830. * @return \Illuminate\Http\RedirectResponse
  9831. * @static
  9832. */
  9833. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  9834. {
  9835. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9836. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9837. }
  9838. /**
  9839. * Create a new redirect response to a controller action.
  9840. *
  9841. * @param string $action
  9842. * @param array $parameters
  9843. * @param int $status
  9844. * @param array $headers
  9845. * @return \Illuminate\Http\RedirectResponse
  9846. * @static
  9847. */
  9848. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  9849. {
  9850. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9851. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9852. }
  9853. /**
  9854. * Create a new redirect response, while putting the current URL in the session.
  9855. *
  9856. * @param string $path
  9857. * @param int $status
  9858. * @param array $headers
  9859. * @param bool|null $secure
  9860. * @return \Illuminate\Http\RedirectResponse
  9861. * @static
  9862. */
  9863. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  9864. {
  9865. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9866. return $instance->redirectGuest($path, $status, $headers, $secure);
  9867. }
  9868. /**
  9869. * Create a new redirect response to the previously intended location.
  9870. *
  9871. * @param string $default
  9872. * @param int $status
  9873. * @param array $headers
  9874. * @param bool|null $secure
  9875. * @return \Illuminate\Http\RedirectResponse
  9876. * @static
  9877. */
  9878. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  9879. {
  9880. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9881. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9882. }
  9883. /**
  9884. * Register a custom macro.
  9885. *
  9886. * @param string $name
  9887. * @param object|callable $macro
  9888. * @return void
  9889. * @static
  9890. */
  9891. public static function macro($name, $macro)
  9892. {
  9893. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9894. }
  9895. /**
  9896. * Mix another object into the class.
  9897. *
  9898. * @param object $mixin
  9899. * @param bool $replace
  9900. * @return void
  9901. * @throws \ReflectionException
  9902. * @static
  9903. */
  9904. public static function mixin($mixin, $replace = true)
  9905. {
  9906. \Illuminate\Routing\ResponseFactory::mixin($mixin, $replace);
  9907. }
  9908. /**
  9909. * Checks if macro is registered.
  9910. *
  9911. * @param string $name
  9912. * @return bool
  9913. * @static
  9914. */
  9915. public static function hasMacro($name)
  9916. {
  9917. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9918. }
  9919. }
  9920. /**
  9921. *
  9922. *
  9923. * @method static \Illuminate\Routing\RouteRegistrar prefix(string $prefix)
  9924. * @method static \Illuminate\Routing\RouteRegistrar where(array $where)
  9925. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9926. * @method static \Illuminate\Routing\RouteRegistrar as(string $value)
  9927. * @method static \Illuminate\Routing\RouteRegistrar domain(string $value)
  9928. * @method static \Illuminate\Routing\RouteRegistrar name(string $value)
  9929. * @method static \Illuminate\Routing\RouteRegistrar namespace(string $value)
  9930. * @see \Illuminate\Routing\Router
  9931. */
  9932. class Route {
  9933. /**
  9934. * Register a new GET route with the router.
  9935. *
  9936. * @param string $uri
  9937. * @param \Closure|array|string|callable|null $action
  9938. * @return \Illuminate\Routing\Route
  9939. * @static
  9940. */
  9941. public static function get($uri, $action = null)
  9942. {
  9943. /** @var \Illuminate\Routing\Router $instance */
  9944. return $instance->get($uri, $action);
  9945. }
  9946. /**
  9947. * Register a new POST route with the router.
  9948. *
  9949. * @param string $uri
  9950. * @param \Closure|array|string|callable|null $action
  9951. * @return \Illuminate\Routing\Route
  9952. * @static
  9953. */
  9954. public static function post($uri, $action = null)
  9955. {
  9956. /** @var \Illuminate\Routing\Router $instance */
  9957. return $instance->post($uri, $action);
  9958. }
  9959. /**
  9960. * Register a new PUT route with the router.
  9961. *
  9962. * @param string $uri
  9963. * @param \Closure|array|string|callable|null $action
  9964. * @return \Illuminate\Routing\Route
  9965. * @static
  9966. */
  9967. public static function put($uri, $action = null)
  9968. {
  9969. /** @var \Illuminate\Routing\Router $instance */
  9970. return $instance->put($uri, $action);
  9971. }
  9972. /**
  9973. * Register a new PATCH route with the router.
  9974. *
  9975. * @param string $uri
  9976. * @param \Closure|array|string|callable|null $action
  9977. * @return \Illuminate\Routing\Route
  9978. * @static
  9979. */
  9980. public static function patch($uri, $action = null)
  9981. {
  9982. /** @var \Illuminate\Routing\Router $instance */
  9983. return $instance->patch($uri, $action);
  9984. }
  9985. /**
  9986. * Register a new DELETE route with the router.
  9987. *
  9988. * @param string $uri
  9989. * @param \Closure|array|string|callable|null $action
  9990. * @return \Illuminate\Routing\Route
  9991. * @static
  9992. */
  9993. public static function delete($uri, $action = null)
  9994. {
  9995. /** @var \Illuminate\Routing\Router $instance */
  9996. return $instance->delete($uri, $action);
  9997. }
  9998. /**
  9999. * Register a new OPTIONS route with the router.
  10000. *
  10001. * @param string $uri
  10002. * @param \Closure|array|string|callable|null $action
  10003. * @return \Illuminate\Routing\Route
  10004. * @static
  10005. */
  10006. public static function options($uri, $action = null)
  10007. {
  10008. /** @var \Illuminate\Routing\Router $instance */
  10009. return $instance->options($uri, $action);
  10010. }
  10011. /**
  10012. * Register a new route responding to all verbs.
  10013. *
  10014. * @param string $uri
  10015. * @param \Closure|array|string|callable|null $action
  10016. * @return \Illuminate\Routing\Route
  10017. * @static
  10018. */
  10019. public static function any($uri, $action = null)
  10020. {
  10021. /** @var \Illuminate\Routing\Router $instance */
  10022. return $instance->any($uri, $action);
  10023. }
  10024. /**
  10025. * Register a new Fallback route with the router.
  10026. *
  10027. * @param \Closure|array|string|callable|null $action
  10028. * @return \Illuminate\Routing\Route
  10029. * @static
  10030. */
  10031. public static function fallback($action)
  10032. {
  10033. /** @var \Illuminate\Routing\Router $instance */
  10034. return $instance->fallback($action);
  10035. }
  10036. /**
  10037. * Create a redirect from one URI to another.
  10038. *
  10039. * @param string $uri
  10040. * @param string $destination
  10041. * @param int $status
  10042. * @return \Illuminate\Routing\Route
  10043. * @static
  10044. */
  10045. public static function redirect($uri, $destination, $status = 302)
  10046. {
  10047. /** @var \Illuminate\Routing\Router $instance */
  10048. return $instance->redirect($uri, $destination, $status);
  10049. }
  10050. /**
  10051. * Create a permanent redirect from one URI to another.
  10052. *
  10053. * @param string $uri
  10054. * @param string $destination
  10055. * @return \Illuminate\Routing\Route
  10056. * @static
  10057. */
  10058. public static function permanentRedirect($uri, $destination)
  10059. {
  10060. /** @var \Illuminate\Routing\Router $instance */
  10061. return $instance->permanentRedirect($uri, $destination);
  10062. }
  10063. /**
  10064. * Register a new route that returns a view.
  10065. *
  10066. * @param string $uri
  10067. * @param string $view
  10068. * @param array $data
  10069. * @return \Illuminate\Routing\Route
  10070. * @static
  10071. */
  10072. public static function view($uri, $view, $data = [])
  10073. {
  10074. /** @var \Illuminate\Routing\Router $instance */
  10075. return $instance->view($uri, $view, $data);
  10076. }
  10077. /**
  10078. * Register a new route with the given verbs.
  10079. *
  10080. * @param array|string $methods
  10081. * @param string $uri
  10082. * @param \Closure|array|string|callable|null $action
  10083. * @return \Illuminate\Routing\Route
  10084. * @static
  10085. */
  10086. public static function match($methods, $uri, $action = null)
  10087. {
  10088. /** @var \Illuminate\Routing\Router $instance */
  10089. return $instance->match($methods, $uri, $action);
  10090. }
  10091. /**
  10092. * Register an array of resource controllers.
  10093. *
  10094. * @param array $resources
  10095. * @param array $options
  10096. * @return void
  10097. * @static
  10098. */
  10099. public static function resources($resources, $options = [])
  10100. {
  10101. /** @var \Illuminate\Routing\Router $instance */
  10102. $instance->resources($resources, $options);
  10103. }
  10104. /**
  10105. * Route a resource to a controller.
  10106. *
  10107. * @param string $name
  10108. * @param string $controller
  10109. * @param array $options
  10110. * @return \Illuminate\Routing\PendingResourceRegistration
  10111. * @static
  10112. */
  10113. public static function resource($name, $controller, $options = [])
  10114. {
  10115. /** @var \Illuminate\Routing\Router $instance */
  10116. return $instance->resource($name, $controller, $options);
  10117. }
  10118. /**
  10119. * Register an array of API resource controllers.
  10120. *
  10121. * @param array $resources
  10122. * @param array $options
  10123. * @return void
  10124. * @static
  10125. */
  10126. public static function apiResources($resources, $options = [])
  10127. {
  10128. /** @var \Illuminate\Routing\Router $instance */
  10129. $instance->apiResources($resources, $options);
  10130. }
  10131. /**
  10132. * Route an API resource to a controller.
  10133. *
  10134. * @param string $name
  10135. * @param string $controller
  10136. * @param array $options
  10137. * @return \Illuminate\Routing\PendingResourceRegistration
  10138. * @static
  10139. */
  10140. public static function apiResource($name, $controller, $options = [])
  10141. {
  10142. /** @var \Illuminate\Routing\Router $instance */
  10143. return $instance->apiResource($name, $controller, $options);
  10144. }
  10145. /**
  10146. * Create a route group with shared attributes.
  10147. *
  10148. * @param array $attributes
  10149. * @param \Closure|string $routes
  10150. * @return void
  10151. * @static
  10152. */
  10153. public static function group($attributes, $routes)
  10154. {
  10155. /** @var \Illuminate\Routing\Router $instance */
  10156. $instance->group($attributes, $routes);
  10157. }
  10158. /**
  10159. * Merge the given array with the last group stack.
  10160. *
  10161. * @param array $new
  10162. * @return array
  10163. * @static
  10164. */
  10165. public static function mergeWithLastGroup($new)
  10166. {
  10167. /** @var \Illuminate\Routing\Router $instance */
  10168. return $instance->mergeWithLastGroup($new);
  10169. }
  10170. /**
  10171. * Get the prefix from the last group on the stack.
  10172. *
  10173. * @return string
  10174. * @static
  10175. */
  10176. public static function getLastGroupPrefix()
  10177. {
  10178. /** @var \Illuminate\Routing\Router $instance */
  10179. return $instance->getLastGroupPrefix();
  10180. }
  10181. /**
  10182. * Add a route to the underlying route collection.
  10183. *
  10184. * @param array|string $methods
  10185. * @param string $uri
  10186. * @param \Closure|array|string|callable|null $action
  10187. * @return \Illuminate\Routing\Route
  10188. * @static
  10189. */
  10190. public static function addRoute($methods, $uri, $action)
  10191. {
  10192. /** @var \Illuminate\Routing\Router $instance */
  10193. return $instance->addRoute($methods, $uri, $action);
  10194. }
  10195. /**
  10196. * Return the response returned by the given route.
  10197. *
  10198. * @param string $name
  10199. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10200. * @static
  10201. */
  10202. public static function respondWithRoute($name)
  10203. {
  10204. /** @var \Illuminate\Routing\Router $instance */
  10205. return $instance->respondWithRoute($name);
  10206. }
  10207. /**
  10208. * Dispatch the request to the application.
  10209. *
  10210. * @param \Illuminate\Http\Request $request
  10211. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10212. * @static
  10213. */
  10214. public static function dispatch($request)
  10215. {
  10216. /** @var \Illuminate\Routing\Router $instance */
  10217. return $instance->dispatch($request);
  10218. }
  10219. /**
  10220. * Dispatch the request to a route and return the response.
  10221. *
  10222. * @param \Illuminate\Http\Request $request
  10223. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10224. * @static
  10225. */
  10226. public static function dispatchToRoute($request)
  10227. {
  10228. /** @var \Illuminate\Routing\Router $instance */
  10229. return $instance->dispatchToRoute($request);
  10230. }
  10231. /**
  10232. * Gather the middleware for the given route with resolved class names.
  10233. *
  10234. * @param \Illuminate\Routing\Route $route
  10235. * @return array
  10236. * @static
  10237. */
  10238. public static function gatherRouteMiddleware($route)
  10239. {
  10240. /** @var \Illuminate\Routing\Router $instance */
  10241. return $instance->gatherRouteMiddleware($route);
  10242. }
  10243. /**
  10244. * Create a response instance from the given value.
  10245. *
  10246. * @param \Symfony\Component\HttpFoundation\Request $request
  10247. * @param mixed $response
  10248. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10249. * @static
  10250. */
  10251. public static function prepareResponse($request, $response)
  10252. {
  10253. /** @var \Illuminate\Routing\Router $instance */
  10254. return $instance->prepareResponse($request, $response);
  10255. }
  10256. /**
  10257. * Static version of prepareResponse.
  10258. *
  10259. * @param \Symfony\Component\HttpFoundation\Request $request
  10260. * @param mixed $response
  10261. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  10262. * @static
  10263. */
  10264. public static function toResponse($request, $response)
  10265. {
  10266. return \Illuminate\Routing\Router::toResponse($request, $response);
  10267. }
  10268. /**
  10269. * Substitute the route bindings onto the route.
  10270. *
  10271. * @param \Illuminate\Routing\Route $route
  10272. * @return \Illuminate\Routing\Route
  10273. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10274. * @static
  10275. */
  10276. public static function substituteBindings($route)
  10277. {
  10278. /** @var \Illuminate\Routing\Router $instance */
  10279. return $instance->substituteBindings($route);
  10280. }
  10281. /**
  10282. * Substitute the implicit Eloquent model bindings for the route.
  10283. *
  10284. * @param \Illuminate\Routing\Route $route
  10285. * @return void
  10286. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  10287. * @static
  10288. */
  10289. public static function substituteImplicitBindings($route)
  10290. {
  10291. /** @var \Illuminate\Routing\Router $instance */
  10292. $instance->substituteImplicitBindings($route);
  10293. }
  10294. /**
  10295. * Register a route matched event listener.
  10296. *
  10297. * @param string|callable $callback
  10298. * @return void
  10299. * @static
  10300. */
  10301. public static function matched($callback)
  10302. {
  10303. /** @var \Illuminate\Routing\Router $instance */
  10304. $instance->matched($callback);
  10305. }
  10306. /**
  10307. * Get all of the defined middleware short-hand names.
  10308. *
  10309. * @return array
  10310. * @static
  10311. */
  10312. public static function getMiddleware()
  10313. {
  10314. /** @var \Illuminate\Routing\Router $instance */
  10315. return $instance->getMiddleware();
  10316. }
  10317. /**
  10318. * Register a short-hand name for a middleware.
  10319. *
  10320. * @param string $name
  10321. * @param string $class
  10322. * @return \Illuminate\Routing\Router
  10323. * @static
  10324. */
  10325. public static function aliasMiddleware($name, $class)
  10326. {
  10327. /** @var \Illuminate\Routing\Router $instance */
  10328. return $instance->aliasMiddleware($name, $class);
  10329. }
  10330. /**
  10331. * Check if a middlewareGroup with the given name exists.
  10332. *
  10333. * @param string $name
  10334. * @return bool
  10335. * @static
  10336. */
  10337. public static function hasMiddlewareGroup($name)
  10338. {
  10339. /** @var \Illuminate\Routing\Router $instance */
  10340. return $instance->hasMiddlewareGroup($name);
  10341. }
  10342. /**
  10343. * Get all of the defined middleware groups.
  10344. *
  10345. * @return array
  10346. * @static
  10347. */
  10348. public static function getMiddlewareGroups()
  10349. {
  10350. /** @var \Illuminate\Routing\Router $instance */
  10351. return $instance->getMiddlewareGroups();
  10352. }
  10353. /**
  10354. * Register a group of middleware.
  10355. *
  10356. * @param string $name
  10357. * @param array $middleware
  10358. * @return \Illuminate\Routing\Router
  10359. * @static
  10360. */
  10361. public static function middlewareGroup($name, $middleware)
  10362. {
  10363. /** @var \Illuminate\Routing\Router $instance */
  10364. return $instance->middlewareGroup($name, $middleware);
  10365. }
  10366. /**
  10367. * Add a middleware to the beginning of a middleware group.
  10368. *
  10369. * If the middleware is already in the group, it will not be added again.
  10370. *
  10371. * @param string $group
  10372. * @param string $middleware
  10373. * @return \Illuminate\Routing\Router
  10374. * @static
  10375. */
  10376. public static function prependMiddlewareToGroup($group, $middleware)
  10377. {
  10378. /** @var \Illuminate\Routing\Router $instance */
  10379. return $instance->prependMiddlewareToGroup($group, $middleware);
  10380. }
  10381. /**
  10382. * Add a middleware to the end of a middleware group.
  10383. *
  10384. * If the middleware is already in the group, it will not be added again.
  10385. *
  10386. * @param string $group
  10387. * @param string $middleware
  10388. * @return \Illuminate\Routing\Router
  10389. * @static
  10390. */
  10391. public static function pushMiddlewareToGroup($group, $middleware)
  10392. {
  10393. /** @var \Illuminate\Routing\Router $instance */
  10394. return $instance->pushMiddlewareToGroup($group, $middleware);
  10395. }
  10396. /**
  10397. * Add a new route parameter binder.
  10398. *
  10399. * @param string $key
  10400. * @param string|callable $binder
  10401. * @return void
  10402. * @static
  10403. */
  10404. public static function bind($key, $binder)
  10405. {
  10406. /** @var \Illuminate\Routing\Router $instance */
  10407. $instance->bind($key, $binder);
  10408. }
  10409. /**
  10410. * Register a model binder for a wildcard.
  10411. *
  10412. * @param string $key
  10413. * @param string $class
  10414. * @param \Closure|null $callback
  10415. * @return void
  10416. * @static
  10417. */
  10418. public static function model($key, $class, $callback = null)
  10419. {
  10420. /** @var \Illuminate\Routing\Router $instance */
  10421. $instance->model($key, $class, $callback);
  10422. }
  10423. /**
  10424. * Get the binding callback for a given binding.
  10425. *
  10426. * @param string $key
  10427. * @return \Closure|null
  10428. * @static
  10429. */
  10430. public static function getBindingCallback($key)
  10431. {
  10432. /** @var \Illuminate\Routing\Router $instance */
  10433. return $instance->getBindingCallback($key);
  10434. }
  10435. /**
  10436. * Get the global "where" patterns.
  10437. *
  10438. * @return array
  10439. * @static
  10440. */
  10441. public static function getPatterns()
  10442. {
  10443. /** @var \Illuminate\Routing\Router $instance */
  10444. return $instance->getPatterns();
  10445. }
  10446. /**
  10447. * Set a global where pattern on all routes.
  10448. *
  10449. * @param string $key
  10450. * @param string $pattern
  10451. * @return void
  10452. * @static
  10453. */
  10454. public static function pattern($key, $pattern)
  10455. {
  10456. /** @var \Illuminate\Routing\Router $instance */
  10457. $instance->pattern($key, $pattern);
  10458. }
  10459. /**
  10460. * Set a group of global where patterns on all routes.
  10461. *
  10462. * @param array $patterns
  10463. * @return void
  10464. * @static
  10465. */
  10466. public static function patterns($patterns)
  10467. {
  10468. /** @var \Illuminate\Routing\Router $instance */
  10469. $instance->patterns($patterns);
  10470. }
  10471. /**
  10472. * Determine if the router currently has a group stack.
  10473. *
  10474. * @return bool
  10475. * @static
  10476. */
  10477. public static function hasGroupStack()
  10478. {
  10479. /** @var \Illuminate\Routing\Router $instance */
  10480. return $instance->hasGroupStack();
  10481. }
  10482. /**
  10483. * Get the current group stack for the router.
  10484. *
  10485. * @return array
  10486. * @static
  10487. */
  10488. public static function getGroupStack()
  10489. {
  10490. /** @var \Illuminate\Routing\Router $instance */
  10491. return $instance->getGroupStack();
  10492. }
  10493. /**
  10494. * Get a route parameter for the current route.
  10495. *
  10496. * @param string $key
  10497. * @param string|null $default
  10498. * @return mixed
  10499. * @static
  10500. */
  10501. public static function input($key, $default = null)
  10502. {
  10503. /** @var \Illuminate\Routing\Router $instance */
  10504. return $instance->input($key, $default);
  10505. }
  10506. /**
  10507. * Get the request currently being dispatched.
  10508. *
  10509. * @return \Illuminate\Http\Request
  10510. * @static
  10511. */
  10512. public static function getCurrentRequest()
  10513. {
  10514. /** @var \Illuminate\Routing\Router $instance */
  10515. return $instance->getCurrentRequest();
  10516. }
  10517. /**
  10518. * Get the currently dispatched route instance.
  10519. *
  10520. * @return \Illuminate\Routing\Route
  10521. * @static
  10522. */
  10523. public static function getCurrentRoute()
  10524. {
  10525. /** @var \Illuminate\Routing\Router $instance */
  10526. return $instance->getCurrentRoute();
  10527. }
  10528. /**
  10529. * Get the currently dispatched route instance.
  10530. *
  10531. * @return \Illuminate\Routing\Route|null
  10532. * @static
  10533. */
  10534. public static function current()
  10535. {
  10536. /** @var \Illuminate\Routing\Router $instance */
  10537. return $instance->current();
  10538. }
  10539. /**
  10540. * Check if a route with the given name exists.
  10541. *
  10542. * @param string $name
  10543. * @return bool
  10544. * @static
  10545. */
  10546. public static function has($name)
  10547. {
  10548. /** @var \Illuminate\Routing\Router $instance */
  10549. return $instance->has($name);
  10550. }
  10551. /**
  10552. * Get the current route name.
  10553. *
  10554. * @return string|null
  10555. * @static
  10556. */
  10557. public static function currentRouteName()
  10558. {
  10559. /** @var \Illuminate\Routing\Router $instance */
  10560. return $instance->currentRouteName();
  10561. }
  10562. /**
  10563. * Alias for the "currentRouteNamed" method.
  10564. *
  10565. * @param mixed $patterns
  10566. * @return bool
  10567. * @static
  10568. */
  10569. public static function is($patterns = null)
  10570. {
  10571. /** @var \Illuminate\Routing\Router $instance */
  10572. return $instance->is($patterns);
  10573. }
  10574. /**
  10575. * Determine if the current route matches a pattern.
  10576. *
  10577. * @param mixed $patterns
  10578. * @return bool
  10579. * @static
  10580. */
  10581. public static function currentRouteNamed($patterns = null)
  10582. {
  10583. /** @var \Illuminate\Routing\Router $instance */
  10584. return $instance->currentRouteNamed($patterns);
  10585. }
  10586. /**
  10587. * Get the current route action.
  10588. *
  10589. * @return string|null
  10590. * @static
  10591. */
  10592. public static function currentRouteAction()
  10593. {
  10594. /** @var \Illuminate\Routing\Router $instance */
  10595. return $instance->currentRouteAction();
  10596. }
  10597. /**
  10598. * Alias for the "currentRouteUses" method.
  10599. *
  10600. * @param array $patterns
  10601. * @return bool
  10602. * @static
  10603. */
  10604. public static function uses($patterns = null)
  10605. {
  10606. /** @var \Illuminate\Routing\Router $instance */
  10607. return $instance->uses($patterns);
  10608. }
  10609. /**
  10610. * Determine if the current route action matches a given action.
  10611. *
  10612. * @param string $action
  10613. * @return bool
  10614. * @static
  10615. */
  10616. public static function currentRouteUses($action)
  10617. {
  10618. /** @var \Illuminate\Routing\Router $instance */
  10619. return $instance->currentRouteUses($action);
  10620. }
  10621. /**
  10622. * Register the typical authentication routes for an application.
  10623. *
  10624. * @param array $options
  10625. * @return void
  10626. * @static
  10627. */
  10628. public static function auth($options = [])
  10629. {
  10630. /** @var \Illuminate\Routing\Router $instance */
  10631. $instance->auth($options);
  10632. }
  10633. /**
  10634. * Register the typical reset password routes for an application.
  10635. *
  10636. * @return void
  10637. * @static
  10638. */
  10639. public static function resetPassword()
  10640. {
  10641. /** @var \Illuminate\Routing\Router $instance */
  10642. $instance->resetPassword();
  10643. }
  10644. /**
  10645. * Register the typical email verification routes for an application.
  10646. *
  10647. * @return void
  10648. * @static
  10649. */
  10650. public static function emailVerification()
  10651. {
  10652. /** @var \Illuminate\Routing\Router $instance */
  10653. $instance->emailVerification();
  10654. }
  10655. /**
  10656. * Set the unmapped global resource parameters to singular.
  10657. *
  10658. * @param bool $singular
  10659. * @return void
  10660. * @static
  10661. */
  10662. public static function singularResourceParameters($singular = true)
  10663. {
  10664. /** @var \Illuminate\Routing\Router $instance */
  10665. $instance->singularResourceParameters($singular);
  10666. }
  10667. /**
  10668. * Set the global resource parameter mapping.
  10669. *
  10670. * @param array $parameters
  10671. * @return void
  10672. * @static
  10673. */
  10674. public static function resourceParameters($parameters = [])
  10675. {
  10676. /** @var \Illuminate\Routing\Router $instance */
  10677. $instance->resourceParameters($parameters);
  10678. }
  10679. /**
  10680. * Get or set the verbs used in the resource URIs.
  10681. *
  10682. * @param array $verbs
  10683. * @return array|null
  10684. * @static
  10685. */
  10686. public static function resourceVerbs($verbs = [])
  10687. {
  10688. /** @var \Illuminate\Routing\Router $instance */
  10689. return $instance->resourceVerbs($verbs);
  10690. }
  10691. /**
  10692. * Get the underlying route collection.
  10693. *
  10694. * @return \Illuminate\Routing\RouteCollection
  10695. * @static
  10696. */
  10697. public static function getRoutes()
  10698. {
  10699. /** @var \Illuminate\Routing\Router $instance */
  10700. return $instance->getRoutes();
  10701. }
  10702. /**
  10703. * Set the route collection instance.
  10704. *
  10705. * @param \Illuminate\Routing\RouteCollection $routes
  10706. * @return void
  10707. * @static
  10708. */
  10709. public static function setRoutes($routes)
  10710. {
  10711. /** @var \Illuminate\Routing\Router $instance */
  10712. $instance->setRoutes($routes);
  10713. }
  10714. /**
  10715. * Register a custom macro.
  10716. *
  10717. * @param string $name
  10718. * @param object|callable $macro
  10719. * @return void
  10720. * @static
  10721. */
  10722. public static function macro($name, $macro)
  10723. {
  10724. \Illuminate\Routing\Router::macro($name, $macro);
  10725. }
  10726. /**
  10727. * Mix another object into the class.
  10728. *
  10729. * @param object $mixin
  10730. * @param bool $replace
  10731. * @return void
  10732. * @throws \ReflectionException
  10733. * @static
  10734. */
  10735. public static function mixin($mixin, $replace = true)
  10736. {
  10737. \Illuminate\Routing\Router::mixin($mixin, $replace);
  10738. }
  10739. /**
  10740. * Checks if macro is registered.
  10741. *
  10742. * @param string $name
  10743. * @return bool
  10744. * @static
  10745. */
  10746. public static function hasMacro($name)
  10747. {
  10748. return \Illuminate\Routing\Router::hasMacro($name);
  10749. }
  10750. /**
  10751. * Dynamically handle calls to the class.
  10752. *
  10753. * @param string $method
  10754. * @param array $parameters
  10755. * @return mixed
  10756. * @throws \BadMethodCallException
  10757. * @static
  10758. */
  10759. public static function macroCall($method, $parameters)
  10760. {
  10761. /** @var \Illuminate\Routing\Router $instance */
  10762. return $instance->macroCall($method, $parameters);
  10763. }
  10764. }
  10765. /**
  10766. *
  10767. *
  10768. * @see \Illuminate\Database\Schema\Builder
  10769. */
  10770. class Schema {
  10771. /**
  10772. * Determine if the given table exists.
  10773. *
  10774. * @param string $table
  10775. * @return bool
  10776. * @static
  10777. */
  10778. public static function hasTable($table)
  10779. {
  10780. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10781. return $instance->hasTable($table);
  10782. }
  10783. /**
  10784. * Get the column listing for a given table.
  10785. *
  10786. * @param string $table
  10787. * @return array
  10788. * @static
  10789. */
  10790. public static function getColumnListing($table)
  10791. {
  10792. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10793. return $instance->getColumnListing($table);
  10794. }
  10795. /**
  10796. * Drop all tables from the database.
  10797. *
  10798. * @return void
  10799. * @static
  10800. */
  10801. public static function dropAllTables()
  10802. {
  10803. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10804. $instance->dropAllTables();
  10805. }
  10806. /**
  10807. * Drop all views from the database.
  10808. *
  10809. * @return void
  10810. * @static
  10811. */
  10812. public static function dropAllViews()
  10813. {
  10814. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10815. $instance->dropAllViews();
  10816. }
  10817. /**
  10818. * Set the default string length for migrations.
  10819. *
  10820. * @param int $length
  10821. * @return void
  10822. * @static
  10823. */
  10824. public static function defaultStringLength($length)
  10825. {
  10826. //Method inherited from \Illuminate\Database\Schema\Builder
  10827. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10828. }
  10829. /**
  10830. * Determine if the given table has a given column.
  10831. *
  10832. * @param string $table
  10833. * @param string $column
  10834. * @return bool
  10835. * @static
  10836. */
  10837. public static function hasColumn($table, $column)
  10838. {
  10839. //Method inherited from \Illuminate\Database\Schema\Builder
  10840. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10841. return $instance->hasColumn($table, $column);
  10842. }
  10843. /**
  10844. * Determine if the given table has given columns.
  10845. *
  10846. * @param string $table
  10847. * @param array $columns
  10848. * @return bool
  10849. * @static
  10850. */
  10851. public static function hasColumns($table, $columns)
  10852. {
  10853. //Method inherited from \Illuminate\Database\Schema\Builder
  10854. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10855. return $instance->hasColumns($table, $columns);
  10856. }
  10857. /**
  10858. * Get the data type for the given column name.
  10859. *
  10860. * @param string $table
  10861. * @param string $column
  10862. * @return string
  10863. * @static
  10864. */
  10865. public static function getColumnType($table, $column)
  10866. {
  10867. //Method inherited from \Illuminate\Database\Schema\Builder
  10868. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10869. return $instance->getColumnType($table, $column);
  10870. }
  10871. /**
  10872. * Modify a table on the schema.
  10873. *
  10874. * @param string $table
  10875. * @param \Closure $callback
  10876. * @return void
  10877. * @static
  10878. */
  10879. public static function table($table, $callback)
  10880. {
  10881. //Method inherited from \Illuminate\Database\Schema\Builder
  10882. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10883. $instance->table($table, $callback);
  10884. }
  10885. /**
  10886. * Create a new table on the schema.
  10887. *
  10888. * @param string $table
  10889. * @param \Closure $callback
  10890. * @return void
  10891. * @static
  10892. */
  10893. public static function create($table, $callback)
  10894. {
  10895. //Method inherited from \Illuminate\Database\Schema\Builder
  10896. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10897. $instance->create($table, $callback);
  10898. }
  10899. /**
  10900. * Drop a table from the schema.
  10901. *
  10902. * @param string $table
  10903. * @return void
  10904. * @static
  10905. */
  10906. public static function drop($table)
  10907. {
  10908. //Method inherited from \Illuminate\Database\Schema\Builder
  10909. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10910. $instance->drop($table);
  10911. }
  10912. /**
  10913. * Drop a table from the schema if it exists.
  10914. *
  10915. * @param string $table
  10916. * @return void
  10917. * @static
  10918. */
  10919. public static function dropIfExists($table)
  10920. {
  10921. //Method inherited from \Illuminate\Database\Schema\Builder
  10922. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10923. $instance->dropIfExists($table);
  10924. }
  10925. /**
  10926. * Drop all types from the database.
  10927. *
  10928. * @return void
  10929. * @throws \LogicException
  10930. * @static
  10931. */
  10932. public static function dropAllTypes()
  10933. {
  10934. //Method inherited from \Illuminate\Database\Schema\Builder
  10935. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10936. $instance->dropAllTypes();
  10937. }
  10938. /**
  10939. * Rename a table on the schema.
  10940. *
  10941. * @param string $from
  10942. * @param string $to
  10943. * @return void
  10944. * @static
  10945. */
  10946. public static function rename($from, $to)
  10947. {
  10948. //Method inherited from \Illuminate\Database\Schema\Builder
  10949. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10950. $instance->rename($from, $to);
  10951. }
  10952. /**
  10953. * Enable foreign key constraints.
  10954. *
  10955. * @return bool
  10956. * @static
  10957. */
  10958. public static function enableForeignKeyConstraints()
  10959. {
  10960. //Method inherited from \Illuminate\Database\Schema\Builder
  10961. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10962. return $instance->enableForeignKeyConstraints();
  10963. }
  10964. /**
  10965. * Disable foreign key constraints.
  10966. *
  10967. * @return bool
  10968. * @static
  10969. */
  10970. public static function disableForeignKeyConstraints()
  10971. {
  10972. //Method inherited from \Illuminate\Database\Schema\Builder
  10973. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10974. return $instance->disableForeignKeyConstraints();
  10975. }
  10976. /**
  10977. * Register a custom Doctrine mapping type.
  10978. *
  10979. * @param string $class
  10980. * @param string $name
  10981. * @param string $type
  10982. * @return void
  10983. * @throws \Doctrine\DBAL\DBALException
  10984. * @static
  10985. */
  10986. public static function registerCustomDoctrineType($class, $name, $type)
  10987. {
  10988. //Method inherited from \Illuminate\Database\Schema\Builder
  10989. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10990. $instance->registerCustomDoctrineType($class, $name, $type);
  10991. }
  10992. /**
  10993. * Get the database connection instance.
  10994. *
  10995. * @return \Illuminate\Database\Connection
  10996. * @static
  10997. */
  10998. public static function getConnection()
  10999. {
  11000. //Method inherited from \Illuminate\Database\Schema\Builder
  11001. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11002. return $instance->getConnection();
  11003. }
  11004. /**
  11005. * Set the database connection instance.
  11006. *
  11007. * @param \Illuminate\Database\Connection $connection
  11008. * @return \Illuminate\Database\Schema\MySqlBuilder
  11009. * @static
  11010. */
  11011. public static function setConnection($connection)
  11012. {
  11013. //Method inherited from \Illuminate\Database\Schema\Builder
  11014. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11015. return $instance->setConnection($connection);
  11016. }
  11017. /**
  11018. * Set the Schema Blueprint resolver callback.
  11019. *
  11020. * @param \Closure $resolver
  11021. * @return void
  11022. * @static
  11023. */
  11024. public static function blueprintResolver($resolver)
  11025. {
  11026. //Method inherited from \Illuminate\Database\Schema\Builder
  11027. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  11028. $instance->blueprintResolver($resolver);
  11029. }
  11030. }
  11031. /**
  11032. *
  11033. *
  11034. * @see \Illuminate\Session\SessionManager
  11035. * @see \Illuminate\Session\Store
  11036. */
  11037. class Session {
  11038. /**
  11039. * Get the session configuration.
  11040. *
  11041. * @return array
  11042. * @static
  11043. */
  11044. public static function getSessionConfig()
  11045. {
  11046. /** @var \Illuminate\Session\SessionManager $instance */
  11047. return $instance->getSessionConfig();
  11048. }
  11049. /**
  11050. * Get the default session driver name.
  11051. *
  11052. * @return string
  11053. * @static
  11054. */
  11055. public static function getDefaultDriver()
  11056. {
  11057. /** @var \Illuminate\Session\SessionManager $instance */
  11058. return $instance->getDefaultDriver();
  11059. }
  11060. /**
  11061. * Set the default session driver name.
  11062. *
  11063. * @param string $name
  11064. * @return void
  11065. * @static
  11066. */
  11067. public static function setDefaultDriver($name)
  11068. {
  11069. /** @var \Illuminate\Session\SessionManager $instance */
  11070. $instance->setDefaultDriver($name);
  11071. }
  11072. /**
  11073. * Get a driver instance.
  11074. *
  11075. * @param string $driver
  11076. * @return mixed
  11077. * @throws \InvalidArgumentException
  11078. * @static
  11079. */
  11080. public static function driver($driver = null)
  11081. {
  11082. //Method inherited from \Illuminate\Support\Manager
  11083. /** @var \Illuminate\Session\SessionManager $instance */
  11084. return $instance->driver($driver);
  11085. }
  11086. /**
  11087. * Register a custom driver creator Closure.
  11088. *
  11089. * @param string $driver
  11090. * @param \Closure $callback
  11091. * @return \Illuminate\Session\SessionManager
  11092. * @static
  11093. */
  11094. public static function extend($driver, $callback)
  11095. {
  11096. //Method inherited from \Illuminate\Support\Manager
  11097. /** @var \Illuminate\Session\SessionManager $instance */
  11098. return $instance->extend($driver, $callback);
  11099. }
  11100. /**
  11101. * Get all of the created "drivers".
  11102. *
  11103. * @return array
  11104. * @static
  11105. */
  11106. public static function getDrivers()
  11107. {
  11108. //Method inherited from \Illuminate\Support\Manager
  11109. /** @var \Illuminate\Session\SessionManager $instance */
  11110. return $instance->getDrivers();
  11111. }
  11112. /**
  11113. * Start the session, reading the data from a handler.
  11114. *
  11115. * @return bool
  11116. * @static
  11117. */
  11118. public static function start()
  11119. {
  11120. /** @var \Illuminate\Session\Store $instance */
  11121. return $instance->start();
  11122. }
  11123. /**
  11124. * Save the session data to storage.
  11125. *
  11126. * @return void
  11127. * @static
  11128. */
  11129. public static function save()
  11130. {
  11131. /** @var \Illuminate\Session\Store $instance */
  11132. $instance->save();
  11133. }
  11134. /**
  11135. * Age the flash data for the session.
  11136. *
  11137. * @return void
  11138. * @static
  11139. */
  11140. public static function ageFlashData()
  11141. {
  11142. /** @var \Illuminate\Session\Store $instance */
  11143. $instance->ageFlashData();
  11144. }
  11145. /**
  11146. * Get all of the session data.
  11147. *
  11148. * @return array
  11149. * @static
  11150. */
  11151. public static function all()
  11152. {
  11153. /** @var \Illuminate\Session\Store $instance */
  11154. return $instance->all();
  11155. }
  11156. /**
  11157. * Get a subset of the session data.
  11158. *
  11159. * @param array $keys
  11160. * @return array
  11161. * @static
  11162. */
  11163. public static function only($keys)
  11164. {
  11165. /** @var \Illuminate\Session\Store $instance */
  11166. return $instance->only($keys);
  11167. }
  11168. /**
  11169. * Checks if a key exists.
  11170. *
  11171. * @param string|array $key
  11172. * @return bool
  11173. * @static
  11174. */
  11175. public static function exists($key)
  11176. {
  11177. /** @var \Illuminate\Session\Store $instance */
  11178. return $instance->exists($key);
  11179. }
  11180. /**
  11181. * Checks if a key is present and not null.
  11182. *
  11183. * @param string|array $key
  11184. * @return bool
  11185. * @static
  11186. */
  11187. public static function has($key)
  11188. {
  11189. /** @var \Illuminate\Session\Store $instance */
  11190. return $instance->has($key);
  11191. }
  11192. /**
  11193. * Get an item from the session.
  11194. *
  11195. * @param string $key
  11196. * @param mixed $default
  11197. * @return mixed
  11198. * @static
  11199. */
  11200. public static function get($key, $default = null)
  11201. {
  11202. /** @var \Illuminate\Session\Store $instance */
  11203. return $instance->get($key, $default);
  11204. }
  11205. /**
  11206. * Get the value of a given key and then forget it.
  11207. *
  11208. * @param string $key
  11209. * @param string|null $default
  11210. * @return mixed
  11211. * @static
  11212. */
  11213. public static function pull($key, $default = null)
  11214. {
  11215. /** @var \Illuminate\Session\Store $instance */
  11216. return $instance->pull($key, $default);
  11217. }
  11218. /**
  11219. * Determine if the session contains old input.
  11220. *
  11221. * @param string|null $key
  11222. * @return bool
  11223. * @static
  11224. */
  11225. public static function hasOldInput($key = null)
  11226. {
  11227. /** @var \Illuminate\Session\Store $instance */
  11228. return $instance->hasOldInput($key);
  11229. }
  11230. /**
  11231. * Get the requested item from the flashed input array.
  11232. *
  11233. * @param string|null $key
  11234. * @param mixed $default
  11235. * @return mixed
  11236. * @static
  11237. */
  11238. public static function getOldInput($key = null, $default = null)
  11239. {
  11240. /** @var \Illuminate\Session\Store $instance */
  11241. return $instance->getOldInput($key, $default);
  11242. }
  11243. /**
  11244. * Replace the given session attributes entirely.
  11245. *
  11246. * @param array $attributes
  11247. * @return void
  11248. * @static
  11249. */
  11250. public static function replace($attributes)
  11251. {
  11252. /** @var \Illuminate\Session\Store $instance */
  11253. $instance->replace($attributes);
  11254. }
  11255. /**
  11256. * Put a key / value pair or array of key / value pairs in the session.
  11257. *
  11258. * @param string|array $key
  11259. * @param mixed $value
  11260. * @return void
  11261. * @static
  11262. */
  11263. public static function put($key, $value = null)
  11264. {
  11265. /** @var \Illuminate\Session\Store $instance */
  11266. $instance->put($key, $value);
  11267. }
  11268. /**
  11269. * Get an item from the session, or store the default value.
  11270. *
  11271. * @param string $key
  11272. * @param \Closure $callback
  11273. * @return mixed
  11274. * @static
  11275. */
  11276. public static function remember($key, $callback)
  11277. {
  11278. /** @var \Illuminate\Session\Store $instance */
  11279. return $instance->remember($key, $callback);
  11280. }
  11281. /**
  11282. * Push a value onto a session array.
  11283. *
  11284. * @param string $key
  11285. * @param mixed $value
  11286. * @return void
  11287. * @static
  11288. */
  11289. public static function push($key, $value)
  11290. {
  11291. /** @var \Illuminate\Session\Store $instance */
  11292. $instance->push($key, $value);
  11293. }
  11294. /**
  11295. * Increment the value of an item in the session.
  11296. *
  11297. * @param string $key
  11298. * @param int $amount
  11299. * @return mixed
  11300. * @static
  11301. */
  11302. public static function increment($key, $amount = 1)
  11303. {
  11304. /** @var \Illuminate\Session\Store $instance */
  11305. return $instance->increment($key, $amount);
  11306. }
  11307. /**
  11308. * Decrement the value of an item in the session.
  11309. *
  11310. * @param string $key
  11311. * @param int $amount
  11312. * @return int
  11313. * @static
  11314. */
  11315. public static function decrement($key, $amount = 1)
  11316. {
  11317. /** @var \Illuminate\Session\Store $instance */
  11318. return $instance->decrement($key, $amount);
  11319. }
  11320. /**
  11321. * Flash a key / value pair to the session.
  11322. *
  11323. * @param string $key
  11324. * @param mixed $value
  11325. * @return void
  11326. * @static
  11327. */
  11328. public static function flash($key, $value = true)
  11329. {
  11330. /** @var \Illuminate\Session\Store $instance */
  11331. $instance->flash($key, $value);
  11332. }
  11333. /**
  11334. * Flash a key / value pair to the session for immediate use.
  11335. *
  11336. * @param string $key
  11337. * @param mixed $value
  11338. * @return void
  11339. * @static
  11340. */
  11341. public static function now($key, $value)
  11342. {
  11343. /** @var \Illuminate\Session\Store $instance */
  11344. $instance->now($key, $value);
  11345. }
  11346. /**
  11347. * Reflash all of the session flash data.
  11348. *
  11349. * @return void
  11350. * @static
  11351. */
  11352. public static function reflash()
  11353. {
  11354. /** @var \Illuminate\Session\Store $instance */
  11355. $instance->reflash();
  11356. }
  11357. /**
  11358. * Reflash a subset of the current flash data.
  11359. *
  11360. * @param array|mixed $keys
  11361. * @return void
  11362. * @static
  11363. */
  11364. public static function keep($keys = null)
  11365. {
  11366. /** @var \Illuminate\Session\Store $instance */
  11367. $instance->keep($keys);
  11368. }
  11369. /**
  11370. * Flash an input array to the session.
  11371. *
  11372. * @param array $value
  11373. * @return void
  11374. * @static
  11375. */
  11376. public static function flashInput($value)
  11377. {
  11378. /** @var \Illuminate\Session\Store $instance */
  11379. $instance->flashInput($value);
  11380. }
  11381. /**
  11382. * Remove an item from the session, returning its value.
  11383. *
  11384. * @param string $key
  11385. * @return mixed
  11386. * @static
  11387. */
  11388. public static function remove($key)
  11389. {
  11390. /** @var \Illuminate\Session\Store $instance */
  11391. return $instance->remove($key);
  11392. }
  11393. /**
  11394. * Remove one or many items from the session.
  11395. *
  11396. * @param string|array $keys
  11397. * @return void
  11398. * @static
  11399. */
  11400. public static function forget($keys)
  11401. {
  11402. /** @var \Illuminate\Session\Store $instance */
  11403. $instance->forget($keys);
  11404. }
  11405. /**
  11406. * Remove all of the items from the session.
  11407. *
  11408. * @return void
  11409. * @static
  11410. */
  11411. public static function flush()
  11412. {
  11413. /** @var \Illuminate\Session\Store $instance */
  11414. $instance->flush();
  11415. }
  11416. /**
  11417. * Flush the session data and regenerate the ID.
  11418. *
  11419. * @return bool
  11420. * @static
  11421. */
  11422. public static function invalidate()
  11423. {
  11424. /** @var \Illuminate\Session\Store $instance */
  11425. return $instance->invalidate();
  11426. }
  11427. /**
  11428. * Generate a new session identifier.
  11429. *
  11430. * @param bool $destroy
  11431. * @return bool
  11432. * @static
  11433. */
  11434. public static function regenerate($destroy = false)
  11435. {
  11436. /** @var \Illuminate\Session\Store $instance */
  11437. return $instance->regenerate($destroy);
  11438. }
  11439. /**
  11440. * Generate a new session ID for the session.
  11441. *
  11442. * @param bool $destroy
  11443. * @return bool
  11444. * @static
  11445. */
  11446. public static function migrate($destroy = false)
  11447. {
  11448. /** @var \Illuminate\Session\Store $instance */
  11449. return $instance->migrate($destroy);
  11450. }
  11451. /**
  11452. * Determine if the session has been started.
  11453. *
  11454. * @return bool
  11455. * @static
  11456. */
  11457. public static function isStarted()
  11458. {
  11459. /** @var \Illuminate\Session\Store $instance */
  11460. return $instance->isStarted();
  11461. }
  11462. /**
  11463. * Get the name of the session.
  11464. *
  11465. * @return string
  11466. * @static
  11467. */
  11468. public static function getName()
  11469. {
  11470. /** @var \Illuminate\Session\Store $instance */
  11471. return $instance->getName();
  11472. }
  11473. /**
  11474. * Set the name of the session.
  11475. *
  11476. * @param string $name
  11477. * @return void
  11478. * @static
  11479. */
  11480. public static function setName($name)
  11481. {
  11482. /** @var \Illuminate\Session\Store $instance */
  11483. $instance->setName($name);
  11484. }
  11485. /**
  11486. * Get the current session ID.
  11487. *
  11488. * @return string
  11489. * @static
  11490. */
  11491. public static function getId()
  11492. {
  11493. /** @var \Illuminate\Session\Store $instance */
  11494. return $instance->getId();
  11495. }
  11496. /**
  11497. * Set the session ID.
  11498. *
  11499. * @param string $id
  11500. * @return void
  11501. * @static
  11502. */
  11503. public static function setId($id)
  11504. {
  11505. /** @var \Illuminate\Session\Store $instance */
  11506. $instance->setId($id);
  11507. }
  11508. /**
  11509. * Determine if this is a valid session ID.
  11510. *
  11511. * @param string $id
  11512. * @return bool
  11513. * @static
  11514. */
  11515. public static function isValidId($id)
  11516. {
  11517. /** @var \Illuminate\Session\Store $instance */
  11518. return $instance->isValidId($id);
  11519. }
  11520. /**
  11521. * Set the existence of the session on the handler if applicable.
  11522. *
  11523. * @param bool $value
  11524. * @return void
  11525. * @static
  11526. */
  11527. public static function setExists($value)
  11528. {
  11529. /** @var \Illuminate\Session\Store $instance */
  11530. $instance->setExists($value);
  11531. }
  11532. /**
  11533. * Get the CSRF token value.
  11534. *
  11535. * @return string
  11536. * @static
  11537. */
  11538. public static function token()
  11539. {
  11540. /** @var \Illuminate\Session\Store $instance */
  11541. return $instance->token();
  11542. }
  11543. /**
  11544. * Regenerate the CSRF token value.
  11545. *
  11546. * @return void
  11547. * @static
  11548. */
  11549. public static function regenerateToken()
  11550. {
  11551. /** @var \Illuminate\Session\Store $instance */
  11552. $instance->regenerateToken();
  11553. }
  11554. /**
  11555. * Get the previous URL from the session.
  11556. *
  11557. * @return string|null
  11558. * @static
  11559. */
  11560. public static function previousUrl()
  11561. {
  11562. /** @var \Illuminate\Session\Store $instance */
  11563. return $instance->previousUrl();
  11564. }
  11565. /**
  11566. * Set the "previous" URL in the session.
  11567. *
  11568. * @param string $url
  11569. * @return void
  11570. * @static
  11571. */
  11572. public static function setPreviousUrl($url)
  11573. {
  11574. /** @var \Illuminate\Session\Store $instance */
  11575. $instance->setPreviousUrl($url);
  11576. }
  11577. /**
  11578. * Get the underlying session handler implementation.
  11579. *
  11580. * @return \SessionHandlerInterface
  11581. * @static
  11582. */
  11583. public static function getHandler()
  11584. {
  11585. /** @var \Illuminate\Session\Store $instance */
  11586. return $instance->getHandler();
  11587. }
  11588. /**
  11589. * Determine if the session handler needs a request.
  11590. *
  11591. * @return bool
  11592. * @static
  11593. */
  11594. public static function handlerNeedsRequest()
  11595. {
  11596. /** @var \Illuminate\Session\Store $instance */
  11597. return $instance->handlerNeedsRequest();
  11598. }
  11599. /**
  11600. * Set the request on the handler instance.
  11601. *
  11602. * @param \Illuminate\Http\Request $request
  11603. * @return void
  11604. * @static
  11605. */
  11606. public static function setRequestOnHandler($request)
  11607. {
  11608. /** @var \Illuminate\Session\Store $instance */
  11609. $instance->setRequestOnHandler($request);
  11610. }
  11611. }
  11612. /**
  11613. *
  11614. *
  11615. * @see \Illuminate\Filesystem\FilesystemManager
  11616. */
  11617. class Storage {
  11618. /**
  11619. * Get a filesystem instance.
  11620. *
  11621. * @param string|null $name
  11622. * @return \Illuminate\Filesystem\FilesystemAdapter
  11623. * @static
  11624. */
  11625. public static function drive($name = null)
  11626. {
  11627. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11628. return $instance->drive($name);
  11629. }
  11630. /**
  11631. * Get a filesystem instance.
  11632. *
  11633. * @param string|null $name
  11634. * @return \Illuminate\Filesystem\FilesystemAdapter
  11635. * @static
  11636. */
  11637. public static function disk($name = null)
  11638. {
  11639. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11640. return $instance->disk($name);
  11641. }
  11642. /**
  11643. * Get a default cloud filesystem instance.
  11644. *
  11645. * @return \Illuminate\Filesystem\FilesystemAdapter
  11646. * @static
  11647. */
  11648. public static function cloud()
  11649. {
  11650. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11651. return $instance->cloud();
  11652. }
  11653. /**
  11654. * Create an instance of the local driver.
  11655. *
  11656. * @param array $config
  11657. * @return \Illuminate\Filesystem\FilesystemAdapter
  11658. * @static
  11659. */
  11660. public static function createLocalDriver($config)
  11661. {
  11662. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11663. return $instance->createLocalDriver($config);
  11664. }
  11665. /**
  11666. * Create an instance of the ftp driver.
  11667. *
  11668. * @param array $config
  11669. * @return \Illuminate\Filesystem\FilesystemAdapter
  11670. * @static
  11671. */
  11672. public static function createFtpDriver($config)
  11673. {
  11674. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11675. return $instance->createFtpDriver($config);
  11676. }
  11677. /**
  11678. * Create an instance of the sftp driver.
  11679. *
  11680. * @param array $config
  11681. * @return \Illuminate\Filesystem\FilesystemAdapter
  11682. * @static
  11683. */
  11684. public static function createSftpDriver($config)
  11685. {
  11686. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11687. return $instance->createSftpDriver($config);
  11688. }
  11689. /**
  11690. * Create an instance of the Amazon S3 driver.
  11691. *
  11692. * @param array $config
  11693. * @return \Illuminate\Contracts\Filesystem\Cloud
  11694. * @static
  11695. */
  11696. public static function createS3Driver($config)
  11697. {
  11698. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11699. return $instance->createS3Driver($config);
  11700. }
  11701. /**
  11702. * Create an instance of the Rackspace driver.
  11703. *
  11704. * @param array $config
  11705. * @return \Illuminate\Contracts\Filesystem\Cloud
  11706. * @static
  11707. */
  11708. public static function createRackspaceDriver($config)
  11709. {
  11710. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11711. return $instance->createRackspaceDriver($config);
  11712. }
  11713. /**
  11714. * Set the given disk instance.
  11715. *
  11716. * @param string $name
  11717. * @param mixed $disk
  11718. * @return \Illuminate\Filesystem\FilesystemManager
  11719. * @static
  11720. */
  11721. public static function set($name, $disk)
  11722. {
  11723. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11724. return $instance->set($name, $disk);
  11725. }
  11726. /**
  11727. * Get the default driver name.
  11728. *
  11729. * @return string
  11730. * @static
  11731. */
  11732. public static function getDefaultDriver()
  11733. {
  11734. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11735. return $instance->getDefaultDriver();
  11736. }
  11737. /**
  11738. * Get the default cloud driver name.
  11739. *
  11740. * @return string
  11741. * @static
  11742. */
  11743. public static function getDefaultCloudDriver()
  11744. {
  11745. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11746. return $instance->getDefaultCloudDriver();
  11747. }
  11748. /**
  11749. * Unset the given disk instances.
  11750. *
  11751. * @param array|string $disk
  11752. * @return \Illuminate\Filesystem\FilesystemManager
  11753. * @static
  11754. */
  11755. public static function forgetDisk($disk)
  11756. {
  11757. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11758. return $instance->forgetDisk($disk);
  11759. }
  11760. /**
  11761. * Register a custom driver creator Closure.
  11762. *
  11763. * @param string $driver
  11764. * @param \Closure $callback
  11765. * @return \Illuminate\Filesystem\FilesystemManager
  11766. * @static
  11767. */
  11768. public static function extend($driver, $callback)
  11769. {
  11770. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11771. return $instance->extend($driver, $callback);
  11772. }
  11773. /**
  11774. * Assert that the given file exists.
  11775. *
  11776. * @param string|array $path
  11777. * @return \Illuminate\Filesystem\FilesystemAdapter
  11778. * @static
  11779. */
  11780. public static function assertExists($path)
  11781. {
  11782. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11783. return $instance->assertExists($path);
  11784. }
  11785. /**
  11786. * Assert that the given file does not exist.
  11787. *
  11788. * @param string|array $path
  11789. * @return \Illuminate\Filesystem\FilesystemAdapter
  11790. * @static
  11791. */
  11792. public static function assertMissing($path)
  11793. {
  11794. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11795. return $instance->assertMissing($path);
  11796. }
  11797. /**
  11798. * Determine if a file exists.
  11799. *
  11800. * @param string $path
  11801. * @return bool
  11802. * @static
  11803. */
  11804. public static function exists($path)
  11805. {
  11806. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11807. return $instance->exists($path);
  11808. }
  11809. /**
  11810. * Get the full path for the file at the given "short" path.
  11811. *
  11812. * @param string $path
  11813. * @return string
  11814. * @static
  11815. */
  11816. public static function path($path)
  11817. {
  11818. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11819. return $instance->path($path);
  11820. }
  11821. /**
  11822. * Get the contents of a file.
  11823. *
  11824. * @param string $path
  11825. * @return string
  11826. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11827. * @static
  11828. */
  11829. public static function get($path)
  11830. {
  11831. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11832. return $instance->get($path);
  11833. }
  11834. /**
  11835. * Create a streamed response for a given file.
  11836. *
  11837. * @param string $path
  11838. * @param string|null $name
  11839. * @param array|null $headers
  11840. * @param string|null $disposition
  11841. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11842. * @static
  11843. */
  11844. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  11845. {
  11846. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11847. return $instance->response($path, $name, $headers, $disposition);
  11848. }
  11849. /**
  11850. * Create a streamed download response for a given file.
  11851. *
  11852. * @param string $path
  11853. * @param string|null $name
  11854. * @param array|null $headers
  11855. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11856. * @static
  11857. */
  11858. public static function download($path, $name = null, $headers = [])
  11859. {
  11860. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11861. return $instance->download($path, $name, $headers);
  11862. }
  11863. /**
  11864. * Write the contents of a file.
  11865. *
  11866. * @param string $path
  11867. * @param string|resource $contents
  11868. * @param mixed $options
  11869. * @return bool
  11870. * @static
  11871. */
  11872. public static function put($path, $contents, $options = [])
  11873. {
  11874. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11875. return $instance->put($path, $contents, $options);
  11876. }
  11877. /**
  11878. * Store the uploaded file on the disk.
  11879. *
  11880. * @param string $path
  11881. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11882. * @param array $options
  11883. * @return string|false
  11884. * @static
  11885. */
  11886. public static function putFile($path, $file, $options = [])
  11887. {
  11888. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11889. return $instance->putFile($path, $file, $options);
  11890. }
  11891. /**
  11892. * Store the uploaded file on the disk with a given name.
  11893. *
  11894. * @param string $path
  11895. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11896. * @param string $name
  11897. * @param array $options
  11898. * @return string|false
  11899. * @static
  11900. */
  11901. public static function putFileAs($path, $file, $name, $options = [])
  11902. {
  11903. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11904. return $instance->putFileAs($path, $file, $name, $options);
  11905. }
  11906. /**
  11907. * Get the visibility for the given path.
  11908. *
  11909. * @param string $path
  11910. * @return string
  11911. * @static
  11912. */
  11913. public static function getVisibility($path)
  11914. {
  11915. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11916. return $instance->getVisibility($path);
  11917. }
  11918. /**
  11919. * Set the visibility for the given path.
  11920. *
  11921. * @param string $path
  11922. * @param string $visibility
  11923. * @return bool
  11924. * @static
  11925. */
  11926. public static function setVisibility($path, $visibility)
  11927. {
  11928. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11929. return $instance->setVisibility($path, $visibility);
  11930. }
  11931. /**
  11932. * Prepend to a file.
  11933. *
  11934. * @param string $path
  11935. * @param string $data
  11936. * @param string $separator
  11937. * @return bool
  11938. * @static
  11939. */
  11940. public static function prepend($path, $data, $separator = '')
  11941. {
  11942. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11943. return $instance->prepend($path, $data, $separator);
  11944. }
  11945. /**
  11946. * Append to a file.
  11947. *
  11948. * @param string $path
  11949. * @param string $data
  11950. * @param string $separator
  11951. * @return bool
  11952. * @static
  11953. */
  11954. public static function append($path, $data, $separator = '')
  11955. {
  11956. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11957. return $instance->append($path, $data, $separator);
  11958. }
  11959. /**
  11960. * Delete the file at a given path.
  11961. *
  11962. * @param string|array $paths
  11963. * @return bool
  11964. * @static
  11965. */
  11966. public static function delete($paths)
  11967. {
  11968. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11969. return $instance->delete($paths);
  11970. }
  11971. /**
  11972. * Copy a file to a new location.
  11973. *
  11974. * @param string $from
  11975. * @param string $to
  11976. * @return bool
  11977. * @static
  11978. */
  11979. public static function copy($from, $to)
  11980. {
  11981. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11982. return $instance->copy($from, $to);
  11983. }
  11984. /**
  11985. * Move a file to a new location.
  11986. *
  11987. * @param string $from
  11988. * @param string $to
  11989. * @return bool
  11990. * @static
  11991. */
  11992. public static function move($from, $to)
  11993. {
  11994. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11995. return $instance->move($from, $to);
  11996. }
  11997. /**
  11998. * Get the file size of a given file.
  11999. *
  12000. * @param string $path
  12001. * @return int
  12002. * @static
  12003. */
  12004. public static function size($path)
  12005. {
  12006. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12007. return $instance->size($path);
  12008. }
  12009. /**
  12010. * Get the mime-type of a given file.
  12011. *
  12012. * @param string $path
  12013. * @return string|false
  12014. * @static
  12015. */
  12016. public static function mimeType($path)
  12017. {
  12018. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12019. return $instance->mimeType($path);
  12020. }
  12021. /**
  12022. * Get the file's last modification time.
  12023. *
  12024. * @param string $path
  12025. * @return int
  12026. * @static
  12027. */
  12028. public static function lastModified($path)
  12029. {
  12030. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12031. return $instance->lastModified($path);
  12032. }
  12033. /**
  12034. * Get the URL for the file at the given path.
  12035. *
  12036. * @param string $path
  12037. * @return string
  12038. * @throws \RuntimeException
  12039. * @static
  12040. */
  12041. public static function url($path)
  12042. {
  12043. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12044. return $instance->url($path);
  12045. }
  12046. /**
  12047. * Get a resource to read the file.
  12048. *
  12049. * @param string $path
  12050. * @return resource|null The path resource or null on failure.
  12051. * @throws FileNotFoundException
  12052. * @static
  12053. */
  12054. public static function readStream($path)
  12055. {
  12056. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12057. return $instance->readStream($path);
  12058. }
  12059. /**
  12060. * Write a new file using a stream.
  12061. *
  12062. * @param string $path
  12063. * @param resource $resource
  12064. * @param array $options
  12065. * @return bool
  12066. * @throws \InvalidArgumentException If $resource is not a file handle.
  12067. * @throws FileExistsException
  12068. * @static
  12069. */
  12070. public static function writeStream($path, $resource, $options = [])
  12071. {
  12072. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12073. return $instance->writeStream($path, $resource, $options);
  12074. }
  12075. /**
  12076. * Get a temporary URL for the file at the given path.
  12077. *
  12078. * @param string $path
  12079. * @param \DateTimeInterface $expiration
  12080. * @param array $options
  12081. * @return string
  12082. * @throws \RuntimeException
  12083. * @static
  12084. */
  12085. public static function temporaryUrl($path, $expiration, $options = [])
  12086. {
  12087. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12088. return $instance->temporaryUrl($path, $expiration, $options);
  12089. }
  12090. /**
  12091. * Get a temporary URL for the file at the given path.
  12092. *
  12093. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  12094. * @param string $path
  12095. * @param \DateTimeInterface $expiration
  12096. * @param array $options
  12097. * @return string
  12098. * @static
  12099. */
  12100. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  12101. {
  12102. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12103. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  12104. }
  12105. /**
  12106. * Get a temporary URL for the file at the given path.
  12107. *
  12108. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  12109. * @param string $path
  12110. * @param \DateTimeInterface $expiration
  12111. * @param array $options
  12112. * @return string
  12113. * @static
  12114. */
  12115. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  12116. {
  12117. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12118. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  12119. }
  12120. /**
  12121. * Get an array of all files in a directory.
  12122. *
  12123. * @param string|null $directory
  12124. * @param bool $recursive
  12125. * @return array
  12126. * @static
  12127. */
  12128. public static function files($directory = null, $recursive = false)
  12129. {
  12130. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12131. return $instance->files($directory, $recursive);
  12132. }
  12133. /**
  12134. * Get all of the files from the given directory (recursive).
  12135. *
  12136. * @param string|null $directory
  12137. * @return array
  12138. * @static
  12139. */
  12140. public static function allFiles($directory = null)
  12141. {
  12142. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12143. return $instance->allFiles($directory);
  12144. }
  12145. /**
  12146. * Get all of the directories within a given directory.
  12147. *
  12148. * @param string|null $directory
  12149. * @param bool $recursive
  12150. * @return array
  12151. * @static
  12152. */
  12153. public static function directories($directory = null, $recursive = false)
  12154. {
  12155. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12156. return $instance->directories($directory, $recursive);
  12157. }
  12158. /**
  12159. * Get all (recursive) of the directories within a given directory.
  12160. *
  12161. * @param string|null $directory
  12162. * @return array
  12163. * @static
  12164. */
  12165. public static function allDirectories($directory = null)
  12166. {
  12167. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12168. return $instance->allDirectories($directory);
  12169. }
  12170. /**
  12171. * Create a directory.
  12172. *
  12173. * @param string $path
  12174. * @return bool
  12175. * @static
  12176. */
  12177. public static function makeDirectory($path)
  12178. {
  12179. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12180. return $instance->makeDirectory($path);
  12181. }
  12182. /**
  12183. * Recursively delete a directory.
  12184. *
  12185. * @param string $directory
  12186. * @return bool
  12187. * @static
  12188. */
  12189. public static function deleteDirectory($directory)
  12190. {
  12191. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12192. return $instance->deleteDirectory($directory);
  12193. }
  12194. /**
  12195. * Flush the Flysystem cache.
  12196. *
  12197. * @return void
  12198. * @static
  12199. */
  12200. public static function flushCache()
  12201. {
  12202. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12203. $instance->flushCache();
  12204. }
  12205. /**
  12206. * Get the Flysystem driver.
  12207. *
  12208. * @return \League\Flysystem\FilesystemInterface
  12209. * @static
  12210. */
  12211. public static function getDriver()
  12212. {
  12213. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  12214. return $instance->getDriver();
  12215. }
  12216. }
  12217. /**
  12218. *
  12219. *
  12220. * @see \Illuminate\Routing\UrlGenerator
  12221. */
  12222. class URL {
  12223. /**
  12224. * Get the full URL for the current request.
  12225. *
  12226. * @return string
  12227. * @static
  12228. */
  12229. public static function full()
  12230. {
  12231. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12232. return $instance->full();
  12233. }
  12234. /**
  12235. * Get the current URL for the request.
  12236. *
  12237. * @return string
  12238. * @static
  12239. */
  12240. public static function current()
  12241. {
  12242. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12243. return $instance->current();
  12244. }
  12245. /**
  12246. * Get the URL for the previous request.
  12247. *
  12248. * @param mixed $fallback
  12249. * @return string
  12250. * @static
  12251. */
  12252. public static function previous($fallback = false)
  12253. {
  12254. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12255. return $instance->previous($fallback);
  12256. }
  12257. /**
  12258. * Generate an absolute URL to the given path.
  12259. *
  12260. * @param string $path
  12261. * @param mixed $extra
  12262. * @param bool|null $secure
  12263. * @return string
  12264. * @static
  12265. */
  12266. public static function to($path, $extra = [], $secure = null)
  12267. {
  12268. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12269. return $instance->to($path, $extra, $secure);
  12270. }
  12271. /**
  12272. * Generate a secure, absolute URL to the given path.
  12273. *
  12274. * @param string $path
  12275. * @param array $parameters
  12276. * @return string
  12277. * @static
  12278. */
  12279. public static function secure($path, $parameters = [])
  12280. {
  12281. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12282. return $instance->secure($path, $parameters);
  12283. }
  12284. /**
  12285. * Generate the URL to an application asset.
  12286. *
  12287. * @param string $path
  12288. * @param bool|null $secure
  12289. * @return string
  12290. * @static
  12291. */
  12292. public static function asset($path, $secure = null)
  12293. {
  12294. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12295. return $instance->asset($path, $secure);
  12296. }
  12297. /**
  12298. * Generate the URL to a secure asset.
  12299. *
  12300. * @param string $path
  12301. * @return string
  12302. * @static
  12303. */
  12304. public static function secureAsset($path)
  12305. {
  12306. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12307. return $instance->secureAsset($path);
  12308. }
  12309. /**
  12310. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  12311. *
  12312. * @param string $root
  12313. * @param string $path
  12314. * @param bool|null $secure
  12315. * @return string
  12316. * @static
  12317. */
  12318. public static function assetFrom($root, $path, $secure = null)
  12319. {
  12320. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12321. return $instance->assetFrom($root, $path, $secure);
  12322. }
  12323. /**
  12324. * Get the default scheme for a raw URL.
  12325. *
  12326. * @param bool|null $secure
  12327. * @return string
  12328. * @static
  12329. */
  12330. public static function formatScheme($secure = null)
  12331. {
  12332. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12333. return $instance->formatScheme($secure);
  12334. }
  12335. /**
  12336. * Create a signed route URL for a named route.
  12337. *
  12338. * @param string $name
  12339. * @param array $parameters
  12340. * @param \DateTimeInterface|\DateInterval|int|null $expiration
  12341. * @param bool $absolute
  12342. * @return string
  12343. * @static
  12344. */
  12345. public static function signedRoute($name, $parameters = [], $expiration = null, $absolute = true)
  12346. {
  12347. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12348. return $instance->signedRoute($name, $parameters, $expiration, $absolute);
  12349. }
  12350. /**
  12351. * Create a temporary signed route URL for a named route.
  12352. *
  12353. * @param string $name
  12354. * @param \DateTimeInterface|\DateInterval|int $expiration
  12355. * @param array $parameters
  12356. * @param bool $absolute
  12357. * @return string
  12358. * @static
  12359. */
  12360. public static function temporarySignedRoute($name, $expiration, $parameters = [], $absolute = true)
  12361. {
  12362. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12363. return $instance->temporarySignedRoute($name, $expiration, $parameters, $absolute);
  12364. }
  12365. /**
  12366. * Determine if the given request has a valid signature.
  12367. *
  12368. * @param \Illuminate\Http\Request $request
  12369. * @param bool $absolute
  12370. * @return bool
  12371. * @static
  12372. */
  12373. public static function hasValidSignature($request, $absolute = true)
  12374. {
  12375. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12376. return $instance->hasValidSignature($request, $absolute);
  12377. }
  12378. /**
  12379. * Get the URL to a named route.
  12380. *
  12381. * @param string $name
  12382. * @param mixed $parameters
  12383. * @param bool $absolute
  12384. * @return string
  12385. * @throws \InvalidArgumentException
  12386. * @static
  12387. */
  12388. public static function route($name, $parameters = [], $absolute = true)
  12389. {
  12390. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12391. return $instance->route($name, $parameters, $absolute);
  12392. }
  12393. /**
  12394. * Get the URL to a controller action.
  12395. *
  12396. * @param string|array $action
  12397. * @param mixed $parameters
  12398. * @param bool $absolute
  12399. * @return string
  12400. * @throws \InvalidArgumentException
  12401. * @static
  12402. */
  12403. public static function action($action, $parameters = [], $absolute = true)
  12404. {
  12405. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12406. return $instance->action($action, $parameters, $absolute);
  12407. }
  12408. /**
  12409. * Format the array of URL parameters.
  12410. *
  12411. * @param mixed|array $parameters
  12412. * @return array
  12413. * @static
  12414. */
  12415. public static function formatParameters($parameters)
  12416. {
  12417. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12418. return $instance->formatParameters($parameters);
  12419. }
  12420. /**
  12421. * Get the base URL for the request.
  12422. *
  12423. * @param string $scheme
  12424. * @param string|null $root
  12425. * @return string
  12426. * @static
  12427. */
  12428. public static function formatRoot($scheme, $root = null)
  12429. {
  12430. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12431. return $instance->formatRoot($scheme, $root);
  12432. }
  12433. /**
  12434. * Format the given URL segments into a single URL.
  12435. *
  12436. * @param string $root
  12437. * @param string $path
  12438. * @param \Illuminate\Routing\Route|null $route
  12439. * @return string
  12440. * @static
  12441. */
  12442. public static function format($root, $path, $route = null)
  12443. {
  12444. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12445. return $instance->format($root, $path, $route);
  12446. }
  12447. /**
  12448. * Determine if the given path is a valid URL.
  12449. *
  12450. * @param string $path
  12451. * @return bool
  12452. * @static
  12453. */
  12454. public static function isValidUrl($path)
  12455. {
  12456. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12457. return $instance->isValidUrl($path);
  12458. }
  12459. /**
  12460. * Set the default named parameters used by the URL generator.
  12461. *
  12462. * @param array $defaults
  12463. * @return void
  12464. * @static
  12465. */
  12466. public static function defaults($defaults)
  12467. {
  12468. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12469. $instance->defaults($defaults);
  12470. }
  12471. /**
  12472. * Get the default named parameters used by the URL generator.
  12473. *
  12474. * @return array
  12475. * @static
  12476. */
  12477. public static function getDefaultParameters()
  12478. {
  12479. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12480. return $instance->getDefaultParameters();
  12481. }
  12482. /**
  12483. * Force the scheme for URLs.
  12484. *
  12485. * @param string $scheme
  12486. * @return void
  12487. * @static
  12488. */
  12489. public static function forceScheme($scheme)
  12490. {
  12491. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12492. $instance->forceScheme($scheme);
  12493. }
  12494. /**
  12495. * Set the forced root URL.
  12496. *
  12497. * @param string $root
  12498. * @return void
  12499. * @static
  12500. */
  12501. public static function forceRootUrl($root)
  12502. {
  12503. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12504. $instance->forceRootUrl($root);
  12505. }
  12506. /**
  12507. * Set a callback to be used to format the host of generated URLs.
  12508. *
  12509. * @param \Closure $callback
  12510. * @return \Illuminate\Routing\UrlGenerator
  12511. * @static
  12512. */
  12513. public static function formatHostUsing($callback)
  12514. {
  12515. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12516. return $instance->formatHostUsing($callback);
  12517. }
  12518. /**
  12519. * Set a callback to be used to format the path of generated URLs.
  12520. *
  12521. * @param \Closure $callback
  12522. * @return \Illuminate\Routing\UrlGenerator
  12523. * @static
  12524. */
  12525. public static function formatPathUsing($callback)
  12526. {
  12527. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12528. return $instance->formatPathUsing($callback);
  12529. }
  12530. /**
  12531. * Get the path formatter being used by the URL generator.
  12532. *
  12533. * @return \Closure
  12534. * @static
  12535. */
  12536. public static function pathFormatter()
  12537. {
  12538. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12539. return $instance->pathFormatter();
  12540. }
  12541. /**
  12542. * Get the request instance.
  12543. *
  12544. * @return \Illuminate\Http\Request
  12545. * @static
  12546. */
  12547. public static function getRequest()
  12548. {
  12549. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12550. return $instance->getRequest();
  12551. }
  12552. /**
  12553. * Set the current request instance.
  12554. *
  12555. * @param \Illuminate\Http\Request $request
  12556. * @return void
  12557. * @static
  12558. */
  12559. public static function setRequest($request)
  12560. {
  12561. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12562. $instance->setRequest($request);
  12563. }
  12564. /**
  12565. * Set the route collection.
  12566. *
  12567. * @param \Illuminate\Routing\RouteCollection $routes
  12568. * @return \Illuminate\Routing\UrlGenerator
  12569. * @static
  12570. */
  12571. public static function setRoutes($routes)
  12572. {
  12573. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12574. return $instance->setRoutes($routes);
  12575. }
  12576. /**
  12577. * Set the session resolver for the generator.
  12578. *
  12579. * @param callable $sessionResolver
  12580. * @return \Illuminate\Routing\UrlGenerator
  12581. * @static
  12582. */
  12583. public static function setSessionResolver($sessionResolver)
  12584. {
  12585. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12586. return $instance->setSessionResolver($sessionResolver);
  12587. }
  12588. /**
  12589. * Set the encryption key resolver.
  12590. *
  12591. * @param callable $keyResolver
  12592. * @return \Illuminate\Routing\UrlGenerator
  12593. * @static
  12594. */
  12595. public static function setKeyResolver($keyResolver)
  12596. {
  12597. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12598. return $instance->setKeyResolver($keyResolver);
  12599. }
  12600. /**
  12601. * Set the root controller namespace.
  12602. *
  12603. * @param string $rootNamespace
  12604. * @return \Illuminate\Routing\UrlGenerator
  12605. * @static
  12606. */
  12607. public static function setRootControllerNamespace($rootNamespace)
  12608. {
  12609. /** @var \Illuminate\Routing\UrlGenerator $instance */
  12610. return $instance->setRootControllerNamespace($rootNamespace);
  12611. }
  12612. /**
  12613. * Register a custom macro.
  12614. *
  12615. * @param string $name
  12616. * @param object|callable $macro
  12617. * @return void
  12618. * @static
  12619. */
  12620. public static function macro($name, $macro)
  12621. {
  12622. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  12623. }
  12624. /**
  12625. * Mix another object into the class.
  12626. *
  12627. * @param object $mixin
  12628. * @param bool $replace
  12629. * @return void
  12630. * @throws \ReflectionException
  12631. * @static
  12632. */
  12633. public static function mixin($mixin, $replace = true)
  12634. {
  12635. \Illuminate\Routing\UrlGenerator::mixin($mixin, $replace);
  12636. }
  12637. /**
  12638. * Checks if macro is registered.
  12639. *
  12640. * @param string $name
  12641. * @return bool
  12642. * @static
  12643. */
  12644. public static function hasMacro($name)
  12645. {
  12646. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  12647. }
  12648. }
  12649. /**
  12650. *
  12651. *
  12652. * @see \Illuminate\Validation\Factory
  12653. */
  12654. class Validator {
  12655. /**
  12656. * Create a new Validator instance.
  12657. *
  12658. * @param array $data
  12659. * @param array $rules
  12660. * @param array $messages
  12661. * @param array $customAttributes
  12662. * @return \Illuminate\Validation\Validator
  12663. * @static
  12664. */
  12665. public static function make($data, $rules, $messages = [], $customAttributes = [])
  12666. {
  12667. /** @var \Illuminate\Validation\Factory $instance */
  12668. return $instance->make($data, $rules, $messages, $customAttributes);
  12669. }
  12670. /**
  12671. * Validate the given data against the provided rules.
  12672. *
  12673. * @param array $data
  12674. * @param array $rules
  12675. * @param array $messages
  12676. * @param array $customAttributes
  12677. * @return array
  12678. * @throws \Illuminate\Validation\ValidationException
  12679. * @static
  12680. */
  12681. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  12682. {
  12683. /** @var \Illuminate\Validation\Factory $instance */
  12684. return $instance->validate($data, $rules, $messages, $customAttributes);
  12685. }
  12686. /**
  12687. * Register a custom validator extension.
  12688. *
  12689. * @param string $rule
  12690. * @param \Closure|string $extension
  12691. * @param string|null $message
  12692. * @return void
  12693. * @static
  12694. */
  12695. public static function extend($rule, $extension, $message = null)
  12696. {
  12697. /** @var \Illuminate\Validation\Factory $instance */
  12698. $instance->extend($rule, $extension, $message);
  12699. }
  12700. /**
  12701. * Register a custom implicit validator extension.
  12702. *
  12703. * @param string $rule
  12704. * @param \Closure|string $extension
  12705. * @param string|null $message
  12706. * @return void
  12707. * @static
  12708. */
  12709. public static function extendImplicit($rule, $extension, $message = null)
  12710. {
  12711. /** @var \Illuminate\Validation\Factory $instance */
  12712. $instance->extendImplicit($rule, $extension, $message);
  12713. }
  12714. /**
  12715. * Register a custom dependent validator extension.
  12716. *
  12717. * @param string $rule
  12718. * @param \Closure|string $extension
  12719. * @param string|null $message
  12720. * @return void
  12721. * @static
  12722. */
  12723. public static function extendDependent($rule, $extension, $message = null)
  12724. {
  12725. /** @var \Illuminate\Validation\Factory $instance */
  12726. $instance->extendDependent($rule, $extension, $message);
  12727. }
  12728. /**
  12729. * Register a custom validator message replacer.
  12730. *
  12731. * @param string $rule
  12732. * @param \Closure|string $replacer
  12733. * @return void
  12734. * @static
  12735. */
  12736. public static function replacer($rule, $replacer)
  12737. {
  12738. /** @var \Illuminate\Validation\Factory $instance */
  12739. $instance->replacer($rule, $replacer);
  12740. }
  12741. /**
  12742. * Set the Validator instance resolver.
  12743. *
  12744. * @param \Closure $resolver
  12745. * @return void
  12746. * @static
  12747. */
  12748. public static function resolver($resolver)
  12749. {
  12750. /** @var \Illuminate\Validation\Factory $instance */
  12751. $instance->resolver($resolver);
  12752. }
  12753. /**
  12754. * Get the Translator implementation.
  12755. *
  12756. * @return \Illuminate\Contracts\Translation\Translator
  12757. * @static
  12758. */
  12759. public static function getTranslator()
  12760. {
  12761. /** @var \Illuminate\Validation\Factory $instance */
  12762. return $instance->getTranslator();
  12763. }
  12764. /**
  12765. * Get the Presence Verifier implementation.
  12766. *
  12767. * @return \Illuminate\Validation\PresenceVerifierInterface
  12768. * @static
  12769. */
  12770. public static function getPresenceVerifier()
  12771. {
  12772. /** @var \Illuminate\Validation\Factory $instance */
  12773. return $instance->getPresenceVerifier();
  12774. }
  12775. /**
  12776. * Set the Presence Verifier implementation.
  12777. *
  12778. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  12779. * @return void
  12780. * @static
  12781. */
  12782. public static function setPresenceVerifier($presenceVerifier)
  12783. {
  12784. /** @var \Illuminate\Validation\Factory $instance */
  12785. $instance->setPresenceVerifier($presenceVerifier);
  12786. }
  12787. }
  12788. /**
  12789. *
  12790. *
  12791. * @see \Illuminate\View\Factory
  12792. */
  12793. class View {
  12794. /**
  12795. * Get the evaluated view contents for the given view.
  12796. *
  12797. * @param string $path
  12798. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12799. * @param array $mergeData
  12800. * @return \Illuminate\Contracts\View\View
  12801. * @static
  12802. */
  12803. public static function file($path, $data = [], $mergeData = [])
  12804. {
  12805. /** @var \Illuminate\View\Factory $instance */
  12806. return $instance->file($path, $data, $mergeData);
  12807. }
  12808. /**
  12809. * Get the evaluated view contents for the given view.
  12810. *
  12811. * @param string $view
  12812. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12813. * @param array $mergeData
  12814. * @return \Illuminate\Contracts\View\View
  12815. * @static
  12816. */
  12817. public static function make($view, $data = [], $mergeData = [])
  12818. {
  12819. /** @var \Illuminate\View\Factory $instance */
  12820. return $instance->make($view, $data, $mergeData);
  12821. }
  12822. /**
  12823. * Get the first view that actually exists from the given list.
  12824. *
  12825. * @param array $views
  12826. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12827. * @param array $mergeData
  12828. * @return \Illuminate\Contracts\View\View
  12829. * @throws \InvalidArgumentException
  12830. * @static
  12831. */
  12832. public static function first($views, $data = [], $mergeData = [])
  12833. {
  12834. /** @var \Illuminate\View\Factory $instance */
  12835. return $instance->first($views, $data, $mergeData);
  12836. }
  12837. /**
  12838. * Get the rendered content of the view based on a given condition.
  12839. *
  12840. * @param bool $condition
  12841. * @param string $view
  12842. * @param \Illuminate\Contracts\Support\Arrayable|array $data
  12843. * @param array $mergeData
  12844. * @return string
  12845. * @static
  12846. */
  12847. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  12848. {
  12849. /** @var \Illuminate\View\Factory $instance */
  12850. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12851. }
  12852. /**
  12853. * Get the rendered contents of a partial from a loop.
  12854. *
  12855. * @param string $view
  12856. * @param array $data
  12857. * @param string $iterator
  12858. * @param string $empty
  12859. * @return string
  12860. * @static
  12861. */
  12862. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12863. {
  12864. /** @var \Illuminate\View\Factory $instance */
  12865. return $instance->renderEach($view, $data, $iterator, $empty);
  12866. }
  12867. /**
  12868. * Determine if a given view exists.
  12869. *
  12870. * @param string $view
  12871. * @return bool
  12872. * @static
  12873. */
  12874. public static function exists($view)
  12875. {
  12876. /** @var \Illuminate\View\Factory $instance */
  12877. return $instance->exists($view);
  12878. }
  12879. /**
  12880. * Get the appropriate view engine for the given path.
  12881. *
  12882. * @param string $path
  12883. * @return \Illuminate\Contracts\View\Engine
  12884. * @throws \InvalidArgumentException
  12885. * @static
  12886. */
  12887. public static function getEngineFromPath($path)
  12888. {
  12889. /** @var \Illuminate\View\Factory $instance */
  12890. return $instance->getEngineFromPath($path);
  12891. }
  12892. /**
  12893. * Add a piece of shared data to the environment.
  12894. *
  12895. * @param array|string $key
  12896. * @param mixed|null $value
  12897. * @return mixed
  12898. * @static
  12899. */
  12900. public static function share($key, $value = null)
  12901. {
  12902. /** @var \Illuminate\View\Factory $instance */
  12903. return $instance->share($key, $value);
  12904. }
  12905. /**
  12906. * Increment the rendering counter.
  12907. *
  12908. * @return void
  12909. * @static
  12910. */
  12911. public static function incrementRender()
  12912. {
  12913. /** @var \Illuminate\View\Factory $instance */
  12914. $instance->incrementRender();
  12915. }
  12916. /**
  12917. * Decrement the rendering counter.
  12918. *
  12919. * @return void
  12920. * @static
  12921. */
  12922. public static function decrementRender()
  12923. {
  12924. /** @var \Illuminate\View\Factory $instance */
  12925. $instance->decrementRender();
  12926. }
  12927. /**
  12928. * Check if there are no active render operations.
  12929. *
  12930. * @return bool
  12931. * @static
  12932. */
  12933. public static function doneRendering()
  12934. {
  12935. /** @var \Illuminate\View\Factory $instance */
  12936. return $instance->doneRendering();
  12937. }
  12938. /**
  12939. * Add a location to the array of view locations.
  12940. *
  12941. * @param string $location
  12942. * @return void
  12943. * @static
  12944. */
  12945. public static function addLocation($location)
  12946. {
  12947. /** @var \Illuminate\View\Factory $instance */
  12948. $instance->addLocation($location);
  12949. }
  12950. /**
  12951. * Add a new namespace to the loader.
  12952. *
  12953. * @param string $namespace
  12954. * @param string|array $hints
  12955. * @return \Illuminate\View\Factory
  12956. * @static
  12957. */
  12958. public static function addNamespace($namespace, $hints)
  12959. {
  12960. /** @var \Illuminate\View\Factory $instance */
  12961. return $instance->addNamespace($namespace, $hints);
  12962. }
  12963. /**
  12964. * Prepend a new namespace to the loader.
  12965. *
  12966. * @param string $namespace
  12967. * @param string|array $hints
  12968. * @return \Illuminate\View\Factory
  12969. * @static
  12970. */
  12971. public static function prependNamespace($namespace, $hints)
  12972. {
  12973. /** @var \Illuminate\View\Factory $instance */
  12974. return $instance->prependNamespace($namespace, $hints);
  12975. }
  12976. /**
  12977. * Replace the namespace hints for the given namespace.
  12978. *
  12979. * @param string $namespace
  12980. * @param string|array $hints
  12981. * @return \Illuminate\View\Factory
  12982. * @static
  12983. */
  12984. public static function replaceNamespace($namespace, $hints)
  12985. {
  12986. /** @var \Illuminate\View\Factory $instance */
  12987. return $instance->replaceNamespace($namespace, $hints);
  12988. }
  12989. /**
  12990. * Register a valid view extension and its engine.
  12991. *
  12992. * @param string $extension
  12993. * @param string $engine
  12994. * @param \Closure|null $resolver
  12995. * @return void
  12996. * @static
  12997. */
  12998. public static function addExtension($extension, $engine, $resolver = null)
  12999. {
  13000. /** @var \Illuminate\View\Factory $instance */
  13001. $instance->addExtension($extension, $engine, $resolver);
  13002. }
  13003. /**
  13004. * Flush all of the factory state like sections and stacks.
  13005. *
  13006. * @return void
  13007. * @static
  13008. */
  13009. public static function flushState()
  13010. {
  13011. /** @var \Illuminate\View\Factory $instance */
  13012. $instance->flushState();
  13013. }
  13014. /**
  13015. * Flush all of the section contents if done rendering.
  13016. *
  13017. * @return void
  13018. * @static
  13019. */
  13020. public static function flushStateIfDoneRendering()
  13021. {
  13022. /** @var \Illuminate\View\Factory $instance */
  13023. $instance->flushStateIfDoneRendering();
  13024. }
  13025. /**
  13026. * Get the extension to engine bindings.
  13027. *
  13028. * @return array
  13029. * @static
  13030. */
  13031. public static function getExtensions()
  13032. {
  13033. /** @var \Illuminate\View\Factory $instance */
  13034. return $instance->getExtensions();
  13035. }
  13036. /**
  13037. * Get the engine resolver instance.
  13038. *
  13039. * @return \Illuminate\View\Engines\EngineResolver
  13040. * @static
  13041. */
  13042. public static function getEngineResolver()
  13043. {
  13044. /** @var \Illuminate\View\Factory $instance */
  13045. return $instance->getEngineResolver();
  13046. }
  13047. /**
  13048. * Get the view finder instance.
  13049. *
  13050. * @return \Illuminate\View\ViewFinderInterface
  13051. * @static
  13052. */
  13053. public static function getFinder()
  13054. {
  13055. /** @var \Illuminate\View\Factory $instance */
  13056. return $instance->getFinder();
  13057. }
  13058. /**
  13059. * Set the view finder instance.
  13060. *
  13061. * @param \Illuminate\View\ViewFinderInterface $finder
  13062. * @return void
  13063. * @static
  13064. */
  13065. public static function setFinder($finder)
  13066. {
  13067. /** @var \Illuminate\View\Factory $instance */
  13068. $instance->setFinder($finder);
  13069. }
  13070. /**
  13071. * Flush the cache of views located by the finder.
  13072. *
  13073. * @return void
  13074. * @static
  13075. */
  13076. public static function flushFinderCache()
  13077. {
  13078. /** @var \Illuminate\View\Factory $instance */
  13079. $instance->flushFinderCache();
  13080. }
  13081. /**
  13082. * Get the event dispatcher instance.
  13083. *
  13084. * @return \Illuminate\Contracts\Events\Dispatcher
  13085. * @static
  13086. */
  13087. public static function getDispatcher()
  13088. {
  13089. /** @var \Illuminate\View\Factory $instance */
  13090. return $instance->getDispatcher();
  13091. }
  13092. /**
  13093. * Set the event dispatcher instance.
  13094. *
  13095. * @param \Illuminate\Contracts\Events\Dispatcher $events
  13096. * @return void
  13097. * @static
  13098. */
  13099. public static function setDispatcher($events)
  13100. {
  13101. /** @var \Illuminate\View\Factory $instance */
  13102. $instance->setDispatcher($events);
  13103. }
  13104. /**
  13105. * Get the IoC container instance.
  13106. *
  13107. * @return \Illuminate\Contracts\Container\Container
  13108. * @static
  13109. */
  13110. public static function getContainer()
  13111. {
  13112. /** @var \Illuminate\View\Factory $instance */
  13113. return $instance->getContainer();
  13114. }
  13115. /**
  13116. * Set the IoC container instance.
  13117. *
  13118. * @param \Illuminate\Contracts\Container\Container $container
  13119. * @return void
  13120. * @static
  13121. */
  13122. public static function setContainer($container)
  13123. {
  13124. /** @var \Illuminate\View\Factory $instance */
  13125. $instance->setContainer($container);
  13126. }
  13127. /**
  13128. * Get an item from the shared data.
  13129. *
  13130. * @param string $key
  13131. * @param mixed $default
  13132. * @return mixed
  13133. * @static
  13134. */
  13135. public static function shared($key, $default = null)
  13136. {
  13137. /** @var \Illuminate\View\Factory $instance */
  13138. return $instance->shared($key, $default);
  13139. }
  13140. /**
  13141. * Get all of the shared data for the environment.
  13142. *
  13143. * @return array
  13144. * @static
  13145. */
  13146. public static function getShared()
  13147. {
  13148. /** @var \Illuminate\View\Factory $instance */
  13149. return $instance->getShared();
  13150. }
  13151. /**
  13152. * Register a custom macro.
  13153. *
  13154. * @param string $name
  13155. * @param object|callable $macro
  13156. * @return void
  13157. * @static
  13158. */
  13159. public static function macro($name, $macro)
  13160. {
  13161. \Illuminate\View\Factory::macro($name, $macro);
  13162. }
  13163. /**
  13164. * Mix another object into the class.
  13165. *
  13166. * @param object $mixin
  13167. * @param bool $replace
  13168. * @return void
  13169. * @throws \ReflectionException
  13170. * @static
  13171. */
  13172. public static function mixin($mixin, $replace = true)
  13173. {
  13174. \Illuminate\View\Factory::mixin($mixin, $replace);
  13175. }
  13176. /**
  13177. * Checks if macro is registered.
  13178. *
  13179. * @param string $name
  13180. * @return bool
  13181. * @static
  13182. */
  13183. public static function hasMacro($name)
  13184. {
  13185. return \Illuminate\View\Factory::hasMacro($name);
  13186. }
  13187. /**
  13188. * Start a component rendering process.
  13189. *
  13190. * @param string $name
  13191. * @param array $data
  13192. * @return void
  13193. * @static
  13194. */
  13195. public static function startComponent($name, $data = [])
  13196. {
  13197. /** @var \Illuminate\View\Factory $instance */
  13198. $instance->startComponent($name, $data);
  13199. }
  13200. /**
  13201. * Get the first view that actually exists from the given list, and start a component.
  13202. *
  13203. * @param array $names
  13204. * @param array $data
  13205. * @return void
  13206. * @static
  13207. */
  13208. public static function startComponentFirst($names, $data = [])
  13209. {
  13210. /** @var \Illuminate\View\Factory $instance */
  13211. $instance->startComponentFirst($names, $data);
  13212. }
  13213. /**
  13214. * Render the current component.
  13215. *
  13216. * @return string
  13217. * @static
  13218. */
  13219. public static function renderComponent()
  13220. {
  13221. /** @var \Illuminate\View\Factory $instance */
  13222. return $instance->renderComponent();
  13223. }
  13224. /**
  13225. * Start the slot rendering process.
  13226. *
  13227. * @param string $name
  13228. * @param string|null $content
  13229. * @return void
  13230. * @static
  13231. */
  13232. public static function slot($name, $content = null)
  13233. {
  13234. /** @var \Illuminate\View\Factory $instance */
  13235. $instance->slot($name, $content);
  13236. }
  13237. /**
  13238. * Save the slot content for rendering.
  13239. *
  13240. * @return void
  13241. * @static
  13242. */
  13243. public static function endSlot()
  13244. {
  13245. /** @var \Illuminate\View\Factory $instance */
  13246. $instance->endSlot();
  13247. }
  13248. /**
  13249. * Register a view creator event.
  13250. *
  13251. * @param array|string $views
  13252. * @param \Closure|string $callback
  13253. * @return array
  13254. * @static
  13255. */
  13256. public static function creator($views, $callback)
  13257. {
  13258. /** @var \Illuminate\View\Factory $instance */
  13259. return $instance->creator($views, $callback);
  13260. }
  13261. /**
  13262. * Register multiple view composers via an array.
  13263. *
  13264. * @param array $composers
  13265. * @return array
  13266. * @static
  13267. */
  13268. public static function composers($composers)
  13269. {
  13270. /** @var \Illuminate\View\Factory $instance */
  13271. return $instance->composers($composers);
  13272. }
  13273. /**
  13274. * Register a view composer event.
  13275. *
  13276. * @param array|string $views
  13277. * @param \Closure|string $callback
  13278. * @return array
  13279. * @static
  13280. */
  13281. public static function composer($views, $callback)
  13282. {
  13283. /** @var \Illuminate\View\Factory $instance */
  13284. return $instance->composer($views, $callback);
  13285. }
  13286. /**
  13287. * Call the composer for a given view.
  13288. *
  13289. * @param \Illuminate\Contracts\View\View $view
  13290. * @return void
  13291. * @static
  13292. */
  13293. public static function callComposer($view)
  13294. {
  13295. /** @var \Illuminate\View\Factory $instance */
  13296. $instance->callComposer($view);
  13297. }
  13298. /**
  13299. * Call the creator for a given view.
  13300. *
  13301. * @param \Illuminate\Contracts\View\View $view
  13302. * @return void
  13303. * @static
  13304. */
  13305. public static function callCreator($view)
  13306. {
  13307. /** @var \Illuminate\View\Factory $instance */
  13308. $instance->callCreator($view);
  13309. }
  13310. /**
  13311. * Start injecting content into a section.
  13312. *
  13313. * @param string $section
  13314. * @param string|null $content
  13315. * @return void
  13316. * @static
  13317. */
  13318. public static function startSection($section, $content = null)
  13319. {
  13320. /** @var \Illuminate\View\Factory $instance */
  13321. $instance->startSection($section, $content);
  13322. }
  13323. /**
  13324. * Inject inline content into a section.
  13325. *
  13326. * @param string $section
  13327. * @param string $content
  13328. * @return void
  13329. * @static
  13330. */
  13331. public static function inject($section, $content)
  13332. {
  13333. /** @var \Illuminate\View\Factory $instance */
  13334. $instance->inject($section, $content);
  13335. }
  13336. /**
  13337. * Stop injecting content into a section and return its contents.
  13338. *
  13339. * @return string
  13340. * @static
  13341. */
  13342. public static function yieldSection()
  13343. {
  13344. /** @var \Illuminate\View\Factory $instance */
  13345. return $instance->yieldSection();
  13346. }
  13347. /**
  13348. * Stop injecting content into a section.
  13349. *
  13350. * @param bool $overwrite
  13351. * @return string
  13352. * @throws \InvalidArgumentException
  13353. * @static
  13354. */
  13355. public static function stopSection($overwrite = false)
  13356. {
  13357. /** @var \Illuminate\View\Factory $instance */
  13358. return $instance->stopSection($overwrite);
  13359. }
  13360. /**
  13361. * Stop injecting content into a section and append it.
  13362. *
  13363. * @return string
  13364. * @throws \InvalidArgumentException
  13365. * @static
  13366. */
  13367. public static function appendSection()
  13368. {
  13369. /** @var \Illuminate\View\Factory $instance */
  13370. return $instance->appendSection();
  13371. }
  13372. /**
  13373. * Get the string contents of a section.
  13374. *
  13375. * @param string $section
  13376. * @param string $default
  13377. * @return string
  13378. * @static
  13379. */
  13380. public static function yieldContent($section, $default = '')
  13381. {
  13382. /** @var \Illuminate\View\Factory $instance */
  13383. return $instance->yieldContent($section, $default);
  13384. }
  13385. /**
  13386. * Get the parent placeholder for the current request.
  13387. *
  13388. * @param string $section
  13389. * @return string
  13390. * @static
  13391. */
  13392. public static function parentPlaceholder($section = '')
  13393. {
  13394. return \Illuminate\View\Factory::parentPlaceholder($section);
  13395. }
  13396. /**
  13397. * Check if section exists.
  13398. *
  13399. * @param string $name
  13400. * @return bool
  13401. * @static
  13402. */
  13403. public static function hasSection($name)
  13404. {
  13405. /** @var \Illuminate\View\Factory $instance */
  13406. return $instance->hasSection($name);
  13407. }
  13408. /**
  13409. * Get the contents of a section.
  13410. *
  13411. * @param string $name
  13412. * @param string|null $default
  13413. * @return mixed
  13414. * @static
  13415. */
  13416. public static function getSection($name, $default = null)
  13417. {
  13418. /** @var \Illuminate\View\Factory $instance */
  13419. return $instance->getSection($name, $default);
  13420. }
  13421. /**
  13422. * Get the entire array of sections.
  13423. *
  13424. * @return array
  13425. * @static
  13426. */
  13427. public static function getSections()
  13428. {
  13429. /** @var \Illuminate\View\Factory $instance */
  13430. return $instance->getSections();
  13431. }
  13432. /**
  13433. * Flush all of the sections.
  13434. *
  13435. * @return void
  13436. * @static
  13437. */
  13438. public static function flushSections()
  13439. {
  13440. /** @var \Illuminate\View\Factory $instance */
  13441. $instance->flushSections();
  13442. }
  13443. /**
  13444. * Add new loop to the stack.
  13445. *
  13446. * @param \Countable|array $data
  13447. * @return void
  13448. * @static
  13449. */
  13450. public static function addLoop($data)
  13451. {
  13452. /** @var \Illuminate\View\Factory $instance */
  13453. $instance->addLoop($data);
  13454. }
  13455. /**
  13456. * Increment the top loop's indices.
  13457. *
  13458. * @return void
  13459. * @static
  13460. */
  13461. public static function incrementLoopIndices()
  13462. {
  13463. /** @var \Illuminate\View\Factory $instance */
  13464. $instance->incrementLoopIndices();
  13465. }
  13466. /**
  13467. * Pop a loop from the top of the loop stack.
  13468. *
  13469. * @return void
  13470. * @static
  13471. */
  13472. public static function popLoop()
  13473. {
  13474. /** @var \Illuminate\View\Factory $instance */
  13475. $instance->popLoop();
  13476. }
  13477. /**
  13478. * Get an instance of the last loop in the stack.
  13479. *
  13480. * @return \stdClass|null
  13481. * @static
  13482. */
  13483. public static function getLastLoop()
  13484. {
  13485. /** @var \Illuminate\View\Factory $instance */
  13486. return $instance->getLastLoop();
  13487. }
  13488. /**
  13489. * Get the entire loop stack.
  13490. *
  13491. * @return array
  13492. * @static
  13493. */
  13494. public static function getLoopStack()
  13495. {
  13496. /** @var \Illuminate\View\Factory $instance */
  13497. return $instance->getLoopStack();
  13498. }
  13499. /**
  13500. * Start injecting content into a push section.
  13501. *
  13502. * @param string $section
  13503. * @param string $content
  13504. * @return void
  13505. * @static
  13506. */
  13507. public static function startPush($section, $content = '')
  13508. {
  13509. /** @var \Illuminate\View\Factory $instance */
  13510. $instance->startPush($section, $content);
  13511. }
  13512. /**
  13513. * Stop injecting content into a push section.
  13514. *
  13515. * @return string
  13516. * @throws \InvalidArgumentException
  13517. * @static
  13518. */
  13519. public static function stopPush()
  13520. {
  13521. /** @var \Illuminate\View\Factory $instance */
  13522. return $instance->stopPush();
  13523. }
  13524. /**
  13525. * Start prepending content into a push section.
  13526. *
  13527. * @param string $section
  13528. * @param string $content
  13529. * @return void
  13530. * @static
  13531. */
  13532. public static function startPrepend($section, $content = '')
  13533. {
  13534. /** @var \Illuminate\View\Factory $instance */
  13535. $instance->startPrepend($section, $content);
  13536. }
  13537. /**
  13538. * Stop prepending content into a push section.
  13539. *
  13540. * @return string
  13541. * @throws \InvalidArgumentException
  13542. * @static
  13543. */
  13544. public static function stopPrepend()
  13545. {
  13546. /** @var \Illuminate\View\Factory $instance */
  13547. return $instance->stopPrepend();
  13548. }
  13549. /**
  13550. * Get the string contents of a push section.
  13551. *
  13552. * @param string $section
  13553. * @param string $default
  13554. * @return string
  13555. * @static
  13556. */
  13557. public static function yieldPushContent($section, $default = '')
  13558. {
  13559. /** @var \Illuminate\View\Factory $instance */
  13560. return $instance->yieldPushContent($section, $default);
  13561. }
  13562. /**
  13563. * Flush all of the stacks.
  13564. *
  13565. * @return void
  13566. * @static
  13567. */
  13568. public static function flushStacks()
  13569. {
  13570. /** @var \Illuminate\View\Factory $instance */
  13571. $instance->flushStacks();
  13572. }
  13573. /**
  13574. * Start a translation block.
  13575. *
  13576. * @param array $replacements
  13577. * @return void
  13578. * @static
  13579. */
  13580. public static function startTranslation($replacements = [])
  13581. {
  13582. /** @var \Illuminate\View\Factory $instance */
  13583. $instance->startTranslation($replacements);
  13584. }
  13585. /**
  13586. * Render the current translation.
  13587. *
  13588. * @return string
  13589. * @static
  13590. */
  13591. public static function renderTranslation()
  13592. {
  13593. /** @var \Illuminate\View\Factory $instance */
  13594. return $instance->renderTranslation();
  13595. }
  13596. }
  13597. }
  13598. namespace Barryvdh\Debugbar {
  13599. /**
  13600. *
  13601. *
  13602. * @method static void alert(string $message)
  13603. * @method static void critical(string $message)
  13604. * @method static void debug(string $message)
  13605. * @method static void emergency(string $message)
  13606. * @method static void error(string $message)
  13607. * @method static void info(string $message)
  13608. * @method static void log(string $message)
  13609. * @method static void notice(string $message)
  13610. * @method static void warning(string $message)
  13611. * @see \Barryvdh\Debugbar\LaravelDebugbar
  13612. */
  13613. class Facade {
  13614. /**
  13615. * Enable the Debugbar and boot, if not already booted.
  13616. *
  13617. * @static
  13618. */
  13619. public static function enable()
  13620. {
  13621. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13622. return $instance->enable();
  13623. }
  13624. /**
  13625. * Boot the debugbar (add collectors, renderer and listener)
  13626. *
  13627. * @static
  13628. */
  13629. public static function boot()
  13630. {
  13631. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13632. return $instance->boot();
  13633. }
  13634. /**
  13635. *
  13636. *
  13637. * @static
  13638. */
  13639. public static function shouldCollect($name, $default = false)
  13640. {
  13641. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13642. return $instance->shouldCollect($name, $default);
  13643. }
  13644. /**
  13645. * Adds a data collector
  13646. *
  13647. * @param \Barryvdh\Debugbar\DataCollectorInterface $collector
  13648. * @throws DebugBarException
  13649. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13650. * @static
  13651. */
  13652. public static function addCollector($collector)
  13653. {
  13654. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13655. return $instance->addCollector($collector);
  13656. }
  13657. /**
  13658. * Handle silenced errors
  13659. *
  13660. * @param $level
  13661. * @param $message
  13662. * @param string $file
  13663. * @param int $line
  13664. * @param array $context
  13665. * @throws \ErrorException
  13666. * @static
  13667. */
  13668. public static function handleError($level, $message, $file = '', $line = 0, $context = [])
  13669. {
  13670. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13671. return $instance->handleError($level, $message, $file, $line, $context);
  13672. }
  13673. /**
  13674. * Starts a measure
  13675. *
  13676. * @param string $name Internal name, used to stop the measure
  13677. * @param string $label Public name
  13678. * @static
  13679. */
  13680. public static function startMeasure($name, $label = null)
  13681. {
  13682. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13683. return $instance->startMeasure($name, $label);
  13684. }
  13685. /**
  13686. * Stops a measure
  13687. *
  13688. * @param string $name
  13689. * @static
  13690. */
  13691. public static function stopMeasure($name)
  13692. {
  13693. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13694. return $instance->stopMeasure($name);
  13695. }
  13696. /**
  13697. * Adds an exception to be profiled in the debug bar
  13698. *
  13699. * @param \Exception $e
  13700. * @deprecated in favor of addThrowable
  13701. * @static
  13702. */
  13703. public static function addException($e)
  13704. {
  13705. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13706. return $instance->addException($e);
  13707. }
  13708. /**
  13709. * Adds an exception to be profiled in the debug bar
  13710. *
  13711. * @param \Exception $e
  13712. * @static
  13713. */
  13714. public static function addThrowable($e)
  13715. {
  13716. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13717. return $instance->addThrowable($e);
  13718. }
  13719. /**
  13720. * Returns a JavascriptRenderer for this instance
  13721. *
  13722. * @param string $baseUrl
  13723. * @param string $basePathng
  13724. * @return \Barryvdh\Debugbar\JavascriptRenderer
  13725. * @static
  13726. */
  13727. public static function getJavascriptRenderer($baseUrl = null, $basePath = null)
  13728. {
  13729. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13730. return $instance->getJavascriptRenderer($baseUrl, $basePath);
  13731. }
  13732. /**
  13733. * Modify the response and inject the debugbar (or data in headers)
  13734. *
  13735. * @param \Symfony\Component\HttpFoundation\Request $request
  13736. * @param \Symfony\Component\HttpFoundation\Response $response
  13737. * @return \Symfony\Component\HttpFoundation\Response
  13738. * @static
  13739. */
  13740. public static function modifyResponse($request, $response)
  13741. {
  13742. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13743. return $instance->modifyResponse($request, $response);
  13744. }
  13745. /**
  13746. * Check if the Debugbar is enabled
  13747. *
  13748. * @return boolean
  13749. * @static
  13750. */
  13751. public static function isEnabled()
  13752. {
  13753. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13754. return $instance->isEnabled();
  13755. }
  13756. /**
  13757. * Collects the data from the collectors
  13758. *
  13759. * @return array
  13760. * @static
  13761. */
  13762. public static function collect()
  13763. {
  13764. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13765. return $instance->collect();
  13766. }
  13767. /**
  13768. * Injects the web debug toolbar into the given Response.
  13769. *
  13770. * @param \Symfony\Component\HttpFoundation\Response $response A Response instance
  13771. * Based on https://github.com/symfony/WebProfilerBundle/blob/master/EventListener/WebDebugToolbarListener.php
  13772. * @static
  13773. */
  13774. public static function injectDebugbar($response)
  13775. {
  13776. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13777. return $instance->injectDebugbar($response);
  13778. }
  13779. /**
  13780. * Disable the Debugbar
  13781. *
  13782. * @static
  13783. */
  13784. public static function disable()
  13785. {
  13786. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13787. return $instance->disable();
  13788. }
  13789. /**
  13790. * Adds a measure
  13791. *
  13792. * @param string $label
  13793. * @param float $start
  13794. * @param float $end
  13795. * @static
  13796. */
  13797. public static function addMeasure($label, $start, $end)
  13798. {
  13799. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13800. return $instance->addMeasure($label, $start, $end);
  13801. }
  13802. /**
  13803. * Utility function to measure the execution of a Closure
  13804. *
  13805. * @param string $label
  13806. * @param \Closure $closure
  13807. * @static
  13808. */
  13809. public static function measure($label, $closure)
  13810. {
  13811. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13812. return $instance->measure($label, $closure);
  13813. }
  13814. /**
  13815. * Collect data in a CLI request
  13816. *
  13817. * @return array
  13818. * @static
  13819. */
  13820. public static function collectConsole()
  13821. {
  13822. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13823. return $instance->collectConsole();
  13824. }
  13825. /**
  13826. * Adds a message to the MessagesCollector
  13827. *
  13828. * A message can be anything from an object to a string
  13829. *
  13830. * @param mixed $message
  13831. * @param string $label
  13832. * @static
  13833. */
  13834. public static function addMessage($message, $label = 'info')
  13835. {
  13836. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13837. return $instance->addMessage($message, $label);
  13838. }
  13839. /**
  13840. * Checks if a data collector has been added
  13841. *
  13842. * @param string $name
  13843. * @return boolean
  13844. * @static
  13845. */
  13846. public static function hasCollector($name)
  13847. {
  13848. //Method inherited from \DebugBar\DebugBar
  13849. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13850. return $instance->hasCollector($name);
  13851. }
  13852. /**
  13853. * Returns a data collector
  13854. *
  13855. * @param string $name
  13856. * @return \DebugBar\DataCollectorInterface
  13857. * @throws DebugBarException
  13858. * @static
  13859. */
  13860. public static function getCollector($name)
  13861. {
  13862. //Method inherited from \DebugBar\DebugBar
  13863. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13864. return $instance->getCollector($name);
  13865. }
  13866. /**
  13867. * Returns an array of all data collectors
  13868. *
  13869. * @return \DebugBar\array[DataCollectorInterface]
  13870. * @static
  13871. */
  13872. public static function getCollectors()
  13873. {
  13874. //Method inherited from \DebugBar\DebugBar
  13875. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13876. return $instance->getCollectors();
  13877. }
  13878. /**
  13879. * Sets the request id generator
  13880. *
  13881. * @param \DebugBar\RequestIdGeneratorInterface $generator
  13882. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13883. * @static
  13884. */
  13885. public static function setRequestIdGenerator($generator)
  13886. {
  13887. //Method inherited from \DebugBar\DebugBar
  13888. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13889. return $instance->setRequestIdGenerator($generator);
  13890. }
  13891. /**
  13892. *
  13893. *
  13894. * @return \DebugBar\RequestIdGeneratorInterface
  13895. * @static
  13896. */
  13897. public static function getRequestIdGenerator()
  13898. {
  13899. //Method inherited from \DebugBar\DebugBar
  13900. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13901. return $instance->getRequestIdGenerator();
  13902. }
  13903. /**
  13904. * Returns the id of the current request
  13905. *
  13906. * @return string
  13907. * @static
  13908. */
  13909. public static function getCurrentRequestId()
  13910. {
  13911. //Method inherited from \DebugBar\DebugBar
  13912. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13913. return $instance->getCurrentRequestId();
  13914. }
  13915. /**
  13916. * Sets the storage backend to use to store the collected data
  13917. *
  13918. * @param \DebugBar\StorageInterface $storage
  13919. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13920. * @static
  13921. */
  13922. public static function setStorage($storage = null)
  13923. {
  13924. //Method inherited from \DebugBar\DebugBar
  13925. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13926. return $instance->setStorage($storage);
  13927. }
  13928. /**
  13929. *
  13930. *
  13931. * @return \DebugBar\StorageInterface
  13932. * @static
  13933. */
  13934. public static function getStorage()
  13935. {
  13936. //Method inherited from \DebugBar\DebugBar
  13937. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13938. return $instance->getStorage();
  13939. }
  13940. /**
  13941. * Checks if the data will be persisted
  13942. *
  13943. * @return boolean
  13944. * @static
  13945. */
  13946. public static function isDataPersisted()
  13947. {
  13948. //Method inherited from \DebugBar\DebugBar
  13949. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13950. return $instance->isDataPersisted();
  13951. }
  13952. /**
  13953. * Sets the HTTP driver
  13954. *
  13955. * @param \DebugBar\HttpDriverInterface $driver
  13956. * @return \Barryvdh\Debugbar\LaravelDebugbar
  13957. * @static
  13958. */
  13959. public static function setHttpDriver($driver)
  13960. {
  13961. //Method inherited from \DebugBar\DebugBar
  13962. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13963. return $instance->setHttpDriver($driver);
  13964. }
  13965. /**
  13966. * Returns the HTTP driver
  13967. *
  13968. * If no http driver where defined, a PhpHttpDriver is automatically created
  13969. *
  13970. * @return \DebugBar\HttpDriverInterface
  13971. * @static
  13972. */
  13973. public static function getHttpDriver()
  13974. {
  13975. //Method inherited from \DebugBar\DebugBar
  13976. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13977. return $instance->getHttpDriver();
  13978. }
  13979. /**
  13980. * Returns collected data
  13981. *
  13982. * Will collect the data if none have been collected yet
  13983. *
  13984. * @return array
  13985. * @static
  13986. */
  13987. public static function getData()
  13988. {
  13989. //Method inherited from \DebugBar\DebugBar
  13990. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  13991. return $instance->getData();
  13992. }
  13993. /**
  13994. * Returns an array of HTTP headers containing the data
  13995. *
  13996. * @param string $headerName
  13997. * @param integer $maxHeaderLength
  13998. * @return array
  13999. * @static
  14000. */
  14001. public static function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
  14002. {
  14003. //Method inherited from \DebugBar\DebugBar
  14004. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14005. return $instance->getDataAsHeaders($headerName, $maxHeaderLength, $maxTotalHeaderLength);
  14006. }
  14007. /**
  14008. * Sends the data through the HTTP headers
  14009. *
  14010. * @param bool $useOpenHandler
  14011. * @param string $headerName
  14012. * @param integer $maxHeaderLength
  14013. * @return \Barryvdh\Debugbar\LaravelDebugbar
  14014. * @static
  14015. */
  14016. public static function sendDataInHeaders($useOpenHandler = null, $headerName = 'phpdebugbar', $maxHeaderLength = 4096)
  14017. {
  14018. //Method inherited from \DebugBar\DebugBar
  14019. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14020. return $instance->sendDataInHeaders($useOpenHandler, $headerName, $maxHeaderLength);
  14021. }
  14022. /**
  14023. * Stacks the data in the session for later rendering
  14024. *
  14025. * @static
  14026. */
  14027. public static function stackData()
  14028. {
  14029. //Method inherited from \DebugBar\DebugBar
  14030. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14031. return $instance->stackData();
  14032. }
  14033. /**
  14034. * Checks if there is stacked data in the session
  14035. *
  14036. * @return boolean
  14037. * @static
  14038. */
  14039. public static function hasStackedData()
  14040. {
  14041. //Method inherited from \DebugBar\DebugBar
  14042. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14043. return $instance->hasStackedData();
  14044. }
  14045. /**
  14046. * Returns the data stacked in the session
  14047. *
  14048. * @param boolean $delete Whether to delete the data in the session
  14049. * @return array
  14050. * @static
  14051. */
  14052. public static function getStackedData($delete = true)
  14053. {
  14054. //Method inherited from \DebugBar\DebugBar
  14055. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14056. return $instance->getStackedData($delete);
  14057. }
  14058. /**
  14059. * Sets the key to use in the $_SESSION array
  14060. *
  14061. * @param string $ns
  14062. * @return \Barryvdh\Debugbar\LaravelDebugbar
  14063. * @static
  14064. */
  14065. public static function setStackDataSessionNamespace($ns)
  14066. {
  14067. //Method inherited from \DebugBar\DebugBar
  14068. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14069. return $instance->setStackDataSessionNamespace($ns);
  14070. }
  14071. /**
  14072. * Returns the key used in the $_SESSION array
  14073. *
  14074. * @return string
  14075. * @static
  14076. */
  14077. public static function getStackDataSessionNamespace()
  14078. {
  14079. //Method inherited from \DebugBar\DebugBar
  14080. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14081. return $instance->getStackDataSessionNamespace();
  14082. }
  14083. /**
  14084. * Sets whether to only use the session to store stacked data even
  14085. * if a storage is enabled
  14086. *
  14087. * @param boolean $enabled
  14088. * @return \Barryvdh\Debugbar\LaravelDebugbar
  14089. * @static
  14090. */
  14091. public static function setStackAlwaysUseSessionStorage($enabled = true)
  14092. {
  14093. //Method inherited from \DebugBar\DebugBar
  14094. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14095. return $instance->setStackAlwaysUseSessionStorage($enabled);
  14096. }
  14097. /**
  14098. * Checks if the session is always used to store stacked data
  14099. * even if a storage is enabled
  14100. *
  14101. * @return boolean
  14102. * @static
  14103. */
  14104. public static function isStackAlwaysUseSessionStorage()
  14105. {
  14106. //Method inherited from \DebugBar\DebugBar
  14107. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14108. return $instance->isStackAlwaysUseSessionStorage();
  14109. }
  14110. /**
  14111. *
  14112. *
  14113. * @static
  14114. */
  14115. public static function offsetSet($key, $value)
  14116. {
  14117. //Method inherited from \DebugBar\DebugBar
  14118. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14119. return $instance->offsetSet($key, $value);
  14120. }
  14121. /**
  14122. *
  14123. *
  14124. * @static
  14125. */
  14126. public static function offsetGet($key)
  14127. {
  14128. //Method inherited from \DebugBar\DebugBar
  14129. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14130. return $instance->offsetGet($key);
  14131. }
  14132. /**
  14133. *
  14134. *
  14135. * @static
  14136. */
  14137. public static function offsetExists($key)
  14138. {
  14139. //Method inherited from \DebugBar\DebugBar
  14140. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14141. return $instance->offsetExists($key);
  14142. }
  14143. /**
  14144. *
  14145. *
  14146. * @static
  14147. */
  14148. public static function offsetUnset($key)
  14149. {
  14150. //Method inherited from \DebugBar\DebugBar
  14151. /** @var \Barryvdh\Debugbar\LaravelDebugbar $instance */
  14152. return $instance->offsetUnset($key);
  14153. }
  14154. }
  14155. }
  14156. namespace Mews\Captcha\Facades {
  14157. /**
  14158. *
  14159. *
  14160. * @see \Mews\Captcha
  14161. */
  14162. class Captcha {
  14163. /**
  14164. * Create captcha image
  14165. *
  14166. * @param string $config
  14167. * @param bool $api
  14168. * @return array|mixed
  14169. * @throws Exception
  14170. * @static
  14171. */
  14172. public static function create($config = 'default', $api = false)
  14173. {
  14174. /** @var \Mews\Captcha\Captcha $instance */
  14175. return $instance->create($config, $api);
  14176. }
  14177. /**
  14178. * Captcha check
  14179. *
  14180. * @param string $value
  14181. * @return bool
  14182. * @static
  14183. */
  14184. public static function check($value)
  14185. {
  14186. /** @var \Mews\Captcha\Captcha $instance */
  14187. return $instance->check($value);
  14188. }
  14189. /**
  14190. * Captcha check
  14191. *
  14192. * @param string $value
  14193. * @param string $key
  14194. * @return bool
  14195. * @static
  14196. */
  14197. public static function check_api($value, $key)
  14198. {
  14199. /** @var \Mews\Captcha\Captcha $instance */
  14200. return $instance->check_api($value, $key);
  14201. }
  14202. /**
  14203. * Generate captcha image source
  14204. *
  14205. * @param string $config
  14206. * @return string
  14207. * @static
  14208. */
  14209. public static function src($config = 'default')
  14210. {
  14211. /** @var \Mews\Captcha\Captcha $instance */
  14212. return $instance->src($config);
  14213. }
  14214. /**
  14215. * Generate captcha image html tag
  14216. *
  14217. * @param string $config
  14218. * @param array $attrs $attrs -> HTML attributes supplied to the image tag where key is the attribute and the value is the attribute value
  14219. * @return string
  14220. * @static
  14221. */
  14222. public static function img($config = 'default', $attrs = [])
  14223. {
  14224. /** @var \Mews\Captcha\Captcha $instance */
  14225. return $instance->img($config, $attrs);
  14226. }
  14227. }
  14228. }
  14229. namespace Jenssegers\Agent\Facades {
  14230. /**
  14231. *
  14232. *
  14233. */
  14234. class Agent {
  14235. /**
  14236. * Get all detection rules. These rules include the additional
  14237. * platforms and browsers and utilities.
  14238. *
  14239. * @return array
  14240. * @static
  14241. */
  14242. public static function getDetectionRulesExtended()
  14243. {
  14244. return \Jenssegers\Agent\Agent::getDetectionRulesExtended();
  14245. }
  14246. /**
  14247. *
  14248. *
  14249. * @static
  14250. */
  14251. public static function getRules()
  14252. {
  14253. /** @var \Jenssegers\Agent\Agent $instance */
  14254. return $instance->getRules();
  14255. }
  14256. /**
  14257. *
  14258. *
  14259. * @return \Jenssegers\Agent\CrawlerDetect
  14260. * @static
  14261. */
  14262. public static function getCrawlerDetect()
  14263. {
  14264. /** @var \Jenssegers\Agent\Agent $instance */
  14265. return $instance->getCrawlerDetect();
  14266. }
  14267. /**
  14268. *
  14269. *
  14270. * @static
  14271. */
  14272. public static function getBrowsers()
  14273. {
  14274. return \Jenssegers\Agent\Agent::getBrowsers();
  14275. }
  14276. /**
  14277. *
  14278. *
  14279. * @static
  14280. */
  14281. public static function getOperatingSystems()
  14282. {
  14283. return \Jenssegers\Agent\Agent::getOperatingSystems();
  14284. }
  14285. /**
  14286. *
  14287. *
  14288. * @static
  14289. */
  14290. public static function getPlatforms()
  14291. {
  14292. return \Jenssegers\Agent\Agent::getPlatforms();
  14293. }
  14294. /**
  14295. *
  14296. *
  14297. * @static
  14298. */
  14299. public static function getDesktopDevices()
  14300. {
  14301. return \Jenssegers\Agent\Agent::getDesktopDevices();
  14302. }
  14303. /**
  14304. *
  14305. *
  14306. * @static
  14307. */
  14308. public static function getProperties()
  14309. {
  14310. return \Jenssegers\Agent\Agent::getProperties();
  14311. }
  14312. /**
  14313. * Get accept languages.
  14314. *
  14315. * @param string $acceptLanguage
  14316. * @return array
  14317. * @static
  14318. */
  14319. public static function languages($acceptLanguage = null)
  14320. {
  14321. /** @var \Jenssegers\Agent\Agent $instance */
  14322. return $instance->languages($acceptLanguage);
  14323. }
  14324. /**
  14325. * Get the browser name.
  14326. *
  14327. * @param string|null $userAgent
  14328. * @return string
  14329. * @static
  14330. */
  14331. public static function browser($userAgent = null)
  14332. {
  14333. /** @var \Jenssegers\Agent\Agent $instance */
  14334. return $instance->browser($userAgent);
  14335. }
  14336. /**
  14337. * Get the platform name.
  14338. *
  14339. * @param string|null $userAgent
  14340. * @return string
  14341. * @static
  14342. */
  14343. public static function platform($userAgent = null)
  14344. {
  14345. /** @var \Jenssegers\Agent\Agent $instance */
  14346. return $instance->platform($userAgent);
  14347. }
  14348. /**
  14349. * Get the device name.
  14350. *
  14351. * @param string|null $userAgent
  14352. * @return string
  14353. * @static
  14354. */
  14355. public static function device($userAgent = null)
  14356. {
  14357. /** @var \Jenssegers\Agent\Agent $instance */
  14358. return $instance->device($userAgent);
  14359. }
  14360. /**
  14361. * Check if the device is a desktop computer.
  14362. *
  14363. * @param string|null $userAgent deprecated
  14364. * @param array $httpHeaders deprecated
  14365. * @return bool
  14366. * @static
  14367. */
  14368. public static function isDesktop($userAgent = null, $httpHeaders = null)
  14369. {
  14370. /** @var \Jenssegers\Agent\Agent $instance */
  14371. return $instance->isDesktop($userAgent, $httpHeaders);
  14372. }
  14373. /**
  14374. * Check if the device is a mobile phone.
  14375. *
  14376. * @param string|null $userAgent deprecated
  14377. * @param array $httpHeaders deprecated
  14378. * @return bool
  14379. * @static
  14380. */
  14381. public static function isPhone($userAgent = null, $httpHeaders = null)
  14382. {
  14383. /** @var \Jenssegers\Agent\Agent $instance */
  14384. return $instance->isPhone($userAgent, $httpHeaders);
  14385. }
  14386. /**
  14387. * Get the robot name.
  14388. *
  14389. * @param string|null $userAgent
  14390. * @return string|bool
  14391. * @static
  14392. */
  14393. public static function robot($userAgent = null)
  14394. {
  14395. /** @var \Jenssegers\Agent\Agent $instance */
  14396. return $instance->robot($userAgent);
  14397. }
  14398. /**
  14399. * Check if device is a robot.
  14400. *
  14401. * @param string|null $userAgent
  14402. * @return bool
  14403. * @static
  14404. */
  14405. public static function isRobot($userAgent = null)
  14406. {
  14407. /** @var \Jenssegers\Agent\Agent $instance */
  14408. return $instance->isRobot($userAgent);
  14409. }
  14410. /**
  14411. *
  14412. *
  14413. * @static
  14414. */
  14415. public static function version($propertyName, $type = 'text')
  14416. {
  14417. /** @var \Jenssegers\Agent\Agent $instance */
  14418. return $instance->version($propertyName, $type);
  14419. }
  14420. /**
  14421. * Get the current script version.
  14422. *
  14423. * This is useful for the demo.php file,
  14424. * so people can check on what version they are testing
  14425. * for mobile devices.
  14426. *
  14427. * @return string The version number in semantic version format.
  14428. * @static
  14429. */
  14430. public static function getScriptVersion()
  14431. {
  14432. //Method inherited from \Mobile_Detect
  14433. return \Jenssegers\Agent\Agent::getScriptVersion();
  14434. }
  14435. /**
  14436. * Set the HTTP Headers. Must be PHP-flavored. This method will reset existing headers.
  14437. *
  14438. * @param array $httpHeaders The headers to set. If null, then using PHP's _SERVER to extract
  14439. * the headers. The default null is left for backwards compatibility.
  14440. * @static
  14441. */
  14442. public static function setHttpHeaders($httpHeaders = null)
  14443. {
  14444. //Method inherited from \Mobile_Detect
  14445. /** @var \Jenssegers\Agent\Agent $instance */
  14446. return $instance->setHttpHeaders($httpHeaders);
  14447. }
  14448. /**
  14449. * Retrieves the HTTP headers.
  14450. *
  14451. * @return array
  14452. * @static
  14453. */
  14454. public static function getHttpHeaders()
  14455. {
  14456. //Method inherited from \Mobile_Detect
  14457. /** @var \Jenssegers\Agent\Agent $instance */
  14458. return $instance->getHttpHeaders();
  14459. }
  14460. /**
  14461. * Retrieves a particular header. If it doesn't exist, no exception/error is caused.
  14462. *
  14463. * Simply null is returned.
  14464. *
  14465. * @param string $header The name of the header to retrieve. Can be HTTP compliant such as
  14466. * "User-Agent" or "X-Device-User-Agent" or can be php-esque with the
  14467. * all-caps, HTTP_ prefixed, underscore seperated awesomeness.
  14468. * @return string|null The value of the header.
  14469. * @static
  14470. */
  14471. public static function getHttpHeader($header)
  14472. {
  14473. //Method inherited from \Mobile_Detect
  14474. /** @var \Jenssegers\Agent\Agent $instance */
  14475. return $instance->getHttpHeader($header);
  14476. }
  14477. /**
  14478. *
  14479. *
  14480. * @static
  14481. */
  14482. public static function getMobileHeaders()
  14483. {
  14484. //Method inherited from \Mobile_Detect
  14485. /** @var \Jenssegers\Agent\Agent $instance */
  14486. return $instance->getMobileHeaders();
  14487. }
  14488. /**
  14489. * Get all possible HTTP headers that
  14490. * can contain the User-Agent string.
  14491. *
  14492. * @return array List of HTTP headers.
  14493. * @static
  14494. */
  14495. public static function getUaHttpHeaders()
  14496. {
  14497. //Method inherited from \Mobile_Detect
  14498. /** @var \Jenssegers\Agent\Agent $instance */
  14499. return $instance->getUaHttpHeaders();
  14500. }
  14501. /**
  14502. * Set CloudFront headers
  14503. * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/header-caching.html#header-caching-web-device
  14504. *
  14505. * @param array $cfHeaders List of HTTP headers
  14506. * @return boolean If there were CloudFront headers to be set
  14507. * @static
  14508. */
  14509. public static function setCfHeaders($cfHeaders = null)
  14510. {
  14511. //Method inherited from \Mobile_Detect
  14512. /** @var \Jenssegers\Agent\Agent $instance */
  14513. return $instance->setCfHeaders($cfHeaders);
  14514. }
  14515. /**
  14516. * Retrieves the cloudfront headers.
  14517. *
  14518. * @return array
  14519. * @static
  14520. */
  14521. public static function getCfHeaders()
  14522. {
  14523. //Method inherited from \Mobile_Detect
  14524. /** @var \Jenssegers\Agent\Agent $instance */
  14525. return $instance->getCfHeaders();
  14526. }
  14527. /**
  14528. * Set the User-Agent to be used.
  14529. *
  14530. * @param string $userAgent The user agent string to set.
  14531. * @return string|null
  14532. * @static
  14533. */
  14534. public static function setUserAgent($userAgent = null)
  14535. {
  14536. //Method inherited from \Mobile_Detect
  14537. /** @var \Jenssegers\Agent\Agent $instance */
  14538. return $instance->setUserAgent($userAgent);
  14539. }
  14540. /**
  14541. * Retrieve the User-Agent.
  14542. *
  14543. * @return string|null The user agent if it's set.
  14544. * @static
  14545. */
  14546. public static function getUserAgent()
  14547. {
  14548. //Method inherited from \Mobile_Detect
  14549. /** @var \Jenssegers\Agent\Agent $instance */
  14550. return $instance->getUserAgent();
  14551. }
  14552. /**
  14553. * Set the detection type. Must be one of self::DETECTION_TYPE_MOBILE or
  14554. * self::DETECTION_TYPE_EXTENDED. Otherwise, nothing is set.
  14555. *
  14556. * @deprecated since version 2.6.9
  14557. * @param string $type The type. Must be a self::DETECTION_TYPE_* constant. The default
  14558. * parameter is null which will default to self::DETECTION_TYPE_MOBILE.
  14559. * @static
  14560. */
  14561. public static function setDetectionType($type = null)
  14562. {
  14563. //Method inherited from \Mobile_Detect
  14564. /** @var \Jenssegers\Agent\Agent $instance */
  14565. return $instance->setDetectionType($type);
  14566. }
  14567. /**
  14568. *
  14569. *
  14570. * @static
  14571. */
  14572. public static function getMatchingRegex()
  14573. {
  14574. //Method inherited from \Mobile_Detect
  14575. /** @var \Jenssegers\Agent\Agent $instance */
  14576. return $instance->getMatchingRegex();
  14577. }
  14578. /**
  14579. *
  14580. *
  14581. * @static
  14582. */
  14583. public static function getMatchesArray()
  14584. {
  14585. //Method inherited from \Mobile_Detect
  14586. /** @var \Jenssegers\Agent\Agent $instance */
  14587. return $instance->getMatchesArray();
  14588. }
  14589. /**
  14590. * Retrieve the list of known phone devices.
  14591. *
  14592. * @return array List of phone devices.
  14593. * @static
  14594. */
  14595. public static function getPhoneDevices()
  14596. {
  14597. //Method inherited from \Mobile_Detect
  14598. return \Jenssegers\Agent\Agent::getPhoneDevices();
  14599. }
  14600. /**
  14601. * Retrieve the list of known tablet devices.
  14602. *
  14603. * @return array List of tablet devices.
  14604. * @static
  14605. */
  14606. public static function getTabletDevices()
  14607. {
  14608. //Method inherited from \Mobile_Detect
  14609. return \Jenssegers\Agent\Agent::getTabletDevices();
  14610. }
  14611. /**
  14612. * Alias for getBrowsers() method.
  14613. *
  14614. * @return array List of user agents.
  14615. * @static
  14616. */
  14617. public static function getUserAgents()
  14618. {
  14619. //Method inherited from \Mobile_Detect
  14620. return \Jenssegers\Agent\Agent::getUserAgents();
  14621. }
  14622. /**
  14623. * Retrieve the list of known utilities.
  14624. *
  14625. * @return array List of utilities.
  14626. * @static
  14627. */
  14628. public static function getUtilities()
  14629. {
  14630. //Method inherited from \Mobile_Detect
  14631. return \Jenssegers\Agent\Agent::getUtilities();
  14632. }
  14633. /**
  14634. * Method gets the mobile detection rules. This method is used for the magic methods $detect->is*().
  14635. *
  14636. * @deprecated since version 2.6.9
  14637. * @return array All the rules (but not extended).
  14638. * @static
  14639. */
  14640. public static function getMobileDetectionRules()
  14641. {
  14642. //Method inherited from \Mobile_Detect
  14643. return \Jenssegers\Agent\Agent::getMobileDetectionRules();
  14644. }
  14645. /**
  14646. * Method gets the mobile detection rules + utilities.
  14647. *
  14648. * The reason this is separate is because utilities rules
  14649. * don't necessary imply mobile. This method is used inside
  14650. * the new $detect->is('stuff') method.
  14651. *
  14652. * @deprecated since version 2.6.9
  14653. * @return array All the rules + extended.
  14654. * @static
  14655. */
  14656. public static function getMobileDetectionRulesExtended()
  14657. {
  14658. //Method inherited from \Mobile_Detect
  14659. /** @var \Jenssegers\Agent\Agent $instance */
  14660. return $instance->getMobileDetectionRulesExtended();
  14661. }
  14662. /**
  14663. * Check the HTTP headers for signs of mobile.
  14664. *
  14665. * This is the fastest mobile check possible; it's used
  14666. * inside isMobile() method.
  14667. *
  14668. * @return bool
  14669. * @static
  14670. */
  14671. public static function checkHttpHeadersForMobile()
  14672. {
  14673. //Method inherited from \Mobile_Detect
  14674. /** @var \Jenssegers\Agent\Agent $instance */
  14675. return $instance->checkHttpHeadersForMobile();
  14676. }
  14677. /**
  14678. * Check if the device is mobile.
  14679. *
  14680. * Returns true if any type of mobile device detected, including special ones
  14681. *
  14682. * @param null $userAgent deprecated
  14683. * @param null $httpHeaders deprecated
  14684. * @return bool
  14685. * @static
  14686. */
  14687. public static function isMobile($userAgent = null, $httpHeaders = null)
  14688. {
  14689. //Method inherited from \Mobile_Detect
  14690. /** @var \Jenssegers\Agent\Agent $instance */
  14691. return $instance->isMobile($userAgent, $httpHeaders);
  14692. }
  14693. /**
  14694. * Check if the device is a tablet.
  14695. *
  14696. * Return true if any type of tablet device is detected.
  14697. *
  14698. * @param string $userAgent deprecated
  14699. * @param array $httpHeaders deprecated
  14700. * @return bool
  14701. * @static
  14702. */
  14703. public static function isTablet($userAgent = null, $httpHeaders = null)
  14704. {
  14705. //Method inherited from \Mobile_Detect
  14706. /** @var \Jenssegers\Agent\Agent $instance */
  14707. return $instance->isTablet($userAgent, $httpHeaders);
  14708. }
  14709. /**
  14710. * This method checks for a certain property in the
  14711. * userAgent.
  14712. *
  14713. * @todo : The httpHeaders part is not yet used.
  14714. * @param string $key
  14715. * @param string $userAgent deprecated
  14716. * @param string $httpHeaders deprecated
  14717. * @return bool|int|null
  14718. * @static
  14719. */
  14720. public static function is($key, $userAgent = null, $httpHeaders = null)
  14721. {
  14722. //Method inherited from \Mobile_Detect
  14723. /** @var \Jenssegers\Agent\Agent $instance */
  14724. return $instance->is($key, $userAgent, $httpHeaders);
  14725. }
  14726. /**
  14727. * Some detection rules are relative (not standard),
  14728. * because of the diversity of devices, vendors and
  14729. * their conventions in representing the User-Agent or
  14730. * the HTTP headers.
  14731. *
  14732. * This method will be used to check custom regexes against
  14733. * the User-Agent string.
  14734. *
  14735. * @param $regex
  14736. * @param string $userAgent
  14737. * @return bool
  14738. * @todo : search in the HTTP headers too.
  14739. * @static
  14740. */
  14741. public static function match($regex, $userAgent = null)
  14742. {
  14743. //Method inherited from \Mobile_Detect
  14744. /** @var \Jenssegers\Agent\Agent $instance */
  14745. return $instance->match($regex, $userAgent);
  14746. }
  14747. /**
  14748. * Prepare the version number.
  14749. *
  14750. * @todo Remove the error supression from str_replace() call.
  14751. * @param string $ver The string version, like "2.6.21.2152";
  14752. * @return float
  14753. * @static
  14754. */
  14755. public static function prepareVersionNo($ver)
  14756. {
  14757. //Method inherited from \Mobile_Detect
  14758. /** @var \Jenssegers\Agent\Agent $instance */
  14759. return $instance->prepareVersionNo($ver);
  14760. }
  14761. /**
  14762. * Retrieve the mobile grading, using self::MOBILE_GRADE_* constants.
  14763. *
  14764. * @return string One of the self::MOBILE_GRADE_* constants.
  14765. * @static
  14766. */
  14767. public static function mobileGrade()
  14768. {
  14769. //Method inherited from \Mobile_Detect
  14770. /** @var \Jenssegers\Agent\Agent $instance */
  14771. return $instance->mobileGrade();
  14772. }
  14773. }
  14774. }
  14775. namespace Mews\Purifier\Facades {
  14776. /**
  14777. *
  14778. *
  14779. * @see \Mews\Purifier
  14780. */
  14781. class Purifier {
  14782. /**
  14783. *
  14784. *
  14785. * @param $dirty
  14786. * @param null $config
  14787. * @return mixed
  14788. * @static
  14789. */
  14790. public static function clean($dirty, $config = null)
  14791. {
  14792. /** @var \Mews\Purifier\Purifier $instance */
  14793. return $instance->clean($dirty, $config);
  14794. }
  14795. /**
  14796. * Get HTMLPurifier instance.
  14797. *
  14798. * @return \HTMLPurifier
  14799. * @static
  14800. */
  14801. public static function getInstance()
  14802. {
  14803. /** @var \Mews\Purifier\Purifier $instance */
  14804. return $instance->getInstance();
  14805. }
  14806. }
  14807. }
  14808. namespace Misechow\Geetest {
  14809. /**
  14810. *
  14811. *
  14812. */
  14813. class Geetest {
  14814. /**
  14815. *
  14816. *
  14817. * @return string
  14818. * @static
  14819. */
  14820. public static function getGeetestUrl()
  14821. {
  14822. /** @var \Misechow\Geetest\GeetestLib $instance */
  14823. return $instance->getGeetestUrl();
  14824. }
  14825. /**
  14826. *
  14827. *
  14828. * @param string $geetestUrl
  14829. * @return \Misechow\Geetest\GeetestLib
  14830. * @static
  14831. */
  14832. public static function setGeetestUrl($url)
  14833. {
  14834. /** @var \Misechow\Geetest\GeetestLib $instance */
  14835. return $instance->setGeetestUrl($url);
  14836. }
  14837. /**
  14838. * Check Geetest server is running or not.
  14839. *
  14840. * @param null $user_id
  14841. * @return int
  14842. * @static
  14843. */
  14844. public static function preProcess($param, $new_captcha = 1)
  14845. {
  14846. /** @var \Misechow\Geetest\GeetestLib $instance */
  14847. return $instance->preProcess($param, $new_captcha);
  14848. }
  14849. /**
  14850. *
  14851. *
  14852. * @return mixed
  14853. * @static
  14854. */
  14855. public static function getResponseStr()
  14856. {
  14857. /** @var \Misechow\Geetest\GeetestLib $instance */
  14858. return $instance->getResponseStr();
  14859. }
  14860. /**
  14861. *
  14862. *
  14863. * @return mixed
  14864. * @static
  14865. */
  14866. public static function getResponse()
  14867. {
  14868. /** @var \Misechow\Geetest\GeetestLib $instance */
  14869. return $instance->getResponse();
  14870. }
  14871. /**
  14872. * Get success validate result.
  14873. *
  14874. * @param $challenge
  14875. * @param $validate
  14876. * @param $seccode
  14877. * @param null $user_id
  14878. * @return int
  14879. * @static
  14880. */
  14881. public static function successValidate($challenge, $validate, $seccode, $param, $json_format = 1)
  14882. {
  14883. /** @var \Misechow\Geetest\GeetestLib $instance */
  14884. return $instance->successValidate($challenge, $validate, $seccode, $param, $json_format);
  14885. }
  14886. /**
  14887. * Get fail result.
  14888. *
  14889. * @param $challenge
  14890. * @param $validate
  14891. * @param $seccode
  14892. * @return int
  14893. * @static
  14894. */
  14895. public static function failValidate($challenge, $validate, $seccode)
  14896. {
  14897. /** @var \Misechow\Geetest\GeetestLib $instance */
  14898. return $instance->failValidate($challenge, $validate, $seccode);
  14899. }
  14900. /**
  14901. *
  14902. *
  14903. * @param string $product
  14904. * @static
  14905. */
  14906. public static function render($product = 'float', $captchaId = 'geetest-captcha')
  14907. {
  14908. /** @var \Misechow\Geetest\GeetestLib $instance */
  14909. return $instance->render($product, $captchaId);
  14910. }
  14911. }
  14912. }
  14913. namespace Misechow\NoCaptcha\Facades {
  14914. /**
  14915. *
  14916. *
  14917. */
  14918. class NoCaptcha {
  14919. /**
  14920. * Render HTML captcha.
  14921. *
  14922. * @param array $attributes
  14923. * @return string
  14924. * @static
  14925. */
  14926. public static function display($attributes = [])
  14927. {
  14928. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14929. return $instance->display($attributes);
  14930. }
  14931. /**
  14932. *
  14933. *
  14934. * @see display()
  14935. * @static
  14936. */
  14937. public static function displayWidget($attributes = [])
  14938. {
  14939. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14940. return $instance->displayWidget($attributes);
  14941. }
  14942. /**
  14943. * Display a Invisible reCAPTCHA by embedding a callback into a form submit button.
  14944. *
  14945. * @param string $formIdentifier the html ID of the form that should be submitted.
  14946. * @param string $text the text inside the form button
  14947. * @param array $attributes array of additional html elements
  14948. * @return string
  14949. * @static
  14950. */
  14951. public static function displaySubmit($formIdentifier, $text = 'submit', $attributes = [])
  14952. {
  14953. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14954. return $instance->displaySubmit($formIdentifier, $text, $attributes);
  14955. }
  14956. /**
  14957. * Render js source
  14958. *
  14959. * @param null $lang
  14960. * @param bool $callback
  14961. * @param string $onLoadClass
  14962. * @return string
  14963. * @static
  14964. */
  14965. public static function renderJs($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  14966. {
  14967. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14968. return $instance->renderJs($lang, $callback, $onLoadClass);
  14969. }
  14970. /**
  14971. * Verify no-captcha response.
  14972. *
  14973. * @param string $response
  14974. * @param string $clientIp
  14975. * @return bool
  14976. * @static
  14977. */
  14978. public static function verifyResponse($response, $clientIp = null)
  14979. {
  14980. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14981. return $instance->verifyResponse($response, $clientIp);
  14982. }
  14983. /**
  14984. * Verify no-captcha response by Symfony Request.
  14985. *
  14986. * @param \Request $request
  14987. * @return bool
  14988. * @static
  14989. */
  14990. public static function verifyRequest($request)
  14991. {
  14992. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  14993. return $instance->verifyRequest($request);
  14994. }
  14995. /**
  14996. * Get recaptcha js link.
  14997. *
  14998. * @param string $lang
  14999. * @param boolean $callback
  15000. * @param string $onLoadClass
  15001. * @return string
  15002. * @static
  15003. */
  15004. public static function getJsLink($lang = null, $callback = false, $onLoadClass = 'onloadCallBack')
  15005. {
  15006. /** @var \Misechow\NoCaptcha\NoCaptcha $instance */
  15007. return $instance->getJsLink($lang, $callback, $onLoadClass);
  15008. }
  15009. }
  15010. }
  15011. namespace Intervention\Image\Facades {
  15012. /**
  15013. *
  15014. *
  15015. */
  15016. class Image {
  15017. /**
  15018. * Overrides configuration settings
  15019. *
  15020. * @param array $config
  15021. * @return self
  15022. * @static
  15023. */
  15024. public static function configure($config = [])
  15025. {
  15026. /** @var \Intervention\Image\ImageManager $instance */
  15027. return $instance->configure($config);
  15028. }
  15029. /**
  15030. * Initiates an Image instance from different input types
  15031. *
  15032. * @param mixed $data
  15033. * @return \Intervention\Image\Image
  15034. * @static
  15035. */
  15036. public static function make($data)
  15037. {
  15038. /** @var \Intervention\Image\ImageManager $instance */
  15039. return $instance->make($data);
  15040. }
  15041. /**
  15042. * Creates an empty image canvas
  15043. *
  15044. * @param int $width
  15045. * @param int $height
  15046. * @param mixed $background
  15047. * @return \Intervention\Image\Image
  15048. * @static
  15049. */
  15050. public static function canvas($width, $height, $background = null)
  15051. {
  15052. /** @var \Intervention\Image\ImageManager $instance */
  15053. return $instance->canvas($width, $height, $background);
  15054. }
  15055. /**
  15056. * Create new cached image and run callback
  15057. * (requires additional package intervention/imagecache)
  15058. *
  15059. * @param \Closure $callback
  15060. * @param int $lifetime
  15061. * @param boolean $returnObj
  15062. * @return \Image
  15063. * @static
  15064. */
  15065. public static function cache($callback, $lifetime = null, $returnObj = false)
  15066. {
  15067. /** @var \Intervention\Image\ImageManager $instance */
  15068. return $instance->cache($callback, $lifetime, $returnObj);
  15069. }
  15070. }
  15071. }
  15072. namespace {
  15073. class App extends \Illuminate\Support\Facades\App {}
  15074. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  15075. class Auth extends \Illuminate\Support\Facades\Auth {}
  15076. class Blade extends \Illuminate\Support\Facades\Blade {}
  15077. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  15078. class Debugbar extends \Barryvdh\Debugbar\Facade {}
  15079. class Bus extends \Illuminate\Support\Facades\Bus {}
  15080. class Cache extends \Illuminate\Support\Facades\Cache {}
  15081. class Config extends \Illuminate\Support\Facades\Config {}
  15082. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  15083. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  15084. class DB extends \Illuminate\Support\Facades\DB {}
  15085. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  15086. /**
  15087. * Create and return an un-saved model instance.
  15088. *
  15089. * @param array $attributes
  15090. * @return \Illuminate\Database\Eloquent\Model
  15091. * @static
  15092. */
  15093. public static function make($attributes = [])
  15094. {
  15095. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15096. return $instance->make($attributes);
  15097. }
  15098. /**
  15099. * Register a new global scope.
  15100. *
  15101. * @param string $identifier
  15102. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  15103. * @return \Illuminate\Database\Eloquent\Builder
  15104. * @static
  15105. */
  15106. public static function withGlobalScope($identifier, $scope)
  15107. {
  15108. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15109. return $instance->withGlobalScope($identifier, $scope);
  15110. }
  15111. /**
  15112. * Remove a registered global scope.
  15113. *
  15114. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  15115. * @return \Illuminate\Database\Eloquent\Builder
  15116. * @static
  15117. */
  15118. public static function withoutGlobalScope($scope)
  15119. {
  15120. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15121. return $instance->withoutGlobalScope($scope);
  15122. }
  15123. /**
  15124. * Remove all or passed registered global scopes.
  15125. *
  15126. * @param array|null $scopes
  15127. * @return \Illuminate\Database\Eloquent\Builder
  15128. * @static
  15129. */
  15130. public static function withoutGlobalScopes($scopes = null)
  15131. {
  15132. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15133. return $instance->withoutGlobalScopes($scopes);
  15134. }
  15135. /**
  15136. * Get an array of global scopes that were removed from the query.
  15137. *
  15138. * @return array
  15139. * @static
  15140. */
  15141. public static function removedScopes()
  15142. {
  15143. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15144. return $instance->removedScopes();
  15145. }
  15146. /**
  15147. * Add a where clause on the primary key to the query.
  15148. *
  15149. * @param mixed $id
  15150. * @return \Illuminate\Database\Eloquent\Builder
  15151. * @static
  15152. */
  15153. public static function whereKey($id)
  15154. {
  15155. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15156. return $instance->whereKey($id);
  15157. }
  15158. /**
  15159. * Add a where clause on the primary key to the query.
  15160. *
  15161. * @param mixed $id
  15162. * @return \Illuminate\Database\Eloquent\Builder
  15163. * @static
  15164. */
  15165. public static function whereKeyNot($id)
  15166. {
  15167. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15168. return $instance->whereKeyNot($id);
  15169. }
  15170. /**
  15171. * Add a basic where clause to the query.
  15172. *
  15173. * @param string|array|\Closure $column
  15174. * @param mixed $operator
  15175. * @param mixed $value
  15176. * @param string $boolean
  15177. * @return \Illuminate\Database\Eloquent\Builder
  15178. * @static
  15179. */
  15180. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  15181. {
  15182. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15183. return $instance->where($column, $operator, $value, $boolean);
  15184. }
  15185. /**
  15186. * Add an "or where" clause to the query.
  15187. *
  15188. * @param \Closure|array|string $column
  15189. * @param mixed $operator
  15190. * @param mixed $value
  15191. * @return \Illuminate\Database\Eloquent\Builder|static
  15192. * @static
  15193. */
  15194. public static function orWhere($column, $operator = null, $value = null)
  15195. {
  15196. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15197. return $instance->orWhere($column, $operator, $value);
  15198. }
  15199. /**
  15200. * Add an "order by" clause for a timestamp to the query.
  15201. *
  15202. * @param string $column
  15203. * @return \Illuminate\Database\Eloquent\Builder
  15204. * @static
  15205. */
  15206. public static function latest($column = null)
  15207. {
  15208. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15209. return $instance->latest($column);
  15210. }
  15211. /**
  15212. * Add an "order by" clause for a timestamp to the query.
  15213. *
  15214. * @param string $column
  15215. * @return \Illuminate\Database\Eloquent\Builder
  15216. * @static
  15217. */
  15218. public static function oldest($column = null)
  15219. {
  15220. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15221. return $instance->oldest($column);
  15222. }
  15223. /**
  15224. * Create a collection of models from plain arrays.
  15225. *
  15226. * @param array $items
  15227. * @return \Illuminate\Database\Eloquent\Collection
  15228. * @static
  15229. */
  15230. public static function hydrate($items)
  15231. {
  15232. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15233. return $instance->hydrate($items);
  15234. }
  15235. /**
  15236. * Create a collection of models from a raw query.
  15237. *
  15238. * @param string $query
  15239. * @param array $bindings
  15240. * @return \Illuminate\Database\Eloquent\Collection
  15241. * @static
  15242. */
  15243. public static function fromQuery($query, $bindings = [])
  15244. {
  15245. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15246. return $instance->fromQuery($query, $bindings);
  15247. }
  15248. /**
  15249. * Find a model by its primary key.
  15250. *
  15251. * @param mixed $id
  15252. * @param array $columns
  15253. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  15254. * @static
  15255. */
  15256. public static function find($id, $columns = [])
  15257. {
  15258. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15259. return $instance->find($id, $columns);
  15260. }
  15261. /**
  15262. * Find multiple models by their primary keys.
  15263. *
  15264. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  15265. * @param array $columns
  15266. * @return \Illuminate\Database\Eloquent\Collection
  15267. * @static
  15268. */
  15269. public static function findMany($ids, $columns = [])
  15270. {
  15271. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15272. return $instance->findMany($ids, $columns);
  15273. }
  15274. /**
  15275. * Find a model by its primary key or throw an exception.
  15276. *
  15277. * @param mixed $id
  15278. * @param array $columns
  15279. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static|static[]
  15280. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  15281. * @static
  15282. */
  15283. public static function findOrFail($id, $columns = [])
  15284. {
  15285. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15286. return $instance->findOrFail($id, $columns);
  15287. }
  15288. /**
  15289. * Find a model by its primary key or return fresh model instance.
  15290. *
  15291. * @param mixed $id
  15292. * @param array $columns
  15293. * @return \Illuminate\Database\Eloquent\Model|static
  15294. * @static
  15295. */
  15296. public static function findOrNew($id, $columns = [])
  15297. {
  15298. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15299. return $instance->findOrNew($id, $columns);
  15300. }
  15301. /**
  15302. * Get the first record matching the attributes or instantiate it.
  15303. *
  15304. * @param array $attributes
  15305. * @param array $values
  15306. * @return \Illuminate\Database\Eloquent\Model|static
  15307. * @static
  15308. */
  15309. public static function firstOrNew($attributes, $values = [])
  15310. {
  15311. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15312. return $instance->firstOrNew($attributes, $values);
  15313. }
  15314. /**
  15315. * Get the first record matching the attributes or create it.
  15316. *
  15317. * @param array $attributes
  15318. * @param array $values
  15319. * @return \Illuminate\Database\Eloquent\Model|static
  15320. * @static
  15321. */
  15322. public static function firstOrCreate($attributes, $values = [])
  15323. {
  15324. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15325. return $instance->firstOrCreate($attributes, $values);
  15326. }
  15327. /**
  15328. * Create or update a record matching the attributes, and fill it with values.
  15329. *
  15330. * @param array $attributes
  15331. * @param array $values
  15332. * @return \Illuminate\Database\Eloquent\Model|static
  15333. * @static
  15334. */
  15335. public static function updateOrCreate($attributes, $values = [])
  15336. {
  15337. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15338. return $instance->updateOrCreate($attributes, $values);
  15339. }
  15340. /**
  15341. * Execute the query and get the first result or throw an exception.
  15342. *
  15343. * @param array $columns
  15344. * @return \Illuminate\Database\Eloquent\Model|static
  15345. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  15346. * @static
  15347. */
  15348. public static function firstOrFail($columns = [])
  15349. {
  15350. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15351. return $instance->firstOrFail($columns);
  15352. }
  15353. /**
  15354. * Execute the query and get the first result or call a callback.
  15355. *
  15356. * @param \Closure|array $columns
  15357. * @param \Closure|null $callback
  15358. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  15359. * @static
  15360. */
  15361. public static function firstOr($columns = [], $callback = null)
  15362. {
  15363. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15364. return $instance->firstOr($columns, $callback);
  15365. }
  15366. /**
  15367. * Get a single column's value from the first result of a query.
  15368. *
  15369. * @param string $column
  15370. * @return mixed
  15371. * @static
  15372. */
  15373. public static function value($column)
  15374. {
  15375. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15376. return $instance->value($column);
  15377. }
  15378. /**
  15379. * Execute the query as a "select" statement.
  15380. *
  15381. * @param array $columns
  15382. * @return \Illuminate\Database\Eloquent\Collection|static[]
  15383. * @static
  15384. */
  15385. public static function get($columns = [])
  15386. {
  15387. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15388. return $instance->get($columns);
  15389. }
  15390. /**
  15391. * Get the hydrated models without eager loading.
  15392. *
  15393. * @param array $columns
  15394. * @return \Illuminate\Database\Eloquent\Model[]|static[]
  15395. * @static
  15396. */
  15397. public static function getModels($columns = [])
  15398. {
  15399. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15400. return $instance->getModels($columns);
  15401. }
  15402. /**
  15403. * Eager load the relationships for the models.
  15404. *
  15405. * @param array $models
  15406. * @return array
  15407. * @static
  15408. */
  15409. public static function eagerLoadRelations($models)
  15410. {
  15411. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15412. return $instance->eagerLoadRelations($models);
  15413. }
  15414. /**
  15415. * Get a generator for the given query.
  15416. *
  15417. * @return \Generator
  15418. * @static
  15419. */
  15420. public static function cursor()
  15421. {
  15422. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15423. return $instance->cursor();
  15424. }
  15425. /**
  15426. * Chunk the results of a query by comparing numeric IDs.
  15427. *
  15428. * @param int $count
  15429. * @param callable $callback
  15430. * @param string|null $column
  15431. * @param string|null $alias
  15432. * @return bool
  15433. * @static
  15434. */
  15435. public static function chunkById($count, $callback, $column = null, $alias = null)
  15436. {
  15437. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15438. return $instance->chunkById($count, $callback, $column, $alias);
  15439. }
  15440. /**
  15441. * Get an array with the values of a given column.
  15442. *
  15443. * @param string $column
  15444. * @param string|null $key
  15445. * @return \Illuminate\Support\Collection
  15446. * @static
  15447. */
  15448. public static function pluck($column, $key = null)
  15449. {
  15450. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15451. return $instance->pluck($column, $key);
  15452. }
  15453. /**
  15454. * Paginate the given query.
  15455. *
  15456. * @param int $perPage
  15457. * @param array $columns
  15458. * @param string $pageName
  15459. * @param int|null $page
  15460. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  15461. * @throws \InvalidArgumentException
  15462. * @static
  15463. */
  15464. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15465. {
  15466. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15467. return $instance->paginate($perPage, $columns, $pageName, $page);
  15468. }
  15469. /**
  15470. * Paginate the given query into a simple paginator.
  15471. *
  15472. * @param int $perPage
  15473. * @param array $columns
  15474. * @param string $pageName
  15475. * @param int|null $page
  15476. * @return \Illuminate\Contracts\Pagination\Paginator
  15477. * @static
  15478. */
  15479. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  15480. {
  15481. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15482. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  15483. }
  15484. /**
  15485. * Save a new model and return the instance.
  15486. *
  15487. * @param array $attributes
  15488. * @return \Illuminate\Database\Eloquent\Model|$this
  15489. * @static
  15490. */
  15491. public static function create($attributes = [])
  15492. {
  15493. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15494. return $instance->create($attributes);
  15495. }
  15496. /**
  15497. * Save a new model and return the instance. Allow mass-assignment.
  15498. *
  15499. * @param array $attributes
  15500. * @return \Illuminate\Database\Eloquent\Model|$this
  15501. * @static
  15502. */
  15503. public static function forceCreate($attributes)
  15504. {
  15505. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15506. return $instance->forceCreate($attributes);
  15507. }
  15508. /**
  15509. * Register a replacement for the default delete function.
  15510. *
  15511. * @param \Closure $callback
  15512. * @return void
  15513. * @static
  15514. */
  15515. public static function onDelete($callback)
  15516. {
  15517. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15518. $instance->onDelete($callback);
  15519. }
  15520. /**
  15521. * Call the given local model scopes.
  15522. *
  15523. * @param array $scopes
  15524. * @return static|mixed
  15525. * @static
  15526. */
  15527. public static function scopes($scopes)
  15528. {
  15529. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15530. return $instance->scopes($scopes);
  15531. }
  15532. /**
  15533. * Apply the scopes to the Eloquent builder instance and return it.
  15534. *
  15535. * @return static
  15536. * @static
  15537. */
  15538. public static function applyScopes()
  15539. {
  15540. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15541. return $instance->applyScopes();
  15542. }
  15543. /**
  15544. * Prevent the specified relations from being eager loaded.
  15545. *
  15546. * @param mixed $relations
  15547. * @return \Illuminate\Database\Eloquent\Builder
  15548. * @static
  15549. */
  15550. public static function without($relations)
  15551. {
  15552. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15553. return $instance->without($relations);
  15554. }
  15555. /**
  15556. * Create a new instance of the model being queried.
  15557. *
  15558. * @param array $attributes
  15559. * @return \Illuminate\Database\Eloquent\Model|static
  15560. * @static
  15561. */
  15562. public static function newModelInstance($attributes = [])
  15563. {
  15564. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15565. return $instance->newModelInstance($attributes);
  15566. }
  15567. /**
  15568. * Get the underlying query builder instance.
  15569. *
  15570. * @return \Illuminate\Database\Query\Builder
  15571. * @static
  15572. */
  15573. public static function getQuery()
  15574. {
  15575. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15576. return $instance->getQuery();
  15577. }
  15578. /**
  15579. * Set the underlying query builder instance.
  15580. *
  15581. * @param \Illuminate\Database\Query\Builder $query
  15582. * @return \Illuminate\Database\Eloquent\Builder
  15583. * @static
  15584. */
  15585. public static function setQuery($query)
  15586. {
  15587. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15588. return $instance->setQuery($query);
  15589. }
  15590. /**
  15591. * Get a base query builder instance.
  15592. *
  15593. * @return \Illuminate\Database\Query\Builder
  15594. * @static
  15595. */
  15596. public static function toBase()
  15597. {
  15598. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15599. return $instance->toBase();
  15600. }
  15601. /**
  15602. * Get the relationships being eagerly loaded.
  15603. *
  15604. * @return array
  15605. * @static
  15606. */
  15607. public static function getEagerLoads()
  15608. {
  15609. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15610. return $instance->getEagerLoads();
  15611. }
  15612. /**
  15613. * Set the relationships being eagerly loaded.
  15614. *
  15615. * @param array $eagerLoad
  15616. * @return \Illuminate\Database\Eloquent\Builder
  15617. * @static
  15618. */
  15619. public static function setEagerLoads($eagerLoad)
  15620. {
  15621. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15622. return $instance->setEagerLoads($eagerLoad);
  15623. }
  15624. /**
  15625. * Get the model instance being queried.
  15626. *
  15627. * @return \Illuminate\Database\Eloquent\Model|static
  15628. * @static
  15629. */
  15630. public static function getModel()
  15631. {
  15632. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15633. return $instance->getModel();
  15634. }
  15635. /**
  15636. * Set a model instance for the model being queried.
  15637. *
  15638. * @param \Illuminate\Database\Eloquent\Model $model
  15639. * @return \Illuminate\Database\Eloquent\Builder
  15640. * @static
  15641. */
  15642. public static function setModel($model)
  15643. {
  15644. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15645. return $instance->setModel($model);
  15646. }
  15647. /**
  15648. * Get the given macro by name.
  15649. *
  15650. * @param string $name
  15651. * @return \Closure
  15652. * @static
  15653. */
  15654. public static function getMacro($name)
  15655. {
  15656. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15657. return $instance->getMacro($name);
  15658. }
  15659. /**
  15660. * Chunk the results of the query.
  15661. *
  15662. * @param int $count
  15663. * @param callable $callback
  15664. * @return bool
  15665. * @static
  15666. */
  15667. public static function chunk($count, $callback)
  15668. {
  15669. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15670. return $instance->chunk($count, $callback);
  15671. }
  15672. /**
  15673. * Execute a callback over each item while chunking.
  15674. *
  15675. * @param callable $callback
  15676. * @param int $count
  15677. * @return bool
  15678. * @static
  15679. */
  15680. public static function each($callback, $count = 1000)
  15681. {
  15682. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15683. return $instance->each($callback, $count);
  15684. }
  15685. /**
  15686. * Execute the query and get the first result.
  15687. *
  15688. * @param array $columns
  15689. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  15690. * @static
  15691. */
  15692. public static function first($columns = [])
  15693. {
  15694. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15695. return $instance->first($columns);
  15696. }
  15697. /**
  15698. * Apply the callback's query changes if the given "value" is true.
  15699. *
  15700. * @param mixed $value
  15701. * @param callable $callback
  15702. * @param callable|null $default
  15703. * @return mixed|$this
  15704. * @static
  15705. */
  15706. public static function when($value, $callback, $default = null)
  15707. {
  15708. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15709. return $instance->when($value, $callback, $default);
  15710. }
  15711. /**
  15712. * Pass the query to a given callback.
  15713. *
  15714. * @param callable $callback
  15715. * @return \Illuminate\Database\Query\Builder
  15716. * @static
  15717. */
  15718. public static function tap($callback)
  15719. {
  15720. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15721. return $instance->tap($callback);
  15722. }
  15723. /**
  15724. * Apply the callback's query changes if the given "value" is false.
  15725. *
  15726. * @param mixed $value
  15727. * @param callable $callback
  15728. * @param callable|null $default
  15729. * @return mixed|$this
  15730. * @static
  15731. */
  15732. public static function unless($value, $callback, $default = null)
  15733. {
  15734. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15735. return $instance->unless($value, $callback, $default);
  15736. }
  15737. /**
  15738. * Add a relationship count / exists condition to the query.
  15739. *
  15740. * @param string|\Illuminate\Database\Eloquent\Relations\Relation $relation
  15741. * @param string $operator
  15742. * @param int $count
  15743. * @param string $boolean
  15744. * @param \Closure|null $callback
  15745. * @return \Illuminate\Database\Eloquent\Builder|static
  15746. * @static
  15747. */
  15748. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15749. {
  15750. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15751. return $instance->has($relation, $operator, $count, $boolean, $callback);
  15752. }
  15753. /**
  15754. * Add a relationship count / exists condition to the query with an "or".
  15755. *
  15756. * @param string $relation
  15757. * @param string $operator
  15758. * @param int $count
  15759. * @return \Illuminate\Database\Eloquent\Builder|static
  15760. * @static
  15761. */
  15762. public static function orHas($relation, $operator = '>=', $count = 1)
  15763. {
  15764. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15765. return $instance->orHas($relation, $operator, $count);
  15766. }
  15767. /**
  15768. * Add a relationship count / exists condition to the query.
  15769. *
  15770. * @param string $relation
  15771. * @param string $boolean
  15772. * @param \Closure|null $callback
  15773. * @return \Illuminate\Database\Eloquent\Builder|static
  15774. * @static
  15775. */
  15776. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  15777. {
  15778. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15779. return $instance->doesntHave($relation, $boolean, $callback);
  15780. }
  15781. /**
  15782. * Add a relationship count / exists condition to the query with an "or".
  15783. *
  15784. * @param string $relation
  15785. * @return \Illuminate\Database\Eloquent\Builder|static
  15786. * @static
  15787. */
  15788. public static function orDoesntHave($relation)
  15789. {
  15790. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15791. return $instance->orDoesntHave($relation);
  15792. }
  15793. /**
  15794. * Add a relationship count / exists condition to the query with where clauses.
  15795. *
  15796. * @param string $relation
  15797. * @param \Closure|null $callback
  15798. * @param string $operator
  15799. * @param int $count
  15800. * @return \Illuminate\Database\Eloquent\Builder|static
  15801. * @static
  15802. */
  15803. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15804. {
  15805. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15806. return $instance->whereHas($relation, $callback, $operator, $count);
  15807. }
  15808. /**
  15809. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15810. *
  15811. * @param string $relation
  15812. * @param \Closure $callback
  15813. * @param string $operator
  15814. * @param int $count
  15815. * @return \Illuminate\Database\Eloquent\Builder|static
  15816. * @static
  15817. */
  15818. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  15819. {
  15820. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15821. return $instance->orWhereHas($relation, $callback, $operator, $count);
  15822. }
  15823. /**
  15824. * Add a relationship count / exists condition to the query with where clauses.
  15825. *
  15826. * @param string $relation
  15827. * @param \Closure|null $callback
  15828. * @return \Illuminate\Database\Eloquent\Builder|static
  15829. * @static
  15830. */
  15831. public static function whereDoesntHave($relation, $callback = null)
  15832. {
  15833. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15834. return $instance->whereDoesntHave($relation, $callback);
  15835. }
  15836. /**
  15837. * Add a relationship count / exists condition to the query with where clauses and an "or".
  15838. *
  15839. * @param string $relation
  15840. * @param \Closure $callback
  15841. * @return \Illuminate\Database\Eloquent\Builder|static
  15842. * @static
  15843. */
  15844. public static function orWhereDoesntHave($relation, $callback = null)
  15845. {
  15846. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15847. return $instance->orWhereDoesntHave($relation, $callback);
  15848. }
  15849. /**
  15850. * Add a polymorphic relationship count / exists condition to the query.
  15851. *
  15852. * @param string $relation
  15853. * @param string|array $types
  15854. * @param string $operator
  15855. * @param int $count
  15856. * @param string $boolean
  15857. * @param \Closure|null $callback
  15858. * @return \Illuminate\Database\Eloquent\Builder|static
  15859. * @static
  15860. */
  15861. public static function hasMorph($relation, $types, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  15862. {
  15863. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15864. return $instance->hasMorph($relation, $types, $operator, $count, $boolean, $callback);
  15865. }
  15866. /**
  15867. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15868. *
  15869. * @param string $relation
  15870. * @param string|array $types
  15871. * @param string $operator
  15872. * @param int $count
  15873. * @return \Illuminate\Database\Eloquent\Builder|static
  15874. * @static
  15875. */
  15876. public static function orHasMorph($relation, $types, $operator = '>=', $count = 1)
  15877. {
  15878. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15879. return $instance->orHasMorph($relation, $types, $operator, $count);
  15880. }
  15881. /**
  15882. * Add a polymorphic relationship count / exists condition to the query.
  15883. *
  15884. * @param string $relation
  15885. * @param string|array $types
  15886. * @param string $boolean
  15887. * @param \Closure|null $callback
  15888. * @return \Illuminate\Database\Eloquent\Builder|static
  15889. * @static
  15890. */
  15891. public static function doesntHaveMorph($relation, $types, $boolean = 'and', $callback = null)
  15892. {
  15893. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15894. return $instance->doesntHaveMorph($relation, $types, $boolean, $callback);
  15895. }
  15896. /**
  15897. * Add a polymorphic relationship count / exists condition to the query with an "or".
  15898. *
  15899. * @param string $relation
  15900. * @param string|array $types
  15901. * @return \Illuminate\Database\Eloquent\Builder|static
  15902. * @static
  15903. */
  15904. public static function orDoesntHaveMorph($relation, $types)
  15905. {
  15906. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15907. return $instance->orDoesntHaveMorph($relation, $types);
  15908. }
  15909. /**
  15910. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15911. *
  15912. * @param string $relation
  15913. * @param string|array $types
  15914. * @param \Closure|null $callback
  15915. * @param string $operator
  15916. * @param int $count
  15917. * @return \Illuminate\Database\Eloquent\Builder|static
  15918. * @static
  15919. */
  15920. public static function whereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  15921. {
  15922. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15923. return $instance->whereHasMorph($relation, $types, $callback, $operator, $count);
  15924. }
  15925. /**
  15926. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  15927. *
  15928. * @param string $relation
  15929. * @param string|array $types
  15930. * @param \Closure $callback
  15931. * @param string $operator
  15932. * @param int $count
  15933. * @return \Illuminate\Database\Eloquent\Builder|static
  15934. * @static
  15935. */
  15936. public static function orWhereHasMorph($relation, $types, $callback = null, $operator = '>=', $count = 1)
  15937. {
  15938. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15939. return $instance->orWhereHasMorph($relation, $types, $callback, $operator, $count);
  15940. }
  15941. /**
  15942. * Add a polymorphic relationship count / exists condition to the query with where clauses.
  15943. *
  15944. * @param string $relation
  15945. * @param string|array $types
  15946. * @param \Closure|null $callback
  15947. * @return \Illuminate\Database\Eloquent\Builder|static
  15948. * @static
  15949. */
  15950. public static function whereDoesntHaveMorph($relation, $types, $callback = null)
  15951. {
  15952. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15953. return $instance->whereDoesntHaveMorph($relation, $types, $callback);
  15954. }
  15955. /**
  15956. * Add a polymorphic relationship count / exists condition to the query with where clauses and an "or".
  15957. *
  15958. * @param string $relation
  15959. * @param string|array $types
  15960. * @param \Closure $callback
  15961. * @return \Illuminate\Database\Eloquent\Builder|static
  15962. * @static
  15963. */
  15964. public static function orWhereDoesntHaveMorph($relation, $types, $callback = null)
  15965. {
  15966. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15967. return $instance->orWhereDoesntHaveMorph($relation, $types, $callback);
  15968. }
  15969. /**
  15970. * Add subselect queries to count the relations.
  15971. *
  15972. * @param mixed $relations
  15973. * @return \Illuminate\Database\Eloquent\Builder
  15974. * @static
  15975. */
  15976. public static function withCount($relations)
  15977. {
  15978. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15979. return $instance->withCount($relations);
  15980. }
  15981. /**
  15982. * Merge the where constraints from another query to the current query.
  15983. *
  15984. * @param \Illuminate\Database\Eloquent\Builder $from
  15985. * @return \Illuminate\Database\Eloquent\Builder|static
  15986. * @static
  15987. */
  15988. public static function mergeConstraintsFrom($from)
  15989. {
  15990. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  15991. return $instance->mergeConstraintsFrom($from);
  15992. }
  15993. /**
  15994. * Set the columns to be selected.
  15995. *
  15996. * @param array|mixed $columns
  15997. * @return \Illuminate\Database\Query\Builder
  15998. * @static
  15999. */
  16000. public static function select($columns = [])
  16001. {
  16002. /** @var \Illuminate\Database\Query\Builder $instance */
  16003. return $instance->select($columns);
  16004. }
  16005. /**
  16006. * Add a subselect expression to the query.
  16007. *
  16008. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16009. * @param string $as
  16010. * @return \Illuminate\Database\Query\Builder|static
  16011. * @throws \InvalidArgumentException
  16012. * @static
  16013. */
  16014. public static function selectSub($query, $as)
  16015. {
  16016. /** @var \Illuminate\Database\Query\Builder $instance */
  16017. return $instance->selectSub($query, $as);
  16018. }
  16019. /**
  16020. * Add a new "raw" select expression to the query.
  16021. *
  16022. * @param string $expression
  16023. * @param array $bindings
  16024. * @return \Illuminate\Database\Query\Builder|static
  16025. * @static
  16026. */
  16027. public static function selectRaw($expression, $bindings = [])
  16028. {
  16029. /** @var \Illuminate\Database\Query\Builder $instance */
  16030. return $instance->selectRaw($expression, $bindings);
  16031. }
  16032. /**
  16033. * Makes "from" fetch from a subquery.
  16034. *
  16035. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16036. * @param string $as
  16037. * @return \Illuminate\Database\Query\Builder|static
  16038. * @throws \InvalidArgumentException
  16039. * @static
  16040. */
  16041. public static function fromSub($query, $as)
  16042. {
  16043. /** @var \Illuminate\Database\Query\Builder $instance */
  16044. return $instance->fromSub($query, $as);
  16045. }
  16046. /**
  16047. * Add a raw from clause to the query.
  16048. *
  16049. * @param string $expression
  16050. * @param mixed $bindings
  16051. * @return \Illuminate\Database\Query\Builder|static
  16052. * @static
  16053. */
  16054. public static function fromRaw($expression, $bindings = [])
  16055. {
  16056. /** @var \Illuminate\Database\Query\Builder $instance */
  16057. return $instance->fromRaw($expression, $bindings);
  16058. }
  16059. /**
  16060. * Add a new select column to the query.
  16061. *
  16062. * @param array|mixed $column
  16063. * @return \Illuminate\Database\Query\Builder
  16064. * @static
  16065. */
  16066. public static function addSelect($column)
  16067. {
  16068. /** @var \Illuminate\Database\Query\Builder $instance */
  16069. return $instance->addSelect($column);
  16070. }
  16071. /**
  16072. * Force the query to only return distinct results.
  16073. *
  16074. * @return \Illuminate\Database\Query\Builder
  16075. * @static
  16076. */
  16077. public static function distinct()
  16078. {
  16079. /** @var \Illuminate\Database\Query\Builder $instance */
  16080. return $instance->distinct();
  16081. }
  16082. /**
  16083. * Set the table which the query is targeting.
  16084. *
  16085. * @param string $table
  16086. * @return \Illuminate\Database\Query\Builder
  16087. * @static
  16088. */
  16089. public static function from($table)
  16090. {
  16091. /** @var \Illuminate\Database\Query\Builder $instance */
  16092. return $instance->from($table);
  16093. }
  16094. /**
  16095. * Add a join clause to the query.
  16096. *
  16097. * @param string $table
  16098. * @param \Closure|string $first
  16099. * @param string|null $operator
  16100. * @param string|null $second
  16101. * @param string $type
  16102. * @param bool $where
  16103. * @return \Illuminate\Database\Query\Builder
  16104. * @static
  16105. */
  16106. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  16107. {
  16108. /** @var \Illuminate\Database\Query\Builder $instance */
  16109. return $instance->join($table, $first, $operator, $second, $type, $where);
  16110. }
  16111. /**
  16112. * Add a "join where" clause to the query.
  16113. *
  16114. * @param string $table
  16115. * @param \Closure|string $first
  16116. * @param string $operator
  16117. * @param string $second
  16118. * @param string $type
  16119. * @return \Illuminate\Database\Query\Builder|static
  16120. * @static
  16121. */
  16122. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  16123. {
  16124. /** @var \Illuminate\Database\Query\Builder $instance */
  16125. return $instance->joinWhere($table, $first, $operator, $second, $type);
  16126. }
  16127. /**
  16128. * Add a subquery join clause to the query.
  16129. *
  16130. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16131. * @param string $as
  16132. * @param \Closure|string $first
  16133. * @param string|null $operator
  16134. * @param string|null $second
  16135. * @param string $type
  16136. * @param bool $where
  16137. * @return \Illuminate\Database\Query\Builder|static
  16138. * @throws \InvalidArgumentException
  16139. * @static
  16140. */
  16141. public static function joinSub($query, $as, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  16142. {
  16143. /** @var \Illuminate\Database\Query\Builder $instance */
  16144. return $instance->joinSub($query, $as, $first, $operator, $second, $type, $where);
  16145. }
  16146. /**
  16147. * Add a left join to the query.
  16148. *
  16149. * @param string $table
  16150. * @param \Closure|string $first
  16151. * @param string|null $operator
  16152. * @param string|null $second
  16153. * @return \Illuminate\Database\Query\Builder|static
  16154. * @static
  16155. */
  16156. public static function leftJoin($table, $first, $operator = null, $second = null)
  16157. {
  16158. /** @var \Illuminate\Database\Query\Builder $instance */
  16159. return $instance->leftJoin($table, $first, $operator, $second);
  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. * @return \Illuminate\Database\Query\Builder|static
  16169. * @static
  16170. */
  16171. public static function leftJoinWhere($table, $first, $operator, $second)
  16172. {
  16173. /** @var \Illuminate\Database\Query\Builder $instance */
  16174. return $instance->leftJoinWhere($table, $first, $operator, $second);
  16175. }
  16176. /**
  16177. * Add a subquery left join to the query.
  16178. *
  16179. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16180. * @param string $as
  16181. * @param \Closure|string $first
  16182. * @param string|null $operator
  16183. * @param string|null $second
  16184. * @return \Illuminate\Database\Query\Builder|static
  16185. * @static
  16186. */
  16187. public static function leftJoinSub($query, $as, $first, $operator = null, $second = null)
  16188. {
  16189. /** @var \Illuminate\Database\Query\Builder $instance */
  16190. return $instance->leftJoinSub($query, $as, $first, $operator, $second);
  16191. }
  16192. /**
  16193. * Add a right join to the query.
  16194. *
  16195. * @param string $table
  16196. * @param \Closure|string $first
  16197. * @param string|null $operator
  16198. * @param string|null $second
  16199. * @return \Illuminate\Database\Query\Builder|static
  16200. * @static
  16201. */
  16202. public static function rightJoin($table, $first, $operator = null, $second = null)
  16203. {
  16204. /** @var \Illuminate\Database\Query\Builder $instance */
  16205. return $instance->rightJoin($table, $first, $operator, $second);
  16206. }
  16207. /**
  16208. * Add a "right join where" clause to the query.
  16209. *
  16210. * @param string $table
  16211. * @param \Closure|string $first
  16212. * @param string $operator
  16213. * @param string $second
  16214. * @return \Illuminate\Database\Query\Builder|static
  16215. * @static
  16216. */
  16217. public static function rightJoinWhere($table, $first, $operator, $second)
  16218. {
  16219. /** @var \Illuminate\Database\Query\Builder $instance */
  16220. return $instance->rightJoinWhere($table, $first, $operator, $second);
  16221. }
  16222. /**
  16223. * Add a subquery right join to the query.
  16224. *
  16225. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  16226. * @param string $as
  16227. * @param \Closure|string $first
  16228. * @param string|null $operator
  16229. * @param string|null $second
  16230. * @return \Illuminate\Database\Query\Builder|static
  16231. * @static
  16232. */
  16233. public static function rightJoinSub($query, $as, $first, $operator = null, $second = null)
  16234. {
  16235. /** @var \Illuminate\Database\Query\Builder $instance */
  16236. return $instance->rightJoinSub($query, $as, $first, $operator, $second);
  16237. }
  16238. /**
  16239. * Add a "cross join" clause to the query.
  16240. *
  16241. * @param string $table
  16242. * @param \Closure|string|null $first
  16243. * @param string|null $operator
  16244. * @param string|null $second
  16245. * @return \Illuminate\Database\Query\Builder|static
  16246. * @static
  16247. */
  16248. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  16249. {
  16250. /** @var \Illuminate\Database\Query\Builder $instance */
  16251. return $instance->crossJoin($table, $first, $operator, $second);
  16252. }
  16253. /**
  16254. * Merge an array of where clauses and bindings.
  16255. *
  16256. * @param array $wheres
  16257. * @param array $bindings
  16258. * @return void
  16259. * @static
  16260. */
  16261. public static function mergeWheres($wheres, $bindings)
  16262. {
  16263. /** @var \Illuminate\Database\Query\Builder $instance */
  16264. $instance->mergeWheres($wheres, $bindings);
  16265. }
  16266. /**
  16267. * Prepare the value and operator for a where clause.
  16268. *
  16269. * @param string $value
  16270. * @param string $operator
  16271. * @param bool $useDefault
  16272. * @return array
  16273. * @throws \InvalidArgumentException
  16274. * @static
  16275. */
  16276. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  16277. {
  16278. /** @var \Illuminate\Database\Query\Builder $instance */
  16279. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  16280. }
  16281. /**
  16282. * Add a "where" clause comparing two columns to the query.
  16283. *
  16284. * @param string|array $first
  16285. * @param string|null $operator
  16286. * @param string|null $second
  16287. * @param string|null $boolean
  16288. * @return \Illuminate\Database\Query\Builder|static
  16289. * @static
  16290. */
  16291. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  16292. {
  16293. /** @var \Illuminate\Database\Query\Builder $instance */
  16294. return $instance->whereColumn($first, $operator, $second, $boolean);
  16295. }
  16296. /**
  16297. * Add an "or where" clause comparing two columns to the query.
  16298. *
  16299. * @param string|array $first
  16300. * @param string|null $operator
  16301. * @param string|null $second
  16302. * @return \Illuminate\Database\Query\Builder|static
  16303. * @static
  16304. */
  16305. public static function orWhereColumn($first, $operator = null, $second = null)
  16306. {
  16307. /** @var \Illuminate\Database\Query\Builder $instance */
  16308. return $instance->orWhereColumn($first, $operator, $second);
  16309. }
  16310. /**
  16311. * Add a raw where clause to the query.
  16312. *
  16313. * @param string $sql
  16314. * @param mixed $bindings
  16315. * @param string $boolean
  16316. * @return \Illuminate\Database\Query\Builder
  16317. * @static
  16318. */
  16319. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  16320. {
  16321. /** @var \Illuminate\Database\Query\Builder $instance */
  16322. return $instance->whereRaw($sql, $bindings, $boolean);
  16323. }
  16324. /**
  16325. * Add a raw or where clause to the query.
  16326. *
  16327. * @param string $sql
  16328. * @param mixed $bindings
  16329. * @return \Illuminate\Database\Query\Builder|static
  16330. * @static
  16331. */
  16332. public static function orWhereRaw($sql, $bindings = [])
  16333. {
  16334. /** @var \Illuminate\Database\Query\Builder $instance */
  16335. return $instance->orWhereRaw($sql, $bindings);
  16336. }
  16337. /**
  16338. * Add a "where in" clause to the query.
  16339. *
  16340. * @param string $column
  16341. * @param mixed $values
  16342. * @param string $boolean
  16343. * @param bool $not
  16344. * @return \Illuminate\Database\Query\Builder
  16345. * @static
  16346. */
  16347. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  16348. {
  16349. /** @var \Illuminate\Database\Query\Builder $instance */
  16350. return $instance->whereIn($column, $values, $boolean, $not);
  16351. }
  16352. /**
  16353. * Add an "or where in" clause to the query.
  16354. *
  16355. * @param string $column
  16356. * @param mixed $values
  16357. * @return \Illuminate\Database\Query\Builder|static
  16358. * @static
  16359. */
  16360. public static function orWhereIn($column, $values)
  16361. {
  16362. /** @var \Illuminate\Database\Query\Builder $instance */
  16363. return $instance->orWhereIn($column, $values);
  16364. }
  16365. /**
  16366. * Add a "where not in" clause to the query.
  16367. *
  16368. * @param string $column
  16369. * @param mixed $values
  16370. * @param string $boolean
  16371. * @return \Illuminate\Database\Query\Builder|static
  16372. * @static
  16373. */
  16374. public static function whereNotIn($column, $values, $boolean = 'and')
  16375. {
  16376. /** @var \Illuminate\Database\Query\Builder $instance */
  16377. return $instance->whereNotIn($column, $values, $boolean);
  16378. }
  16379. /**
  16380. * Add an "or where not in" clause to the query.
  16381. *
  16382. * @param string $column
  16383. * @param mixed $values
  16384. * @return \Illuminate\Database\Query\Builder|static
  16385. * @static
  16386. */
  16387. public static function orWhereNotIn($column, $values)
  16388. {
  16389. /** @var \Illuminate\Database\Query\Builder $instance */
  16390. return $instance->orWhereNotIn($column, $values);
  16391. }
  16392. /**
  16393. * Add a "where in raw" clause for integer values to the query.
  16394. *
  16395. * @param string $column
  16396. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16397. * @param string $boolean
  16398. * @param bool $not
  16399. * @return \Illuminate\Database\Query\Builder
  16400. * @static
  16401. */
  16402. public static function whereIntegerInRaw($column, $values, $boolean = 'and', $not = false)
  16403. {
  16404. /** @var \Illuminate\Database\Query\Builder $instance */
  16405. return $instance->whereIntegerInRaw($column, $values, $boolean, $not);
  16406. }
  16407. /**
  16408. * Add a "where not in raw" clause for integer values to the query.
  16409. *
  16410. * @param string $column
  16411. * @param \Illuminate\Contracts\Support\Arrayable|array $values
  16412. * @param string $boolean
  16413. * @return \Illuminate\Database\Query\Builder
  16414. * @static
  16415. */
  16416. public static function whereIntegerNotInRaw($column, $values, $boolean = 'and')
  16417. {
  16418. /** @var \Illuminate\Database\Query\Builder $instance */
  16419. return $instance->whereIntegerNotInRaw($column, $values, $boolean);
  16420. }
  16421. /**
  16422. * Add a "where null" clause to the query.
  16423. *
  16424. * @param string|array $columns
  16425. * @param string $boolean
  16426. * @param bool $not
  16427. * @return \Illuminate\Database\Query\Builder
  16428. * @static
  16429. */
  16430. public static function whereNull($columns, $boolean = 'and', $not = false)
  16431. {
  16432. /** @var \Illuminate\Database\Query\Builder $instance */
  16433. return $instance->whereNull($columns, $boolean, $not);
  16434. }
  16435. /**
  16436. * Add an "or where null" clause to the query.
  16437. *
  16438. * @param string $column
  16439. * @return \Illuminate\Database\Query\Builder|static
  16440. * @static
  16441. */
  16442. public static function orWhereNull($column)
  16443. {
  16444. /** @var \Illuminate\Database\Query\Builder $instance */
  16445. return $instance->orWhereNull($column);
  16446. }
  16447. /**
  16448. * Add a "where not null" clause to the query.
  16449. *
  16450. * @param string $column
  16451. * @param string $boolean
  16452. * @return \Illuminate\Database\Query\Builder|static
  16453. * @static
  16454. */
  16455. public static function whereNotNull($column, $boolean = 'and')
  16456. {
  16457. /** @var \Illuminate\Database\Query\Builder $instance */
  16458. return $instance->whereNotNull($column, $boolean);
  16459. }
  16460. /**
  16461. * Add a where between statement to the query.
  16462. *
  16463. * @param string $column
  16464. * @param array $values
  16465. * @param string $boolean
  16466. * @param bool $not
  16467. * @return \Illuminate\Database\Query\Builder
  16468. * @static
  16469. */
  16470. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  16471. {
  16472. /** @var \Illuminate\Database\Query\Builder $instance */
  16473. return $instance->whereBetween($column, $values, $boolean, $not);
  16474. }
  16475. /**
  16476. * Add an or where between statement to the query.
  16477. *
  16478. * @param string $column
  16479. * @param array $values
  16480. * @return \Illuminate\Database\Query\Builder|static
  16481. * @static
  16482. */
  16483. public static function orWhereBetween($column, $values)
  16484. {
  16485. /** @var \Illuminate\Database\Query\Builder $instance */
  16486. return $instance->orWhereBetween($column, $values);
  16487. }
  16488. /**
  16489. * Add a where not between statement to the query.
  16490. *
  16491. * @param string $column
  16492. * @param array $values
  16493. * @param string $boolean
  16494. * @return \Illuminate\Database\Query\Builder|static
  16495. * @static
  16496. */
  16497. public static function whereNotBetween($column, $values, $boolean = 'and')
  16498. {
  16499. /** @var \Illuminate\Database\Query\Builder $instance */
  16500. return $instance->whereNotBetween($column, $values, $boolean);
  16501. }
  16502. /**
  16503. * Add an or where not between statement to the query.
  16504. *
  16505. * @param string $column
  16506. * @param array $values
  16507. * @return \Illuminate\Database\Query\Builder|static
  16508. * @static
  16509. */
  16510. public static function orWhereNotBetween($column, $values)
  16511. {
  16512. /** @var \Illuminate\Database\Query\Builder $instance */
  16513. return $instance->orWhereNotBetween($column, $values);
  16514. }
  16515. /**
  16516. * Add an "or where not null" clause to the query.
  16517. *
  16518. * @param string $column
  16519. * @return \Illuminate\Database\Query\Builder|static
  16520. * @static
  16521. */
  16522. public static function orWhereNotNull($column)
  16523. {
  16524. /** @var \Illuminate\Database\Query\Builder $instance */
  16525. return $instance->orWhereNotNull($column);
  16526. }
  16527. /**
  16528. * Add a "where date" statement to the query.
  16529. *
  16530. * @param string $column
  16531. * @param string $operator
  16532. * @param \DateTimeInterface|string|null $value
  16533. * @param string $boolean
  16534. * @return \Illuminate\Database\Query\Builder|static
  16535. * @static
  16536. */
  16537. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  16538. {
  16539. /** @var \Illuminate\Database\Query\Builder $instance */
  16540. return $instance->whereDate($column, $operator, $value, $boolean);
  16541. }
  16542. /**
  16543. * Add an "or where date" statement to the query.
  16544. *
  16545. * @param string $column
  16546. * @param string $operator
  16547. * @param \DateTimeInterface|string|null $value
  16548. * @return \Illuminate\Database\Query\Builder|static
  16549. * @static
  16550. */
  16551. public static function orWhereDate($column, $operator, $value = null)
  16552. {
  16553. /** @var \Illuminate\Database\Query\Builder $instance */
  16554. return $instance->orWhereDate($column, $operator, $value);
  16555. }
  16556. /**
  16557. * Add a "where time" statement to the query.
  16558. *
  16559. * @param string $column
  16560. * @param string $operator
  16561. * @param \DateTimeInterface|string|null $value
  16562. * @param string $boolean
  16563. * @return \Illuminate\Database\Query\Builder|static
  16564. * @static
  16565. */
  16566. public static function whereTime($column, $operator, $value = null, $boolean = 'and')
  16567. {
  16568. /** @var \Illuminate\Database\Query\Builder $instance */
  16569. return $instance->whereTime($column, $operator, $value, $boolean);
  16570. }
  16571. /**
  16572. * Add an "or where time" statement to the query.
  16573. *
  16574. * @param string $column
  16575. * @param string $operator
  16576. * @param \DateTimeInterface|string|null $value
  16577. * @return \Illuminate\Database\Query\Builder|static
  16578. * @static
  16579. */
  16580. public static function orWhereTime($column, $operator, $value = null)
  16581. {
  16582. /** @var \Illuminate\Database\Query\Builder $instance */
  16583. return $instance->orWhereTime($column, $operator, $value);
  16584. }
  16585. /**
  16586. * Add a "where day" statement to the query.
  16587. *
  16588. * @param string $column
  16589. * @param string $operator
  16590. * @param \DateTimeInterface|string|null $value
  16591. * @param string $boolean
  16592. * @return \Illuminate\Database\Query\Builder|static
  16593. * @static
  16594. */
  16595. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  16596. {
  16597. /** @var \Illuminate\Database\Query\Builder $instance */
  16598. return $instance->whereDay($column, $operator, $value, $boolean);
  16599. }
  16600. /**
  16601. * Add an "or where day" statement to the query.
  16602. *
  16603. * @param string $column
  16604. * @param string $operator
  16605. * @param \DateTimeInterface|string|null $value
  16606. * @return \Illuminate\Database\Query\Builder|static
  16607. * @static
  16608. */
  16609. public static function orWhereDay($column, $operator, $value = null)
  16610. {
  16611. /** @var \Illuminate\Database\Query\Builder $instance */
  16612. return $instance->orWhereDay($column, $operator, $value);
  16613. }
  16614. /**
  16615. * Add a "where month" statement to the query.
  16616. *
  16617. * @param string $column
  16618. * @param string $operator
  16619. * @param \DateTimeInterface|string|null $value
  16620. * @param string $boolean
  16621. * @return \Illuminate\Database\Query\Builder|static
  16622. * @static
  16623. */
  16624. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  16625. {
  16626. /** @var \Illuminate\Database\Query\Builder $instance */
  16627. return $instance->whereMonth($column, $operator, $value, $boolean);
  16628. }
  16629. /**
  16630. * Add an "or where month" statement to the query.
  16631. *
  16632. * @param string $column
  16633. * @param string $operator
  16634. * @param \DateTimeInterface|string|null $value
  16635. * @return \Illuminate\Database\Query\Builder|static
  16636. * @static
  16637. */
  16638. public static function orWhereMonth($column, $operator, $value = null)
  16639. {
  16640. /** @var \Illuminate\Database\Query\Builder $instance */
  16641. return $instance->orWhereMonth($column, $operator, $value);
  16642. }
  16643. /**
  16644. * Add a "where year" statement to the query.
  16645. *
  16646. * @param string $column
  16647. * @param string $operator
  16648. * @param \DateTimeInterface|string|int|null $value
  16649. * @param string $boolean
  16650. * @return \Illuminate\Database\Query\Builder|static
  16651. * @static
  16652. */
  16653. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  16654. {
  16655. /** @var \Illuminate\Database\Query\Builder $instance */
  16656. return $instance->whereYear($column, $operator, $value, $boolean);
  16657. }
  16658. /**
  16659. * Add an "or where year" statement to the query.
  16660. *
  16661. * @param string $column
  16662. * @param string $operator
  16663. * @param \DateTimeInterface|string|int|null $value
  16664. * @return \Illuminate\Database\Query\Builder|static
  16665. * @static
  16666. */
  16667. public static function orWhereYear($column, $operator, $value = null)
  16668. {
  16669. /** @var \Illuminate\Database\Query\Builder $instance */
  16670. return $instance->orWhereYear($column, $operator, $value);
  16671. }
  16672. /**
  16673. * Add a nested where statement to the query.
  16674. *
  16675. * @param \Closure $callback
  16676. * @param string $boolean
  16677. * @return \Illuminate\Database\Query\Builder|static
  16678. * @static
  16679. */
  16680. public static function whereNested($callback, $boolean = 'and')
  16681. {
  16682. /** @var \Illuminate\Database\Query\Builder $instance */
  16683. return $instance->whereNested($callback, $boolean);
  16684. }
  16685. /**
  16686. * Create a new query instance for nested where condition.
  16687. *
  16688. * @return \Illuminate\Database\Query\Builder
  16689. * @static
  16690. */
  16691. public static function forNestedWhere()
  16692. {
  16693. /** @var \Illuminate\Database\Query\Builder $instance */
  16694. return $instance->forNestedWhere();
  16695. }
  16696. /**
  16697. * Add another query builder as a nested where to the query builder.
  16698. *
  16699. * @param \Illuminate\Database\Query\Builder|static $query
  16700. * @param string $boolean
  16701. * @return \Illuminate\Database\Query\Builder
  16702. * @static
  16703. */
  16704. public static function addNestedWhereQuery($query, $boolean = 'and')
  16705. {
  16706. /** @var \Illuminate\Database\Query\Builder $instance */
  16707. return $instance->addNestedWhereQuery($query, $boolean);
  16708. }
  16709. /**
  16710. * Add an exists clause to the query.
  16711. *
  16712. * @param \Closure $callback
  16713. * @param string $boolean
  16714. * @param bool $not
  16715. * @return \Illuminate\Database\Query\Builder
  16716. * @static
  16717. */
  16718. public static function whereExists($callback, $boolean = 'and', $not = false)
  16719. {
  16720. /** @var \Illuminate\Database\Query\Builder $instance */
  16721. return $instance->whereExists($callback, $boolean, $not);
  16722. }
  16723. /**
  16724. * Add an or exists clause to the query.
  16725. *
  16726. * @param \Closure $callback
  16727. * @param bool $not
  16728. * @return \Illuminate\Database\Query\Builder|static
  16729. * @static
  16730. */
  16731. public static function orWhereExists($callback, $not = false)
  16732. {
  16733. /** @var \Illuminate\Database\Query\Builder $instance */
  16734. return $instance->orWhereExists($callback, $not);
  16735. }
  16736. /**
  16737. * Add a where not exists clause to the query.
  16738. *
  16739. * @param \Closure $callback
  16740. * @param string $boolean
  16741. * @return \Illuminate\Database\Query\Builder|static
  16742. * @static
  16743. */
  16744. public static function whereNotExists($callback, $boolean = 'and')
  16745. {
  16746. /** @var \Illuminate\Database\Query\Builder $instance */
  16747. return $instance->whereNotExists($callback, $boolean);
  16748. }
  16749. /**
  16750. * Add a where not exists clause to the query.
  16751. *
  16752. * @param \Closure $callback
  16753. * @return \Illuminate\Database\Query\Builder|static
  16754. * @static
  16755. */
  16756. public static function orWhereNotExists($callback)
  16757. {
  16758. /** @var \Illuminate\Database\Query\Builder $instance */
  16759. return $instance->orWhereNotExists($callback);
  16760. }
  16761. /**
  16762. * Add an exists clause to the query.
  16763. *
  16764. * @param \Illuminate\Database\Query\Builder $query
  16765. * @param string $boolean
  16766. * @param bool $not
  16767. * @return \Illuminate\Database\Query\Builder
  16768. * @static
  16769. */
  16770. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  16771. {
  16772. /** @var \Illuminate\Database\Query\Builder $instance */
  16773. return $instance->addWhereExistsQuery($query, $boolean, $not);
  16774. }
  16775. /**
  16776. * Adds a where condition using row values.
  16777. *
  16778. * @param array $columns
  16779. * @param string $operator
  16780. * @param array $values
  16781. * @param string $boolean
  16782. * @return \Illuminate\Database\Query\Builder
  16783. * @static
  16784. */
  16785. public static function whereRowValues($columns, $operator, $values, $boolean = 'and')
  16786. {
  16787. /** @var \Illuminate\Database\Query\Builder $instance */
  16788. return $instance->whereRowValues($columns, $operator, $values, $boolean);
  16789. }
  16790. /**
  16791. * Adds a or where condition using row values.
  16792. *
  16793. * @param array $columns
  16794. * @param string $operator
  16795. * @param array $values
  16796. * @return \Illuminate\Database\Query\Builder
  16797. * @static
  16798. */
  16799. public static function orWhereRowValues($columns, $operator, $values)
  16800. {
  16801. /** @var \Illuminate\Database\Query\Builder $instance */
  16802. return $instance->orWhereRowValues($columns, $operator, $values);
  16803. }
  16804. /**
  16805. * Add a "where JSON contains" clause to the query.
  16806. *
  16807. * @param string $column
  16808. * @param mixed $value
  16809. * @param string $boolean
  16810. * @param bool $not
  16811. * @return \Illuminate\Database\Query\Builder
  16812. * @static
  16813. */
  16814. public static function whereJsonContains($column, $value, $boolean = 'and', $not = false)
  16815. {
  16816. /** @var \Illuminate\Database\Query\Builder $instance */
  16817. return $instance->whereJsonContains($column, $value, $boolean, $not);
  16818. }
  16819. /**
  16820. * Add a "or where JSON contains" clause to the query.
  16821. *
  16822. * @param string $column
  16823. * @param mixed $value
  16824. * @return \Illuminate\Database\Query\Builder
  16825. * @static
  16826. */
  16827. public static function orWhereJsonContains($column, $value)
  16828. {
  16829. /** @var \Illuminate\Database\Query\Builder $instance */
  16830. return $instance->orWhereJsonContains($column, $value);
  16831. }
  16832. /**
  16833. * Add a "where JSON not contains" clause to the query.
  16834. *
  16835. * @param string $column
  16836. * @param mixed $value
  16837. * @param string $boolean
  16838. * @return \Illuminate\Database\Query\Builder
  16839. * @static
  16840. */
  16841. public static function whereJsonDoesntContain($column, $value, $boolean = 'and')
  16842. {
  16843. /** @var \Illuminate\Database\Query\Builder $instance */
  16844. return $instance->whereJsonDoesntContain($column, $value, $boolean);
  16845. }
  16846. /**
  16847. * Add a "or where JSON not contains" clause to the query.
  16848. *
  16849. * @param string $column
  16850. * @param mixed $value
  16851. * @return \Illuminate\Database\Query\Builder
  16852. * @static
  16853. */
  16854. public static function orWhereJsonDoesntContain($column, $value)
  16855. {
  16856. /** @var \Illuminate\Database\Query\Builder $instance */
  16857. return $instance->orWhereJsonDoesntContain($column, $value);
  16858. }
  16859. /**
  16860. * Add a "where JSON length" clause to the query.
  16861. *
  16862. * @param string $column
  16863. * @param mixed $operator
  16864. * @param mixed $value
  16865. * @param string $boolean
  16866. * @return \Illuminate\Database\Query\Builder
  16867. * @static
  16868. */
  16869. public static function whereJsonLength($column, $operator, $value = null, $boolean = 'and')
  16870. {
  16871. /** @var \Illuminate\Database\Query\Builder $instance */
  16872. return $instance->whereJsonLength($column, $operator, $value, $boolean);
  16873. }
  16874. /**
  16875. * Add a "or where JSON length" clause to the query.
  16876. *
  16877. * @param string $column
  16878. * @param mixed $operator
  16879. * @param mixed $value
  16880. * @return \Illuminate\Database\Query\Builder
  16881. * @static
  16882. */
  16883. public static function orWhereJsonLength($column, $operator, $value = null)
  16884. {
  16885. /** @var \Illuminate\Database\Query\Builder $instance */
  16886. return $instance->orWhereJsonLength($column, $operator, $value);
  16887. }
  16888. /**
  16889. * Handles dynamic "where" clauses to the query.
  16890. *
  16891. * @param string $method
  16892. * @param array $parameters
  16893. * @return \Illuminate\Database\Query\Builder
  16894. * @static
  16895. */
  16896. public static function dynamicWhere($method, $parameters)
  16897. {
  16898. /** @var \Illuminate\Database\Query\Builder $instance */
  16899. return $instance->dynamicWhere($method, $parameters);
  16900. }
  16901. /**
  16902. * Add a "group by" clause to the query.
  16903. *
  16904. * @param array $groups
  16905. * @return \Illuminate\Database\Query\Builder
  16906. * @static
  16907. */
  16908. public static function groupBy($groups = null)
  16909. {
  16910. /** @var \Illuminate\Database\Query\Builder $instance */
  16911. return $instance->groupBy($groups);
  16912. }
  16913. /**
  16914. * Add a "having" clause to the query.
  16915. *
  16916. * @param string $column
  16917. * @param string|null $operator
  16918. * @param string|null $value
  16919. * @param string $boolean
  16920. * @return \Illuminate\Database\Query\Builder
  16921. * @static
  16922. */
  16923. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  16924. {
  16925. /** @var \Illuminate\Database\Query\Builder $instance */
  16926. return $instance->having($column, $operator, $value, $boolean);
  16927. }
  16928. /**
  16929. * Add a "or having" clause to the query.
  16930. *
  16931. * @param string $column
  16932. * @param string|null $operator
  16933. * @param string|null $value
  16934. * @return \Illuminate\Database\Query\Builder|static
  16935. * @static
  16936. */
  16937. public static function orHaving($column, $operator = null, $value = null)
  16938. {
  16939. /** @var \Illuminate\Database\Query\Builder $instance */
  16940. return $instance->orHaving($column, $operator, $value);
  16941. }
  16942. /**
  16943. * Add a "having between " clause to the query.
  16944. *
  16945. * @param string $column
  16946. * @param array $values
  16947. * @param string $boolean
  16948. * @param bool $not
  16949. * @return \Illuminate\Database\Query\Builder|static
  16950. * @static
  16951. */
  16952. public static function havingBetween($column, $values, $boolean = 'and', $not = false)
  16953. {
  16954. /** @var \Illuminate\Database\Query\Builder $instance */
  16955. return $instance->havingBetween($column, $values, $boolean, $not);
  16956. }
  16957. /**
  16958. * Add a raw having clause to the query.
  16959. *
  16960. * @param string $sql
  16961. * @param array $bindings
  16962. * @param string $boolean
  16963. * @return \Illuminate\Database\Query\Builder
  16964. * @static
  16965. */
  16966. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  16967. {
  16968. /** @var \Illuminate\Database\Query\Builder $instance */
  16969. return $instance->havingRaw($sql, $bindings, $boolean);
  16970. }
  16971. /**
  16972. * Add a raw or having clause to the query.
  16973. *
  16974. * @param string $sql
  16975. * @param array $bindings
  16976. * @return \Illuminate\Database\Query\Builder|static
  16977. * @static
  16978. */
  16979. public static function orHavingRaw($sql, $bindings = [])
  16980. {
  16981. /** @var \Illuminate\Database\Query\Builder $instance */
  16982. return $instance->orHavingRaw($sql, $bindings);
  16983. }
  16984. /**
  16985. * Add an "order by" clause to the query.
  16986. *
  16987. * @param string $column
  16988. * @param string $direction
  16989. * @return \Illuminate\Database\Query\Builder
  16990. * @throws \InvalidArgumentException
  16991. * @static
  16992. */
  16993. public static function orderBy($column, $direction = 'asc')
  16994. {
  16995. /** @var \Illuminate\Database\Query\Builder $instance */
  16996. return $instance->orderBy($column, $direction);
  16997. }
  16998. /**
  16999. * Add a descending "order by" clause to the query.
  17000. *
  17001. * @param string $column
  17002. * @return \Illuminate\Database\Query\Builder
  17003. * @static
  17004. */
  17005. public static function orderByDesc($column)
  17006. {
  17007. /** @var \Illuminate\Database\Query\Builder $instance */
  17008. return $instance->orderByDesc($column);
  17009. }
  17010. /**
  17011. * Put the query's results in random order.
  17012. *
  17013. * @param string $seed
  17014. * @return \Illuminate\Database\Query\Builder
  17015. * @static
  17016. */
  17017. public static function inRandomOrder($seed = '')
  17018. {
  17019. /** @var \Illuminate\Database\Query\Builder $instance */
  17020. return $instance->inRandomOrder($seed);
  17021. }
  17022. /**
  17023. * Add a raw "order by" clause to the query.
  17024. *
  17025. * @param string $sql
  17026. * @param array $bindings
  17027. * @return \Illuminate\Database\Query\Builder
  17028. * @static
  17029. */
  17030. public static function orderByRaw($sql, $bindings = [])
  17031. {
  17032. /** @var \Illuminate\Database\Query\Builder $instance */
  17033. return $instance->orderByRaw($sql, $bindings);
  17034. }
  17035. /**
  17036. * Alias to set the "offset" value of the query.
  17037. *
  17038. * @param int $value
  17039. * @return \Illuminate\Database\Query\Builder|static
  17040. * @static
  17041. */
  17042. public static function skip($value)
  17043. {
  17044. /** @var \Illuminate\Database\Query\Builder $instance */
  17045. return $instance->skip($value);
  17046. }
  17047. /**
  17048. * Set the "offset" value of the query.
  17049. *
  17050. * @param int $value
  17051. * @return \Illuminate\Database\Query\Builder
  17052. * @static
  17053. */
  17054. public static function offset($value)
  17055. {
  17056. /** @var \Illuminate\Database\Query\Builder $instance */
  17057. return $instance->offset($value);
  17058. }
  17059. /**
  17060. * Alias to set the "limit" value of the query.
  17061. *
  17062. * @param int $value
  17063. * @return \Illuminate\Database\Query\Builder|static
  17064. * @static
  17065. */
  17066. public static function take($value)
  17067. {
  17068. /** @var \Illuminate\Database\Query\Builder $instance */
  17069. return $instance->take($value);
  17070. }
  17071. /**
  17072. * Set the "limit" value of the query.
  17073. *
  17074. * @param int $value
  17075. * @return \Illuminate\Database\Query\Builder
  17076. * @static
  17077. */
  17078. public static function limit($value)
  17079. {
  17080. /** @var \Illuminate\Database\Query\Builder $instance */
  17081. return $instance->limit($value);
  17082. }
  17083. /**
  17084. * Set the limit and offset for a given page.
  17085. *
  17086. * @param int $page
  17087. * @param int $perPage
  17088. * @return \Illuminate\Database\Query\Builder|static
  17089. * @static
  17090. */
  17091. public static function forPage($page, $perPage = 15)
  17092. {
  17093. /** @var \Illuminate\Database\Query\Builder $instance */
  17094. return $instance->forPage($page, $perPage);
  17095. }
  17096. /**
  17097. * Constrain the query to the previous "page" of results before a given ID.
  17098. *
  17099. * @param int $perPage
  17100. * @param int|null $lastId
  17101. * @param string $column
  17102. * @return \Illuminate\Database\Query\Builder|static
  17103. * @static
  17104. */
  17105. public static function forPageBeforeId($perPage = 15, $lastId = 0, $column = 'id')
  17106. {
  17107. /** @var \Illuminate\Database\Query\Builder $instance */
  17108. return $instance->forPageBeforeId($perPage, $lastId, $column);
  17109. }
  17110. /**
  17111. * Constrain the query to the next "page" of results after a given ID.
  17112. *
  17113. * @param int $perPage
  17114. * @param int|null $lastId
  17115. * @param string $column
  17116. * @return \Illuminate\Database\Query\Builder|static
  17117. * @static
  17118. */
  17119. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  17120. {
  17121. /** @var \Illuminate\Database\Query\Builder $instance */
  17122. return $instance->forPageAfterId($perPage, $lastId, $column);
  17123. }
  17124. /**
  17125. * Add a union statement to the query.
  17126. *
  17127. * @param \Illuminate\Database\Query\Builder|\Closure $query
  17128. * @param bool $all
  17129. * @return \Illuminate\Database\Query\Builder|static
  17130. * @static
  17131. */
  17132. public static function union($query, $all = false)
  17133. {
  17134. /** @var \Illuminate\Database\Query\Builder $instance */
  17135. return $instance->union($query, $all);
  17136. }
  17137. /**
  17138. * Add a union all statement to the query.
  17139. *
  17140. * @param \Illuminate\Database\Query\Builder|\Closure $query
  17141. * @return \Illuminate\Database\Query\Builder|static
  17142. * @static
  17143. */
  17144. public static function unionAll($query)
  17145. {
  17146. /** @var \Illuminate\Database\Query\Builder $instance */
  17147. return $instance->unionAll($query);
  17148. }
  17149. /**
  17150. * Lock the selected rows in the table.
  17151. *
  17152. * @param string|bool $value
  17153. * @return \Illuminate\Database\Query\Builder
  17154. * @static
  17155. */
  17156. public static function lock($value = true)
  17157. {
  17158. /** @var \Illuminate\Database\Query\Builder $instance */
  17159. return $instance->lock($value);
  17160. }
  17161. /**
  17162. * Lock the selected rows in the table for updating.
  17163. *
  17164. * @return \Illuminate\Database\Query\Builder
  17165. * @static
  17166. */
  17167. public static function lockForUpdate()
  17168. {
  17169. /** @var \Illuminate\Database\Query\Builder $instance */
  17170. return $instance->lockForUpdate();
  17171. }
  17172. /**
  17173. * Share lock the selected rows in the table.
  17174. *
  17175. * @return \Illuminate\Database\Query\Builder
  17176. * @static
  17177. */
  17178. public static function sharedLock()
  17179. {
  17180. /** @var \Illuminate\Database\Query\Builder $instance */
  17181. return $instance->sharedLock();
  17182. }
  17183. /**
  17184. * Get the SQL representation of the query.
  17185. *
  17186. * @return string
  17187. * @static
  17188. */
  17189. public static function toSql()
  17190. {
  17191. /** @var \Illuminate\Database\Query\Builder $instance */
  17192. return $instance->toSql();
  17193. }
  17194. /**
  17195. * Get the count of the total records for the paginator.
  17196. *
  17197. * @param array $columns
  17198. * @return int
  17199. * @static
  17200. */
  17201. public static function getCountForPagination($columns = [])
  17202. {
  17203. /** @var \Illuminate\Database\Query\Builder $instance */
  17204. return $instance->getCountForPagination($columns);
  17205. }
  17206. /**
  17207. * Concatenate values of a given column as a string.
  17208. *
  17209. * @param string $column
  17210. * @param string $glue
  17211. * @return string
  17212. * @static
  17213. */
  17214. public static function implode($column, $glue = '')
  17215. {
  17216. /** @var \Illuminate\Database\Query\Builder $instance */
  17217. return $instance->implode($column, $glue);
  17218. }
  17219. /**
  17220. * Determine if any rows exist for the current query.
  17221. *
  17222. * @return bool
  17223. * @static
  17224. */
  17225. public static function exists()
  17226. {
  17227. /** @var \Illuminate\Database\Query\Builder $instance */
  17228. return $instance->exists();
  17229. }
  17230. /**
  17231. * Determine if no rows exist for the current query.
  17232. *
  17233. * @return bool
  17234. * @static
  17235. */
  17236. public static function doesntExist()
  17237. {
  17238. /** @var \Illuminate\Database\Query\Builder $instance */
  17239. return $instance->doesntExist();
  17240. }
  17241. /**
  17242. * Retrieve the "count" result of the query.
  17243. *
  17244. * @param string $columns
  17245. * @return int
  17246. * @static
  17247. */
  17248. public static function count($columns = '*')
  17249. {
  17250. /** @var \Illuminate\Database\Query\Builder $instance */
  17251. return $instance->count($columns);
  17252. }
  17253. /**
  17254. * Retrieve the minimum value of a given column.
  17255. *
  17256. * @param string $column
  17257. * @return mixed
  17258. * @static
  17259. */
  17260. public static function min($column)
  17261. {
  17262. /** @var \Illuminate\Database\Query\Builder $instance */
  17263. return $instance->min($column);
  17264. }
  17265. /**
  17266. * Retrieve the maximum value of a given column.
  17267. *
  17268. * @param string $column
  17269. * @return mixed
  17270. * @static
  17271. */
  17272. public static function max($column)
  17273. {
  17274. /** @var \Illuminate\Database\Query\Builder $instance */
  17275. return $instance->max($column);
  17276. }
  17277. /**
  17278. * Retrieve the sum of the values of a given column.
  17279. *
  17280. * @param string $column
  17281. * @return mixed
  17282. * @static
  17283. */
  17284. public static function sum($column)
  17285. {
  17286. /** @var \Illuminate\Database\Query\Builder $instance */
  17287. return $instance->sum($column);
  17288. }
  17289. /**
  17290. * Retrieve the average of the values of a given column.
  17291. *
  17292. * @param string $column
  17293. * @return mixed
  17294. * @static
  17295. */
  17296. public static function avg($column)
  17297. {
  17298. /** @var \Illuminate\Database\Query\Builder $instance */
  17299. return $instance->avg($column);
  17300. }
  17301. /**
  17302. * Alias for the "avg" method.
  17303. *
  17304. * @param string $column
  17305. * @return mixed
  17306. * @static
  17307. */
  17308. public static function average($column)
  17309. {
  17310. /** @var \Illuminate\Database\Query\Builder $instance */
  17311. return $instance->average($column);
  17312. }
  17313. /**
  17314. * Execute an aggregate function on the database.
  17315. *
  17316. * @param string $function
  17317. * @param array $columns
  17318. * @return mixed
  17319. * @static
  17320. */
  17321. public static function aggregate($function, $columns = [])
  17322. {
  17323. /** @var \Illuminate\Database\Query\Builder $instance */
  17324. return $instance->aggregate($function, $columns);
  17325. }
  17326. /**
  17327. * Execute a numeric aggregate function on the database.
  17328. *
  17329. * @param string $function
  17330. * @param array $columns
  17331. * @return float|int
  17332. * @static
  17333. */
  17334. public static function numericAggregate($function, $columns = [])
  17335. {
  17336. /** @var \Illuminate\Database\Query\Builder $instance */
  17337. return $instance->numericAggregate($function, $columns);
  17338. }
  17339. /**
  17340. * Insert a new record into the database.
  17341. *
  17342. * @param array $values
  17343. * @return bool
  17344. * @static
  17345. */
  17346. public static function insert($values)
  17347. {
  17348. /** @var \Illuminate\Database\Query\Builder $instance */
  17349. return $instance->insert($values);
  17350. }
  17351. /**
  17352. * Insert a new record into the database while ignoring errors.
  17353. *
  17354. * @param array $values
  17355. * @return int
  17356. * @static
  17357. */
  17358. public static function insertOrIgnore($values)
  17359. {
  17360. /** @var \Illuminate\Database\Query\Builder $instance */
  17361. return $instance->insertOrIgnore($values);
  17362. }
  17363. /**
  17364. * Insert a new record and get the value of the primary key.
  17365. *
  17366. * @param array $values
  17367. * @param string|null $sequence
  17368. * @return int
  17369. * @static
  17370. */
  17371. public static function insertGetId($values, $sequence = null)
  17372. {
  17373. /** @var \Illuminate\Database\Query\Builder $instance */
  17374. return $instance->insertGetId($values, $sequence);
  17375. }
  17376. /**
  17377. * Insert new records into the table using a subquery.
  17378. *
  17379. * @param array $columns
  17380. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  17381. * @return bool
  17382. * @static
  17383. */
  17384. public static function insertUsing($columns, $query)
  17385. {
  17386. /** @var \Illuminate\Database\Query\Builder $instance */
  17387. return $instance->insertUsing($columns, $query);
  17388. }
  17389. /**
  17390. * Insert or update a record matching the attributes, and fill it with values.
  17391. *
  17392. * @param array $attributes
  17393. * @param array $values
  17394. * @return bool
  17395. * @static
  17396. */
  17397. public static function updateOrInsert($attributes, $values = [])
  17398. {
  17399. /** @var \Illuminate\Database\Query\Builder $instance */
  17400. return $instance->updateOrInsert($attributes, $values);
  17401. }
  17402. /**
  17403. * Run a truncate statement on the table.
  17404. *
  17405. * @return void
  17406. * @static
  17407. */
  17408. public static function truncate()
  17409. {
  17410. /** @var \Illuminate\Database\Query\Builder $instance */
  17411. $instance->truncate();
  17412. }
  17413. /**
  17414. * Create a raw database expression.
  17415. *
  17416. * @param mixed $value
  17417. * @return \Illuminate\Database\Query\Expression
  17418. * @static
  17419. */
  17420. public static function raw($value)
  17421. {
  17422. /** @var \Illuminate\Database\Query\Builder $instance */
  17423. return $instance->raw($value);
  17424. }
  17425. /**
  17426. * Get the current query value bindings in a flattened array.
  17427. *
  17428. * @return array
  17429. * @static
  17430. */
  17431. public static function getBindings()
  17432. {
  17433. /** @var \Illuminate\Database\Query\Builder $instance */
  17434. return $instance->getBindings();
  17435. }
  17436. /**
  17437. * Get the raw array of bindings.
  17438. *
  17439. * @return array
  17440. * @static
  17441. */
  17442. public static function getRawBindings()
  17443. {
  17444. /** @var \Illuminate\Database\Query\Builder $instance */
  17445. return $instance->getRawBindings();
  17446. }
  17447. /**
  17448. * Set the bindings on the query builder.
  17449. *
  17450. * @param array $bindings
  17451. * @param string $type
  17452. * @return \Illuminate\Database\Query\Builder
  17453. * @throws \InvalidArgumentException
  17454. * @static
  17455. */
  17456. public static function setBindings($bindings, $type = 'where')
  17457. {
  17458. /** @var \Illuminate\Database\Query\Builder $instance */
  17459. return $instance->setBindings($bindings, $type);
  17460. }
  17461. /**
  17462. * Add a binding to the query.
  17463. *
  17464. * @param mixed $value
  17465. * @param string $type
  17466. * @return \Illuminate\Database\Query\Builder
  17467. * @throws \InvalidArgumentException
  17468. * @static
  17469. */
  17470. public static function addBinding($value, $type = 'where')
  17471. {
  17472. /** @var \Illuminate\Database\Query\Builder $instance */
  17473. return $instance->addBinding($value, $type);
  17474. }
  17475. /**
  17476. * Merge an array of bindings into our bindings.
  17477. *
  17478. * @param \Illuminate\Database\Query\Builder $query
  17479. * @return \Illuminate\Database\Query\Builder
  17480. * @static
  17481. */
  17482. public static function mergeBindings($query)
  17483. {
  17484. /** @var \Illuminate\Database\Query\Builder $instance */
  17485. return $instance->mergeBindings($query);
  17486. }
  17487. /**
  17488. * Get the database query processor instance.
  17489. *
  17490. * @return \Illuminate\Database\Query\Processors\Processor
  17491. * @static
  17492. */
  17493. public static function getProcessor()
  17494. {
  17495. /** @var \Illuminate\Database\Query\Builder $instance */
  17496. return $instance->getProcessor();
  17497. }
  17498. /**
  17499. * Get the query grammar instance.
  17500. *
  17501. * @return \Illuminate\Database\Query\Grammars\Grammar
  17502. * @static
  17503. */
  17504. public static function getGrammar()
  17505. {
  17506. /** @var \Illuminate\Database\Query\Builder $instance */
  17507. return $instance->getGrammar();
  17508. }
  17509. /**
  17510. * Use the write pdo for query.
  17511. *
  17512. * @return \Illuminate\Database\Query\Builder
  17513. * @static
  17514. */
  17515. public static function useWritePdo()
  17516. {
  17517. /** @var \Illuminate\Database\Query\Builder $instance */
  17518. return $instance->useWritePdo();
  17519. }
  17520. /**
  17521. * Clone the query without the given properties.
  17522. *
  17523. * @param array $properties
  17524. * @return static
  17525. * @static
  17526. */
  17527. public static function cloneWithout($properties)
  17528. {
  17529. /** @var \Illuminate\Database\Query\Builder $instance */
  17530. return $instance->cloneWithout($properties);
  17531. }
  17532. /**
  17533. * Clone the query without the given bindings.
  17534. *
  17535. * @param array $except
  17536. * @return static
  17537. * @static
  17538. */
  17539. public static function cloneWithoutBindings($except)
  17540. {
  17541. /** @var \Illuminate\Database\Query\Builder $instance */
  17542. return $instance->cloneWithoutBindings($except);
  17543. }
  17544. /**
  17545. * Dump the current SQL and bindings.
  17546. *
  17547. * @return \Illuminate\Database\Query\Builder
  17548. * @static
  17549. */
  17550. public static function dump()
  17551. {
  17552. /** @var \Illuminate\Database\Query\Builder $instance */
  17553. return $instance->dump();
  17554. }
  17555. /**
  17556. * Die and dump the current SQL and bindings.
  17557. *
  17558. * @return void
  17559. * @static
  17560. */
  17561. public static function dd()
  17562. {
  17563. /** @var \Illuminate\Database\Query\Builder $instance */
  17564. $instance->dd();
  17565. }
  17566. /**
  17567. * Register a custom macro.
  17568. *
  17569. * @param string $name
  17570. * @param object|callable $macro
  17571. * @return void
  17572. * @static
  17573. */
  17574. public static function macro($name, $macro)
  17575. {
  17576. \Illuminate\Database\Query\Builder::macro($name, $macro);
  17577. }
  17578. /**
  17579. * Mix another object into the class.
  17580. *
  17581. * @param object $mixin
  17582. * @param bool $replace
  17583. * @return void
  17584. * @throws \ReflectionException
  17585. * @static
  17586. */
  17587. public static function mixin($mixin, $replace = true)
  17588. {
  17589. \Illuminate\Database\Query\Builder::mixin($mixin, $replace);
  17590. }
  17591. /**
  17592. * Checks if macro is registered.
  17593. *
  17594. * @param string $name
  17595. * @return bool
  17596. * @static
  17597. */
  17598. public static function hasMacro($name)
  17599. {
  17600. return \Illuminate\Database\Query\Builder::hasMacro($name);
  17601. }
  17602. /**
  17603. * Dynamically handle calls to the class.
  17604. *
  17605. * @param string $method
  17606. * @param array $parameters
  17607. * @return mixed
  17608. * @throws \BadMethodCallException
  17609. * @static
  17610. */
  17611. public static function macroCall($method, $parameters)
  17612. {
  17613. /** @var \Illuminate\Database\Query\Builder $instance */
  17614. return $instance->macroCall($method, $parameters);
  17615. }
  17616. }
  17617. class Event extends \Illuminate\Support\Facades\Event {}
  17618. class File extends \Illuminate\Support\Facades\File {}
  17619. class Gate extends \Illuminate\Support\Facades\Gate {}
  17620. class Hash extends \Illuminate\Support\Facades\Hash {}
  17621. class Lang extends \Illuminate\Support\Facades\Lang {}
  17622. class Log extends \Illuminate\Support\Facades\Log {}
  17623. class Mail extends \Illuminate\Support\Facades\Mail {}
  17624. class Notification extends \Illuminate\Support\Facades\Notification {}
  17625. class Password extends \Illuminate\Support\Facades\Password {}
  17626. class Queue extends \Illuminate\Support\Facades\Queue {}
  17627. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  17628. class Redis extends \Illuminate\Support\Facades\Redis {}
  17629. class Request extends \Illuminate\Support\Facades\Request {}
  17630. class Response extends \Illuminate\Support\Facades\Response {}
  17631. class Route extends \Illuminate\Support\Facades\Route {}
  17632. class Schema extends \Illuminate\Support\Facades\Schema {}
  17633. class Session extends \Illuminate\Support\Facades\Session {}
  17634. class Storage extends \Illuminate\Support\Facades\Storage {}
  17635. class URL extends \Illuminate\Support\Facades\URL {}
  17636. class Validator extends \Illuminate\Support\Facades\Validator {}
  17637. class View extends \Illuminate\Support\Facades\View {}
  17638. class Captcha extends \Mews\Captcha\Facades\Captcha {}
  17639. class Agent extends \Jenssegers\Agent\Facades\Agent {}
  17640. class Purifier extends \Mews\Purifier\Facades\Purifier {}
  17641. class Geetest extends \Misechow\Geetest\Geetest {}
  17642. class NoCaptcha extends \Misechow\NoCaptcha\Facades\NoCaptcha {}
  17643. class Image extends \Intervention\Image\Facades\Image {}
  17644. }