_ide_helper.php 563 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566
  1. <?php
  2. // @formatter:off
  3. /**
  4. * A helper file for Laravel, to provide autocomplete information to your IDE
  5. * Generated for Laravel 5.5.49 on 2020-04-29 16:05:35.
  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\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 array $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 Optionally, a path to append to the app 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. * Get the base path of the Laravel installation.
  117. *
  118. * @param string $path Optionally, a path to append to the base path
  119. * @return string
  120. * @static
  121. */
  122. public static function basePath($path = '')
  123. {
  124. /** @var \Illuminate\Foundation\Application $instance */
  125. return $instance->basePath($path);
  126. }
  127. /**
  128. * Get the path to the bootstrap directory.
  129. *
  130. * @param string $path Optionally, a path to append to the bootstrap path
  131. * @return string
  132. * @static
  133. */
  134. public static function bootstrapPath($path = '')
  135. {
  136. /** @var \Illuminate\Foundation\Application $instance */
  137. return $instance->bootstrapPath($path);
  138. }
  139. /**
  140. * Get the path to the application configuration files.
  141. *
  142. * @param string $path Optionally, a path to append to the config path
  143. * @return string
  144. * @static
  145. */
  146. public static function configPath($path = '')
  147. {
  148. /** @var \Illuminate\Foundation\Application $instance */
  149. return $instance->configPath($path);
  150. }
  151. /**
  152. * Get the path to the database directory.
  153. *
  154. * @param string $path Optionally, a path to append to the database path
  155. * @return string
  156. * @static
  157. */
  158. public static function databasePath($path = '')
  159. {
  160. /** @var \Illuminate\Foundation\Application $instance */
  161. return $instance->databasePath($path);
  162. }
  163. /**
  164. * Set the database directory.
  165. *
  166. * @param string $path
  167. * @return \Illuminate\Foundation\Application
  168. * @static
  169. */
  170. public static function useDatabasePath($path)
  171. {
  172. /** @var \Illuminate\Foundation\Application $instance */
  173. return $instance->useDatabasePath($path);
  174. }
  175. /**
  176. * Get the path to the language files.
  177. *
  178. * @return string
  179. * @static
  180. */
  181. public static function langPath()
  182. {
  183. /** @var \Illuminate\Foundation\Application $instance */
  184. return $instance->langPath();
  185. }
  186. /**
  187. * Get the path to the public / web directory.
  188. *
  189. * @return string
  190. * @static
  191. */
  192. public static function publicPath()
  193. {
  194. /** @var \Illuminate\Foundation\Application $instance */
  195. return $instance->publicPath();
  196. }
  197. /**
  198. * Get the path to the storage directory.
  199. *
  200. * @return string
  201. * @static
  202. */
  203. public static function storagePath()
  204. {
  205. /** @var \Illuminate\Foundation\Application $instance */
  206. return $instance->storagePath();
  207. }
  208. /**
  209. * Set the storage directory.
  210. *
  211. * @param string $path
  212. * @return \Illuminate\Foundation\Application
  213. * @static
  214. */
  215. public static function useStoragePath($path)
  216. {
  217. /** @var \Illuminate\Foundation\Application $instance */
  218. return $instance->useStoragePath($path);
  219. }
  220. /**
  221. * Get the path to the resources directory.
  222. *
  223. * @param string $path
  224. * @return string
  225. * @static
  226. */
  227. public static function resourcePath($path = '')
  228. {
  229. /** @var \Illuminate\Foundation\Application $instance */
  230. return $instance->resourcePath($path);
  231. }
  232. /**
  233. * Get the path to the environment file directory.
  234. *
  235. * @return string
  236. * @static
  237. */
  238. public static function environmentPath()
  239. {
  240. /** @var \Illuminate\Foundation\Application $instance */
  241. return $instance->environmentPath();
  242. }
  243. /**
  244. * Set the directory for the environment file.
  245. *
  246. * @param string $path
  247. * @return \Illuminate\Foundation\Application
  248. * @static
  249. */
  250. public static function useEnvironmentPath($path)
  251. {
  252. /** @var \Illuminate\Foundation\Application $instance */
  253. return $instance->useEnvironmentPath($path);
  254. }
  255. /**
  256. * Set the environment file to be loaded during bootstrapping.
  257. *
  258. * @param string $file
  259. * @return \Illuminate\Foundation\Application
  260. * @static
  261. */
  262. public static function loadEnvironmentFrom($file)
  263. {
  264. /** @var \Illuminate\Foundation\Application $instance */
  265. return $instance->loadEnvironmentFrom($file);
  266. }
  267. /**
  268. * Get the environment file the application is using.
  269. *
  270. * @return string
  271. * @static
  272. */
  273. public static function environmentFile()
  274. {
  275. /** @var \Illuminate\Foundation\Application $instance */
  276. return $instance->environmentFile();
  277. }
  278. /**
  279. * Get the fully qualified path to the environment file.
  280. *
  281. * @return string
  282. * @static
  283. */
  284. public static function environmentFilePath()
  285. {
  286. /** @var \Illuminate\Foundation\Application $instance */
  287. return $instance->environmentFilePath();
  288. }
  289. /**
  290. * Get or check the current application environment.
  291. *
  292. * @return string|bool
  293. * @static
  294. */
  295. public static function environment()
  296. {
  297. /** @var \Illuminate\Foundation\Application $instance */
  298. return $instance->environment();
  299. }
  300. /**
  301. * Determine if application is in local environment.
  302. *
  303. * @return bool
  304. * @static
  305. */
  306. public static function isLocal()
  307. {
  308. /** @var \Illuminate\Foundation\Application $instance */
  309. return $instance->isLocal();
  310. }
  311. /**
  312. * Detect the application's current environment.
  313. *
  314. * @param \Closure $callback
  315. * @return string
  316. * @static
  317. */
  318. public static function detectEnvironment($callback)
  319. {
  320. /** @var \Illuminate\Foundation\Application $instance */
  321. return $instance->detectEnvironment($callback);
  322. }
  323. /**
  324. * Determine if we are running in the console.
  325. *
  326. * @return bool
  327. * @static
  328. */
  329. public static function runningInConsole()
  330. {
  331. /** @var \Illuminate\Foundation\Application $instance */
  332. return $instance->runningInConsole();
  333. }
  334. /**
  335. * Determine if we are running unit tests.
  336. *
  337. * @return bool
  338. * @static
  339. */
  340. public static function runningUnitTests()
  341. {
  342. /** @var \Illuminate\Foundation\Application $instance */
  343. return $instance->runningUnitTests();
  344. }
  345. /**
  346. * Register all of the configured providers.
  347. *
  348. * @return void
  349. * @static
  350. */
  351. public static function registerConfiguredProviders()
  352. {
  353. /** @var \Illuminate\Foundation\Application $instance */
  354. $instance->registerConfiguredProviders();
  355. }
  356. /**
  357. * Register a service provider with the application.
  358. *
  359. * @param \Illuminate\Support\ServiceProvider|string $provider
  360. * @param array $options
  361. * @param bool $force
  362. * @return \Illuminate\Support\ServiceProvider
  363. * @static
  364. */
  365. public static function register($provider, $options = [], $force = false)
  366. {
  367. /** @var \Illuminate\Foundation\Application $instance */
  368. return $instance->register($provider, $options, $force);
  369. }
  370. /**
  371. * Get the registered service provider instance if it exists.
  372. *
  373. * @param \Illuminate\Support\ServiceProvider|string $provider
  374. * @return \Illuminate\Support\ServiceProvider|null
  375. * @static
  376. */
  377. public static function getProvider($provider)
  378. {
  379. /** @var \Illuminate\Foundation\Application $instance */
  380. return $instance->getProvider($provider);
  381. }
  382. /**
  383. * Get the registered service provider instances if any exist.
  384. *
  385. * @param \Illuminate\Support\ServiceProvider|string $provider
  386. * @return array
  387. * @static
  388. */
  389. public static function getProviders($provider)
  390. {
  391. /** @var \Illuminate\Foundation\Application $instance */
  392. return $instance->getProviders($provider);
  393. }
  394. /**
  395. * Resolve a service provider instance from the class name.
  396. *
  397. * @param string $provider
  398. * @return \Illuminate\Support\ServiceProvider
  399. * @static
  400. */
  401. public static function resolveProvider($provider)
  402. {
  403. /** @var \Illuminate\Foundation\Application $instance */
  404. return $instance->resolveProvider($provider);
  405. }
  406. /**
  407. * Load and boot all of the remaining deferred providers.
  408. *
  409. * @return void
  410. * @static
  411. */
  412. public static function loadDeferredProviders()
  413. {
  414. /** @var \Illuminate\Foundation\Application $instance */
  415. $instance->loadDeferredProviders();
  416. }
  417. /**
  418. * Load the provider for a deferred service.
  419. *
  420. * @param string $service
  421. * @return void
  422. * @static
  423. */
  424. public static function loadDeferredProvider($service)
  425. {
  426. /** @var \Illuminate\Foundation\Application $instance */
  427. $instance->loadDeferredProvider($service);
  428. }
  429. /**
  430. * Register a deferred provider and service.
  431. *
  432. * @param string $provider
  433. * @param string|null $service
  434. * @return void
  435. * @static
  436. */
  437. public static function registerDeferredProvider($provider, $service = null)
  438. {
  439. /** @var \Illuminate\Foundation\Application $instance */
  440. $instance->registerDeferredProvider($provider, $service);
  441. }
  442. /**
  443. * Resolve the given type from the container.
  444. *
  445. * (Overriding Container::make)
  446. *
  447. * @param string $abstract
  448. * @param array $parameters
  449. * @return mixed
  450. * @static
  451. */
  452. public static function make($abstract, $parameters = [])
  453. {
  454. /** @var \Illuminate\Foundation\Application $instance */
  455. return $instance->make($abstract, $parameters);
  456. }
  457. /**
  458. * Determine if the given abstract type has been bound.
  459. *
  460. * (Overriding Container::bound)
  461. *
  462. * @param string $abstract
  463. * @return bool
  464. * @static
  465. */
  466. public static function bound($abstract)
  467. {
  468. /** @var \Illuminate\Foundation\Application $instance */
  469. return $instance->bound($abstract);
  470. }
  471. /**
  472. * Determine if the application has booted.
  473. *
  474. * @return bool
  475. * @static
  476. */
  477. public static function isBooted()
  478. {
  479. /** @var \Illuminate\Foundation\Application $instance */
  480. return $instance->isBooted();
  481. }
  482. /**
  483. * Boot the application's service providers.
  484. *
  485. * @return void
  486. * @static
  487. */
  488. public static function boot()
  489. {
  490. /** @var \Illuminate\Foundation\Application $instance */
  491. $instance->boot();
  492. }
  493. /**
  494. * Register a new boot listener.
  495. *
  496. * @param mixed $callback
  497. * @return void
  498. * @static
  499. */
  500. public static function booting($callback)
  501. {
  502. /** @var \Illuminate\Foundation\Application $instance */
  503. $instance->booting($callback);
  504. }
  505. /**
  506. * Register a new "booted" listener.
  507. *
  508. * @param mixed $callback
  509. * @return void
  510. * @static
  511. */
  512. public static function booted($callback)
  513. {
  514. /** @var \Illuminate\Foundation\Application $instance */
  515. $instance->booted($callback);
  516. }
  517. /**
  518. * {@inheritdoc}
  519. *
  520. * @static
  521. */
  522. public static function handle($request, $type = 1, $catch = true)
  523. {
  524. /** @var \Illuminate\Foundation\Application $instance */
  525. return $instance->handle($request, $type, $catch);
  526. }
  527. /**
  528. * Determine if middleware has been disabled for the application.
  529. *
  530. * @return bool
  531. * @static
  532. */
  533. public static function shouldSkipMiddleware()
  534. {
  535. /** @var \Illuminate\Foundation\Application $instance */
  536. return $instance->shouldSkipMiddleware();
  537. }
  538. /**
  539. * Get the path to the cached services.php file.
  540. *
  541. * @return string
  542. * @static
  543. */
  544. public static function getCachedServicesPath()
  545. {
  546. /** @var \Illuminate\Foundation\Application $instance */
  547. return $instance->getCachedServicesPath();
  548. }
  549. /**
  550. * Get the path to the cached packages.php file.
  551. *
  552. * @return string
  553. * @static
  554. */
  555. public static function getCachedPackagesPath()
  556. {
  557. /** @var \Illuminate\Foundation\Application $instance */
  558. return $instance->getCachedPackagesPath();
  559. }
  560. /**
  561. * Determine if the application configuration is cached.
  562. *
  563. * @return bool
  564. * @static
  565. */
  566. public static function configurationIsCached()
  567. {
  568. /** @var \Illuminate\Foundation\Application $instance */
  569. return $instance->configurationIsCached();
  570. }
  571. /**
  572. * Get the path to the configuration cache file.
  573. *
  574. * @return string
  575. * @static
  576. */
  577. public static function getCachedConfigPath()
  578. {
  579. /** @var \Illuminate\Foundation\Application $instance */
  580. return $instance->getCachedConfigPath();
  581. }
  582. /**
  583. * Determine if the application routes are cached.
  584. *
  585. * @return bool
  586. * @static
  587. */
  588. public static function routesAreCached()
  589. {
  590. /** @var \Illuminate\Foundation\Application $instance */
  591. return $instance->routesAreCached();
  592. }
  593. /**
  594. * Get the path to the routes cache file.
  595. *
  596. * @return string
  597. * @static
  598. */
  599. public static function getCachedRoutesPath()
  600. {
  601. /** @var \Illuminate\Foundation\Application $instance */
  602. return $instance->getCachedRoutesPath();
  603. }
  604. /**
  605. * Determine if the application is currently down for maintenance.
  606. *
  607. * @return bool
  608. * @static
  609. */
  610. public static function isDownForMaintenance()
  611. {
  612. /** @var \Illuminate\Foundation\Application $instance */
  613. return $instance->isDownForMaintenance();
  614. }
  615. /**
  616. * Throw an HttpException with the given data.
  617. *
  618. * @param int $code
  619. * @param string $message
  620. * @param array $headers
  621. * @return void
  622. * @throws \Symfony\Component\HttpKernel\Exception\HttpException
  623. * @static
  624. */
  625. public static function abort($code, $message = '', $headers = [])
  626. {
  627. /** @var \Illuminate\Foundation\Application $instance */
  628. $instance->abort($code, $message, $headers);
  629. }
  630. /**
  631. * Register a terminating callback with the application.
  632. *
  633. * @param \Closure $callback
  634. * @return \Illuminate\Foundation\Application
  635. * @static
  636. */
  637. public static function terminating($callback)
  638. {
  639. /** @var \Illuminate\Foundation\Application $instance */
  640. return $instance->terminating($callback);
  641. }
  642. /**
  643. * Terminate the application.
  644. *
  645. * @return void
  646. * @static
  647. */
  648. public static function terminate()
  649. {
  650. /** @var \Illuminate\Foundation\Application $instance */
  651. $instance->terminate();
  652. }
  653. /**
  654. * Get the service providers that have been loaded.
  655. *
  656. * @return array
  657. * @static
  658. */
  659. public static function getLoadedProviders()
  660. {
  661. /** @var \Illuminate\Foundation\Application $instance */
  662. return $instance->getLoadedProviders();
  663. }
  664. /**
  665. * Get the application's deferred services.
  666. *
  667. * @return array
  668. * @static
  669. */
  670. public static function getDeferredServices()
  671. {
  672. /** @var \Illuminate\Foundation\Application $instance */
  673. return $instance->getDeferredServices();
  674. }
  675. /**
  676. * Set the application's deferred services.
  677. *
  678. * @param array $services
  679. * @return void
  680. * @static
  681. */
  682. public static function setDeferredServices($services)
  683. {
  684. /** @var \Illuminate\Foundation\Application $instance */
  685. $instance->setDeferredServices($services);
  686. }
  687. /**
  688. * Add an array of services to the application's deferred services.
  689. *
  690. * @param array $services
  691. * @return void
  692. * @static
  693. */
  694. public static function addDeferredServices($services)
  695. {
  696. /** @var \Illuminate\Foundation\Application $instance */
  697. $instance->addDeferredServices($services);
  698. }
  699. /**
  700. * Determine if the given service is a deferred service.
  701. *
  702. * @param string $service
  703. * @return bool
  704. * @static
  705. */
  706. public static function isDeferredService($service)
  707. {
  708. /** @var \Illuminate\Foundation\Application $instance */
  709. return $instance->isDeferredService($service);
  710. }
  711. /**
  712. * Configure the real-time facade namespace.
  713. *
  714. * @param string $namespace
  715. * @return void
  716. * @static
  717. */
  718. public static function provideFacades($namespace)
  719. {
  720. /** @var \Illuminate\Foundation\Application $instance */
  721. $instance->provideFacades($namespace);
  722. }
  723. /**
  724. * Define a callback to be used to configure Monolog.
  725. *
  726. * @param callable $callback
  727. * @return \Illuminate\Foundation\Application
  728. * @static
  729. */
  730. public static function configureMonologUsing($callback)
  731. {
  732. /** @var \Illuminate\Foundation\Application $instance */
  733. return $instance->configureMonologUsing($callback);
  734. }
  735. /**
  736. * Determine if the application has a custom Monolog configurator.
  737. *
  738. * @return bool
  739. * @static
  740. */
  741. public static function hasMonologConfigurator()
  742. {
  743. /** @var \Illuminate\Foundation\Application $instance */
  744. return $instance->hasMonologConfigurator();
  745. }
  746. /**
  747. * Get the custom Monolog configurator for the application.
  748. *
  749. * @return callable
  750. * @static
  751. */
  752. public static function getMonologConfigurator()
  753. {
  754. /** @var \Illuminate\Foundation\Application $instance */
  755. return $instance->getMonologConfigurator();
  756. }
  757. /**
  758. * Get the current application locale.
  759. *
  760. * @return string
  761. * @static
  762. */
  763. public static function getLocale()
  764. {
  765. /** @var \Illuminate\Foundation\Application $instance */
  766. return $instance->getLocale();
  767. }
  768. /**
  769. * Set the current application locale.
  770. *
  771. * @param string $locale
  772. * @return void
  773. * @static
  774. */
  775. public static function setLocale($locale)
  776. {
  777. /** @var \Illuminate\Foundation\Application $instance */
  778. $instance->setLocale($locale);
  779. }
  780. /**
  781. * Determine if application locale is the given locale.
  782. *
  783. * @param string $locale
  784. * @return bool
  785. * @static
  786. */
  787. public static function isLocale($locale)
  788. {
  789. /** @var \Illuminate\Foundation\Application $instance */
  790. return $instance->isLocale($locale);
  791. }
  792. /**
  793. * Register the core class aliases in the container.
  794. *
  795. * @return void
  796. * @static
  797. */
  798. public static function registerCoreContainerAliases()
  799. {
  800. /** @var \Illuminate\Foundation\Application $instance */
  801. $instance->registerCoreContainerAliases();
  802. }
  803. /**
  804. * Flush the container of all bindings and resolved instances.
  805. *
  806. * @return void
  807. * @static
  808. */
  809. public static function flush()
  810. {
  811. /** @var \Illuminate\Foundation\Application $instance */
  812. $instance->flush();
  813. }
  814. /**
  815. * Get the application namespace.
  816. *
  817. * @return string
  818. * @throws \RuntimeException
  819. * @static
  820. */
  821. public static function getNamespace()
  822. {
  823. /** @var \Illuminate\Foundation\Application $instance */
  824. return $instance->getNamespace();
  825. }
  826. /**
  827. * Define a contextual binding.
  828. *
  829. * @param string $concrete
  830. * @return \Illuminate\Contracts\Container\ContextualBindingBuilder
  831. * @static
  832. */
  833. public static function when($concrete)
  834. {
  835. //Method inherited from \Illuminate\Container\Container
  836. /** @var \Illuminate\Foundation\Application $instance */
  837. return $instance->when($concrete);
  838. }
  839. /**
  840. * Returns true if the container can return an entry for the given identifier.
  841. *
  842. * Returns false otherwise.
  843. *
  844. * `has($id)` returning true does not mean that `get($id)` will not throw an exception.
  845. * It does however mean that `get($id)` will not throw a `NotFoundExceptionInterface`.
  846. *
  847. * @param string $id Identifier of the entry to look for.
  848. * @return bool
  849. * @static
  850. */
  851. public static function has($id)
  852. {
  853. //Method inherited from \Illuminate\Container\Container
  854. /** @var \Illuminate\Foundation\Application $instance */
  855. return $instance->has($id);
  856. }
  857. /**
  858. * Determine if the given abstract type has been resolved.
  859. *
  860. * @param string $abstract
  861. * @return bool
  862. * @static
  863. */
  864. public static function resolved($abstract)
  865. {
  866. //Method inherited from \Illuminate\Container\Container
  867. /** @var \Illuminate\Foundation\Application $instance */
  868. return $instance->resolved($abstract);
  869. }
  870. /**
  871. * Determine if a given type is shared.
  872. *
  873. * @param string $abstract
  874. * @return bool
  875. * @static
  876. */
  877. public static function isShared($abstract)
  878. {
  879. //Method inherited from \Illuminate\Container\Container
  880. /** @var \Illuminate\Foundation\Application $instance */
  881. return $instance->isShared($abstract);
  882. }
  883. /**
  884. * Determine if a given string is an alias.
  885. *
  886. * @param string $name
  887. * @return bool
  888. * @static
  889. */
  890. public static function isAlias($name)
  891. {
  892. //Method inherited from \Illuminate\Container\Container
  893. /** @var \Illuminate\Foundation\Application $instance */
  894. return $instance->isAlias($name);
  895. }
  896. /**
  897. * Register a binding with the container.
  898. *
  899. * @param string $abstract
  900. * @param \Closure|string|null $concrete
  901. * @param bool $shared
  902. * @return void
  903. * @static
  904. */
  905. public static function bind($abstract, $concrete = null, $shared = false)
  906. {
  907. //Method inherited from \Illuminate\Container\Container
  908. /** @var \Illuminate\Foundation\Application $instance */
  909. $instance->bind($abstract, $concrete, $shared);
  910. }
  911. /**
  912. * Determine if the container has a method binding.
  913. *
  914. * @param string $method
  915. * @return bool
  916. * @static
  917. */
  918. public static function hasMethodBinding($method)
  919. {
  920. //Method inherited from \Illuminate\Container\Container
  921. /** @var \Illuminate\Foundation\Application $instance */
  922. return $instance->hasMethodBinding($method);
  923. }
  924. /**
  925. * Bind a callback to resolve with Container::call.
  926. *
  927. * @param string $method
  928. * @param \Closure $callback
  929. * @return void
  930. * @static
  931. */
  932. public static function bindMethod($method, $callback)
  933. {
  934. //Method inherited from \Illuminate\Container\Container
  935. /** @var \Illuminate\Foundation\Application $instance */
  936. $instance->bindMethod($method, $callback);
  937. }
  938. /**
  939. * Get the method binding for the given method.
  940. *
  941. * @param string $method
  942. * @param mixed $instance
  943. * @return mixed
  944. * @static
  945. */
  946. public static function callMethodBinding($method, $instance)
  947. {
  948. //Method inherited from \Illuminate\Container\Container
  949. /** @var \Illuminate\Foundation\Application $instance */
  950. return $instance->callMethodBinding($method, $instance);
  951. }
  952. /**
  953. * Add a contextual binding to the container.
  954. *
  955. * @param string $concrete
  956. * @param string $abstract
  957. * @param \Closure|string $implementation
  958. * @return void
  959. * @static
  960. */
  961. public static function addContextualBinding($concrete, $abstract, $implementation)
  962. {
  963. //Method inherited from \Illuminate\Container\Container
  964. /** @var \Illuminate\Foundation\Application $instance */
  965. $instance->addContextualBinding($concrete, $abstract, $implementation);
  966. }
  967. /**
  968. * Register a binding if it hasn't already been registered.
  969. *
  970. * @param string $abstract
  971. * @param \Closure|string|null $concrete
  972. * @param bool $shared
  973. * @return void
  974. * @static
  975. */
  976. public static function bindIf($abstract, $concrete = null, $shared = false)
  977. {
  978. //Method inherited from \Illuminate\Container\Container
  979. /** @var \Illuminate\Foundation\Application $instance */
  980. $instance->bindIf($abstract, $concrete, $shared);
  981. }
  982. /**
  983. * Register a shared binding in the container.
  984. *
  985. * @param string $abstract
  986. * @param \Closure|string|null $concrete
  987. * @return void
  988. * @static
  989. */
  990. public static function singleton($abstract, $concrete = null)
  991. {
  992. //Method inherited from \Illuminate\Container\Container
  993. /** @var \Illuminate\Foundation\Application $instance */
  994. $instance->singleton($abstract, $concrete);
  995. }
  996. /**
  997. * "Extend" an abstract type in the container.
  998. *
  999. * @param string $abstract
  1000. * @param \Closure $closure
  1001. * @return void
  1002. * @throws \InvalidArgumentException
  1003. * @static
  1004. */
  1005. public static function extend($abstract, $closure)
  1006. {
  1007. //Method inherited from \Illuminate\Container\Container
  1008. /** @var \Illuminate\Foundation\Application $instance */
  1009. $instance->extend($abstract, $closure);
  1010. }
  1011. /**
  1012. * Register an existing instance as shared in the container.
  1013. *
  1014. * @param string $abstract
  1015. * @param mixed $instance
  1016. * @return mixed
  1017. * @static
  1018. */
  1019. public static function instance($abstract, $instance)
  1020. {
  1021. //Method inherited from \Illuminate\Container\Container
  1022. /** @var \Illuminate\Foundation\Application $instance */
  1023. return $instance->instance($abstract, $instance);
  1024. }
  1025. /**
  1026. * Assign a set of tags to a given binding.
  1027. *
  1028. * @param array|string $abstracts
  1029. * @param array|mixed $tags
  1030. * @return void
  1031. * @static
  1032. */
  1033. public static function tag($abstracts, $tags)
  1034. {
  1035. //Method inherited from \Illuminate\Container\Container
  1036. /** @var \Illuminate\Foundation\Application $instance */
  1037. $instance->tag($abstracts, $tags);
  1038. }
  1039. /**
  1040. * Resolve all of the bindings for a given tag.
  1041. *
  1042. * @param string $tag
  1043. * @return array
  1044. * @static
  1045. */
  1046. public static function tagged($tag)
  1047. {
  1048. //Method inherited from \Illuminate\Container\Container
  1049. /** @var \Illuminate\Foundation\Application $instance */
  1050. return $instance->tagged($tag);
  1051. }
  1052. /**
  1053. * Alias a type to a different name.
  1054. *
  1055. * @param string $abstract
  1056. * @param string $alias
  1057. * @return void
  1058. * @static
  1059. */
  1060. public static function alias($abstract, $alias)
  1061. {
  1062. //Method inherited from \Illuminate\Container\Container
  1063. /** @var \Illuminate\Foundation\Application $instance */
  1064. $instance->alias($abstract, $alias);
  1065. }
  1066. /**
  1067. * Bind a new callback to an abstract's rebind event.
  1068. *
  1069. * @param string $abstract
  1070. * @param \Closure $callback
  1071. * @return mixed
  1072. * @static
  1073. */
  1074. public static function rebinding($abstract, $callback)
  1075. {
  1076. //Method inherited from \Illuminate\Container\Container
  1077. /** @var \Illuminate\Foundation\Application $instance */
  1078. return $instance->rebinding($abstract, $callback);
  1079. }
  1080. /**
  1081. * Refresh an instance on the given target and method.
  1082. *
  1083. * @param string $abstract
  1084. * @param mixed $target
  1085. * @param string $method
  1086. * @return mixed
  1087. * @static
  1088. */
  1089. public static function refresh($abstract, $target, $method)
  1090. {
  1091. //Method inherited from \Illuminate\Container\Container
  1092. /** @var \Illuminate\Foundation\Application $instance */
  1093. return $instance->refresh($abstract, $target, $method);
  1094. }
  1095. /**
  1096. * Wrap the given closure such that its dependencies will be injected when executed.
  1097. *
  1098. * @param \Closure $callback
  1099. * @param array $parameters
  1100. * @return \Closure
  1101. * @static
  1102. */
  1103. public static function wrap($callback, $parameters = [])
  1104. {
  1105. //Method inherited from \Illuminate\Container\Container
  1106. /** @var \Illuminate\Foundation\Application $instance */
  1107. return $instance->wrap($callback, $parameters);
  1108. }
  1109. /**
  1110. * Call the given Closure / class@method and inject its dependencies.
  1111. *
  1112. * @param callable|string $callback
  1113. * @param array $parameters
  1114. * @param string|null $defaultMethod
  1115. * @return mixed
  1116. * @static
  1117. */
  1118. public static function call($callback, $parameters = [], $defaultMethod = null)
  1119. {
  1120. //Method inherited from \Illuminate\Container\Container
  1121. /** @var \Illuminate\Foundation\Application $instance */
  1122. return $instance->call($callback, $parameters, $defaultMethod);
  1123. }
  1124. /**
  1125. * Get a closure to resolve the given type from the container.
  1126. *
  1127. * @param string $abstract
  1128. * @return \Closure
  1129. * @static
  1130. */
  1131. public static function factory($abstract)
  1132. {
  1133. //Method inherited from \Illuminate\Container\Container
  1134. /** @var \Illuminate\Foundation\Application $instance */
  1135. return $instance->factory($abstract);
  1136. }
  1137. /**
  1138. * An alias function name for make().
  1139. *
  1140. * @param string $abstract
  1141. * @param array $parameters
  1142. * @return mixed
  1143. * @static
  1144. */
  1145. public static function makeWith($abstract, $parameters = [])
  1146. {
  1147. //Method inherited from \Illuminate\Container\Container
  1148. /** @var \Illuminate\Foundation\Application $instance */
  1149. return $instance->makeWith($abstract, $parameters);
  1150. }
  1151. /**
  1152. * Finds an entry of the container by its identifier and returns it.
  1153. *
  1154. * @param string $id Identifier of the entry to look for.
  1155. * @throws NotFoundExceptionInterface No entry was found for **this** identifier.
  1156. * @throws ContainerExceptionInterface Error while retrieving the entry.
  1157. * @return mixed Entry.
  1158. * @static
  1159. */
  1160. public static function get($id)
  1161. {
  1162. //Method inherited from \Illuminate\Container\Container
  1163. /** @var \Illuminate\Foundation\Application $instance */
  1164. return $instance->get($id);
  1165. }
  1166. /**
  1167. * Instantiate a concrete instance of the given type.
  1168. *
  1169. * @param string $concrete
  1170. * @return mixed
  1171. * @throws \Illuminate\Contracts\Container\BindingResolutionException
  1172. * @static
  1173. */
  1174. public static function build($concrete)
  1175. {
  1176. //Method inherited from \Illuminate\Container\Container
  1177. /** @var \Illuminate\Foundation\Application $instance */
  1178. return $instance->build($concrete);
  1179. }
  1180. /**
  1181. * Register a new resolving callback.
  1182. *
  1183. * @param \Closure|string $abstract
  1184. * @param \Closure|null $callback
  1185. * @return void
  1186. * @static
  1187. */
  1188. public static function resolving($abstract, $callback = null)
  1189. {
  1190. //Method inherited from \Illuminate\Container\Container
  1191. /** @var \Illuminate\Foundation\Application $instance */
  1192. $instance->resolving($abstract, $callback);
  1193. }
  1194. /**
  1195. * Register a new after resolving callback for all types.
  1196. *
  1197. * @param \Closure|string $abstract
  1198. * @param \Closure|null $callback
  1199. * @return void
  1200. * @static
  1201. */
  1202. public static function afterResolving($abstract, $callback = null)
  1203. {
  1204. //Method inherited from \Illuminate\Container\Container
  1205. /** @var \Illuminate\Foundation\Application $instance */
  1206. $instance->afterResolving($abstract, $callback);
  1207. }
  1208. /**
  1209. * Get the container's bindings.
  1210. *
  1211. * @return array
  1212. * @static
  1213. */
  1214. public static function getBindings()
  1215. {
  1216. //Method inherited from \Illuminate\Container\Container
  1217. /** @var \Illuminate\Foundation\Application $instance */
  1218. return $instance->getBindings();
  1219. }
  1220. /**
  1221. * Get the alias for an abstract if available.
  1222. *
  1223. * @param string $abstract
  1224. * @return string
  1225. * @throws \LogicException
  1226. * @static
  1227. */
  1228. public static function getAlias($abstract)
  1229. {
  1230. //Method inherited from \Illuminate\Container\Container
  1231. /** @var \Illuminate\Foundation\Application $instance */
  1232. return $instance->getAlias($abstract);
  1233. }
  1234. /**
  1235. * Remove all of the extender callbacks for a given type.
  1236. *
  1237. * @param string $abstract
  1238. * @return void
  1239. * @static
  1240. */
  1241. public static function forgetExtenders($abstract)
  1242. {
  1243. //Method inherited from \Illuminate\Container\Container
  1244. /** @var \Illuminate\Foundation\Application $instance */
  1245. $instance->forgetExtenders($abstract);
  1246. }
  1247. /**
  1248. * Remove a resolved instance from the instance cache.
  1249. *
  1250. * @param string $abstract
  1251. * @return void
  1252. * @static
  1253. */
  1254. public static function forgetInstance($abstract)
  1255. {
  1256. //Method inherited from \Illuminate\Container\Container
  1257. /** @var \Illuminate\Foundation\Application $instance */
  1258. $instance->forgetInstance($abstract);
  1259. }
  1260. /**
  1261. * Clear all of the instances from the container.
  1262. *
  1263. * @return void
  1264. * @static
  1265. */
  1266. public static function forgetInstances()
  1267. {
  1268. //Method inherited from \Illuminate\Container\Container
  1269. /** @var \Illuminate\Foundation\Application $instance */
  1270. $instance->forgetInstances();
  1271. }
  1272. /**
  1273. * Set the globally available instance of the container.
  1274. *
  1275. * @return static
  1276. * @static
  1277. */
  1278. public static function getInstance()
  1279. {
  1280. //Method inherited from \Illuminate\Container\Container
  1281. return \Illuminate\Foundation\Application::getInstance();
  1282. }
  1283. /**
  1284. * Set the shared instance of the container.
  1285. *
  1286. * @param \Illuminate\Contracts\Container\Container|null $container
  1287. * @return static
  1288. * @static
  1289. */
  1290. public static function setInstance($container = null)
  1291. {
  1292. //Method inherited from \Illuminate\Container\Container
  1293. return \Illuminate\Foundation\Application::setInstance($container);
  1294. }
  1295. /**
  1296. * Determine if a given offset exists.
  1297. *
  1298. * @param string $key
  1299. * @return bool
  1300. * @static
  1301. */
  1302. public static function offsetExists($key)
  1303. {
  1304. //Method inherited from \Illuminate\Container\Container
  1305. /** @var \Illuminate\Foundation\Application $instance */
  1306. return $instance->offsetExists($key);
  1307. }
  1308. /**
  1309. * Get the value at a given offset.
  1310. *
  1311. * @param string $key
  1312. * @return mixed
  1313. * @static
  1314. */
  1315. public static function offsetGet($key)
  1316. {
  1317. //Method inherited from \Illuminate\Container\Container
  1318. /** @var \Illuminate\Foundation\Application $instance */
  1319. return $instance->offsetGet($key);
  1320. }
  1321. /**
  1322. * Set the value at a given offset.
  1323. *
  1324. * @param string $key
  1325. * @param mixed $value
  1326. * @return void
  1327. * @static
  1328. */
  1329. public static function offsetSet($key, $value)
  1330. {
  1331. //Method inherited from \Illuminate\Container\Container
  1332. /** @var \Illuminate\Foundation\Application $instance */
  1333. $instance->offsetSet($key, $value);
  1334. }
  1335. /**
  1336. * Unset the value at a given offset.
  1337. *
  1338. * @param string $key
  1339. * @return void
  1340. * @static
  1341. */
  1342. public static function offsetUnset($key)
  1343. {
  1344. //Method inherited from \Illuminate\Container\Container
  1345. /** @var \Illuminate\Foundation\Application $instance */
  1346. $instance->offsetUnset($key);
  1347. }
  1348. }
  1349. /**
  1350. *
  1351. *
  1352. * @see \Illuminate\Contracts\Console\Kernel
  1353. */
  1354. class Artisan {
  1355. /**
  1356. * Run the console application.
  1357. *
  1358. * @param \Symfony\Component\Console\Input\InputInterface $input
  1359. * @param \Symfony\Component\Console\Output\OutputInterface $output
  1360. * @return int
  1361. * @static
  1362. */
  1363. public static function handle($input, $output = null)
  1364. {
  1365. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1366. /** @var \App\Console\Kernel $instance */
  1367. return $instance->handle($input, $output);
  1368. }
  1369. /**
  1370. * Terminate the application.
  1371. *
  1372. * @param \Symfony\Component\Console\Input\InputInterface $input
  1373. * @param int $status
  1374. * @return void
  1375. * @static
  1376. */
  1377. public static function terminate($input, $status)
  1378. {
  1379. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1380. /** @var \App\Console\Kernel $instance */
  1381. $instance->terminate($input, $status);
  1382. }
  1383. /**
  1384. * Register a Closure based command with the application.
  1385. *
  1386. * @param string $signature
  1387. * @param \Closure $callback
  1388. * @return \Illuminate\Foundation\Console\ClosureCommand
  1389. * @static
  1390. */
  1391. public static function command($signature, $callback)
  1392. {
  1393. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1394. /** @var \App\Console\Kernel $instance */
  1395. return $instance->command($signature, $callback);
  1396. }
  1397. /**
  1398. * Register the given command with the console application.
  1399. *
  1400. * @param \Symfony\Component\Console\Command\Command $command
  1401. * @return void
  1402. * @static
  1403. */
  1404. public static function registerCommand($command)
  1405. {
  1406. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1407. /** @var \App\Console\Kernel $instance */
  1408. $instance->registerCommand($command);
  1409. }
  1410. /**
  1411. * Run an Artisan console command by name.
  1412. *
  1413. * @param string $command
  1414. * @param array $parameters
  1415. * @param \Symfony\Component\Console\Output\OutputInterface $outputBuffer
  1416. * @return int
  1417. * @static
  1418. */
  1419. public static function call($command, $parameters = [], $outputBuffer = null)
  1420. {
  1421. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1422. /** @var \App\Console\Kernel $instance */
  1423. return $instance->call($command, $parameters, $outputBuffer);
  1424. }
  1425. /**
  1426. * Queue the given console command.
  1427. *
  1428. * @param string $command
  1429. * @param array $parameters
  1430. * @return \Illuminate\Foundation\Bus\PendingDispatch
  1431. * @static
  1432. */
  1433. public static function queue($command, $parameters = [])
  1434. {
  1435. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1436. /** @var \App\Console\Kernel $instance */
  1437. return $instance->queue($command, $parameters);
  1438. }
  1439. /**
  1440. * Get all of the commands registered with the console.
  1441. *
  1442. * @return array
  1443. * @static
  1444. */
  1445. public static function all()
  1446. {
  1447. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1448. /** @var \App\Console\Kernel $instance */
  1449. return $instance->all();
  1450. }
  1451. /**
  1452. * Get the output for the last run command.
  1453. *
  1454. * @return string
  1455. * @static
  1456. */
  1457. public static function output()
  1458. {
  1459. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1460. /** @var \App\Console\Kernel $instance */
  1461. return $instance->output();
  1462. }
  1463. /**
  1464. * Bootstrap the application for artisan commands.
  1465. *
  1466. * @return void
  1467. * @static
  1468. */
  1469. public static function bootstrap()
  1470. {
  1471. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1472. /** @var \App\Console\Kernel $instance */
  1473. $instance->bootstrap();
  1474. }
  1475. /**
  1476. * Set the Artisan application instance.
  1477. *
  1478. * @param \Illuminate\Console\Application $artisan
  1479. * @return void
  1480. * @static
  1481. */
  1482. public static function setArtisan($artisan)
  1483. {
  1484. //Method inherited from \Illuminate\Foundation\Console\Kernel
  1485. /** @var \App\Console\Kernel $instance */
  1486. $instance->setArtisan($artisan);
  1487. }
  1488. }
  1489. /**
  1490. *
  1491. *
  1492. * @method static \Illuminate\Contracts\Auth\Authenticatable loginUsingId(mixed $id, bool $remember = false)
  1493. * @method static bool viaRemember()
  1494. * @see \Illuminate\Auth\AuthManager
  1495. * @see \Illuminate\Contracts\Auth\Factory
  1496. * @see \Illuminate\Contracts\Auth\Guard
  1497. * @see \Illuminate\Contracts\Auth\StatefulGuard
  1498. */
  1499. class Auth {
  1500. /**
  1501. * Attempt to get the guard from the local cache.
  1502. *
  1503. * @param string $name
  1504. * @return \Illuminate\Contracts\Auth\Guard|\Illuminate\Contracts\Auth\StatefulGuard
  1505. * @static
  1506. */
  1507. public static function guard($name = null)
  1508. {
  1509. /** @var \Illuminate\Auth\AuthManager $instance */
  1510. return $instance->guard($name);
  1511. }
  1512. /**
  1513. * Create a session based authentication guard.
  1514. *
  1515. * @param string $name
  1516. * @param array $config
  1517. * @return \Illuminate\Auth\SessionGuard
  1518. * @static
  1519. */
  1520. public static function createSessionDriver($name, $config)
  1521. {
  1522. /** @var \Illuminate\Auth\AuthManager $instance */
  1523. return $instance->createSessionDriver($name, $config);
  1524. }
  1525. /**
  1526. * Create a token based authentication guard.
  1527. *
  1528. * @param string $name
  1529. * @param array $config
  1530. * @return \Illuminate\Auth\TokenGuard
  1531. * @static
  1532. */
  1533. public static function createTokenDriver($name, $config)
  1534. {
  1535. /** @var \Illuminate\Auth\AuthManager $instance */
  1536. return $instance->createTokenDriver($name, $config);
  1537. }
  1538. /**
  1539. * Get the default authentication driver name.
  1540. *
  1541. * @return string
  1542. * @static
  1543. */
  1544. public static function getDefaultDriver()
  1545. {
  1546. /** @var \Illuminate\Auth\AuthManager $instance */
  1547. return $instance->getDefaultDriver();
  1548. }
  1549. /**
  1550. * Set the default guard driver the factory should serve.
  1551. *
  1552. * @param string $name
  1553. * @return void
  1554. * @static
  1555. */
  1556. public static function shouldUse($name)
  1557. {
  1558. /** @var \Illuminate\Auth\AuthManager $instance */
  1559. $instance->shouldUse($name);
  1560. }
  1561. /**
  1562. * Set the default authentication driver name.
  1563. *
  1564. * @param string $name
  1565. * @return void
  1566. * @static
  1567. */
  1568. public static function setDefaultDriver($name)
  1569. {
  1570. /** @var \Illuminate\Auth\AuthManager $instance */
  1571. $instance->setDefaultDriver($name);
  1572. }
  1573. /**
  1574. * Register a new callback based request guard.
  1575. *
  1576. * @param string $driver
  1577. * @param callable $callback
  1578. * @return \Illuminate\Auth\AuthManager
  1579. * @static
  1580. */
  1581. public static function viaRequest($driver, $callback)
  1582. {
  1583. /** @var \Illuminate\Auth\AuthManager $instance */
  1584. return $instance->viaRequest($driver, $callback);
  1585. }
  1586. /**
  1587. * Get the user resolver callback.
  1588. *
  1589. * @return \Closure
  1590. * @static
  1591. */
  1592. public static function userResolver()
  1593. {
  1594. /** @var \Illuminate\Auth\AuthManager $instance */
  1595. return $instance->userResolver();
  1596. }
  1597. /**
  1598. * Set the callback to be used to resolve users.
  1599. *
  1600. * @param \Closure $userResolver
  1601. * @return \Illuminate\Auth\AuthManager
  1602. * @static
  1603. */
  1604. public static function resolveUsersUsing($userResolver)
  1605. {
  1606. /** @var \Illuminate\Auth\AuthManager $instance */
  1607. return $instance->resolveUsersUsing($userResolver);
  1608. }
  1609. /**
  1610. * Register a custom driver creator Closure.
  1611. *
  1612. * @param string $driver
  1613. * @param \Closure $callback
  1614. * @return \Illuminate\Auth\AuthManager
  1615. * @static
  1616. */
  1617. public static function extend($driver, $callback)
  1618. {
  1619. /** @var \Illuminate\Auth\AuthManager $instance */
  1620. return $instance->extend($driver, $callback);
  1621. }
  1622. /**
  1623. * Register a custom provider creator Closure.
  1624. *
  1625. * @param string $name
  1626. * @param \Closure $callback
  1627. * @return \Illuminate\Auth\AuthManager
  1628. * @static
  1629. */
  1630. public static function provider($name, $callback)
  1631. {
  1632. /** @var \Illuminate\Auth\AuthManager $instance */
  1633. return $instance->provider($name, $callback);
  1634. }
  1635. /**
  1636. * Create the user provider implementation for the driver.
  1637. *
  1638. * @param string|null $provider
  1639. * @return \Illuminate\Contracts\Auth\UserProvider|null
  1640. * @throws \InvalidArgumentException
  1641. * @static
  1642. */
  1643. public static function createUserProvider($provider = null)
  1644. {
  1645. /** @var \Illuminate\Auth\AuthManager $instance */
  1646. return $instance->createUserProvider($provider);
  1647. }
  1648. /**
  1649. * Get the default user provider name.
  1650. *
  1651. * @return string
  1652. * @static
  1653. */
  1654. public static function getDefaultUserProvider()
  1655. {
  1656. /** @var \Illuminate\Auth\AuthManager $instance */
  1657. return $instance->getDefaultUserProvider();
  1658. }
  1659. /**
  1660. * Get the currently authenticated user.
  1661. *
  1662. * @return \App\Models\Admin|null
  1663. * @static
  1664. */
  1665. public static function user()
  1666. {
  1667. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1668. return $instance->user();
  1669. }
  1670. /**
  1671. * Get the currently authenticated user or throws an exception.
  1672. *
  1673. * @throws \Tymon\JWTAuth\Exceptions\UserNotDefinedException
  1674. * @return \App\Models\Admin
  1675. * @static
  1676. */
  1677. public static function userOrFail()
  1678. {
  1679. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1680. return $instance->userOrFail();
  1681. }
  1682. /**
  1683. * Validate a user's credentials.
  1684. *
  1685. * @param array $credentials
  1686. * @return bool
  1687. * @static
  1688. */
  1689. public static function validate($credentials = [])
  1690. {
  1691. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1692. return $instance->validate($credentials);
  1693. }
  1694. /**
  1695. * Attempt to authenticate the user using the given credentials and return the token.
  1696. *
  1697. * @param array $credentials
  1698. * @param bool $login
  1699. * @return bool|string
  1700. * @static
  1701. */
  1702. public static function attempt($credentials = [], $login = true)
  1703. {
  1704. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1705. return $instance->attempt($credentials, $login);
  1706. }
  1707. /**
  1708. * Create a token for a user.
  1709. *
  1710. * @param \Tymon\JWTAuth\Contracts\JWTSubject $user
  1711. * @return string
  1712. * @static
  1713. */
  1714. public static function login($user)
  1715. {
  1716. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1717. return $instance->login($user);
  1718. }
  1719. /**
  1720. * Logout the user, thus invalidating the token.
  1721. *
  1722. * @param bool $forceForever
  1723. * @return void
  1724. * @static
  1725. */
  1726. public static function logout($forceForever = false)
  1727. {
  1728. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1729. $instance->logout($forceForever);
  1730. }
  1731. /**
  1732. * Refresh the token.
  1733. *
  1734. * @param bool $forceForever
  1735. * @param bool $resetClaims
  1736. * @return string
  1737. * @static
  1738. */
  1739. public static function refresh($forceForever = false, $resetClaims = false)
  1740. {
  1741. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1742. return $instance->refresh($forceForever, $resetClaims);
  1743. }
  1744. /**
  1745. * Invalidate the token.
  1746. *
  1747. * @param bool $forceForever
  1748. * @return \Tymon\JWTAuth\JWT
  1749. * @static
  1750. */
  1751. public static function invalidate($forceForever = false)
  1752. {
  1753. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1754. return $instance->invalidate($forceForever);
  1755. }
  1756. /**
  1757. * Create a new token by User id.
  1758. *
  1759. * @param mixed $id
  1760. * @return string|null
  1761. * @static
  1762. */
  1763. public static function tokenById($id)
  1764. {
  1765. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1766. return $instance->tokenById($id);
  1767. }
  1768. /**
  1769. * Log a user into the application using their credentials.
  1770. *
  1771. * @param array $credentials
  1772. * @return bool
  1773. * @static
  1774. */
  1775. public static function once($credentials = [])
  1776. {
  1777. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1778. return $instance->once($credentials);
  1779. }
  1780. /**
  1781. * Log the given User into the application.
  1782. *
  1783. * @param mixed $id
  1784. * @return bool
  1785. * @static
  1786. */
  1787. public static function onceUsingId($id)
  1788. {
  1789. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1790. return $instance->onceUsingId($id);
  1791. }
  1792. /**
  1793. * Alias for onceUsingId.
  1794. *
  1795. * @param mixed $id
  1796. * @return bool
  1797. * @static
  1798. */
  1799. public static function byId($id)
  1800. {
  1801. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1802. return $instance->byId($id);
  1803. }
  1804. /**
  1805. * Add any custom claims.
  1806. *
  1807. * @param array $claims
  1808. * @return \Tymon\JWTAuth\JWTGuard
  1809. * @static
  1810. */
  1811. public static function claims($claims)
  1812. {
  1813. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1814. return $instance->claims($claims);
  1815. }
  1816. /**
  1817. * Get the raw Payload instance.
  1818. *
  1819. * @return \Tymon\JWTAuth\Payload
  1820. * @static
  1821. */
  1822. public static function getPayload()
  1823. {
  1824. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1825. return $instance->getPayload();
  1826. }
  1827. /**
  1828. * Alias for getPayload().
  1829. *
  1830. * @return \Tymon\JWTAuth\Payload
  1831. * @static
  1832. */
  1833. public static function payload()
  1834. {
  1835. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1836. return $instance->payload();
  1837. }
  1838. /**
  1839. * Set the token.
  1840. *
  1841. * @param \Tymon\JWTAuth\Token|string $token
  1842. * @return \Tymon\JWTAuth\JWTGuard
  1843. * @static
  1844. */
  1845. public static function setToken($token)
  1846. {
  1847. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1848. return $instance->setToken($token);
  1849. }
  1850. /**
  1851. * Set the token ttl.
  1852. *
  1853. * @param int $ttl
  1854. * @return \Tymon\JWTAuth\JWTGuard
  1855. * @static
  1856. */
  1857. public static function setTTL($ttl)
  1858. {
  1859. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1860. return $instance->setTTL($ttl);
  1861. }
  1862. /**
  1863. * Get the user provider used by the guard.
  1864. *
  1865. * @return \Illuminate\Contracts\Auth\UserProvider
  1866. * @static
  1867. */
  1868. public static function getProvider()
  1869. {
  1870. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1871. return $instance->getProvider();
  1872. }
  1873. /**
  1874. * Set the user provider used by the guard.
  1875. *
  1876. * @param \Illuminate\Contracts\Auth\UserProvider $provider
  1877. * @return \Tymon\JWTAuth\JWTGuard
  1878. * @static
  1879. */
  1880. public static function setProvider($provider)
  1881. {
  1882. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1883. return $instance->setProvider($provider);
  1884. }
  1885. /**
  1886. * Return the currently cached user.
  1887. *
  1888. * @return \App\Models\Admin|null
  1889. * @static
  1890. */
  1891. public static function getUser()
  1892. {
  1893. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1894. return $instance->getUser();
  1895. }
  1896. /**
  1897. * Get the current request instance.
  1898. *
  1899. * @return \Illuminate\Http\Request
  1900. * @static
  1901. */
  1902. public static function getRequest()
  1903. {
  1904. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1905. return $instance->getRequest();
  1906. }
  1907. /**
  1908. * Set the current request instance.
  1909. *
  1910. * @param \Illuminate\Http\Request $request
  1911. * @return \Tymon\JWTAuth\JWTGuard
  1912. * @static
  1913. */
  1914. public static function setRequest($request)
  1915. {
  1916. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1917. return $instance->setRequest($request);
  1918. }
  1919. /**
  1920. * Get the last user we attempted to authenticate.
  1921. *
  1922. * @return \App\Models\Admin
  1923. * @static
  1924. */
  1925. public static function getLastAttempted()
  1926. {
  1927. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1928. return $instance->getLastAttempted();
  1929. }
  1930. /**
  1931. * Determine if the current user is authenticated.
  1932. *
  1933. * @return \App\Models\Admin
  1934. * @throws \Illuminate\Auth\AuthenticationException
  1935. * @static
  1936. */
  1937. public static function authenticate()
  1938. {
  1939. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1940. return $instance->authenticate();
  1941. }
  1942. /**
  1943. * Determine if the current user is authenticated.
  1944. *
  1945. * @return bool
  1946. * @static
  1947. */
  1948. public static function check()
  1949. {
  1950. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1951. return $instance->check();
  1952. }
  1953. /**
  1954. * Determine if the current user is a guest.
  1955. *
  1956. * @return bool
  1957. * @static
  1958. */
  1959. public static function guest()
  1960. {
  1961. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1962. return $instance->guest();
  1963. }
  1964. /**
  1965. * Get the ID for the currently authenticated user.
  1966. *
  1967. * @return int|null
  1968. * @static
  1969. */
  1970. public static function id()
  1971. {
  1972. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1973. return $instance->id();
  1974. }
  1975. /**
  1976. * Set the current user.
  1977. *
  1978. * @param \Illuminate\Contracts\Auth\Authenticatable $user
  1979. * @return \Tymon\JWTAuth\JWTGuard
  1980. * @static
  1981. */
  1982. public static function setUser($user)
  1983. {
  1984. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  1985. return $instance->setUser($user);
  1986. }
  1987. /**
  1988. * Register a custom macro.
  1989. *
  1990. * @param string $name
  1991. * @param object|callable $macro
  1992. * @return void
  1993. * @static
  1994. */
  1995. public static function macro($name, $macro)
  1996. {
  1997. \Tymon\JWTAuth\JWTGuard::macro($name, $macro);
  1998. }
  1999. /**
  2000. * Mix another object into the class.
  2001. *
  2002. * @param object $mixin
  2003. * @return void
  2004. * @static
  2005. */
  2006. public static function mixin($mixin)
  2007. {
  2008. \Tymon\JWTAuth\JWTGuard::mixin($mixin);
  2009. }
  2010. /**
  2011. * Checks if macro is registered.
  2012. *
  2013. * @param string $name
  2014. * @return bool
  2015. * @static
  2016. */
  2017. public static function hasMacro($name)
  2018. {
  2019. return \Tymon\JWTAuth\JWTGuard::hasMacro($name);
  2020. }
  2021. /**
  2022. * Dynamically handle calls to the class.
  2023. *
  2024. * @param string $method
  2025. * @param array $parameters
  2026. * @return mixed
  2027. * @throws \BadMethodCallException
  2028. * @static
  2029. */
  2030. public static function macroCall($method, $parameters)
  2031. {
  2032. /** @var \Tymon\JWTAuth\JWTGuard $instance */
  2033. return $instance->macroCall($method, $parameters);
  2034. }
  2035. }
  2036. /**
  2037. *
  2038. *
  2039. * @see \Illuminate\View\Compilers\BladeCompiler
  2040. */
  2041. class Blade {
  2042. /**
  2043. * Compile the view at the given path.
  2044. *
  2045. * @param string $path
  2046. * @return void
  2047. * @static
  2048. */
  2049. public static function compile($path = null)
  2050. {
  2051. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2052. $instance->compile($path);
  2053. }
  2054. /**
  2055. * Get the path currently being compiled.
  2056. *
  2057. * @return string
  2058. * @static
  2059. */
  2060. public static function getPath()
  2061. {
  2062. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2063. return $instance->getPath();
  2064. }
  2065. /**
  2066. * Set the path currently being compiled.
  2067. *
  2068. * @param string $path
  2069. * @return void
  2070. * @static
  2071. */
  2072. public static function setPath($path)
  2073. {
  2074. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2075. $instance->setPath($path);
  2076. }
  2077. /**
  2078. * Compile the given Blade template contents.
  2079. *
  2080. * @param string $value
  2081. * @return string
  2082. * @static
  2083. */
  2084. public static function compileString($value)
  2085. {
  2086. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2087. return $instance->compileString($value);
  2088. }
  2089. /**
  2090. * Strip the parentheses from the given expression.
  2091. *
  2092. * @param string $expression
  2093. * @return string
  2094. * @static
  2095. */
  2096. public static function stripParentheses($expression)
  2097. {
  2098. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2099. return $instance->stripParentheses($expression);
  2100. }
  2101. /**
  2102. * Register a custom Blade compiler.
  2103. *
  2104. * @param callable $compiler
  2105. * @return void
  2106. * @static
  2107. */
  2108. public static function extend($compiler)
  2109. {
  2110. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2111. $instance->extend($compiler);
  2112. }
  2113. /**
  2114. * Get the extensions used by the compiler.
  2115. *
  2116. * @return array
  2117. * @static
  2118. */
  2119. public static function getExtensions()
  2120. {
  2121. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2122. return $instance->getExtensions();
  2123. }
  2124. /**
  2125. * Register an "if" statement directive.
  2126. *
  2127. * @param string $name
  2128. * @param callable $callback
  2129. * @return void
  2130. * @static
  2131. */
  2132. public static function if($name, $callback)
  2133. {
  2134. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2135. $instance->if($name, $callback);
  2136. }
  2137. /**
  2138. * Check the result of a condition.
  2139. *
  2140. * @param string $name
  2141. * @param array $parameters
  2142. * @return bool
  2143. * @static
  2144. */
  2145. public static function check($name, ...$parameters)
  2146. {
  2147. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2148. return $instance->check($name, ...$parameters);
  2149. }
  2150. /**
  2151. * Register a handler for custom directives.
  2152. *
  2153. * @param string $name
  2154. * @param callable $handler
  2155. * @return void
  2156. * @static
  2157. */
  2158. public static function directive($name, $handler)
  2159. {
  2160. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2161. $instance->directive($name, $handler);
  2162. }
  2163. /**
  2164. * Get the list of custom directives.
  2165. *
  2166. * @return array
  2167. * @static
  2168. */
  2169. public static function getCustomDirectives()
  2170. {
  2171. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2172. return $instance->getCustomDirectives();
  2173. }
  2174. /**
  2175. * Set the echo format to be used by the compiler.
  2176. *
  2177. * @param string $format
  2178. * @return void
  2179. * @static
  2180. */
  2181. public static function setEchoFormat($format)
  2182. {
  2183. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2184. $instance->setEchoFormat($format);
  2185. }
  2186. /**
  2187. * Set the echo format to double encode entities.
  2188. *
  2189. * @return void
  2190. * @static
  2191. */
  2192. public static function doubleEncode()
  2193. {
  2194. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2195. $instance->doubleEncode();
  2196. }
  2197. /**
  2198. * Get the path to the compiled version of a view.
  2199. *
  2200. * @param string $path
  2201. * @return string
  2202. * @static
  2203. */
  2204. public static function getCompiledPath($path)
  2205. {
  2206. //Method inherited from \Illuminate\View\Compilers\Compiler
  2207. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2208. return $instance->getCompiledPath($path);
  2209. }
  2210. /**
  2211. * Determine if the view at the given path is expired.
  2212. *
  2213. * @param string $path
  2214. * @return bool
  2215. * @static
  2216. */
  2217. public static function isExpired($path)
  2218. {
  2219. //Method inherited from \Illuminate\View\Compilers\Compiler
  2220. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2221. return $instance->isExpired($path);
  2222. }
  2223. /**
  2224. * Compile the default values for the echo statement.
  2225. *
  2226. * @param string $value
  2227. * @return string
  2228. * @static
  2229. */
  2230. public static function compileEchoDefaults($value)
  2231. {
  2232. /** @var \Illuminate\View\Compilers\BladeCompiler $instance */
  2233. return $instance->compileEchoDefaults($value);
  2234. }
  2235. }
  2236. /**
  2237. *
  2238. *
  2239. * @see \Illuminate\Contracts\Broadcasting\Factory
  2240. */
  2241. class Broadcast {
  2242. /**
  2243. * Register the routes for handling broadcast authentication and sockets.
  2244. *
  2245. * @param array|null $attributes
  2246. * @return void
  2247. * @static
  2248. */
  2249. public static function routes($attributes = null)
  2250. {
  2251. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2252. $instance->routes($attributes);
  2253. }
  2254. /**
  2255. * Get the socket ID for the given request.
  2256. *
  2257. * @param \Illuminate\Http\Request|null $request
  2258. * @return string|null
  2259. * @static
  2260. */
  2261. public static function socket($request = null)
  2262. {
  2263. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2264. return $instance->socket($request);
  2265. }
  2266. /**
  2267. * Begin broadcasting an event.
  2268. *
  2269. * @param mixed|null $event
  2270. * @return \Illuminate\Broadcasting\PendingBroadcast|void
  2271. * @static
  2272. */
  2273. public static function event($event = null)
  2274. {
  2275. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2276. return $instance->event($event);
  2277. }
  2278. /**
  2279. * Queue the given event for broadcast.
  2280. *
  2281. * @param mixed $event
  2282. * @return void
  2283. * @static
  2284. */
  2285. public static function queue($event)
  2286. {
  2287. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2288. $instance->queue($event);
  2289. }
  2290. /**
  2291. * Get a driver instance.
  2292. *
  2293. * @param string $driver
  2294. * @return mixed
  2295. * @static
  2296. */
  2297. public static function connection($driver = null)
  2298. {
  2299. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2300. return $instance->connection($driver);
  2301. }
  2302. /**
  2303. * Get a driver instance.
  2304. *
  2305. * @param string $name
  2306. * @return mixed
  2307. * @static
  2308. */
  2309. public static function driver($name = null)
  2310. {
  2311. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2312. return $instance->driver($name);
  2313. }
  2314. /**
  2315. * Get the default driver name.
  2316. *
  2317. * @return string
  2318. * @static
  2319. */
  2320. public static function getDefaultDriver()
  2321. {
  2322. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2323. return $instance->getDefaultDriver();
  2324. }
  2325. /**
  2326. * Set the default driver name.
  2327. *
  2328. * @param string $name
  2329. * @return void
  2330. * @static
  2331. */
  2332. public static function setDefaultDriver($name)
  2333. {
  2334. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2335. $instance->setDefaultDriver($name);
  2336. }
  2337. /**
  2338. * Register a custom driver creator Closure.
  2339. *
  2340. * @param string $driver
  2341. * @param \Closure $callback
  2342. * @return \Illuminate\Broadcasting\BroadcastManager
  2343. * @static
  2344. */
  2345. public static function extend($driver, $callback)
  2346. {
  2347. /** @var \Illuminate\Broadcasting\BroadcastManager $instance */
  2348. return $instance->extend($driver, $callback);
  2349. }
  2350. }
  2351. /**
  2352. *
  2353. *
  2354. * @see \Illuminate\Contracts\Bus\Dispatcher
  2355. */
  2356. class Bus {
  2357. /**
  2358. * Dispatch a command to its appropriate handler.
  2359. *
  2360. * @param mixed $command
  2361. * @return mixed
  2362. * @static
  2363. */
  2364. public static function dispatch($command)
  2365. {
  2366. /** @var \Illuminate\Bus\Dispatcher $instance */
  2367. return $instance->dispatch($command);
  2368. }
  2369. /**
  2370. * Dispatch a command to its appropriate handler in the current process.
  2371. *
  2372. * @param mixed $command
  2373. * @param mixed $handler
  2374. * @return mixed
  2375. * @static
  2376. */
  2377. public static function dispatchNow($command, $handler = null)
  2378. {
  2379. /** @var \Illuminate\Bus\Dispatcher $instance */
  2380. return $instance->dispatchNow($command, $handler);
  2381. }
  2382. /**
  2383. * Determine if the given command has a handler.
  2384. *
  2385. * @param mixed $command
  2386. * @return bool
  2387. * @static
  2388. */
  2389. public static function hasCommandHandler($command)
  2390. {
  2391. /** @var \Illuminate\Bus\Dispatcher $instance */
  2392. return $instance->hasCommandHandler($command);
  2393. }
  2394. /**
  2395. * Retrieve the handler for a command.
  2396. *
  2397. * @param mixed $command
  2398. * @return bool|mixed
  2399. * @static
  2400. */
  2401. public static function getCommandHandler($command)
  2402. {
  2403. /** @var \Illuminate\Bus\Dispatcher $instance */
  2404. return $instance->getCommandHandler($command);
  2405. }
  2406. /**
  2407. * Dispatch a command to its appropriate handler behind a queue.
  2408. *
  2409. * @param mixed $command
  2410. * @return mixed
  2411. * @throws \RuntimeException
  2412. * @static
  2413. */
  2414. public static function dispatchToQueue($command)
  2415. {
  2416. /** @var \Illuminate\Bus\Dispatcher $instance */
  2417. return $instance->dispatchToQueue($command);
  2418. }
  2419. /**
  2420. * Set the pipes through which commands should be piped before dispatching.
  2421. *
  2422. * @param array $pipes
  2423. * @return \Illuminate\Bus\Dispatcher
  2424. * @static
  2425. */
  2426. public static function pipeThrough($pipes)
  2427. {
  2428. /** @var \Illuminate\Bus\Dispatcher $instance */
  2429. return $instance->pipeThrough($pipes);
  2430. }
  2431. /**
  2432. * Map a command to a handler.
  2433. *
  2434. * @param array $map
  2435. * @return \Illuminate\Bus\Dispatcher
  2436. * @static
  2437. */
  2438. public static function map($map)
  2439. {
  2440. /** @var \Illuminate\Bus\Dispatcher $instance */
  2441. return $instance->map($map);
  2442. }
  2443. /**
  2444. * Assert if a job was dispatched based on a truth-test callback.
  2445. *
  2446. * @param string $command
  2447. * @param callable|int|null $callback
  2448. * @return void
  2449. * @static
  2450. */
  2451. public static function assertDispatched($command, $callback = null)
  2452. {
  2453. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2454. $instance->assertDispatched($command, $callback);
  2455. }
  2456. /**
  2457. * Determine if a job was dispatched based on a truth-test callback.
  2458. *
  2459. * @param string $command
  2460. * @param callable|null $callback
  2461. * @return void
  2462. * @static
  2463. */
  2464. public static function assertNotDispatched($command, $callback = null)
  2465. {
  2466. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2467. $instance->assertNotDispatched($command, $callback);
  2468. }
  2469. /**
  2470. * Get all of the jobs matching a truth-test callback.
  2471. *
  2472. * @param string $command
  2473. * @param callable|null $callback
  2474. * @return \Illuminate\Support\Collection
  2475. * @static
  2476. */
  2477. public static function dispatched($command, $callback = null)
  2478. {
  2479. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2480. return $instance->dispatched($command, $callback);
  2481. }
  2482. /**
  2483. * Determine if there are any stored commands for a given class.
  2484. *
  2485. * @param string $command
  2486. * @return bool
  2487. * @static
  2488. */
  2489. public static function hasDispatched($command)
  2490. {
  2491. /** @var \Illuminate\Support\Testing\Fakes\BusFake $instance */
  2492. return $instance->hasDispatched($command);
  2493. }
  2494. }
  2495. /**
  2496. *
  2497. *
  2498. * @see \Illuminate\Cache\CacheManager
  2499. * @see \Illuminate\Cache\Repository
  2500. */
  2501. class Cache {
  2502. /**
  2503. * Get a cache store instance by name.
  2504. *
  2505. * @param string|null $name
  2506. * @return \Illuminate\Contracts\Cache\Repository
  2507. * @static
  2508. */
  2509. public static function store($name = null)
  2510. {
  2511. /** @var \Illuminate\Cache\CacheManager $instance */
  2512. return $instance->store($name);
  2513. }
  2514. /**
  2515. * Get a cache driver instance.
  2516. *
  2517. * @param string $driver
  2518. * @return mixed
  2519. * @static
  2520. */
  2521. public static function driver($driver = null)
  2522. {
  2523. /** @var \Illuminate\Cache\CacheManager $instance */
  2524. return $instance->driver($driver);
  2525. }
  2526. /**
  2527. * Create a new cache repository with the given implementation.
  2528. *
  2529. * @param \Illuminate\Contracts\Cache\Store $store
  2530. * @return \Illuminate\Cache\Repository
  2531. * @static
  2532. */
  2533. public static function repository($store)
  2534. {
  2535. /** @var \Illuminate\Cache\CacheManager $instance */
  2536. return $instance->repository($store);
  2537. }
  2538. /**
  2539. * Get the default cache driver name.
  2540. *
  2541. * @return string
  2542. * @static
  2543. */
  2544. public static function getDefaultDriver()
  2545. {
  2546. /** @var \Illuminate\Cache\CacheManager $instance */
  2547. return $instance->getDefaultDriver();
  2548. }
  2549. /**
  2550. * Set the default cache driver name.
  2551. *
  2552. * @param string $name
  2553. * @return void
  2554. * @static
  2555. */
  2556. public static function setDefaultDriver($name)
  2557. {
  2558. /** @var \Illuminate\Cache\CacheManager $instance */
  2559. $instance->setDefaultDriver($name);
  2560. }
  2561. /**
  2562. * Register a custom driver creator Closure.
  2563. *
  2564. * @param string $driver
  2565. * @param \Closure $callback
  2566. * @return \Illuminate\Cache\CacheManager
  2567. * @static
  2568. */
  2569. public static function extend($driver, $callback)
  2570. {
  2571. /** @var \Illuminate\Cache\CacheManager $instance */
  2572. return $instance->extend($driver, $callback);
  2573. }
  2574. /**
  2575. * Determine if an item exists in the cache.
  2576. *
  2577. * @param string $key
  2578. * @return bool
  2579. * @static
  2580. */
  2581. public static function has($key)
  2582. {
  2583. /** @var \Illuminate\Cache\Repository $instance */
  2584. return $instance->has($key);
  2585. }
  2586. /**
  2587. * Retrieve an item from the cache by key.
  2588. *
  2589. * @param string $key
  2590. * @param mixed $default
  2591. * @return mixed
  2592. * @static
  2593. */
  2594. public static function get($key, $default = null)
  2595. {
  2596. /** @var \Illuminate\Cache\Repository $instance */
  2597. return $instance->get($key, $default);
  2598. }
  2599. /**
  2600. * Retrieve multiple items from the cache by key.
  2601. *
  2602. * Items not found in the cache will have a null value.
  2603. *
  2604. * @param array $keys
  2605. * @return array
  2606. * @static
  2607. */
  2608. public static function many($keys)
  2609. {
  2610. /** @var \Illuminate\Cache\Repository $instance */
  2611. return $instance->many($keys);
  2612. }
  2613. /**
  2614. * Obtains multiple cache items by their unique keys.
  2615. *
  2616. * @param \Psr\SimpleCache\iterable $keys A list of keys that can obtained in a single operation.
  2617. * @param mixed $default Default value to return for keys that do not exist.
  2618. * @return \Psr\SimpleCache\iterable A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.
  2619. * @throws \Psr\SimpleCache\InvalidArgumentException
  2620. * MUST be thrown if $keys is neither an array nor a Traversable,
  2621. * or if any of the $keys are not a legal value.
  2622. * @static
  2623. */
  2624. public static function getMultiple($keys, $default = null)
  2625. {
  2626. /** @var \Illuminate\Cache\Repository $instance */
  2627. return $instance->getMultiple($keys, $default);
  2628. }
  2629. /**
  2630. * Retrieve an item from the cache and delete it.
  2631. *
  2632. * @param string $key
  2633. * @param mixed $default
  2634. * @return mixed
  2635. * @static
  2636. */
  2637. public static function pull($key, $default = null)
  2638. {
  2639. /** @var \Illuminate\Cache\Repository $instance */
  2640. return $instance->pull($key, $default);
  2641. }
  2642. /**
  2643. * Store an item in the cache.
  2644. *
  2645. * @param string $key
  2646. * @param mixed $value
  2647. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2648. * @return void
  2649. * @static
  2650. */
  2651. public static function put($key, $value, $minutes = null)
  2652. {
  2653. /** @var \Illuminate\Cache\Repository $instance */
  2654. $instance->put($key, $value, $minutes);
  2655. }
  2656. /**
  2657. * Persists data in the cache, uniquely referenced by a key with an optional expiration TTL time.
  2658. *
  2659. * @param string $key The key of the item to store.
  2660. * @param mixed $value The value of the item to store, must be serializable.
  2661. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2662. * the driver supports TTL then the library may set a default value
  2663. * for it or let the driver take care of that.
  2664. * @return bool True on success and false on failure.
  2665. * @throws \Psr\SimpleCache\InvalidArgumentException
  2666. * MUST be thrown if the $key string is not a legal value.
  2667. * @static
  2668. */
  2669. public static function set($key, $value, $ttl = null)
  2670. {
  2671. /** @var \Illuminate\Cache\Repository $instance */
  2672. return $instance->set($key, $value, $ttl);
  2673. }
  2674. /**
  2675. * Store multiple items in the cache for a given number of minutes.
  2676. *
  2677. * @param array $values
  2678. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2679. * @return void
  2680. * @static
  2681. */
  2682. public static function putMany($values, $minutes)
  2683. {
  2684. /** @var \Illuminate\Cache\Repository $instance */
  2685. $instance->putMany($values, $minutes);
  2686. }
  2687. /**
  2688. * Persists a set of key => value pairs in the cache, with an optional TTL.
  2689. *
  2690. * @param \Psr\SimpleCache\iterable $values A list of key => value pairs for a multiple-set operation.
  2691. * @param null|int|\DateInterval $ttl Optional. The TTL value of this item. If no value is sent and
  2692. * the driver supports TTL then the library may set a default value
  2693. * for it or let the driver take care of that.
  2694. * @return bool True on success and false on failure.
  2695. * @throws \Psr\SimpleCache\InvalidArgumentException
  2696. * MUST be thrown if $values is neither an array nor a Traversable,
  2697. * or if any of the $values are not a legal value.
  2698. * @static
  2699. */
  2700. public static function setMultiple($values, $ttl = null)
  2701. {
  2702. /** @var \Illuminate\Cache\Repository $instance */
  2703. return $instance->setMultiple($values, $ttl);
  2704. }
  2705. /**
  2706. * Store an item in the cache if the key does not exist.
  2707. *
  2708. * @param string $key
  2709. * @param mixed $value
  2710. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2711. * @return bool
  2712. * @static
  2713. */
  2714. public static function add($key, $value, $minutes)
  2715. {
  2716. /** @var \Illuminate\Cache\Repository $instance */
  2717. return $instance->add($key, $value, $minutes);
  2718. }
  2719. /**
  2720. * Increment the value of an item in the cache.
  2721. *
  2722. * @param string $key
  2723. * @param mixed $value
  2724. * @return int|bool
  2725. * @static
  2726. */
  2727. public static function increment($key, $value = 1)
  2728. {
  2729. /** @var \Illuminate\Cache\Repository $instance */
  2730. return $instance->increment($key, $value);
  2731. }
  2732. /**
  2733. * Decrement the value of an item in the cache.
  2734. *
  2735. * @param string $key
  2736. * @param mixed $value
  2737. * @return int|bool
  2738. * @static
  2739. */
  2740. public static function decrement($key, $value = 1)
  2741. {
  2742. /** @var \Illuminate\Cache\Repository $instance */
  2743. return $instance->decrement($key, $value);
  2744. }
  2745. /**
  2746. * Store an item in the cache indefinitely.
  2747. *
  2748. * @param string $key
  2749. * @param mixed $value
  2750. * @return void
  2751. * @static
  2752. */
  2753. public static function forever($key, $value)
  2754. {
  2755. /** @var \Illuminate\Cache\Repository $instance */
  2756. $instance->forever($key, $value);
  2757. }
  2758. /**
  2759. * Get an item from the cache, or store the default value.
  2760. *
  2761. * @param string $key
  2762. * @param \DateTimeInterface|\DateInterval|float|int $minutes
  2763. * @param \Closure $callback
  2764. * @return mixed
  2765. * @static
  2766. */
  2767. public static function remember($key, $minutes, $callback)
  2768. {
  2769. /** @var \Illuminate\Cache\Repository $instance */
  2770. return $instance->remember($key, $minutes, $callback);
  2771. }
  2772. /**
  2773. * Get an item from the cache, or store the default value forever.
  2774. *
  2775. * @param string $key
  2776. * @param \Closure $callback
  2777. * @return mixed
  2778. * @static
  2779. */
  2780. public static function sear($key, $callback)
  2781. {
  2782. /** @var \Illuminate\Cache\Repository $instance */
  2783. return $instance->sear($key, $callback);
  2784. }
  2785. /**
  2786. * Get an item from the cache, or store the default value forever.
  2787. *
  2788. * @param string $key
  2789. * @param \Closure $callback
  2790. * @return mixed
  2791. * @static
  2792. */
  2793. public static function rememberForever($key, $callback)
  2794. {
  2795. /** @var \Illuminate\Cache\Repository $instance */
  2796. return $instance->rememberForever($key, $callback);
  2797. }
  2798. /**
  2799. * Remove an item from the cache.
  2800. *
  2801. * @param string $key
  2802. * @return bool
  2803. * @static
  2804. */
  2805. public static function forget($key)
  2806. {
  2807. /** @var \Illuminate\Cache\Repository $instance */
  2808. return $instance->forget($key);
  2809. }
  2810. /**
  2811. * Delete an item from the cache by its unique key.
  2812. *
  2813. * @param string $key The unique cache key of the item to delete.
  2814. * @return bool True if the item was successfully removed. False if there was an error.
  2815. * @throws \Psr\SimpleCache\InvalidArgumentException
  2816. * MUST be thrown if the $key string is not a legal value.
  2817. * @static
  2818. */
  2819. public static function delete($key)
  2820. {
  2821. /** @var \Illuminate\Cache\Repository $instance */
  2822. return $instance->delete($key);
  2823. }
  2824. /**
  2825. * Deletes multiple cache items in a single operation.
  2826. *
  2827. * @param \Psr\SimpleCache\iterable $keys A list of string-based keys to be deleted.
  2828. * @return bool True if the items were successfully removed. False if there was an error.
  2829. * @throws \Psr\SimpleCache\InvalidArgumentException
  2830. * MUST be thrown if $keys is neither an array nor a Traversable,
  2831. * or if any of the $keys are not a legal value.
  2832. * @static
  2833. */
  2834. public static function deleteMultiple($keys)
  2835. {
  2836. /** @var \Illuminate\Cache\Repository $instance */
  2837. return $instance->deleteMultiple($keys);
  2838. }
  2839. /**
  2840. * Wipes clean the entire cache's keys.
  2841. *
  2842. * @return bool True on success and false on failure.
  2843. * @static
  2844. */
  2845. public static function clear()
  2846. {
  2847. /** @var \Illuminate\Cache\Repository $instance */
  2848. return $instance->clear();
  2849. }
  2850. /**
  2851. * Begin executing a new tags operation if the store supports it.
  2852. *
  2853. * @param array|mixed $names
  2854. * @return \Illuminate\Cache\TaggedCache
  2855. * @throws \BadMethodCallException
  2856. * @static
  2857. */
  2858. public static function tags($names)
  2859. {
  2860. /** @var \Illuminate\Cache\Repository $instance */
  2861. return $instance->tags($names);
  2862. }
  2863. /**
  2864. * Get the default cache time.
  2865. *
  2866. * @return float|int
  2867. * @static
  2868. */
  2869. public static function getDefaultCacheTime()
  2870. {
  2871. /** @var \Illuminate\Cache\Repository $instance */
  2872. return $instance->getDefaultCacheTime();
  2873. }
  2874. /**
  2875. * Set the default cache time in minutes.
  2876. *
  2877. * @param float|int $minutes
  2878. * @return \Illuminate\Cache\Repository
  2879. * @static
  2880. */
  2881. public static function setDefaultCacheTime($minutes)
  2882. {
  2883. /** @var \Illuminate\Cache\Repository $instance */
  2884. return $instance->setDefaultCacheTime($minutes);
  2885. }
  2886. /**
  2887. * Get the cache store implementation.
  2888. *
  2889. * @return \Illuminate\Contracts\Cache\Store
  2890. * @static
  2891. */
  2892. public static function getStore()
  2893. {
  2894. /** @var \Illuminate\Cache\Repository $instance */
  2895. return $instance->getStore();
  2896. }
  2897. /**
  2898. * Set the event dispatcher instance.
  2899. *
  2900. * @param \Illuminate\Contracts\Events\Dispatcher $events
  2901. * @return void
  2902. * @static
  2903. */
  2904. public static function setEventDispatcher($events)
  2905. {
  2906. /** @var \Illuminate\Cache\Repository $instance */
  2907. $instance->setEventDispatcher($events);
  2908. }
  2909. /**
  2910. * Determine if a cached value exists.
  2911. *
  2912. * @param string $key
  2913. * @return bool
  2914. * @static
  2915. */
  2916. public static function offsetExists($key)
  2917. {
  2918. /** @var \Illuminate\Cache\Repository $instance */
  2919. return $instance->offsetExists($key);
  2920. }
  2921. /**
  2922. * Retrieve an item from the cache by key.
  2923. *
  2924. * @param string $key
  2925. * @return mixed
  2926. * @static
  2927. */
  2928. public static function offsetGet($key)
  2929. {
  2930. /** @var \Illuminate\Cache\Repository $instance */
  2931. return $instance->offsetGet($key);
  2932. }
  2933. /**
  2934. * Store an item in the cache for the default time.
  2935. *
  2936. * @param string $key
  2937. * @param mixed $value
  2938. * @return void
  2939. * @static
  2940. */
  2941. public static function offsetSet($key, $value)
  2942. {
  2943. /** @var \Illuminate\Cache\Repository $instance */
  2944. $instance->offsetSet($key, $value);
  2945. }
  2946. /**
  2947. * Remove an item from the cache.
  2948. *
  2949. * @param string $key
  2950. * @return void
  2951. * @static
  2952. */
  2953. public static function offsetUnset($key)
  2954. {
  2955. /** @var \Illuminate\Cache\Repository $instance */
  2956. $instance->offsetUnset($key);
  2957. }
  2958. /**
  2959. * Register a custom macro.
  2960. *
  2961. * @param string $name
  2962. * @param object|callable $macro
  2963. * @return void
  2964. * @static
  2965. */
  2966. public static function macro($name, $macro)
  2967. {
  2968. \Illuminate\Cache\Repository::macro($name, $macro);
  2969. }
  2970. /**
  2971. * Mix another object into the class.
  2972. *
  2973. * @param object $mixin
  2974. * @return void
  2975. * @static
  2976. */
  2977. public static function mixin($mixin)
  2978. {
  2979. \Illuminate\Cache\Repository::mixin($mixin);
  2980. }
  2981. /**
  2982. * Checks if macro is registered.
  2983. *
  2984. * @param string $name
  2985. * @return bool
  2986. * @static
  2987. */
  2988. public static function hasMacro($name)
  2989. {
  2990. return \Illuminate\Cache\Repository::hasMacro($name);
  2991. }
  2992. /**
  2993. * Dynamically handle calls to the class.
  2994. *
  2995. * @param string $method
  2996. * @param array $parameters
  2997. * @return mixed
  2998. * @throws \BadMethodCallException
  2999. * @static
  3000. */
  3001. public static function macroCall($method, $parameters)
  3002. {
  3003. /** @var \Illuminate\Cache\Repository $instance */
  3004. return $instance->macroCall($method, $parameters);
  3005. }
  3006. /**
  3007. * Remove all items from the cache.
  3008. *
  3009. * @return bool
  3010. * @static
  3011. */
  3012. public static function flush()
  3013. {
  3014. /** @var \Illuminate\Cache\FileStore $instance */
  3015. return $instance->flush();
  3016. }
  3017. /**
  3018. * Get the Filesystem instance.
  3019. *
  3020. * @return \Illuminate\Filesystem\Filesystem
  3021. * @static
  3022. */
  3023. public static function getFilesystem()
  3024. {
  3025. /** @var \Illuminate\Cache\FileStore $instance */
  3026. return $instance->getFilesystem();
  3027. }
  3028. /**
  3029. * Get the working directory of the cache.
  3030. *
  3031. * @return string
  3032. * @static
  3033. */
  3034. public static function getDirectory()
  3035. {
  3036. /** @var \Illuminate\Cache\FileStore $instance */
  3037. return $instance->getDirectory();
  3038. }
  3039. /**
  3040. * Get the cache key prefix.
  3041. *
  3042. * @return string
  3043. * @static
  3044. */
  3045. public static function getPrefix()
  3046. {
  3047. /** @var \Illuminate\Cache\FileStore $instance */
  3048. return $instance->getPrefix();
  3049. }
  3050. }
  3051. /**
  3052. *
  3053. *
  3054. * @see \Illuminate\Config\Repository
  3055. */
  3056. class Config {
  3057. /**
  3058. * Determine if the given configuration value exists.
  3059. *
  3060. * @param string $key
  3061. * @return bool
  3062. * @static
  3063. */
  3064. public static function has($key)
  3065. {
  3066. /** @var \Illuminate\Config\Repository $instance */
  3067. return $instance->has($key);
  3068. }
  3069. /**
  3070. * Get the specified configuration value.
  3071. *
  3072. * @param array|string $key
  3073. * @param mixed $default
  3074. * @return mixed
  3075. * @static
  3076. */
  3077. public static function get($key, $default = null)
  3078. {
  3079. /** @var \Illuminate\Config\Repository $instance */
  3080. return $instance->get($key, $default);
  3081. }
  3082. /**
  3083. * Get many configuration values.
  3084. *
  3085. * @param array $keys
  3086. * @return array
  3087. * @static
  3088. */
  3089. public static function getMany($keys)
  3090. {
  3091. /** @var \Illuminate\Config\Repository $instance */
  3092. return $instance->getMany($keys);
  3093. }
  3094. /**
  3095. * Set a given configuration value.
  3096. *
  3097. * @param array|string $key
  3098. * @param mixed $value
  3099. * @return void
  3100. * @static
  3101. */
  3102. public static function set($key, $value = null)
  3103. {
  3104. /** @var \Illuminate\Config\Repository $instance */
  3105. $instance->set($key, $value);
  3106. }
  3107. /**
  3108. * Prepend a value onto an array configuration value.
  3109. *
  3110. * @param string $key
  3111. * @param mixed $value
  3112. * @return void
  3113. * @static
  3114. */
  3115. public static function prepend($key, $value)
  3116. {
  3117. /** @var \Illuminate\Config\Repository $instance */
  3118. $instance->prepend($key, $value);
  3119. }
  3120. /**
  3121. * Push a value onto an array configuration value.
  3122. *
  3123. * @param string $key
  3124. * @param mixed $value
  3125. * @return void
  3126. * @static
  3127. */
  3128. public static function push($key, $value)
  3129. {
  3130. /** @var \Illuminate\Config\Repository $instance */
  3131. $instance->push($key, $value);
  3132. }
  3133. /**
  3134. * Get all of the configuration items for the application.
  3135. *
  3136. * @return array
  3137. * @static
  3138. */
  3139. public static function all()
  3140. {
  3141. /** @var \Illuminate\Config\Repository $instance */
  3142. return $instance->all();
  3143. }
  3144. /**
  3145. * Determine if the given configuration option exists.
  3146. *
  3147. * @param string $key
  3148. * @return bool
  3149. * @static
  3150. */
  3151. public static function offsetExists($key)
  3152. {
  3153. /** @var \Illuminate\Config\Repository $instance */
  3154. return $instance->offsetExists($key);
  3155. }
  3156. /**
  3157. * Get a configuration option.
  3158. *
  3159. * @param string $key
  3160. * @return mixed
  3161. * @static
  3162. */
  3163. public static function offsetGet($key)
  3164. {
  3165. /** @var \Illuminate\Config\Repository $instance */
  3166. return $instance->offsetGet($key);
  3167. }
  3168. /**
  3169. * Set a configuration option.
  3170. *
  3171. * @param string $key
  3172. * @param mixed $value
  3173. * @return void
  3174. * @static
  3175. */
  3176. public static function offsetSet($key, $value)
  3177. {
  3178. /** @var \Illuminate\Config\Repository $instance */
  3179. $instance->offsetSet($key, $value);
  3180. }
  3181. /**
  3182. * Unset a configuration option.
  3183. *
  3184. * @param string $key
  3185. * @return void
  3186. * @static
  3187. */
  3188. public static function offsetUnset($key)
  3189. {
  3190. /** @var \Illuminate\Config\Repository $instance */
  3191. $instance->offsetUnset($key);
  3192. }
  3193. }
  3194. /**
  3195. *
  3196. *
  3197. * @see \Illuminate\Cookie\CookieJar
  3198. */
  3199. class Cookie {
  3200. /**
  3201. * Create a new cookie instance.
  3202. *
  3203. * @param string $name
  3204. * @param string $value
  3205. * @param int $minutes
  3206. * @param string $path
  3207. * @param string $domain
  3208. * @param bool $secure
  3209. * @param bool $httpOnly
  3210. * @param bool $raw
  3211. * @param string|null $sameSite
  3212. * @return \Symfony\Component\HttpFoundation\Cookie
  3213. * @static
  3214. */
  3215. public static function make($name, $value, $minutes = 0, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3216. {
  3217. /** @var \Illuminate\Cookie\CookieJar $instance */
  3218. return $instance->make($name, $value, $minutes, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3219. }
  3220. /**
  3221. * Create a cookie that lasts "forever" (five years).
  3222. *
  3223. * @param string $name
  3224. * @param string $value
  3225. * @param string $path
  3226. * @param string $domain
  3227. * @param bool $secure
  3228. * @param bool $httpOnly
  3229. * @param bool $raw
  3230. * @param string|null $sameSite
  3231. * @return \Symfony\Component\HttpFoundation\Cookie
  3232. * @static
  3233. */
  3234. public static function forever($name, $value, $path = null, $domain = null, $secure = false, $httpOnly = true, $raw = false, $sameSite = null)
  3235. {
  3236. /** @var \Illuminate\Cookie\CookieJar $instance */
  3237. return $instance->forever($name, $value, $path, $domain, $secure, $httpOnly, $raw, $sameSite);
  3238. }
  3239. /**
  3240. * Expire the given cookie.
  3241. *
  3242. * @param string $name
  3243. * @param string $path
  3244. * @param string $domain
  3245. * @return \Symfony\Component\HttpFoundation\Cookie
  3246. * @static
  3247. */
  3248. public static function forget($name, $path = null, $domain = null)
  3249. {
  3250. /** @var \Illuminate\Cookie\CookieJar $instance */
  3251. return $instance->forget($name, $path, $domain);
  3252. }
  3253. /**
  3254. * Determine if a cookie has been queued.
  3255. *
  3256. * @param string $key
  3257. * @return bool
  3258. * @static
  3259. */
  3260. public static function hasQueued($key)
  3261. {
  3262. /** @var \Illuminate\Cookie\CookieJar $instance */
  3263. return $instance->hasQueued($key);
  3264. }
  3265. /**
  3266. * Get a queued cookie instance.
  3267. *
  3268. * @param string $key
  3269. * @param mixed $default
  3270. * @return \Symfony\Component\HttpFoundation\Cookie
  3271. * @static
  3272. */
  3273. public static function queued($key, $default = null)
  3274. {
  3275. /** @var \Illuminate\Cookie\CookieJar $instance */
  3276. return $instance->queued($key, $default);
  3277. }
  3278. /**
  3279. * Queue a cookie to send with the next response.
  3280. *
  3281. * @param array $parameters
  3282. * @return void
  3283. * @static
  3284. */
  3285. public static function queue(...$parameters)
  3286. {
  3287. /** @var \Illuminate\Cookie\CookieJar $instance */
  3288. $instance->queue(...$parameters);
  3289. }
  3290. /**
  3291. * Remove a cookie from the queue.
  3292. *
  3293. * @param string $name
  3294. * @return void
  3295. * @static
  3296. */
  3297. public static function unqueue($name)
  3298. {
  3299. /** @var \Illuminate\Cookie\CookieJar $instance */
  3300. $instance->unqueue($name);
  3301. }
  3302. /**
  3303. * Set the default path and domain for the jar.
  3304. *
  3305. * @param string $path
  3306. * @param string $domain
  3307. * @param bool $secure
  3308. * @param string $sameSite
  3309. * @return \Illuminate\Cookie\CookieJar
  3310. * @static
  3311. */
  3312. public static function setDefaultPathAndDomain($path, $domain, $secure = false, $sameSite = null)
  3313. {
  3314. /** @var \Illuminate\Cookie\CookieJar $instance */
  3315. return $instance->setDefaultPathAndDomain($path, $domain, $secure, $sameSite);
  3316. }
  3317. /**
  3318. * Get the cookies which have been queued for the next request.
  3319. *
  3320. * @return \Symfony\Component\HttpFoundation\Cookie[]
  3321. * @static
  3322. */
  3323. public static function getQueuedCookies()
  3324. {
  3325. /** @var \Illuminate\Cookie\CookieJar $instance */
  3326. return $instance->getQueuedCookies();
  3327. }
  3328. }
  3329. /**
  3330. *
  3331. *
  3332. * @see \Illuminate\Encryption\Encrypter
  3333. */
  3334. class Crypt {
  3335. /**
  3336. * Determine if the given key and cipher combination is valid.
  3337. *
  3338. * @param string $key
  3339. * @param string $cipher
  3340. * @return bool
  3341. * @static
  3342. */
  3343. public static function supported($key, $cipher)
  3344. {
  3345. return \Illuminate\Encryption\Encrypter::supported($key, $cipher);
  3346. }
  3347. /**
  3348. * Create a new encryption key for the given cipher.
  3349. *
  3350. * @param string $cipher
  3351. * @return string
  3352. * @static
  3353. */
  3354. public static function generateKey($cipher)
  3355. {
  3356. return \Illuminate\Encryption\Encrypter::generateKey($cipher);
  3357. }
  3358. /**
  3359. * Encrypt the given value.
  3360. *
  3361. * @param mixed $value
  3362. * @param bool $serialize
  3363. * @return string
  3364. * @throws \Illuminate\Contracts\Encryption\EncryptException
  3365. * @static
  3366. */
  3367. public static function encrypt($value, $serialize = true)
  3368. {
  3369. /** @var \Illuminate\Encryption\Encrypter $instance */
  3370. return $instance->encrypt($value, $serialize);
  3371. }
  3372. /**
  3373. * Encrypt a string without serialization.
  3374. *
  3375. * @param string $value
  3376. * @return string
  3377. * @static
  3378. */
  3379. public static function encryptString($value)
  3380. {
  3381. /** @var \Illuminate\Encryption\Encrypter $instance */
  3382. return $instance->encryptString($value);
  3383. }
  3384. /**
  3385. * Decrypt the given value.
  3386. *
  3387. * @param mixed $payload
  3388. * @param bool $unserialize
  3389. * @return string
  3390. * @throws \Illuminate\Contracts\Encryption\DecryptException
  3391. * @static
  3392. */
  3393. public static function decrypt($payload, $unserialize = true)
  3394. {
  3395. /** @var \Illuminate\Encryption\Encrypter $instance */
  3396. return $instance->decrypt($payload, $unserialize);
  3397. }
  3398. /**
  3399. * Decrypt the given string without unserialization.
  3400. *
  3401. * @param string $payload
  3402. * @return string
  3403. * @static
  3404. */
  3405. public static function decryptString($payload)
  3406. {
  3407. /** @var \Illuminate\Encryption\Encrypter $instance */
  3408. return $instance->decryptString($payload);
  3409. }
  3410. /**
  3411. * Get the encryption key.
  3412. *
  3413. * @return string
  3414. * @static
  3415. */
  3416. public static function getKey()
  3417. {
  3418. /** @var \Illuminate\Encryption\Encrypter $instance */
  3419. return $instance->getKey();
  3420. }
  3421. }
  3422. /**
  3423. *
  3424. *
  3425. * @see \Illuminate\Database\DatabaseManager
  3426. * @see \Illuminate\Database\Connection
  3427. */
  3428. class DB {
  3429. /**
  3430. * Get a database connection instance.
  3431. *
  3432. * @param string $name
  3433. * @return \Illuminate\Database\Connection
  3434. * @static
  3435. */
  3436. public static function connection($name = null)
  3437. {
  3438. /** @var \Illuminate\Database\DatabaseManager $instance */
  3439. return $instance->connection($name);
  3440. }
  3441. /**
  3442. * Disconnect from the given database and remove from local cache.
  3443. *
  3444. * @param string $name
  3445. * @return void
  3446. * @static
  3447. */
  3448. public static function purge($name = null)
  3449. {
  3450. /** @var \Illuminate\Database\DatabaseManager $instance */
  3451. $instance->purge($name);
  3452. }
  3453. /**
  3454. * Disconnect from the given database.
  3455. *
  3456. * @param string $name
  3457. * @return void
  3458. * @static
  3459. */
  3460. public static function disconnect($name = null)
  3461. {
  3462. /** @var \Illuminate\Database\DatabaseManager $instance */
  3463. $instance->disconnect($name);
  3464. }
  3465. /**
  3466. * Reconnect to the given database.
  3467. *
  3468. * @param string $name
  3469. * @return \Illuminate\Database\Connection
  3470. * @static
  3471. */
  3472. public static function reconnect($name = null)
  3473. {
  3474. /** @var \Illuminate\Database\DatabaseManager $instance */
  3475. return $instance->reconnect($name);
  3476. }
  3477. /**
  3478. * Get the default connection name.
  3479. *
  3480. * @return string
  3481. * @static
  3482. */
  3483. public static function getDefaultConnection()
  3484. {
  3485. /** @var \Illuminate\Database\DatabaseManager $instance */
  3486. return $instance->getDefaultConnection();
  3487. }
  3488. /**
  3489. * Set the default connection name.
  3490. *
  3491. * @param string $name
  3492. * @return void
  3493. * @static
  3494. */
  3495. public static function setDefaultConnection($name)
  3496. {
  3497. /** @var \Illuminate\Database\DatabaseManager $instance */
  3498. $instance->setDefaultConnection($name);
  3499. }
  3500. /**
  3501. * Get all of the support drivers.
  3502. *
  3503. * @return array
  3504. * @static
  3505. */
  3506. public static function supportedDrivers()
  3507. {
  3508. /** @var \Illuminate\Database\DatabaseManager $instance */
  3509. return $instance->supportedDrivers();
  3510. }
  3511. /**
  3512. * Get all of the drivers that are actually available.
  3513. *
  3514. * @return array
  3515. * @static
  3516. */
  3517. public static function availableDrivers()
  3518. {
  3519. /** @var \Illuminate\Database\DatabaseManager $instance */
  3520. return $instance->availableDrivers();
  3521. }
  3522. /**
  3523. * Register an extension connection resolver.
  3524. *
  3525. * @param string $name
  3526. * @param callable $resolver
  3527. * @return void
  3528. * @static
  3529. */
  3530. public static function extend($name, $resolver)
  3531. {
  3532. /** @var \Illuminate\Database\DatabaseManager $instance */
  3533. $instance->extend($name, $resolver);
  3534. }
  3535. /**
  3536. * Return all of the created connections.
  3537. *
  3538. * @return array
  3539. * @static
  3540. */
  3541. public static function getConnections()
  3542. {
  3543. /** @var \Illuminate\Database\DatabaseManager $instance */
  3544. return $instance->getConnections();
  3545. }
  3546. /**
  3547. * Get a schema builder instance for the connection.
  3548. *
  3549. * @return \Illuminate\Database\Schema\MySqlBuilder
  3550. * @static
  3551. */
  3552. public static function getSchemaBuilder()
  3553. {
  3554. /** @var \Illuminate\Database\MySqlConnection $instance */
  3555. return $instance->getSchemaBuilder();
  3556. }
  3557. /**
  3558. * Bind values to their parameters in the given statement.
  3559. *
  3560. * @param \PDOStatement $statement
  3561. * @param array $bindings
  3562. * @return void
  3563. * @static
  3564. */
  3565. public static function bindValues($statement, $bindings)
  3566. {
  3567. /** @var \Illuminate\Database\MySqlConnection $instance */
  3568. $instance->bindValues($statement, $bindings);
  3569. }
  3570. /**
  3571. * Set the query grammar to the default implementation.
  3572. *
  3573. * @return void
  3574. * @static
  3575. */
  3576. public static function useDefaultQueryGrammar()
  3577. {
  3578. //Method inherited from \Illuminate\Database\Connection
  3579. /** @var \Illuminate\Database\MySqlConnection $instance */
  3580. $instance->useDefaultQueryGrammar();
  3581. }
  3582. /**
  3583. * Set the schema grammar to the default implementation.
  3584. *
  3585. * @return void
  3586. * @static
  3587. */
  3588. public static function useDefaultSchemaGrammar()
  3589. {
  3590. //Method inherited from \Illuminate\Database\Connection
  3591. /** @var \Illuminate\Database\MySqlConnection $instance */
  3592. $instance->useDefaultSchemaGrammar();
  3593. }
  3594. /**
  3595. * Set the query post processor to the default implementation.
  3596. *
  3597. * @return void
  3598. * @static
  3599. */
  3600. public static function useDefaultPostProcessor()
  3601. {
  3602. //Method inherited from \Illuminate\Database\Connection
  3603. /** @var \Illuminate\Database\MySqlConnection $instance */
  3604. $instance->useDefaultPostProcessor();
  3605. }
  3606. /**
  3607. * Begin a fluent query against a database table.
  3608. *
  3609. * @param string $table
  3610. * @return \Illuminate\Database\Query\Builder
  3611. * @static
  3612. */
  3613. public static function table($table)
  3614. {
  3615. //Method inherited from \Illuminate\Database\Connection
  3616. /** @var \Illuminate\Database\MySqlConnection $instance */
  3617. return $instance->table($table);
  3618. }
  3619. /**
  3620. * Get a new query builder instance.
  3621. *
  3622. * @return \Illuminate\Database\Query\Builder
  3623. * @static
  3624. */
  3625. public static function query()
  3626. {
  3627. //Method inherited from \Illuminate\Database\Connection
  3628. /** @var \Illuminate\Database\MySqlConnection $instance */
  3629. return $instance->query();
  3630. }
  3631. /**
  3632. * Run a select statement and return a single result.
  3633. *
  3634. * @param string $query
  3635. * @param array $bindings
  3636. * @param bool $useReadPdo
  3637. * @return mixed
  3638. * @static
  3639. */
  3640. public static function selectOne($query, $bindings = [], $useReadPdo = true)
  3641. {
  3642. //Method inherited from \Illuminate\Database\Connection
  3643. /** @var \Illuminate\Database\MySqlConnection $instance */
  3644. return $instance->selectOne($query, $bindings, $useReadPdo);
  3645. }
  3646. /**
  3647. * Run a select statement against the database.
  3648. *
  3649. * @param string $query
  3650. * @param array $bindings
  3651. * @return array
  3652. * @static
  3653. */
  3654. public static function selectFromWriteConnection($query, $bindings = [])
  3655. {
  3656. //Method inherited from \Illuminate\Database\Connection
  3657. /** @var \Illuminate\Database\MySqlConnection $instance */
  3658. return $instance->selectFromWriteConnection($query, $bindings);
  3659. }
  3660. /**
  3661. * Run a select statement against the database.
  3662. *
  3663. * @param string $query
  3664. * @param array $bindings
  3665. * @param bool $useReadPdo
  3666. * @return array
  3667. * @static
  3668. */
  3669. public static function select($query, $bindings = [], $useReadPdo = true)
  3670. {
  3671. //Method inherited from \Illuminate\Database\Connection
  3672. /** @var \Illuminate\Database\MySqlConnection $instance */
  3673. return $instance->select($query, $bindings, $useReadPdo);
  3674. }
  3675. /**
  3676. * Run a select statement against the database and returns a generator.
  3677. *
  3678. * @param string $query
  3679. * @param array $bindings
  3680. * @param bool $useReadPdo
  3681. * @return \Generator
  3682. * @static
  3683. */
  3684. public static function cursor($query, $bindings = [], $useReadPdo = true)
  3685. {
  3686. //Method inherited from \Illuminate\Database\Connection
  3687. /** @var \Illuminate\Database\MySqlConnection $instance */
  3688. return $instance->cursor($query, $bindings, $useReadPdo);
  3689. }
  3690. /**
  3691. * Run an insert statement against the database.
  3692. *
  3693. * @param string $query
  3694. * @param array $bindings
  3695. * @return bool
  3696. * @static
  3697. */
  3698. public static function insert($query, $bindings = [])
  3699. {
  3700. //Method inherited from \Illuminate\Database\Connection
  3701. /** @var \Illuminate\Database\MySqlConnection $instance */
  3702. return $instance->insert($query, $bindings);
  3703. }
  3704. /**
  3705. * Run an update statement against the database.
  3706. *
  3707. * @param string $query
  3708. * @param array $bindings
  3709. * @return int
  3710. * @static
  3711. */
  3712. public static function update($query, $bindings = [])
  3713. {
  3714. //Method inherited from \Illuminate\Database\Connection
  3715. /** @var \Illuminate\Database\MySqlConnection $instance */
  3716. return $instance->update($query, $bindings);
  3717. }
  3718. /**
  3719. * Run a delete statement against the database.
  3720. *
  3721. * @param string $query
  3722. * @param array $bindings
  3723. * @return int
  3724. * @static
  3725. */
  3726. public static function delete($query, $bindings = [])
  3727. {
  3728. //Method inherited from \Illuminate\Database\Connection
  3729. /** @var \Illuminate\Database\MySqlConnection $instance */
  3730. return $instance->delete($query, $bindings);
  3731. }
  3732. /**
  3733. * Execute an SQL statement and return the boolean result.
  3734. *
  3735. * @param string $query
  3736. * @param array $bindings
  3737. * @return bool
  3738. * @static
  3739. */
  3740. public static function statement($query, $bindings = [])
  3741. {
  3742. //Method inherited from \Illuminate\Database\Connection
  3743. /** @var \Illuminate\Database\MySqlConnection $instance */
  3744. return $instance->statement($query, $bindings);
  3745. }
  3746. /**
  3747. * Run an SQL statement and get the number of rows affected.
  3748. *
  3749. * @param string $query
  3750. * @param array $bindings
  3751. * @return int
  3752. * @static
  3753. */
  3754. public static function affectingStatement($query, $bindings = [])
  3755. {
  3756. //Method inherited from \Illuminate\Database\Connection
  3757. /** @var \Illuminate\Database\MySqlConnection $instance */
  3758. return $instance->affectingStatement($query, $bindings);
  3759. }
  3760. /**
  3761. * Run a raw, unprepared query against the PDO connection.
  3762. *
  3763. * @param string $query
  3764. * @return bool
  3765. * @static
  3766. */
  3767. public static function unprepared($query)
  3768. {
  3769. //Method inherited from \Illuminate\Database\Connection
  3770. /** @var \Illuminate\Database\MySqlConnection $instance */
  3771. return $instance->unprepared($query);
  3772. }
  3773. /**
  3774. * Execute the given callback in "dry run" mode.
  3775. *
  3776. * @param \Closure $callback
  3777. * @return array
  3778. * @static
  3779. */
  3780. public static function pretend($callback)
  3781. {
  3782. //Method inherited from \Illuminate\Database\Connection
  3783. /** @var \Illuminate\Database\MySqlConnection $instance */
  3784. return $instance->pretend($callback);
  3785. }
  3786. /**
  3787. * Prepare the query bindings for execution.
  3788. *
  3789. * @param array $bindings
  3790. * @return array
  3791. * @static
  3792. */
  3793. public static function prepareBindings($bindings)
  3794. {
  3795. //Method inherited from \Illuminate\Database\Connection
  3796. /** @var \Illuminate\Database\MySqlConnection $instance */
  3797. return $instance->prepareBindings($bindings);
  3798. }
  3799. /**
  3800. * Log a query in the connection's query log.
  3801. *
  3802. * @param string $query
  3803. * @param array $bindings
  3804. * @param float|null $time
  3805. * @return void
  3806. * @static
  3807. */
  3808. public static function logQuery($query, $bindings, $time = null)
  3809. {
  3810. //Method inherited from \Illuminate\Database\Connection
  3811. /** @var \Illuminate\Database\MySqlConnection $instance */
  3812. $instance->logQuery($query, $bindings, $time);
  3813. }
  3814. /**
  3815. * Register a database query listener with the connection.
  3816. *
  3817. * @param \Closure $callback
  3818. * @return void
  3819. * @static
  3820. */
  3821. public static function listen($callback)
  3822. {
  3823. //Method inherited from \Illuminate\Database\Connection
  3824. /** @var \Illuminate\Database\MySqlConnection $instance */
  3825. $instance->listen($callback);
  3826. }
  3827. /**
  3828. * Get a new raw query expression.
  3829. *
  3830. * @param mixed $value
  3831. * @return \Illuminate\Database\Query\Expression
  3832. * @static
  3833. */
  3834. public static function raw($value)
  3835. {
  3836. //Method inherited from \Illuminate\Database\Connection
  3837. /** @var \Illuminate\Database\MySqlConnection $instance */
  3838. return $instance->raw($value);
  3839. }
  3840. /**
  3841. * Indicate if any records have been modified.
  3842. *
  3843. * @param bool $value
  3844. * @return void
  3845. * @static
  3846. */
  3847. public static function recordsHaveBeenModified($value = true)
  3848. {
  3849. //Method inherited from \Illuminate\Database\Connection
  3850. /** @var \Illuminate\Database\MySqlConnection $instance */
  3851. $instance->recordsHaveBeenModified($value);
  3852. }
  3853. /**
  3854. * Is Doctrine available?
  3855. *
  3856. * @return bool
  3857. * @static
  3858. */
  3859. public static function isDoctrineAvailable()
  3860. {
  3861. //Method inherited from \Illuminate\Database\Connection
  3862. /** @var \Illuminate\Database\MySqlConnection $instance */
  3863. return $instance->isDoctrineAvailable();
  3864. }
  3865. /**
  3866. * Get a Doctrine Schema Column instance.
  3867. *
  3868. * @param string $table
  3869. * @param string $column
  3870. * @return \Doctrine\DBAL\Schema\Column
  3871. * @static
  3872. */
  3873. public static function getDoctrineColumn($table, $column)
  3874. {
  3875. //Method inherited from \Illuminate\Database\Connection
  3876. /** @var \Illuminate\Database\MySqlConnection $instance */
  3877. return $instance->getDoctrineColumn($table, $column);
  3878. }
  3879. /**
  3880. * Get the Doctrine DBAL schema manager for the connection.
  3881. *
  3882. * @return \Doctrine\DBAL\Schema\AbstractSchemaManager
  3883. * @static
  3884. */
  3885. public static function getDoctrineSchemaManager()
  3886. {
  3887. //Method inherited from \Illuminate\Database\Connection
  3888. /** @var \Illuminate\Database\MySqlConnection $instance */
  3889. return $instance->getDoctrineSchemaManager();
  3890. }
  3891. /**
  3892. * Get the Doctrine DBAL database connection instance.
  3893. *
  3894. * @return \Doctrine\DBAL\Connection
  3895. * @static
  3896. */
  3897. public static function getDoctrineConnection()
  3898. {
  3899. //Method inherited from \Illuminate\Database\Connection
  3900. /** @var \Illuminate\Database\MySqlConnection $instance */
  3901. return $instance->getDoctrineConnection();
  3902. }
  3903. /**
  3904. * Get the current PDO connection.
  3905. *
  3906. * @return \PDO
  3907. * @static
  3908. */
  3909. public static function getPdo()
  3910. {
  3911. //Method inherited from \Illuminate\Database\Connection
  3912. /** @var \Illuminate\Database\MySqlConnection $instance */
  3913. return $instance->getPdo();
  3914. }
  3915. /**
  3916. * Get the current PDO connection used for reading.
  3917. *
  3918. * @return \PDO
  3919. * @static
  3920. */
  3921. public static function getReadPdo()
  3922. {
  3923. //Method inherited from \Illuminate\Database\Connection
  3924. /** @var \Illuminate\Database\MySqlConnection $instance */
  3925. return $instance->getReadPdo();
  3926. }
  3927. /**
  3928. * Set the PDO connection.
  3929. *
  3930. * @param \PDO|\Closure|null $pdo
  3931. * @return \Illuminate\Database\MySqlConnection
  3932. * @static
  3933. */
  3934. public static function setPdo($pdo)
  3935. {
  3936. //Method inherited from \Illuminate\Database\Connection
  3937. /** @var \Illuminate\Database\MySqlConnection $instance */
  3938. return $instance->setPdo($pdo);
  3939. }
  3940. /**
  3941. * Set the PDO connection used for reading.
  3942. *
  3943. * @param \PDO|\Closure|null $pdo
  3944. * @return \Illuminate\Database\MySqlConnection
  3945. * @static
  3946. */
  3947. public static function setReadPdo($pdo)
  3948. {
  3949. //Method inherited from \Illuminate\Database\Connection
  3950. /** @var \Illuminate\Database\MySqlConnection $instance */
  3951. return $instance->setReadPdo($pdo);
  3952. }
  3953. /**
  3954. * Set the reconnect instance on the connection.
  3955. *
  3956. * @param callable $reconnector
  3957. * @return \Illuminate\Database\MySqlConnection
  3958. * @static
  3959. */
  3960. public static function setReconnector($reconnector)
  3961. {
  3962. //Method inherited from \Illuminate\Database\Connection
  3963. /** @var \Illuminate\Database\MySqlConnection $instance */
  3964. return $instance->setReconnector($reconnector);
  3965. }
  3966. /**
  3967. * Get the database connection name.
  3968. *
  3969. * @return string|null
  3970. * @static
  3971. */
  3972. public static function getName()
  3973. {
  3974. //Method inherited from \Illuminate\Database\Connection
  3975. /** @var \Illuminate\Database\MySqlConnection $instance */
  3976. return $instance->getName();
  3977. }
  3978. /**
  3979. * Get an option from the configuration options.
  3980. *
  3981. * @param string|null $option
  3982. * @return mixed
  3983. * @static
  3984. */
  3985. public static function getConfig($option = null)
  3986. {
  3987. //Method inherited from \Illuminate\Database\Connection
  3988. /** @var \Illuminate\Database\MySqlConnection $instance */
  3989. return $instance->getConfig($option);
  3990. }
  3991. /**
  3992. * Get the PDO driver name.
  3993. *
  3994. * @return string
  3995. * @static
  3996. */
  3997. public static function getDriverName()
  3998. {
  3999. //Method inherited from \Illuminate\Database\Connection
  4000. /** @var \Illuminate\Database\MySqlConnection $instance */
  4001. return $instance->getDriverName();
  4002. }
  4003. /**
  4004. * Get the query grammar used by the connection.
  4005. *
  4006. * @return \Illuminate\Database\Query\Grammars\Grammar
  4007. * @static
  4008. */
  4009. public static function getQueryGrammar()
  4010. {
  4011. //Method inherited from \Illuminate\Database\Connection
  4012. /** @var \Illuminate\Database\MySqlConnection $instance */
  4013. return $instance->getQueryGrammar();
  4014. }
  4015. /**
  4016. * Set the query grammar used by the connection.
  4017. *
  4018. * @param \Illuminate\Database\Query\Grammars\Grammar $grammar
  4019. * @return void
  4020. * @static
  4021. */
  4022. public static function setQueryGrammar($grammar)
  4023. {
  4024. //Method inherited from \Illuminate\Database\Connection
  4025. /** @var \Illuminate\Database\MySqlConnection $instance */
  4026. $instance->setQueryGrammar($grammar);
  4027. }
  4028. /**
  4029. * Get the schema grammar used by the connection.
  4030. *
  4031. * @return \Illuminate\Database\Schema\Grammars\Grammar
  4032. * @static
  4033. */
  4034. public static function getSchemaGrammar()
  4035. {
  4036. //Method inherited from \Illuminate\Database\Connection
  4037. /** @var \Illuminate\Database\MySqlConnection $instance */
  4038. return $instance->getSchemaGrammar();
  4039. }
  4040. /**
  4041. * Set the schema grammar used by the connection.
  4042. *
  4043. * @param \Illuminate\Database\Schema\Grammars\Grammar $grammar
  4044. * @return void
  4045. * @static
  4046. */
  4047. public static function setSchemaGrammar($grammar)
  4048. {
  4049. //Method inherited from \Illuminate\Database\Connection
  4050. /** @var \Illuminate\Database\MySqlConnection $instance */
  4051. $instance->setSchemaGrammar($grammar);
  4052. }
  4053. /**
  4054. * Get the query post processor used by the connection.
  4055. *
  4056. * @return \Illuminate\Database\Query\Processors\Processor
  4057. * @static
  4058. */
  4059. public static function getPostProcessor()
  4060. {
  4061. //Method inherited from \Illuminate\Database\Connection
  4062. /** @var \Illuminate\Database\MySqlConnection $instance */
  4063. return $instance->getPostProcessor();
  4064. }
  4065. /**
  4066. * Set the query post processor used by the connection.
  4067. *
  4068. * @param \Illuminate\Database\Query\Processors\Processor $processor
  4069. * @return void
  4070. * @static
  4071. */
  4072. public static function setPostProcessor($processor)
  4073. {
  4074. //Method inherited from \Illuminate\Database\Connection
  4075. /** @var \Illuminate\Database\MySqlConnection $instance */
  4076. $instance->setPostProcessor($processor);
  4077. }
  4078. /**
  4079. * Get the event dispatcher used by the connection.
  4080. *
  4081. * @return \Illuminate\Contracts\Events\Dispatcher
  4082. * @static
  4083. */
  4084. public static function getEventDispatcher()
  4085. {
  4086. //Method inherited from \Illuminate\Database\Connection
  4087. /** @var \Illuminate\Database\MySqlConnection $instance */
  4088. return $instance->getEventDispatcher();
  4089. }
  4090. /**
  4091. * Set the event dispatcher instance on the connection.
  4092. *
  4093. * @param \Illuminate\Contracts\Events\Dispatcher $events
  4094. * @return void
  4095. * @static
  4096. */
  4097. public static function setEventDispatcher($events)
  4098. {
  4099. //Method inherited from \Illuminate\Database\Connection
  4100. /** @var \Illuminate\Database\MySqlConnection $instance */
  4101. $instance->setEventDispatcher($events);
  4102. }
  4103. /**
  4104. * Determine if the connection in a "dry run".
  4105. *
  4106. * @return bool
  4107. * @static
  4108. */
  4109. public static function pretending()
  4110. {
  4111. //Method inherited from \Illuminate\Database\Connection
  4112. /** @var \Illuminate\Database\MySqlConnection $instance */
  4113. return $instance->pretending();
  4114. }
  4115. /**
  4116. * Get the connection query log.
  4117. *
  4118. * @return array
  4119. * @static
  4120. */
  4121. public static function getQueryLog()
  4122. {
  4123. //Method inherited from \Illuminate\Database\Connection
  4124. /** @var \Illuminate\Database\MySqlConnection $instance */
  4125. return $instance->getQueryLog();
  4126. }
  4127. /**
  4128. * Clear the query log.
  4129. *
  4130. * @return void
  4131. * @static
  4132. */
  4133. public static function flushQueryLog()
  4134. {
  4135. //Method inherited from \Illuminate\Database\Connection
  4136. /** @var \Illuminate\Database\MySqlConnection $instance */
  4137. $instance->flushQueryLog();
  4138. }
  4139. /**
  4140. * Enable the query log on the connection.
  4141. *
  4142. * @return void
  4143. * @static
  4144. */
  4145. public static function enableQueryLog()
  4146. {
  4147. //Method inherited from \Illuminate\Database\Connection
  4148. /** @var \Illuminate\Database\MySqlConnection $instance */
  4149. $instance->enableQueryLog();
  4150. }
  4151. /**
  4152. * Disable the query log on the connection.
  4153. *
  4154. * @return void
  4155. * @static
  4156. */
  4157. public static function disableQueryLog()
  4158. {
  4159. //Method inherited from \Illuminate\Database\Connection
  4160. /** @var \Illuminate\Database\MySqlConnection $instance */
  4161. $instance->disableQueryLog();
  4162. }
  4163. /**
  4164. * Determine whether we're logging queries.
  4165. *
  4166. * @return bool
  4167. * @static
  4168. */
  4169. public static function logging()
  4170. {
  4171. //Method inherited from \Illuminate\Database\Connection
  4172. /** @var \Illuminate\Database\MySqlConnection $instance */
  4173. return $instance->logging();
  4174. }
  4175. /**
  4176. * Get the name of the connected database.
  4177. *
  4178. * @return string
  4179. * @static
  4180. */
  4181. public static function getDatabaseName()
  4182. {
  4183. //Method inherited from \Illuminate\Database\Connection
  4184. /** @var \Illuminate\Database\MySqlConnection $instance */
  4185. return $instance->getDatabaseName();
  4186. }
  4187. /**
  4188. * Set the name of the connected database.
  4189. *
  4190. * @param string $database
  4191. * @return string
  4192. * @static
  4193. */
  4194. public static function setDatabaseName($database)
  4195. {
  4196. //Method inherited from \Illuminate\Database\Connection
  4197. /** @var \Illuminate\Database\MySqlConnection $instance */
  4198. return $instance->setDatabaseName($database);
  4199. }
  4200. /**
  4201. * Get the table prefix for the connection.
  4202. *
  4203. * @return string
  4204. * @static
  4205. */
  4206. public static function getTablePrefix()
  4207. {
  4208. //Method inherited from \Illuminate\Database\Connection
  4209. /** @var \Illuminate\Database\MySqlConnection $instance */
  4210. return $instance->getTablePrefix();
  4211. }
  4212. /**
  4213. * Set the table prefix in use by the connection.
  4214. *
  4215. * @param string $prefix
  4216. * @return void
  4217. * @static
  4218. */
  4219. public static function setTablePrefix($prefix)
  4220. {
  4221. //Method inherited from \Illuminate\Database\Connection
  4222. /** @var \Illuminate\Database\MySqlConnection $instance */
  4223. $instance->setTablePrefix($prefix);
  4224. }
  4225. /**
  4226. * Set the table prefix and return the grammar.
  4227. *
  4228. * @param \Illuminate\Database\Grammar $grammar
  4229. * @return \Illuminate\Database\Grammar
  4230. * @static
  4231. */
  4232. public static function withTablePrefix($grammar)
  4233. {
  4234. //Method inherited from \Illuminate\Database\Connection
  4235. /** @var \Illuminate\Database\MySqlConnection $instance */
  4236. return $instance->withTablePrefix($grammar);
  4237. }
  4238. /**
  4239. * Register a connection resolver.
  4240. *
  4241. * @param string $driver
  4242. * @param \Closure $callback
  4243. * @return void
  4244. * @static
  4245. */
  4246. public static function resolverFor($driver, $callback)
  4247. {
  4248. //Method inherited from \Illuminate\Database\Connection
  4249. \Illuminate\Database\MySqlConnection::resolverFor($driver, $callback);
  4250. }
  4251. /**
  4252. * Get the connection resolver for the given driver.
  4253. *
  4254. * @param string $driver
  4255. * @return mixed
  4256. * @static
  4257. */
  4258. public static function getResolver($driver)
  4259. {
  4260. //Method inherited from \Illuminate\Database\Connection
  4261. return \Illuminate\Database\MySqlConnection::getResolver($driver);
  4262. }
  4263. /**
  4264. * Execute a Closure within a transaction.
  4265. *
  4266. * @param \Closure $callback
  4267. * @param int $attempts
  4268. * @return mixed
  4269. * @throws \Exception|\Throwable
  4270. * @static
  4271. */
  4272. public static function transaction($callback, $attempts = 1)
  4273. {
  4274. //Method inherited from \Illuminate\Database\Connection
  4275. /** @var \Illuminate\Database\MySqlConnection $instance */
  4276. return $instance->transaction($callback, $attempts);
  4277. }
  4278. /**
  4279. * Start a new database transaction.
  4280. *
  4281. * @return void
  4282. * @throws \Exception
  4283. * @static
  4284. */
  4285. public static function beginTransaction()
  4286. {
  4287. //Method inherited from \Illuminate\Database\Connection
  4288. /** @var \Illuminate\Database\MySqlConnection $instance */
  4289. $instance->beginTransaction();
  4290. }
  4291. /**
  4292. * Commit the active database transaction.
  4293. *
  4294. * @return void
  4295. * @static
  4296. */
  4297. public static function commit()
  4298. {
  4299. //Method inherited from \Illuminate\Database\Connection
  4300. /** @var \Illuminate\Database\MySqlConnection $instance */
  4301. $instance->commit();
  4302. }
  4303. /**
  4304. * Rollback the active database transaction.
  4305. *
  4306. * @param int|null $toLevel
  4307. * @return void
  4308. * @static
  4309. */
  4310. public static function rollBack($toLevel = null)
  4311. {
  4312. //Method inherited from \Illuminate\Database\Connection
  4313. /** @var \Illuminate\Database\MySqlConnection $instance */
  4314. $instance->rollBack($toLevel);
  4315. }
  4316. /**
  4317. * Get the number of active transactions.
  4318. *
  4319. * @return int
  4320. * @static
  4321. */
  4322. public static function transactionLevel()
  4323. {
  4324. //Method inherited from \Illuminate\Database\Connection
  4325. /** @var \Illuminate\Database\MySqlConnection $instance */
  4326. return $instance->transactionLevel();
  4327. }
  4328. }
  4329. /**
  4330. *
  4331. *
  4332. * @see \Illuminate\Events\Dispatcher
  4333. */
  4334. class Event {
  4335. /**
  4336. * Register an event listener with the dispatcher.
  4337. *
  4338. * @param string|array $events
  4339. * @param mixed $listener
  4340. * @return void
  4341. * @static
  4342. */
  4343. public static function listen($events, $listener)
  4344. {
  4345. /** @var \Illuminate\Events\Dispatcher $instance */
  4346. $instance->listen($events, $listener);
  4347. }
  4348. /**
  4349. * Determine if a given event has listeners.
  4350. *
  4351. * @param string $eventName
  4352. * @return bool
  4353. * @static
  4354. */
  4355. public static function hasListeners($eventName)
  4356. {
  4357. /** @var \Illuminate\Events\Dispatcher $instance */
  4358. return $instance->hasListeners($eventName);
  4359. }
  4360. /**
  4361. * Register an event and payload to be fired later.
  4362. *
  4363. * @param string $event
  4364. * @param array $payload
  4365. * @return void
  4366. * @static
  4367. */
  4368. public static function push($event, $payload = [])
  4369. {
  4370. /** @var \Illuminate\Events\Dispatcher $instance */
  4371. $instance->push($event, $payload);
  4372. }
  4373. /**
  4374. * Flush a set of pushed events.
  4375. *
  4376. * @param string $event
  4377. * @return void
  4378. * @static
  4379. */
  4380. public static function flush($event)
  4381. {
  4382. /** @var \Illuminate\Events\Dispatcher $instance */
  4383. $instance->flush($event);
  4384. }
  4385. /**
  4386. * Register an event subscriber with the dispatcher.
  4387. *
  4388. * @param object|string $subscriber
  4389. * @return void
  4390. * @static
  4391. */
  4392. public static function subscribe($subscriber)
  4393. {
  4394. /** @var \Illuminate\Events\Dispatcher $instance */
  4395. $instance->subscribe($subscriber);
  4396. }
  4397. /**
  4398. * Fire an event until the first non-null response is returned.
  4399. *
  4400. * @param string|object $event
  4401. * @param mixed $payload
  4402. * @return array|null
  4403. * @static
  4404. */
  4405. public static function until($event, $payload = [])
  4406. {
  4407. /** @var \Illuminate\Events\Dispatcher $instance */
  4408. return $instance->until($event, $payload);
  4409. }
  4410. /**
  4411. * Fire an event and call the listeners.
  4412. *
  4413. * @param string|object $event
  4414. * @param mixed $payload
  4415. * @param bool $halt
  4416. * @return array|null
  4417. * @static
  4418. */
  4419. public static function fire($event, $payload = [], $halt = false)
  4420. {
  4421. /** @var \Illuminate\Events\Dispatcher $instance */
  4422. return $instance->fire($event, $payload, $halt);
  4423. }
  4424. /**
  4425. * Fire an event and call the listeners.
  4426. *
  4427. * @param string|object $event
  4428. * @param mixed $payload
  4429. * @param bool $halt
  4430. * @return array|null
  4431. * @static
  4432. */
  4433. public static function dispatch($event, $payload = [], $halt = false)
  4434. {
  4435. /** @var \Illuminate\Events\Dispatcher $instance */
  4436. return $instance->dispatch($event, $payload, $halt);
  4437. }
  4438. /**
  4439. * Get all of the listeners for a given event name.
  4440. *
  4441. * @param string $eventName
  4442. * @return array
  4443. * @static
  4444. */
  4445. public static function getListeners($eventName)
  4446. {
  4447. /** @var \Illuminate\Events\Dispatcher $instance */
  4448. return $instance->getListeners($eventName);
  4449. }
  4450. /**
  4451. * Register an event listener with the dispatcher.
  4452. *
  4453. * @param \Closure|string $listener
  4454. * @param bool $wildcard
  4455. * @return \Closure
  4456. * @static
  4457. */
  4458. public static function makeListener($listener, $wildcard = false)
  4459. {
  4460. /** @var \Illuminate\Events\Dispatcher $instance */
  4461. return $instance->makeListener($listener, $wildcard);
  4462. }
  4463. /**
  4464. * Create a class based listener using the IoC container.
  4465. *
  4466. * @param string $listener
  4467. * @param bool $wildcard
  4468. * @return \Closure
  4469. * @static
  4470. */
  4471. public static function createClassListener($listener, $wildcard = false)
  4472. {
  4473. /** @var \Illuminate\Events\Dispatcher $instance */
  4474. return $instance->createClassListener($listener, $wildcard);
  4475. }
  4476. /**
  4477. * Remove a set of listeners from the dispatcher.
  4478. *
  4479. * @param string $event
  4480. * @return void
  4481. * @static
  4482. */
  4483. public static function forget($event)
  4484. {
  4485. /** @var \Illuminate\Events\Dispatcher $instance */
  4486. $instance->forget($event);
  4487. }
  4488. /**
  4489. * Forget all of the pushed listeners.
  4490. *
  4491. * @return void
  4492. * @static
  4493. */
  4494. public static function forgetPushed()
  4495. {
  4496. /** @var \Illuminate\Events\Dispatcher $instance */
  4497. $instance->forgetPushed();
  4498. }
  4499. /**
  4500. * Set the queue resolver implementation.
  4501. *
  4502. * @param callable $resolver
  4503. * @return \Illuminate\Events\Dispatcher
  4504. * @static
  4505. */
  4506. public static function setQueueResolver($resolver)
  4507. {
  4508. /** @var \Illuminate\Events\Dispatcher $instance */
  4509. return $instance->setQueueResolver($resolver);
  4510. }
  4511. /**
  4512. * Assert if an event was dispatched based on a truth-test callback.
  4513. *
  4514. * @param string $event
  4515. * @param callable|int|null $callback
  4516. * @return void
  4517. * @static
  4518. */
  4519. public static function assertDispatched($event, $callback = null)
  4520. {
  4521. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4522. $instance->assertDispatched($event, $callback);
  4523. }
  4524. /**
  4525. * Assert if a event was dispatched a number of times.
  4526. *
  4527. * @param string $event
  4528. * @param int $times
  4529. * @return void
  4530. * @static
  4531. */
  4532. public static function assertDispatchedTimes($event, $times = 1)
  4533. {
  4534. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4535. $instance->assertDispatchedTimes($event, $times);
  4536. }
  4537. /**
  4538. * Determine if an event was dispatched based on a truth-test callback.
  4539. *
  4540. * @param string $event
  4541. * @param callable|null $callback
  4542. * @return void
  4543. * @static
  4544. */
  4545. public static function assertNotDispatched($event, $callback = null)
  4546. {
  4547. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4548. $instance->assertNotDispatched($event, $callback);
  4549. }
  4550. /**
  4551. * Get all of the events matching a truth-test callback.
  4552. *
  4553. * @param string $event
  4554. * @param callable|null $callback
  4555. * @return \Illuminate\Support\Collection
  4556. * @static
  4557. */
  4558. public static function dispatched($event, $callback = null)
  4559. {
  4560. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4561. return $instance->dispatched($event, $callback);
  4562. }
  4563. /**
  4564. * Determine if the given event has been dispatched.
  4565. *
  4566. * @param string $event
  4567. * @return bool
  4568. * @static
  4569. */
  4570. public static function hasDispatched($event)
  4571. {
  4572. /** @var \Illuminate\Support\Testing\Fakes\EventFake $instance */
  4573. return $instance->hasDispatched($event);
  4574. }
  4575. }
  4576. /**
  4577. *
  4578. *
  4579. * @see \Illuminate\Filesystem\Filesystem
  4580. */
  4581. class File {
  4582. /**
  4583. * Determine if a file or directory exists.
  4584. *
  4585. * @param string $path
  4586. * @return bool
  4587. * @static
  4588. */
  4589. public static function exists($path)
  4590. {
  4591. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4592. return $instance->exists($path);
  4593. }
  4594. /**
  4595. * Get the contents of a file.
  4596. *
  4597. * @param string $path
  4598. * @param bool $lock
  4599. * @return string
  4600. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4601. * @static
  4602. */
  4603. public static function get($path, $lock = false)
  4604. {
  4605. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4606. return $instance->get($path, $lock);
  4607. }
  4608. /**
  4609. * Get contents of a file with shared access.
  4610. *
  4611. * @param string $path
  4612. * @return string
  4613. * @static
  4614. */
  4615. public static function sharedGet($path)
  4616. {
  4617. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4618. return $instance->sharedGet($path);
  4619. }
  4620. /**
  4621. * Get the returned value of a file.
  4622. *
  4623. * @param string $path
  4624. * @return mixed
  4625. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  4626. * @static
  4627. */
  4628. public static function getRequire($path)
  4629. {
  4630. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4631. return $instance->getRequire($path);
  4632. }
  4633. /**
  4634. * Require the given file once.
  4635. *
  4636. * @param string $file
  4637. * @return mixed
  4638. * @static
  4639. */
  4640. public static function requireOnce($file)
  4641. {
  4642. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4643. return $instance->requireOnce($file);
  4644. }
  4645. /**
  4646. * Get the MD5 hash of the file at the given path.
  4647. *
  4648. * @param string $path
  4649. * @return string
  4650. * @static
  4651. */
  4652. public static function hash($path)
  4653. {
  4654. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4655. return $instance->hash($path);
  4656. }
  4657. /**
  4658. * Write the contents of a file.
  4659. *
  4660. * @param string $path
  4661. * @param string $contents
  4662. * @param bool $lock
  4663. * @return int
  4664. * @static
  4665. */
  4666. public static function put($path, $contents, $lock = false)
  4667. {
  4668. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4669. return $instance->put($path, $contents, $lock);
  4670. }
  4671. /**
  4672. * Prepend to a file.
  4673. *
  4674. * @param string $path
  4675. * @param string $data
  4676. * @return int
  4677. * @static
  4678. */
  4679. public static function prepend($path, $data)
  4680. {
  4681. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4682. return $instance->prepend($path, $data);
  4683. }
  4684. /**
  4685. * Append to a file.
  4686. *
  4687. * @param string $path
  4688. * @param string $data
  4689. * @return int
  4690. * @static
  4691. */
  4692. public static function append($path, $data)
  4693. {
  4694. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4695. return $instance->append($path, $data);
  4696. }
  4697. /**
  4698. * Get or set UNIX mode of a file or directory.
  4699. *
  4700. * @param string $path
  4701. * @param int $mode
  4702. * @return mixed
  4703. * @static
  4704. */
  4705. public static function chmod($path, $mode = null)
  4706. {
  4707. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4708. return $instance->chmod($path, $mode);
  4709. }
  4710. /**
  4711. * Delete the file at a given path.
  4712. *
  4713. * @param string|array $paths
  4714. * @return bool
  4715. * @static
  4716. */
  4717. public static function delete($paths)
  4718. {
  4719. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4720. return $instance->delete($paths);
  4721. }
  4722. /**
  4723. * Move a file to a new location.
  4724. *
  4725. * @param string $path
  4726. * @param string $target
  4727. * @return bool
  4728. * @static
  4729. */
  4730. public static function move($path, $target)
  4731. {
  4732. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4733. return $instance->move($path, $target);
  4734. }
  4735. /**
  4736. * Copy a file to a new location.
  4737. *
  4738. * @param string $path
  4739. * @param string $target
  4740. * @return bool
  4741. * @static
  4742. */
  4743. public static function copy($path, $target)
  4744. {
  4745. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4746. return $instance->copy($path, $target);
  4747. }
  4748. /**
  4749. * Create a hard link to the target file or directory.
  4750. *
  4751. * @param string $target
  4752. * @param string $link
  4753. * @return void
  4754. * @static
  4755. */
  4756. public static function link($target, $link)
  4757. {
  4758. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4759. $instance->link($target, $link);
  4760. }
  4761. /**
  4762. * Extract the file name from a file path.
  4763. *
  4764. * @param string $path
  4765. * @return string
  4766. * @static
  4767. */
  4768. public static function name($path)
  4769. {
  4770. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4771. return $instance->name($path);
  4772. }
  4773. /**
  4774. * Extract the trailing name component from a file path.
  4775. *
  4776. * @param string $path
  4777. * @return string
  4778. * @static
  4779. */
  4780. public static function basename($path)
  4781. {
  4782. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4783. return $instance->basename($path);
  4784. }
  4785. /**
  4786. * Extract the parent directory from a file path.
  4787. *
  4788. * @param string $path
  4789. * @return string
  4790. * @static
  4791. */
  4792. public static function dirname($path)
  4793. {
  4794. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4795. return $instance->dirname($path);
  4796. }
  4797. /**
  4798. * Extract the file extension from a file path.
  4799. *
  4800. * @param string $path
  4801. * @return string
  4802. * @static
  4803. */
  4804. public static function extension($path)
  4805. {
  4806. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4807. return $instance->extension($path);
  4808. }
  4809. /**
  4810. * Get the file type of a given file.
  4811. *
  4812. * @param string $path
  4813. * @return string
  4814. * @static
  4815. */
  4816. public static function type($path)
  4817. {
  4818. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4819. return $instance->type($path);
  4820. }
  4821. /**
  4822. * Get the mime-type of a given file.
  4823. *
  4824. * @param string $path
  4825. * @return string|false
  4826. * @static
  4827. */
  4828. public static function mimeType($path)
  4829. {
  4830. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4831. return $instance->mimeType($path);
  4832. }
  4833. /**
  4834. * Get the file size of a given file.
  4835. *
  4836. * @param string $path
  4837. * @return int
  4838. * @static
  4839. */
  4840. public static function size($path)
  4841. {
  4842. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4843. return $instance->size($path);
  4844. }
  4845. /**
  4846. * Get the file's last modification time.
  4847. *
  4848. * @param string $path
  4849. * @return int
  4850. * @static
  4851. */
  4852. public static function lastModified($path)
  4853. {
  4854. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4855. return $instance->lastModified($path);
  4856. }
  4857. /**
  4858. * Determine if the given path is a directory.
  4859. *
  4860. * @param string $directory
  4861. * @return bool
  4862. * @static
  4863. */
  4864. public static function isDirectory($directory)
  4865. {
  4866. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4867. return $instance->isDirectory($directory);
  4868. }
  4869. /**
  4870. * Determine if the given path is readable.
  4871. *
  4872. * @param string $path
  4873. * @return bool
  4874. * @static
  4875. */
  4876. public static function isReadable($path)
  4877. {
  4878. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4879. return $instance->isReadable($path);
  4880. }
  4881. /**
  4882. * Determine if the given path is writable.
  4883. *
  4884. * @param string $path
  4885. * @return bool
  4886. * @static
  4887. */
  4888. public static function isWritable($path)
  4889. {
  4890. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4891. return $instance->isWritable($path);
  4892. }
  4893. /**
  4894. * Determine if the given path is a file.
  4895. *
  4896. * @param string $file
  4897. * @return bool
  4898. * @static
  4899. */
  4900. public static function isFile($file)
  4901. {
  4902. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4903. return $instance->isFile($file);
  4904. }
  4905. /**
  4906. * Find path names matching a given pattern.
  4907. *
  4908. * @param string $pattern
  4909. * @param int $flags
  4910. * @return array
  4911. * @static
  4912. */
  4913. public static function glob($pattern, $flags = 0)
  4914. {
  4915. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4916. return $instance->glob($pattern, $flags);
  4917. }
  4918. /**
  4919. * Get an array of all files in a directory.
  4920. *
  4921. * @param string $directory
  4922. * @param bool $hidden
  4923. * @return \Symfony\Component\Finder\SplFileInfo[]
  4924. * @static
  4925. */
  4926. public static function files($directory, $hidden = false)
  4927. {
  4928. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4929. return $instance->files($directory, $hidden);
  4930. }
  4931. /**
  4932. * Get all of the files from the given directory (recursive).
  4933. *
  4934. * @param string $directory
  4935. * @param bool $hidden
  4936. * @return \Symfony\Component\Finder\SplFileInfo[]
  4937. * @static
  4938. */
  4939. public static function allFiles($directory, $hidden = false)
  4940. {
  4941. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4942. return $instance->allFiles($directory, $hidden);
  4943. }
  4944. /**
  4945. * Get all of the directories within a given directory.
  4946. *
  4947. * @param string $directory
  4948. * @return array
  4949. * @static
  4950. */
  4951. public static function directories($directory)
  4952. {
  4953. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4954. return $instance->directories($directory);
  4955. }
  4956. /**
  4957. * Create a directory.
  4958. *
  4959. * @param string $path
  4960. * @param int $mode
  4961. * @param bool $recursive
  4962. * @param bool $force
  4963. * @return bool
  4964. * @static
  4965. */
  4966. public static function makeDirectory($path, $mode = 493, $recursive = false, $force = false)
  4967. {
  4968. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4969. return $instance->makeDirectory($path, $mode, $recursive, $force);
  4970. }
  4971. /**
  4972. * Move a directory.
  4973. *
  4974. * @param string $from
  4975. * @param string $to
  4976. * @param bool $overwrite
  4977. * @return bool
  4978. * @static
  4979. */
  4980. public static function moveDirectory($from, $to, $overwrite = false)
  4981. {
  4982. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4983. return $instance->moveDirectory($from, $to, $overwrite);
  4984. }
  4985. /**
  4986. * Copy a directory from one location to another.
  4987. *
  4988. * @param string $directory
  4989. * @param string $destination
  4990. * @param int $options
  4991. * @return bool
  4992. * @static
  4993. */
  4994. public static function copyDirectory($directory, $destination, $options = null)
  4995. {
  4996. /** @var \Illuminate\Filesystem\Filesystem $instance */
  4997. return $instance->copyDirectory($directory, $destination, $options);
  4998. }
  4999. /**
  5000. * Recursively delete a directory.
  5001. *
  5002. * The directory itself may be optionally preserved.
  5003. *
  5004. * @param string $directory
  5005. * @param bool $preserve
  5006. * @return bool
  5007. * @static
  5008. */
  5009. public static function deleteDirectory($directory, $preserve = false)
  5010. {
  5011. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5012. return $instance->deleteDirectory($directory, $preserve);
  5013. }
  5014. /**
  5015. * Empty the specified directory of all files and folders.
  5016. *
  5017. * @param string $directory
  5018. * @return bool
  5019. * @static
  5020. */
  5021. public static function cleanDirectory($directory)
  5022. {
  5023. /** @var \Illuminate\Filesystem\Filesystem $instance */
  5024. return $instance->cleanDirectory($directory);
  5025. }
  5026. /**
  5027. * Register a custom macro.
  5028. *
  5029. * @param string $name
  5030. * @param object|callable $macro
  5031. * @return void
  5032. * @static
  5033. */
  5034. public static function macro($name, $macro)
  5035. {
  5036. \Illuminate\Filesystem\Filesystem::macro($name, $macro);
  5037. }
  5038. /**
  5039. * Mix another object into the class.
  5040. *
  5041. * @param object $mixin
  5042. * @return void
  5043. * @static
  5044. */
  5045. public static function mixin($mixin)
  5046. {
  5047. \Illuminate\Filesystem\Filesystem::mixin($mixin);
  5048. }
  5049. /**
  5050. * Checks if macro is registered.
  5051. *
  5052. * @param string $name
  5053. * @return bool
  5054. * @static
  5055. */
  5056. public static function hasMacro($name)
  5057. {
  5058. return \Illuminate\Filesystem\Filesystem::hasMacro($name);
  5059. }
  5060. }
  5061. /**
  5062. *
  5063. *
  5064. * @see \Illuminate\Contracts\Auth\Access\Gate
  5065. */
  5066. class Gate {
  5067. /**
  5068. * Determine if a given ability has been defined.
  5069. *
  5070. * @param string|array $ability
  5071. * @return bool
  5072. * @static
  5073. */
  5074. public static function has($ability)
  5075. {
  5076. /** @var \Illuminate\Auth\Access\Gate $instance */
  5077. return $instance->has($ability);
  5078. }
  5079. /**
  5080. * Define a new ability.
  5081. *
  5082. * @param string $ability
  5083. * @param callable|string $callback
  5084. * @return \Illuminate\Auth\Access\Gate
  5085. * @throws \InvalidArgumentException
  5086. * @static
  5087. */
  5088. public static function define($ability, $callback)
  5089. {
  5090. /** @var \Illuminate\Auth\Access\Gate $instance */
  5091. return $instance->define($ability, $callback);
  5092. }
  5093. /**
  5094. * Define abilities for a resource.
  5095. *
  5096. * @param string $name
  5097. * @param string $class
  5098. * @param array $abilities
  5099. * @return \Illuminate\Auth\Access\Gate
  5100. * @static
  5101. */
  5102. public static function resource($name, $class, $abilities = null)
  5103. {
  5104. /** @var \Illuminate\Auth\Access\Gate $instance */
  5105. return $instance->resource($name, $class, $abilities);
  5106. }
  5107. /**
  5108. * Define a policy class for a given class type.
  5109. *
  5110. * @param string $class
  5111. * @param string $policy
  5112. * @return \Illuminate\Auth\Access\Gate
  5113. * @static
  5114. */
  5115. public static function policy($class, $policy)
  5116. {
  5117. /** @var \Illuminate\Auth\Access\Gate $instance */
  5118. return $instance->policy($class, $policy);
  5119. }
  5120. /**
  5121. * Register a callback to run before all Gate checks.
  5122. *
  5123. * @param callable $callback
  5124. * @return \Illuminate\Auth\Access\Gate
  5125. * @static
  5126. */
  5127. public static function before($callback)
  5128. {
  5129. /** @var \Illuminate\Auth\Access\Gate $instance */
  5130. return $instance->before($callback);
  5131. }
  5132. /**
  5133. * Register a callback to run after all Gate checks.
  5134. *
  5135. * @param callable $callback
  5136. * @return \Illuminate\Auth\Access\Gate
  5137. * @static
  5138. */
  5139. public static function after($callback)
  5140. {
  5141. /** @var \Illuminate\Auth\Access\Gate $instance */
  5142. return $instance->after($callback);
  5143. }
  5144. /**
  5145. * Determine if the given ability should be granted for the current user.
  5146. *
  5147. * @param string $ability
  5148. * @param array|mixed $arguments
  5149. * @return bool
  5150. * @static
  5151. */
  5152. public static function allows($ability, $arguments = [])
  5153. {
  5154. /** @var \Illuminate\Auth\Access\Gate $instance */
  5155. return $instance->allows($ability, $arguments);
  5156. }
  5157. /**
  5158. * Determine if the given ability should be denied for the current user.
  5159. *
  5160. * @param string $ability
  5161. * @param array|mixed $arguments
  5162. * @return bool
  5163. * @static
  5164. */
  5165. public static function denies($ability, $arguments = [])
  5166. {
  5167. /** @var \Illuminate\Auth\Access\Gate $instance */
  5168. return $instance->denies($ability, $arguments);
  5169. }
  5170. /**
  5171. * Determine if all of the given abilities should be granted for the current user.
  5172. *
  5173. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5174. * @param array|mixed $arguments
  5175. * @return bool
  5176. * @static
  5177. */
  5178. public static function check($abilities, $arguments = [])
  5179. {
  5180. /** @var \Illuminate\Auth\Access\Gate $instance */
  5181. return $instance->check($abilities, $arguments);
  5182. }
  5183. /**
  5184. * Determine if any one of the given abilities should be granted for the current user.
  5185. *
  5186. * @param \Illuminate\Auth\Access\iterable|string $abilities
  5187. * @param array|mixed $arguments
  5188. * @return bool
  5189. * @static
  5190. */
  5191. public static function any($abilities, $arguments = [])
  5192. {
  5193. /** @var \Illuminate\Auth\Access\Gate $instance */
  5194. return $instance->any($abilities, $arguments);
  5195. }
  5196. /**
  5197. * Determine if the given ability should be granted for the current user.
  5198. *
  5199. * @param string $ability
  5200. * @param array|mixed $arguments
  5201. * @return \Illuminate\Auth\Access\Response
  5202. * @throws \Illuminate\Auth\Access\AuthorizationException
  5203. * @static
  5204. */
  5205. public static function authorize($ability, $arguments = [])
  5206. {
  5207. /** @var \Illuminate\Auth\Access\Gate $instance */
  5208. return $instance->authorize($ability, $arguments);
  5209. }
  5210. /**
  5211. * Get a policy instance for a given class.
  5212. *
  5213. * @param object|string $class
  5214. * @return mixed
  5215. * @static
  5216. */
  5217. public static function getPolicyFor($class)
  5218. {
  5219. /** @var \Illuminate\Auth\Access\Gate $instance */
  5220. return $instance->getPolicyFor($class);
  5221. }
  5222. /**
  5223. * Build a policy class instance of the given type.
  5224. *
  5225. * @param object|string $class
  5226. * @return mixed
  5227. * @static
  5228. */
  5229. public static function resolvePolicy($class)
  5230. {
  5231. /** @var \Illuminate\Auth\Access\Gate $instance */
  5232. return $instance->resolvePolicy($class);
  5233. }
  5234. /**
  5235. * Get a gate instance for the given user.
  5236. *
  5237. * @param \Illuminate\Contracts\Auth\Authenticatable|mixed $user
  5238. * @return static
  5239. * @static
  5240. */
  5241. public static function forUser($user)
  5242. {
  5243. /** @var \Illuminate\Auth\Access\Gate $instance */
  5244. return $instance->forUser($user);
  5245. }
  5246. /**
  5247. * Get all of the defined abilities.
  5248. *
  5249. * @return array
  5250. * @static
  5251. */
  5252. public static function abilities()
  5253. {
  5254. /** @var \Illuminate\Auth\Access\Gate $instance */
  5255. return $instance->abilities();
  5256. }
  5257. /**
  5258. * Get all of the defined policies.
  5259. *
  5260. * @return array
  5261. * @static
  5262. */
  5263. public static function policies()
  5264. {
  5265. /** @var \Illuminate\Auth\Access\Gate $instance */
  5266. return $instance->policies();
  5267. }
  5268. }
  5269. /**
  5270. *
  5271. *
  5272. * @see \Illuminate\Hashing\BcryptHasher
  5273. */
  5274. class Hash {
  5275. /**
  5276. * Hash the given value.
  5277. *
  5278. * @param string $value
  5279. * @param array $options
  5280. * @return string
  5281. * @throws \RuntimeException
  5282. * @static
  5283. */
  5284. public static function make($value, $options = [])
  5285. {
  5286. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5287. return $instance->make($value, $options);
  5288. }
  5289. /**
  5290. * Check the given plain value against a hash.
  5291. *
  5292. * @param string $value
  5293. * @param string $hashedValue
  5294. * @param array $options
  5295. * @return bool
  5296. * @static
  5297. */
  5298. public static function check($value, $hashedValue, $options = [])
  5299. {
  5300. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5301. return $instance->check($value, $hashedValue, $options);
  5302. }
  5303. /**
  5304. * Check if the given hash has been hashed using the given options.
  5305. *
  5306. * @param string $hashedValue
  5307. * @param array $options
  5308. * @return bool
  5309. * @static
  5310. */
  5311. public static function needsRehash($hashedValue, $options = [])
  5312. {
  5313. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5314. return $instance->needsRehash($hashedValue, $options);
  5315. }
  5316. /**
  5317. * Set the default password work factor.
  5318. *
  5319. * @param int $rounds
  5320. * @return \Illuminate\Hashing\BcryptHasher
  5321. * @static
  5322. */
  5323. public static function setRounds($rounds)
  5324. {
  5325. /** @var \Illuminate\Hashing\BcryptHasher $instance */
  5326. return $instance->setRounds($rounds);
  5327. }
  5328. }
  5329. /**
  5330. *
  5331. *
  5332. * @see \Illuminate\Translation\Translator
  5333. */
  5334. class Lang {
  5335. /**
  5336. * Determine if a translation exists for a given locale.
  5337. *
  5338. * @param string $key
  5339. * @param string|null $locale
  5340. * @return bool
  5341. * @static
  5342. */
  5343. public static function hasForLocale($key, $locale = null)
  5344. {
  5345. /** @var \Illuminate\Translation\Translator $instance */
  5346. return $instance->hasForLocale($key, $locale);
  5347. }
  5348. /**
  5349. * Determine if a translation exists.
  5350. *
  5351. * @param string $key
  5352. * @param string|null $locale
  5353. * @param bool $fallback
  5354. * @return bool
  5355. * @static
  5356. */
  5357. public static function has($key, $locale = null, $fallback = true)
  5358. {
  5359. /** @var \Illuminate\Translation\Translator $instance */
  5360. return $instance->has($key, $locale, $fallback);
  5361. }
  5362. /**
  5363. * Get the translation for a given key.
  5364. *
  5365. * @param string $key
  5366. * @param array $replace
  5367. * @param string $locale
  5368. * @return string|array|null
  5369. * @static
  5370. */
  5371. public static function trans($key, $replace = [], $locale = null)
  5372. {
  5373. /** @var \Illuminate\Translation\Translator $instance */
  5374. return $instance->trans($key, $replace, $locale);
  5375. }
  5376. /**
  5377. * Get the translation for the given key.
  5378. *
  5379. * @param string $key
  5380. * @param array $replace
  5381. * @param string|null $locale
  5382. * @param bool $fallback
  5383. * @return string|array|null
  5384. * @static
  5385. */
  5386. public static function get($key, $replace = [], $locale = null, $fallback = true)
  5387. {
  5388. /** @var \Illuminate\Translation\Translator $instance */
  5389. return $instance->get($key, $replace, $locale, $fallback);
  5390. }
  5391. /**
  5392. * Get the translation for a given key from the JSON translation files.
  5393. *
  5394. * @param string $key
  5395. * @param array $replace
  5396. * @param string $locale
  5397. * @return string|array|null
  5398. * @static
  5399. */
  5400. public static function getFromJson($key, $replace = [], $locale = null)
  5401. {
  5402. /** @var \Illuminate\Translation\Translator $instance */
  5403. return $instance->getFromJson($key, $replace, $locale);
  5404. }
  5405. /**
  5406. * Get a translation according to an integer value.
  5407. *
  5408. * @param string $key
  5409. * @param int|array|\Countable $number
  5410. * @param array $replace
  5411. * @param string $locale
  5412. * @return string
  5413. * @static
  5414. */
  5415. public static function transChoice($key, $number, $replace = [], $locale = null)
  5416. {
  5417. /** @var \Illuminate\Translation\Translator $instance */
  5418. return $instance->transChoice($key, $number, $replace, $locale);
  5419. }
  5420. /**
  5421. * Get a translation according to an integer value.
  5422. *
  5423. * @param string $key
  5424. * @param int|array|\Countable $number
  5425. * @param array $replace
  5426. * @param string $locale
  5427. * @return string
  5428. * @static
  5429. */
  5430. public static function choice($key, $number, $replace = [], $locale = null)
  5431. {
  5432. /** @var \Illuminate\Translation\Translator $instance */
  5433. return $instance->choice($key, $number, $replace, $locale);
  5434. }
  5435. /**
  5436. * Add translation lines to the given locale.
  5437. *
  5438. * @param array $lines
  5439. * @param string $locale
  5440. * @param string $namespace
  5441. * @return void
  5442. * @static
  5443. */
  5444. public static function addLines($lines, $locale, $namespace = '*')
  5445. {
  5446. /** @var \Illuminate\Translation\Translator $instance */
  5447. $instance->addLines($lines, $locale, $namespace);
  5448. }
  5449. /**
  5450. * Load the specified language group.
  5451. *
  5452. * @param string $namespace
  5453. * @param string $group
  5454. * @param string $locale
  5455. * @return void
  5456. * @static
  5457. */
  5458. public static function load($namespace, $group, $locale)
  5459. {
  5460. /** @var \Illuminate\Translation\Translator $instance */
  5461. $instance->load($namespace, $group, $locale);
  5462. }
  5463. /**
  5464. * Add a new namespace to the loader.
  5465. *
  5466. * @param string $namespace
  5467. * @param string $hint
  5468. * @return void
  5469. * @static
  5470. */
  5471. public static function addNamespace($namespace, $hint)
  5472. {
  5473. /** @var \Illuminate\Translation\Translator $instance */
  5474. $instance->addNamespace($namespace, $hint);
  5475. }
  5476. /**
  5477. * Add a new JSON path to the loader.
  5478. *
  5479. * @param string $path
  5480. * @return void
  5481. * @static
  5482. */
  5483. public static function addJsonPath($path)
  5484. {
  5485. /** @var \Illuminate\Translation\Translator $instance */
  5486. $instance->addJsonPath($path);
  5487. }
  5488. /**
  5489. * Parse a key into namespace, group, and item.
  5490. *
  5491. * @param string $key
  5492. * @return array
  5493. * @static
  5494. */
  5495. public static function parseKey($key)
  5496. {
  5497. /** @var \Illuminate\Translation\Translator $instance */
  5498. return $instance->parseKey($key);
  5499. }
  5500. /**
  5501. * Get the message selector instance.
  5502. *
  5503. * @return \Illuminate\Translation\MessageSelector
  5504. * @static
  5505. */
  5506. public static function getSelector()
  5507. {
  5508. /** @var \Illuminate\Translation\Translator $instance */
  5509. return $instance->getSelector();
  5510. }
  5511. /**
  5512. * Set the message selector instance.
  5513. *
  5514. * @param \Illuminate\Translation\MessageSelector $selector
  5515. * @return void
  5516. * @static
  5517. */
  5518. public static function setSelector($selector)
  5519. {
  5520. /** @var \Illuminate\Translation\Translator $instance */
  5521. $instance->setSelector($selector);
  5522. }
  5523. /**
  5524. * Get the language line loader implementation.
  5525. *
  5526. * @return \Illuminate\Contracts\Translation\Loader
  5527. * @static
  5528. */
  5529. public static function getLoader()
  5530. {
  5531. /** @var \Illuminate\Translation\Translator $instance */
  5532. return $instance->getLoader();
  5533. }
  5534. /**
  5535. * Get the default locale being used.
  5536. *
  5537. * @return string
  5538. * @static
  5539. */
  5540. public static function locale()
  5541. {
  5542. /** @var \Illuminate\Translation\Translator $instance */
  5543. return $instance->locale();
  5544. }
  5545. /**
  5546. * Get the default locale being used.
  5547. *
  5548. * @return string
  5549. * @static
  5550. */
  5551. public static function getLocale()
  5552. {
  5553. /** @var \Illuminate\Translation\Translator $instance */
  5554. return $instance->getLocale();
  5555. }
  5556. /**
  5557. * Set the default locale.
  5558. *
  5559. * @param string $locale
  5560. * @return void
  5561. * @static
  5562. */
  5563. public static function setLocale($locale)
  5564. {
  5565. /** @var \Illuminate\Translation\Translator $instance */
  5566. $instance->setLocale($locale);
  5567. }
  5568. /**
  5569. * Get the fallback locale being used.
  5570. *
  5571. * @return string
  5572. * @static
  5573. */
  5574. public static function getFallback()
  5575. {
  5576. /** @var \Illuminate\Translation\Translator $instance */
  5577. return $instance->getFallback();
  5578. }
  5579. /**
  5580. * Set the fallback locale being used.
  5581. *
  5582. * @param string $fallback
  5583. * @return void
  5584. * @static
  5585. */
  5586. public static function setFallback($fallback)
  5587. {
  5588. /** @var \Illuminate\Translation\Translator $instance */
  5589. $instance->setFallback($fallback);
  5590. }
  5591. /**
  5592. * Set the parsed value of a key.
  5593. *
  5594. * @param string $key
  5595. * @param array $parsed
  5596. * @return void
  5597. * @static
  5598. */
  5599. public static function setParsedKey($key, $parsed)
  5600. {
  5601. //Method inherited from \Illuminate\Support\NamespacedItemResolver
  5602. /** @var \Illuminate\Translation\Translator $instance */
  5603. $instance->setParsedKey($key, $parsed);
  5604. }
  5605. /**
  5606. * Register a custom macro.
  5607. *
  5608. * @param string $name
  5609. * @param object|callable $macro
  5610. * @return void
  5611. * @static
  5612. */
  5613. public static function macro($name, $macro)
  5614. {
  5615. \Illuminate\Translation\Translator::macro($name, $macro);
  5616. }
  5617. /**
  5618. * Mix another object into the class.
  5619. *
  5620. * @param object $mixin
  5621. * @return void
  5622. * @static
  5623. */
  5624. public static function mixin($mixin)
  5625. {
  5626. \Illuminate\Translation\Translator::mixin($mixin);
  5627. }
  5628. /**
  5629. * Checks if macro is registered.
  5630. *
  5631. * @param string $name
  5632. * @return bool
  5633. * @static
  5634. */
  5635. public static function hasMacro($name)
  5636. {
  5637. return \Illuminate\Translation\Translator::hasMacro($name);
  5638. }
  5639. }
  5640. /**
  5641. *
  5642. *
  5643. * @see \Illuminate\Log\Writer
  5644. */
  5645. class Log {
  5646. /**
  5647. * Log an emergency message to the logs.
  5648. *
  5649. * @param string $message
  5650. * @param array $context
  5651. * @return void
  5652. * @static
  5653. */
  5654. public static function emergency($message, $context = [])
  5655. {
  5656. /** @var \Illuminate\Log\Writer $instance */
  5657. $instance->emergency($message, $context);
  5658. }
  5659. /**
  5660. * Log an alert message to the logs.
  5661. *
  5662. * @param string $message
  5663. * @param array $context
  5664. * @return void
  5665. * @static
  5666. */
  5667. public static function alert($message, $context = [])
  5668. {
  5669. /** @var \Illuminate\Log\Writer $instance */
  5670. $instance->alert($message, $context);
  5671. }
  5672. /**
  5673. * Log a critical message to the logs.
  5674. *
  5675. * @param string $message
  5676. * @param array $context
  5677. * @return void
  5678. * @static
  5679. */
  5680. public static function critical($message, $context = [])
  5681. {
  5682. /** @var \Illuminate\Log\Writer $instance */
  5683. $instance->critical($message, $context);
  5684. }
  5685. /**
  5686. * Log an error message to the logs.
  5687. *
  5688. * @param string $message
  5689. * @param array $context
  5690. * @return void
  5691. * @static
  5692. */
  5693. public static function error($message, $context = [])
  5694. {
  5695. /** @var \Illuminate\Log\Writer $instance */
  5696. $instance->error($message, $context);
  5697. }
  5698. /**
  5699. * Log a warning message to the logs.
  5700. *
  5701. * @param string $message
  5702. * @param array $context
  5703. * @return void
  5704. * @static
  5705. */
  5706. public static function warning($message, $context = [])
  5707. {
  5708. /** @var \Illuminate\Log\Writer $instance */
  5709. $instance->warning($message, $context);
  5710. }
  5711. /**
  5712. * Log a notice to the logs.
  5713. *
  5714. * @param string $message
  5715. * @param array $context
  5716. * @return void
  5717. * @static
  5718. */
  5719. public static function notice($message, $context = [])
  5720. {
  5721. /** @var \Illuminate\Log\Writer $instance */
  5722. $instance->notice($message, $context);
  5723. }
  5724. /**
  5725. * Log an informational message to the logs.
  5726. *
  5727. * @param string $message
  5728. * @param array $context
  5729. * @return void
  5730. * @static
  5731. */
  5732. public static function info($message, $context = [])
  5733. {
  5734. /** @var \Illuminate\Log\Writer $instance */
  5735. $instance->info($message, $context);
  5736. }
  5737. /**
  5738. * Log a debug message to the logs.
  5739. *
  5740. * @param string $message
  5741. * @param array $context
  5742. * @return void
  5743. * @static
  5744. */
  5745. public static function debug($message, $context = [])
  5746. {
  5747. /** @var \Illuminate\Log\Writer $instance */
  5748. $instance->debug($message, $context);
  5749. }
  5750. /**
  5751. * Log a message to the logs.
  5752. *
  5753. * @param string $level
  5754. * @param string $message
  5755. * @param array $context
  5756. * @return void
  5757. * @static
  5758. */
  5759. public static function log($level, $message, $context = [])
  5760. {
  5761. /** @var \Illuminate\Log\Writer $instance */
  5762. $instance->log($level, $message, $context);
  5763. }
  5764. /**
  5765. * Dynamically pass log calls into the writer.
  5766. *
  5767. * @param string $level
  5768. * @param string $message
  5769. * @param array $context
  5770. * @return void
  5771. * @static
  5772. */
  5773. public static function write($level, $message, $context = [])
  5774. {
  5775. /** @var \Illuminate\Log\Writer $instance */
  5776. $instance->write($level, $message, $context);
  5777. }
  5778. /**
  5779. * Register a file log handler.
  5780. *
  5781. * @param string $path
  5782. * @param string $level
  5783. * @return void
  5784. * @static
  5785. */
  5786. public static function useFiles($path, $level = 'debug')
  5787. {
  5788. /** @var \Illuminate\Log\Writer $instance */
  5789. $instance->useFiles($path, $level);
  5790. }
  5791. /**
  5792. * Register a daily file log handler.
  5793. *
  5794. * @param string $path
  5795. * @param int $days
  5796. * @param string $level
  5797. * @return void
  5798. * @static
  5799. */
  5800. public static function useDailyFiles($path, $days = 0, $level = 'debug')
  5801. {
  5802. /** @var \Illuminate\Log\Writer $instance */
  5803. $instance->useDailyFiles($path, $days, $level);
  5804. }
  5805. /**
  5806. * Register a Syslog handler.
  5807. *
  5808. * @param string $name
  5809. * @param string $level
  5810. * @param mixed $facility
  5811. * @return \Psr\Log\LoggerInterface
  5812. * @static
  5813. */
  5814. public static function useSyslog($name = 'laravel', $level = 'debug', $facility = 8)
  5815. {
  5816. /** @var \Illuminate\Log\Writer $instance */
  5817. return $instance->useSyslog($name, $level, $facility);
  5818. }
  5819. /**
  5820. * Register an error_log handler.
  5821. *
  5822. * @param string $level
  5823. * @param int $messageType
  5824. * @return void
  5825. * @static
  5826. */
  5827. public static function useErrorLog($level = 'debug', $messageType = 0)
  5828. {
  5829. /** @var \Illuminate\Log\Writer $instance */
  5830. $instance->useErrorLog($level, $messageType);
  5831. }
  5832. /**
  5833. * Register a new callback handler for when a log event is triggered.
  5834. *
  5835. * @param \Closure $callback
  5836. * @return void
  5837. * @throws \RuntimeException
  5838. * @static
  5839. */
  5840. public static function listen($callback)
  5841. {
  5842. /** @var \Illuminate\Log\Writer $instance */
  5843. $instance->listen($callback);
  5844. }
  5845. /**
  5846. * Get the underlying Monolog instance.
  5847. *
  5848. * @return \Monolog\Logger
  5849. * @static
  5850. */
  5851. public static function getMonolog()
  5852. {
  5853. /** @var \Illuminate\Log\Writer $instance */
  5854. return $instance->getMonolog();
  5855. }
  5856. /**
  5857. * Get the event dispatcher instance.
  5858. *
  5859. * @return \Illuminate\Contracts\Events\Dispatcher
  5860. * @static
  5861. */
  5862. public static function getEventDispatcher()
  5863. {
  5864. /** @var \Illuminate\Log\Writer $instance */
  5865. return $instance->getEventDispatcher();
  5866. }
  5867. /**
  5868. * Set the event dispatcher instance.
  5869. *
  5870. * @param \Illuminate\Contracts\Events\Dispatcher $dispatcher
  5871. * @return void
  5872. * @static
  5873. */
  5874. public static function setEventDispatcher($dispatcher)
  5875. {
  5876. /** @var \Illuminate\Log\Writer $instance */
  5877. $instance->setEventDispatcher($dispatcher);
  5878. }
  5879. }
  5880. /**
  5881. *
  5882. *
  5883. * @see \Illuminate\Mail\Mailer
  5884. */
  5885. class Mail {
  5886. /**
  5887. * Set the global from address and name.
  5888. *
  5889. * @param string $address
  5890. * @param string|null $name
  5891. * @return void
  5892. * @static
  5893. */
  5894. public static function alwaysFrom($address, $name = null)
  5895. {
  5896. /** @var \Illuminate\Mail\Mailer $instance */
  5897. $instance->alwaysFrom($address, $name);
  5898. }
  5899. /**
  5900. * Set the global reply-to address and name.
  5901. *
  5902. * @param string $address
  5903. * @param string|null $name
  5904. * @return void
  5905. * @static
  5906. */
  5907. public static function alwaysReplyTo($address, $name = null)
  5908. {
  5909. /** @var \Illuminate\Mail\Mailer $instance */
  5910. $instance->alwaysReplyTo($address, $name);
  5911. }
  5912. /**
  5913. * Set the global to address and name.
  5914. *
  5915. * @param string $address
  5916. * @param string|null $name
  5917. * @return void
  5918. * @static
  5919. */
  5920. public static function alwaysTo($address, $name = null)
  5921. {
  5922. /** @var \Illuminate\Mail\Mailer $instance */
  5923. $instance->alwaysTo($address, $name);
  5924. }
  5925. /**
  5926. * Begin the process of mailing a mailable class instance.
  5927. *
  5928. * @param mixed $users
  5929. * @return \Illuminate\Mail\PendingMail
  5930. * @static
  5931. */
  5932. public static function to($users)
  5933. {
  5934. /** @var \Illuminate\Mail\Mailer $instance */
  5935. return $instance->to($users);
  5936. }
  5937. /**
  5938. * Begin the process of mailing a mailable class instance.
  5939. *
  5940. * @param mixed $users
  5941. * @return \Illuminate\Mail\PendingMail
  5942. * @static
  5943. */
  5944. public static function bcc($users)
  5945. {
  5946. /** @var \Illuminate\Mail\Mailer $instance */
  5947. return $instance->bcc($users);
  5948. }
  5949. /**
  5950. * Send a new message when only a raw text part.
  5951. *
  5952. * @param string $text
  5953. * @param mixed $callback
  5954. * @return void
  5955. * @static
  5956. */
  5957. public static function raw($text, $callback)
  5958. {
  5959. /** @var \Illuminate\Mail\Mailer $instance */
  5960. $instance->raw($text, $callback);
  5961. }
  5962. /**
  5963. * Send a new message when only a plain part.
  5964. *
  5965. * @param string $view
  5966. * @param array $data
  5967. * @param mixed $callback
  5968. * @return void
  5969. * @static
  5970. */
  5971. public static function plain($view, $data, $callback)
  5972. {
  5973. /** @var \Illuminate\Mail\Mailer $instance */
  5974. $instance->plain($view, $data, $callback);
  5975. }
  5976. /**
  5977. * Render the given message as a view.
  5978. *
  5979. * @param string|array $view
  5980. * @param array $data
  5981. * @return string
  5982. * @static
  5983. */
  5984. public static function render($view, $data = [])
  5985. {
  5986. /** @var \Illuminate\Mail\Mailer $instance */
  5987. return $instance->render($view, $data);
  5988. }
  5989. /**
  5990. * Send a new message using a view.
  5991. *
  5992. * @param string|array|\Illuminate\Mail\MailableContract $view
  5993. * @param array $data
  5994. * @param \Closure|string $callback
  5995. * @return void
  5996. * @static
  5997. */
  5998. public static function send($view, $data = [], $callback = null)
  5999. {
  6000. /** @var \Illuminate\Mail\Mailer $instance */
  6001. $instance->send($view, $data, $callback);
  6002. }
  6003. /**
  6004. * Queue a new e-mail message for sending.
  6005. *
  6006. * @param string|array|\Illuminate\Mail\MailableContract $view
  6007. * @param string|null $queue
  6008. * @return mixed
  6009. * @static
  6010. */
  6011. public static function queue($view, $queue = null)
  6012. {
  6013. /** @var \Illuminate\Mail\Mailer $instance */
  6014. return $instance->queue($view, $queue);
  6015. }
  6016. /**
  6017. * Queue a new e-mail message for sending on the given queue.
  6018. *
  6019. * @param string $queue
  6020. * @param string|array $view
  6021. * @return mixed
  6022. * @static
  6023. */
  6024. public static function onQueue($queue, $view)
  6025. {
  6026. /** @var \Illuminate\Mail\Mailer $instance */
  6027. return $instance->onQueue($queue, $view);
  6028. }
  6029. /**
  6030. * Queue a new e-mail message for sending on the given queue.
  6031. *
  6032. * This method didn't match rest of framework's "onQueue" phrasing. Added "onQueue".
  6033. *
  6034. * @param string $queue
  6035. * @param string|array $view
  6036. * @return mixed
  6037. * @static
  6038. */
  6039. public static function queueOn($queue, $view)
  6040. {
  6041. /** @var \Illuminate\Mail\Mailer $instance */
  6042. return $instance->queueOn($queue, $view);
  6043. }
  6044. /**
  6045. * Queue a new e-mail message for sending after (n) seconds.
  6046. *
  6047. * @param \DateTimeInterface|\DateInterval|int $delay
  6048. * @param string|array|\Illuminate\Mail\MailableContract $view
  6049. * @param string|null $queue
  6050. * @return mixed
  6051. * @static
  6052. */
  6053. public static function later($delay, $view, $queue = null)
  6054. {
  6055. /** @var \Illuminate\Mail\Mailer $instance */
  6056. return $instance->later($delay, $view, $queue);
  6057. }
  6058. /**
  6059. * Queue a new e-mail message for sending after (n) seconds on the given queue.
  6060. *
  6061. * @param string $queue
  6062. * @param \DateTimeInterface|\DateInterval|int $delay
  6063. * @param string|array $view
  6064. * @return mixed
  6065. * @static
  6066. */
  6067. public static function laterOn($queue, $delay, $view)
  6068. {
  6069. /** @var \Illuminate\Mail\Mailer $instance */
  6070. return $instance->laterOn($queue, $delay, $view);
  6071. }
  6072. /**
  6073. * Get the view factory instance.
  6074. *
  6075. * @return \Illuminate\Contracts\View\Factory
  6076. * @static
  6077. */
  6078. public static function getViewFactory()
  6079. {
  6080. /** @var \Illuminate\Mail\Mailer $instance */
  6081. return $instance->getViewFactory();
  6082. }
  6083. /**
  6084. * Get the Swift Mailer instance.
  6085. *
  6086. * @return \Swift_Mailer
  6087. * @static
  6088. */
  6089. public static function getSwiftMailer()
  6090. {
  6091. /** @var \Illuminate\Mail\Mailer $instance */
  6092. return $instance->getSwiftMailer();
  6093. }
  6094. /**
  6095. * Get the array of failed recipients.
  6096. *
  6097. * @return array
  6098. * @static
  6099. */
  6100. public static function failures()
  6101. {
  6102. /** @var \Illuminate\Mail\Mailer $instance */
  6103. return $instance->failures();
  6104. }
  6105. /**
  6106. * Set the Swift Mailer instance.
  6107. *
  6108. * @param \Swift_Mailer $swift
  6109. * @return void
  6110. * @static
  6111. */
  6112. public static function setSwiftMailer($swift)
  6113. {
  6114. /** @var \Illuminate\Mail\Mailer $instance */
  6115. $instance->setSwiftMailer($swift);
  6116. }
  6117. /**
  6118. * Set the queue manager instance.
  6119. *
  6120. * @param \Illuminate\Contracts\Queue\Factory $queue
  6121. * @return \Illuminate\Mail\Mailer
  6122. * @static
  6123. */
  6124. public static function setQueue($queue)
  6125. {
  6126. /** @var \Illuminate\Mail\Mailer $instance */
  6127. return $instance->setQueue($queue);
  6128. }
  6129. /**
  6130. * Register a custom macro.
  6131. *
  6132. * @param string $name
  6133. * @param object|callable $macro
  6134. * @return void
  6135. * @static
  6136. */
  6137. public static function macro($name, $macro)
  6138. {
  6139. \Illuminate\Mail\Mailer::macro($name, $macro);
  6140. }
  6141. /**
  6142. * Mix another object into the class.
  6143. *
  6144. * @param object $mixin
  6145. * @return void
  6146. * @static
  6147. */
  6148. public static function mixin($mixin)
  6149. {
  6150. \Illuminate\Mail\Mailer::mixin($mixin);
  6151. }
  6152. /**
  6153. * Checks if macro is registered.
  6154. *
  6155. * @param string $name
  6156. * @return bool
  6157. * @static
  6158. */
  6159. public static function hasMacro($name)
  6160. {
  6161. return \Illuminate\Mail\Mailer::hasMacro($name);
  6162. }
  6163. /**
  6164. * Assert if a mailable was sent based on a truth-test callback.
  6165. *
  6166. * @param string $mailable
  6167. * @param callable|int|null $callback
  6168. * @return void
  6169. * @static
  6170. */
  6171. public static function assertSent($mailable, $callback = null)
  6172. {
  6173. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6174. $instance->assertSent($mailable, $callback);
  6175. }
  6176. /**
  6177. * Determine if a mailable was not sent based on a truth-test callback.
  6178. *
  6179. * @param string $mailable
  6180. * @param callable|null $callback
  6181. * @return void
  6182. * @static
  6183. */
  6184. public static function assertNotSent($mailable, $callback = null)
  6185. {
  6186. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6187. $instance->assertNotSent($mailable, $callback);
  6188. }
  6189. /**
  6190. * Assert that no mailables were sent.
  6191. *
  6192. * @return void
  6193. * @static
  6194. */
  6195. public static function assertNothingSent()
  6196. {
  6197. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6198. $instance->assertNothingSent();
  6199. }
  6200. /**
  6201. * Assert if a mailable was queued based on a truth-test callback.
  6202. *
  6203. * @param string $mailable
  6204. * @param callable|int|null $callback
  6205. * @return void
  6206. * @static
  6207. */
  6208. public static function assertQueued($mailable, $callback = null)
  6209. {
  6210. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6211. $instance->assertQueued($mailable, $callback);
  6212. }
  6213. /**
  6214. * Determine if a mailable was not queued based on a truth-test callback.
  6215. *
  6216. * @param string $mailable
  6217. * @param callable|null $callback
  6218. * @return void
  6219. * @static
  6220. */
  6221. public static function assertNotQueued($mailable, $callback = null)
  6222. {
  6223. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6224. $instance->assertNotQueued($mailable, $callback);
  6225. }
  6226. /**
  6227. * Assert that no mailables were queued.
  6228. *
  6229. * @return void
  6230. * @static
  6231. */
  6232. public static function assertNothingQueued()
  6233. {
  6234. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6235. $instance->assertNothingQueued();
  6236. }
  6237. /**
  6238. * Get all of the mailables matching a truth-test callback.
  6239. *
  6240. * @param string $mailable
  6241. * @param callable|null $callback
  6242. * @return \Illuminate\Support\Collection
  6243. * @static
  6244. */
  6245. public static function sent($mailable, $callback = null)
  6246. {
  6247. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6248. return $instance->sent($mailable, $callback);
  6249. }
  6250. /**
  6251. * Determine if the given mailable has been sent.
  6252. *
  6253. * @param string $mailable
  6254. * @return bool
  6255. * @static
  6256. */
  6257. public static function hasSent($mailable)
  6258. {
  6259. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6260. return $instance->hasSent($mailable);
  6261. }
  6262. /**
  6263. * Get all of the queued mailables matching a truth-test callback.
  6264. *
  6265. * @param string $mailable
  6266. * @param callable|null $callback
  6267. * @return \Illuminate\Support\Collection
  6268. * @static
  6269. */
  6270. public static function queued($mailable, $callback = null)
  6271. {
  6272. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6273. return $instance->queued($mailable, $callback);
  6274. }
  6275. /**
  6276. * Determine if the given mailable has been queued.
  6277. *
  6278. * @param string $mailable
  6279. * @return bool
  6280. * @static
  6281. */
  6282. public static function hasQueued($mailable)
  6283. {
  6284. /** @var \Illuminate\Support\Testing\Fakes\MailFake $instance */
  6285. return $instance->hasQueued($mailable);
  6286. }
  6287. }
  6288. /**
  6289. *
  6290. *
  6291. * @see \Illuminate\Notifications\ChannelManager
  6292. */
  6293. class Notification {
  6294. /**
  6295. * Send the given notification to the given notifiable entities.
  6296. *
  6297. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6298. * @param mixed $notification
  6299. * @return void
  6300. * @static
  6301. */
  6302. public static function send($notifiables, $notification)
  6303. {
  6304. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6305. $instance->send($notifiables, $notification);
  6306. }
  6307. /**
  6308. * Send the given notification immediately.
  6309. *
  6310. * @param \Illuminate\Support\Collection|array|mixed $notifiables
  6311. * @param mixed $notification
  6312. * @param array|null $channels
  6313. * @return void
  6314. * @static
  6315. */
  6316. public static function sendNow($notifiables, $notification, $channels = null)
  6317. {
  6318. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6319. $instance->sendNow($notifiables, $notification, $channels);
  6320. }
  6321. /**
  6322. * Get a channel instance.
  6323. *
  6324. * @param string|null $name
  6325. * @return mixed
  6326. * @static
  6327. */
  6328. public static function channel($name = null)
  6329. {
  6330. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6331. return $instance->channel($name);
  6332. }
  6333. /**
  6334. * Get the default channel driver name.
  6335. *
  6336. * @return string
  6337. * @static
  6338. */
  6339. public static function getDefaultDriver()
  6340. {
  6341. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6342. return $instance->getDefaultDriver();
  6343. }
  6344. /**
  6345. * Get the default channel driver name.
  6346. *
  6347. * @return string
  6348. * @static
  6349. */
  6350. public static function deliversVia()
  6351. {
  6352. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6353. return $instance->deliversVia();
  6354. }
  6355. /**
  6356. * Set the default channel driver name.
  6357. *
  6358. * @param string $channel
  6359. * @return void
  6360. * @static
  6361. */
  6362. public static function deliverVia($channel)
  6363. {
  6364. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6365. $instance->deliverVia($channel);
  6366. }
  6367. /**
  6368. * Get a driver instance.
  6369. *
  6370. * @param string $driver
  6371. * @return mixed
  6372. * @static
  6373. */
  6374. public static function driver($driver = null)
  6375. {
  6376. //Method inherited from \Illuminate\Support\Manager
  6377. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6378. return $instance->driver($driver);
  6379. }
  6380. /**
  6381. * Register a custom driver creator Closure.
  6382. *
  6383. * @param string $driver
  6384. * @param \Closure $callback
  6385. * @return \Illuminate\Notifications\ChannelManager
  6386. * @static
  6387. */
  6388. public static function extend($driver, $callback)
  6389. {
  6390. //Method inherited from \Illuminate\Support\Manager
  6391. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6392. return $instance->extend($driver, $callback);
  6393. }
  6394. /**
  6395. * Get all of the created "drivers".
  6396. *
  6397. * @return array
  6398. * @static
  6399. */
  6400. public static function getDrivers()
  6401. {
  6402. //Method inherited from \Illuminate\Support\Manager
  6403. /** @var \Illuminate\Notifications\ChannelManager $instance */
  6404. return $instance->getDrivers();
  6405. }
  6406. /**
  6407. * Assert if a notification was sent based on a truth-test callback.
  6408. *
  6409. * @param mixed $notifiable
  6410. * @param string $notification
  6411. * @param callable|null $callback
  6412. * @return void
  6413. * @static
  6414. */
  6415. public static function assertSentTo($notifiable, $notification, $callback = null)
  6416. {
  6417. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6418. $instance->assertSentTo($notifiable, $notification, $callback);
  6419. }
  6420. /**
  6421. * Assert if a notification was sent a number of times.
  6422. *
  6423. * @param mixed $notifiable
  6424. * @param string $notification
  6425. * @param int $times
  6426. * @return void
  6427. * @static
  6428. */
  6429. public static function assertSentToTimes($notifiable, $notification, $times = 1)
  6430. {
  6431. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6432. $instance->assertSentToTimes($notifiable, $notification, $times);
  6433. }
  6434. /**
  6435. * Determine if a notification was sent based on a truth-test callback.
  6436. *
  6437. * @param mixed $notifiable
  6438. * @param string $notification
  6439. * @param callable|null $callback
  6440. * @return void
  6441. * @static
  6442. */
  6443. public static function assertNotSentTo($notifiable, $notification, $callback = null)
  6444. {
  6445. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6446. $instance->assertNotSentTo($notifiable, $notification, $callback);
  6447. }
  6448. /**
  6449. * Assert that no notifications were sent.
  6450. *
  6451. * @return void
  6452. * @static
  6453. */
  6454. public static function assertNothingSent()
  6455. {
  6456. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6457. $instance->assertNothingSent();
  6458. }
  6459. /**
  6460. * Get all of the notifications matching a truth-test callback.
  6461. *
  6462. * @param mixed $notifiable
  6463. * @param string $notification
  6464. * @param callable|null $callback
  6465. * @return \Illuminate\Support\Collection
  6466. * @static
  6467. */
  6468. public static function sent($notifiable, $notification, $callback = null)
  6469. {
  6470. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6471. return $instance->sent($notifiable, $notification, $callback);
  6472. }
  6473. /**
  6474. * Determine if there are more notifications left to inspect.
  6475. *
  6476. * @param mixed $notifiable
  6477. * @param string $notification
  6478. * @return bool
  6479. * @static
  6480. */
  6481. public static function hasSent($notifiable, $notification)
  6482. {
  6483. /** @var \Illuminate\Support\Testing\Fakes\NotificationFake $instance */
  6484. return $instance->hasSent($notifiable, $notification);
  6485. }
  6486. }
  6487. /**
  6488. *
  6489. *
  6490. * @see \Illuminate\Auth\Passwords\PasswordBroker
  6491. */
  6492. class Password {
  6493. /**
  6494. * Attempt to get the broker from the local cache.
  6495. *
  6496. * @param string $name
  6497. * @return \Illuminate\Contracts\Auth\PasswordBroker
  6498. * @static
  6499. */
  6500. public static function broker($name = null)
  6501. {
  6502. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6503. return $instance->broker($name);
  6504. }
  6505. /**
  6506. * Get the default password broker name.
  6507. *
  6508. * @return string
  6509. * @static
  6510. */
  6511. public static function getDefaultDriver()
  6512. {
  6513. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6514. return $instance->getDefaultDriver();
  6515. }
  6516. /**
  6517. * Set the default password broker name.
  6518. *
  6519. * @param string $name
  6520. * @return void
  6521. * @static
  6522. */
  6523. public static function setDefaultDriver($name)
  6524. {
  6525. /** @var \Illuminate\Auth\Passwords\PasswordBrokerManager $instance */
  6526. $instance->setDefaultDriver($name);
  6527. }
  6528. }
  6529. /**
  6530. *
  6531. *
  6532. * @see \Illuminate\Queue\QueueManager
  6533. * @see \Illuminate\Queue\Queue
  6534. */
  6535. class Queue {
  6536. /**
  6537. * Register an event listener for the before job event.
  6538. *
  6539. * @param mixed $callback
  6540. * @return void
  6541. * @static
  6542. */
  6543. public static function before($callback)
  6544. {
  6545. /** @var \Illuminate\Queue\QueueManager $instance */
  6546. $instance->before($callback);
  6547. }
  6548. /**
  6549. * Register an event listener for the after job event.
  6550. *
  6551. * @param mixed $callback
  6552. * @return void
  6553. * @static
  6554. */
  6555. public static function after($callback)
  6556. {
  6557. /** @var \Illuminate\Queue\QueueManager $instance */
  6558. $instance->after($callback);
  6559. }
  6560. /**
  6561. * Register an event listener for the exception occurred job event.
  6562. *
  6563. * @param mixed $callback
  6564. * @return void
  6565. * @static
  6566. */
  6567. public static function exceptionOccurred($callback)
  6568. {
  6569. /** @var \Illuminate\Queue\QueueManager $instance */
  6570. $instance->exceptionOccurred($callback);
  6571. }
  6572. /**
  6573. * Register an event listener for the daemon queue loop.
  6574. *
  6575. * @param mixed $callback
  6576. * @return void
  6577. * @static
  6578. */
  6579. public static function looping($callback)
  6580. {
  6581. /** @var \Illuminate\Queue\QueueManager $instance */
  6582. $instance->looping($callback);
  6583. }
  6584. /**
  6585. * Register an event listener for the failed job event.
  6586. *
  6587. * @param mixed $callback
  6588. * @return void
  6589. * @static
  6590. */
  6591. public static function failing($callback)
  6592. {
  6593. /** @var \Illuminate\Queue\QueueManager $instance */
  6594. $instance->failing($callback);
  6595. }
  6596. /**
  6597. * Register an event listener for the daemon queue stopping.
  6598. *
  6599. * @param mixed $callback
  6600. * @return void
  6601. * @static
  6602. */
  6603. public static function stopping($callback)
  6604. {
  6605. /** @var \Illuminate\Queue\QueueManager $instance */
  6606. $instance->stopping($callback);
  6607. }
  6608. /**
  6609. * Determine if the driver is connected.
  6610. *
  6611. * @param string $name
  6612. * @return bool
  6613. * @static
  6614. */
  6615. public static function connected($name = null)
  6616. {
  6617. /** @var \Illuminate\Queue\QueueManager $instance */
  6618. return $instance->connected($name);
  6619. }
  6620. /**
  6621. * Resolve a queue connection instance.
  6622. *
  6623. * @param string $name
  6624. * @return \Illuminate\Contracts\Queue\Queue
  6625. * @static
  6626. */
  6627. public static function connection($name = null)
  6628. {
  6629. /** @var \Illuminate\Queue\QueueManager $instance */
  6630. return $instance->connection($name);
  6631. }
  6632. /**
  6633. * Add a queue connection resolver.
  6634. *
  6635. * @param string $driver
  6636. * @param \Closure $resolver
  6637. * @return void
  6638. * @static
  6639. */
  6640. public static function extend($driver, $resolver)
  6641. {
  6642. /** @var \Illuminate\Queue\QueueManager $instance */
  6643. $instance->extend($driver, $resolver);
  6644. }
  6645. /**
  6646. * Add a queue connection resolver.
  6647. *
  6648. * @param string $driver
  6649. * @param \Closure $resolver
  6650. * @return void
  6651. * @static
  6652. */
  6653. public static function addConnector($driver, $resolver)
  6654. {
  6655. /** @var \Illuminate\Queue\QueueManager $instance */
  6656. $instance->addConnector($driver, $resolver);
  6657. }
  6658. /**
  6659. * Get the name of the default queue connection.
  6660. *
  6661. * @return string
  6662. * @static
  6663. */
  6664. public static function getDefaultDriver()
  6665. {
  6666. /** @var \Illuminate\Queue\QueueManager $instance */
  6667. return $instance->getDefaultDriver();
  6668. }
  6669. /**
  6670. * Set the name of the default queue connection.
  6671. *
  6672. * @param string $name
  6673. * @return void
  6674. * @static
  6675. */
  6676. public static function setDefaultDriver($name)
  6677. {
  6678. /** @var \Illuminate\Queue\QueueManager $instance */
  6679. $instance->setDefaultDriver($name);
  6680. }
  6681. /**
  6682. * Get the full name for the given connection.
  6683. *
  6684. * @param string $connection
  6685. * @return string
  6686. * @static
  6687. */
  6688. public static function getName($connection = null)
  6689. {
  6690. /** @var \Illuminate\Queue\QueueManager $instance */
  6691. return $instance->getName($connection);
  6692. }
  6693. /**
  6694. * Determine if the application is in maintenance mode.
  6695. *
  6696. * @return bool
  6697. * @static
  6698. */
  6699. public static function isDownForMaintenance()
  6700. {
  6701. /** @var \Illuminate\Queue\QueueManager $instance */
  6702. return $instance->isDownForMaintenance();
  6703. }
  6704. /**
  6705. * Assert if a job was pushed based on a truth-test callback.
  6706. *
  6707. * @param string $job
  6708. * @param callable|int|null $callback
  6709. * @return void
  6710. * @static
  6711. */
  6712. public static function assertPushed($job, $callback = null)
  6713. {
  6714. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6715. $instance->assertPushed($job, $callback);
  6716. }
  6717. /**
  6718. * Assert if a job was pushed based on a truth-test callback.
  6719. *
  6720. * @param string $queue
  6721. * @param string $job
  6722. * @param callable|null $callback
  6723. * @return void
  6724. * @static
  6725. */
  6726. public static function assertPushedOn($queue, $job, $callback = null)
  6727. {
  6728. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6729. $instance->assertPushedOn($queue, $job, $callback);
  6730. }
  6731. /**
  6732. * Determine if a job was pushed based on a truth-test callback.
  6733. *
  6734. * @param string $job
  6735. * @param callable|null $callback
  6736. * @return void
  6737. * @static
  6738. */
  6739. public static function assertNotPushed($job, $callback = null)
  6740. {
  6741. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6742. $instance->assertNotPushed($job, $callback);
  6743. }
  6744. /**
  6745. * Assert that no jobs were pushed.
  6746. *
  6747. * @return void
  6748. * @static
  6749. */
  6750. public static function assertNothingPushed()
  6751. {
  6752. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6753. $instance->assertNothingPushed();
  6754. }
  6755. /**
  6756. * Get all of the jobs matching a truth-test callback.
  6757. *
  6758. * @param string $job
  6759. * @param callable|null $callback
  6760. * @return \Illuminate\Support\Collection
  6761. * @static
  6762. */
  6763. public static function pushed($job, $callback = null)
  6764. {
  6765. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6766. return $instance->pushed($job, $callback);
  6767. }
  6768. /**
  6769. * Determine if there are any stored jobs for a given class.
  6770. *
  6771. * @param string $job
  6772. * @return bool
  6773. * @static
  6774. */
  6775. public static function hasPushed($job)
  6776. {
  6777. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6778. return $instance->hasPushed($job);
  6779. }
  6780. /**
  6781. * Get the size of the queue.
  6782. *
  6783. * @param string $queue
  6784. * @return int
  6785. * @static
  6786. */
  6787. public static function size($queue = null)
  6788. {
  6789. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6790. return $instance->size($queue);
  6791. }
  6792. /**
  6793. * Push a new job onto the queue.
  6794. *
  6795. * @param string $job
  6796. * @param mixed $data
  6797. * @param string $queue
  6798. * @return mixed
  6799. * @static
  6800. */
  6801. public static function push($job, $data = '', $queue = null)
  6802. {
  6803. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6804. return $instance->push($job, $data, $queue);
  6805. }
  6806. /**
  6807. * Push a raw payload onto the queue.
  6808. *
  6809. * @param string $payload
  6810. * @param string $queue
  6811. * @param array $options
  6812. * @return mixed
  6813. * @static
  6814. */
  6815. public static function pushRaw($payload, $queue = null, $options = [])
  6816. {
  6817. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6818. return $instance->pushRaw($payload, $queue, $options);
  6819. }
  6820. /**
  6821. * Push a new job onto the queue after a delay.
  6822. *
  6823. * @param \DateTime|int $delay
  6824. * @param string $job
  6825. * @param mixed $data
  6826. * @param string $queue
  6827. * @return mixed
  6828. * @static
  6829. */
  6830. public static function later($delay, $job, $data = '', $queue = null)
  6831. {
  6832. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6833. return $instance->later($delay, $job, $data, $queue);
  6834. }
  6835. /**
  6836. * Push a new job onto the queue.
  6837. *
  6838. * @param string $queue
  6839. * @param string $job
  6840. * @param mixed $data
  6841. * @return mixed
  6842. * @static
  6843. */
  6844. public static function pushOn($queue, $job, $data = '')
  6845. {
  6846. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6847. return $instance->pushOn($queue, $job, $data);
  6848. }
  6849. /**
  6850. * Push a new job onto the queue after a delay.
  6851. *
  6852. * @param string $queue
  6853. * @param \DateTime|int $delay
  6854. * @param string $job
  6855. * @param mixed $data
  6856. * @return mixed
  6857. * @static
  6858. */
  6859. public static function laterOn($queue, $delay, $job, $data = '')
  6860. {
  6861. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6862. return $instance->laterOn($queue, $delay, $job, $data);
  6863. }
  6864. /**
  6865. * Pop the next job off of the queue.
  6866. *
  6867. * @param string $queue
  6868. * @return \Illuminate\Contracts\Queue\Job|null
  6869. * @static
  6870. */
  6871. public static function pop($queue = null)
  6872. {
  6873. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6874. return $instance->pop($queue);
  6875. }
  6876. /**
  6877. * Push an array of jobs onto the queue.
  6878. *
  6879. * @param array $jobs
  6880. * @param mixed $data
  6881. * @param string $queue
  6882. * @return mixed
  6883. * @static
  6884. */
  6885. public static function bulk($jobs, $data = '', $queue = null)
  6886. {
  6887. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6888. return $instance->bulk($jobs, $data, $queue);
  6889. }
  6890. /**
  6891. * Get the connection name for the queue.
  6892. *
  6893. * @return string
  6894. * @static
  6895. */
  6896. public static function getConnectionName()
  6897. {
  6898. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6899. return $instance->getConnectionName();
  6900. }
  6901. /**
  6902. * Set the connection name for the queue.
  6903. *
  6904. * @param string $name
  6905. * @return \Illuminate\Support\Testing\Fakes\QueueFake
  6906. * @static
  6907. */
  6908. public static function setConnectionName($name)
  6909. {
  6910. /** @var \Illuminate\Support\Testing\Fakes\QueueFake $instance */
  6911. return $instance->setConnectionName($name);
  6912. }
  6913. /**
  6914. * Get the expiration timestamp for an object-based queue handler.
  6915. *
  6916. * @param mixed $job
  6917. * @return mixed
  6918. * @static
  6919. */
  6920. public static function getJobExpiration($job)
  6921. {
  6922. //Method inherited from \Illuminate\Queue\Queue
  6923. /** @var \Illuminate\Queue\SyncQueue $instance */
  6924. return $instance->getJobExpiration($job);
  6925. }
  6926. /**
  6927. * Set the IoC container instance.
  6928. *
  6929. * @param \Illuminate\Container\Container $container
  6930. * @return void
  6931. * @static
  6932. */
  6933. public static function setContainer($container)
  6934. {
  6935. //Method inherited from \Illuminate\Queue\Queue
  6936. /** @var \Illuminate\Queue\SyncQueue $instance */
  6937. $instance->setContainer($container);
  6938. }
  6939. }
  6940. /**
  6941. *
  6942. *
  6943. * @see \Illuminate\Routing\Redirector
  6944. */
  6945. class Redirect {
  6946. /**
  6947. * Create a new redirect response to the "home" route.
  6948. *
  6949. * @param int $status
  6950. * @return \Illuminate\Http\RedirectResponse
  6951. * @static
  6952. */
  6953. public static function home($status = 302)
  6954. {
  6955. /** @var \Illuminate\Routing\Redirector $instance */
  6956. return $instance->home($status);
  6957. }
  6958. /**
  6959. * Create a new redirect response to the previous location.
  6960. *
  6961. * @param int $status
  6962. * @param array $headers
  6963. * @param mixed $fallback
  6964. * @return \Illuminate\Http\RedirectResponse
  6965. * @static
  6966. */
  6967. public static function back($status = 302, $headers = [], $fallback = false)
  6968. {
  6969. /** @var \Illuminate\Routing\Redirector $instance */
  6970. return $instance->back($status, $headers, $fallback);
  6971. }
  6972. /**
  6973. * Create a new redirect response to the current URI.
  6974. *
  6975. * @param int $status
  6976. * @param array $headers
  6977. * @return \Illuminate\Http\RedirectResponse
  6978. * @static
  6979. */
  6980. public static function refresh($status = 302, $headers = [])
  6981. {
  6982. /** @var \Illuminate\Routing\Redirector $instance */
  6983. return $instance->refresh($status, $headers);
  6984. }
  6985. /**
  6986. * Create a new redirect response, while putting the current URL in the session.
  6987. *
  6988. * @param string $path
  6989. * @param int $status
  6990. * @param array $headers
  6991. * @param bool $secure
  6992. * @return \Illuminate\Http\RedirectResponse
  6993. * @static
  6994. */
  6995. public static function guest($path, $status = 302, $headers = [], $secure = null)
  6996. {
  6997. /** @var \Illuminate\Routing\Redirector $instance */
  6998. return $instance->guest($path, $status, $headers, $secure);
  6999. }
  7000. /**
  7001. * Create a new redirect response to the previously intended location.
  7002. *
  7003. * @param string $default
  7004. * @param int $status
  7005. * @param array $headers
  7006. * @param bool $secure
  7007. * @return \Illuminate\Http\RedirectResponse
  7008. * @static
  7009. */
  7010. public static function intended($default = '/', $status = 302, $headers = [], $secure = null)
  7011. {
  7012. /** @var \Illuminate\Routing\Redirector $instance */
  7013. return $instance->intended($default, $status, $headers, $secure);
  7014. }
  7015. /**
  7016. * Create a new redirect response to the given path.
  7017. *
  7018. * @param string $path
  7019. * @param int $status
  7020. * @param array $headers
  7021. * @param bool $secure
  7022. * @return \Illuminate\Http\RedirectResponse
  7023. * @static
  7024. */
  7025. public static function to($path, $status = 302, $headers = [], $secure = null)
  7026. {
  7027. /** @var \Illuminate\Routing\Redirector $instance */
  7028. return $instance->to($path, $status, $headers, $secure);
  7029. }
  7030. /**
  7031. * Create a new redirect response to an external URL (no validation).
  7032. *
  7033. * @param string $path
  7034. * @param int $status
  7035. * @param array $headers
  7036. * @return \Illuminate\Http\RedirectResponse
  7037. * @static
  7038. */
  7039. public static function away($path, $status = 302, $headers = [])
  7040. {
  7041. /** @var \Illuminate\Routing\Redirector $instance */
  7042. return $instance->away($path, $status, $headers);
  7043. }
  7044. /**
  7045. * Create a new redirect response to the given HTTPS path.
  7046. *
  7047. * @param string $path
  7048. * @param int $status
  7049. * @param array $headers
  7050. * @return \Illuminate\Http\RedirectResponse
  7051. * @static
  7052. */
  7053. public static function secure($path, $status = 302, $headers = [])
  7054. {
  7055. /** @var \Illuminate\Routing\Redirector $instance */
  7056. return $instance->secure($path, $status, $headers);
  7057. }
  7058. /**
  7059. * Create a new redirect response to a named route.
  7060. *
  7061. * @param string $route
  7062. * @param array $parameters
  7063. * @param int $status
  7064. * @param array $headers
  7065. * @return \Illuminate\Http\RedirectResponse
  7066. * @static
  7067. */
  7068. public static function route($route, $parameters = [], $status = 302, $headers = [])
  7069. {
  7070. /** @var \Illuminate\Routing\Redirector $instance */
  7071. return $instance->route($route, $parameters, $status, $headers);
  7072. }
  7073. /**
  7074. * Create a new redirect response to a controller action.
  7075. *
  7076. * @param string $action
  7077. * @param array $parameters
  7078. * @param int $status
  7079. * @param array $headers
  7080. * @return \Illuminate\Http\RedirectResponse
  7081. * @static
  7082. */
  7083. public static function action($action, $parameters = [], $status = 302, $headers = [])
  7084. {
  7085. /** @var \Illuminate\Routing\Redirector $instance */
  7086. return $instance->action($action, $parameters, $status, $headers);
  7087. }
  7088. /**
  7089. * Get the URL generator instance.
  7090. *
  7091. * @return \Illuminate\Routing\UrlGenerator
  7092. * @static
  7093. */
  7094. public static function getUrlGenerator()
  7095. {
  7096. /** @var \Illuminate\Routing\Redirector $instance */
  7097. return $instance->getUrlGenerator();
  7098. }
  7099. /**
  7100. * Set the active session store.
  7101. *
  7102. * @param \Illuminate\Session\Store $session
  7103. * @return void
  7104. * @static
  7105. */
  7106. public static function setSession($session)
  7107. {
  7108. /** @var \Illuminate\Routing\Redirector $instance */
  7109. $instance->setSession($session);
  7110. }
  7111. /**
  7112. * Register a custom macro.
  7113. *
  7114. * @param string $name
  7115. * @param object|callable $macro
  7116. * @return void
  7117. * @static
  7118. */
  7119. public static function macro($name, $macro)
  7120. {
  7121. \Illuminate\Routing\Redirector::macro($name, $macro);
  7122. }
  7123. /**
  7124. * Mix another object into the class.
  7125. *
  7126. * @param object $mixin
  7127. * @return void
  7128. * @static
  7129. */
  7130. public static function mixin($mixin)
  7131. {
  7132. \Illuminate\Routing\Redirector::mixin($mixin);
  7133. }
  7134. /**
  7135. * Checks if macro is registered.
  7136. *
  7137. * @param string $name
  7138. * @return bool
  7139. * @static
  7140. */
  7141. public static function hasMacro($name)
  7142. {
  7143. return \Illuminate\Routing\Redirector::hasMacro($name);
  7144. }
  7145. }
  7146. /**
  7147. *
  7148. *
  7149. * @see \Illuminate\Redis\RedisManager
  7150. * @see \Illuminate\Contracts\Redis\Factory
  7151. */
  7152. class Redis {
  7153. /**
  7154. * Get a Redis connection by name.
  7155. *
  7156. * @param string|null $name
  7157. * @return \Illuminate\Redis\Connections\Connection
  7158. * @static
  7159. */
  7160. public static function connection($name = null)
  7161. {
  7162. /** @var \Illuminate\Redis\RedisManager $instance */
  7163. return $instance->connection($name);
  7164. }
  7165. /**
  7166. * Resolve the given connection by name.
  7167. *
  7168. * @param string|null $name
  7169. * @return \Illuminate\Redis\Connections\Connection
  7170. * @throws \InvalidArgumentException
  7171. * @static
  7172. */
  7173. public static function resolve($name = null)
  7174. {
  7175. /** @var \Illuminate\Redis\RedisManager $instance */
  7176. return $instance->resolve($name);
  7177. }
  7178. /**
  7179. * Return all of the created connections.
  7180. *
  7181. * @return array
  7182. * @static
  7183. */
  7184. public static function connections()
  7185. {
  7186. /** @var \Illuminate\Redis\RedisManager $instance */
  7187. return $instance->connections();
  7188. }
  7189. }
  7190. /**
  7191. *
  7192. *
  7193. * @see \Illuminate\Http\Request
  7194. */
  7195. class Request {
  7196. /**
  7197. * Create a new Illuminate HTTP request from server variables.
  7198. *
  7199. * @return static
  7200. * @static
  7201. */
  7202. public static function capture()
  7203. {
  7204. return \Illuminate\Http\Request::capture();
  7205. }
  7206. /**
  7207. * Return the Request instance.
  7208. *
  7209. * @return \Illuminate\Http\Request
  7210. * @static
  7211. */
  7212. public static function instance()
  7213. {
  7214. /** @var \Illuminate\Http\Request $instance */
  7215. return $instance->instance();
  7216. }
  7217. /**
  7218. * Get the request method.
  7219. *
  7220. * @return string
  7221. * @static
  7222. */
  7223. public static function method()
  7224. {
  7225. /** @var \Illuminate\Http\Request $instance */
  7226. return $instance->method();
  7227. }
  7228. /**
  7229. * Get the root URL for the application.
  7230. *
  7231. * @return string
  7232. * @static
  7233. */
  7234. public static function root()
  7235. {
  7236. /** @var \Illuminate\Http\Request $instance */
  7237. return $instance->root();
  7238. }
  7239. /**
  7240. * Get the URL (no query string) for the request.
  7241. *
  7242. * @return string
  7243. * @static
  7244. */
  7245. public static function url()
  7246. {
  7247. /** @var \Illuminate\Http\Request $instance */
  7248. return $instance->url();
  7249. }
  7250. /**
  7251. * Get the full URL for the request.
  7252. *
  7253. * @return string
  7254. * @static
  7255. */
  7256. public static function fullUrl()
  7257. {
  7258. /** @var \Illuminate\Http\Request $instance */
  7259. return $instance->fullUrl();
  7260. }
  7261. /**
  7262. * Get the full URL for the request with the added query string parameters.
  7263. *
  7264. * @param array $query
  7265. * @return string
  7266. * @static
  7267. */
  7268. public static function fullUrlWithQuery($query)
  7269. {
  7270. /** @var \Illuminate\Http\Request $instance */
  7271. return $instance->fullUrlWithQuery($query);
  7272. }
  7273. /**
  7274. * Get the current path info for the request.
  7275. *
  7276. * @return string
  7277. * @static
  7278. */
  7279. public static function path()
  7280. {
  7281. /** @var \Illuminate\Http\Request $instance */
  7282. return $instance->path();
  7283. }
  7284. /**
  7285. * Get the current decoded path info for the request.
  7286. *
  7287. * @return string
  7288. * @static
  7289. */
  7290. public static function decodedPath()
  7291. {
  7292. /** @var \Illuminate\Http\Request $instance */
  7293. return $instance->decodedPath();
  7294. }
  7295. /**
  7296. * Get a segment from the URI (1 based index).
  7297. *
  7298. * @param int $index
  7299. * @param string|null $default
  7300. * @return string|null
  7301. * @static
  7302. */
  7303. public static function segment($index, $default = null)
  7304. {
  7305. /** @var \Illuminate\Http\Request $instance */
  7306. return $instance->segment($index, $default);
  7307. }
  7308. /**
  7309. * Get all of the segments for the request path.
  7310. *
  7311. * @return array
  7312. * @static
  7313. */
  7314. public static function segments()
  7315. {
  7316. /** @var \Illuminate\Http\Request $instance */
  7317. return $instance->segments();
  7318. }
  7319. /**
  7320. * Determine if the current request URI matches a pattern.
  7321. *
  7322. * @param mixed $patterns
  7323. * @return bool
  7324. * @static
  7325. */
  7326. public static function is(...$patterns)
  7327. {
  7328. /** @var \Illuminate\Http\Request $instance */
  7329. return $instance->is(...$patterns);
  7330. }
  7331. /**
  7332. * Determine if the route name matches a given pattern.
  7333. *
  7334. * @param mixed $patterns
  7335. * @return bool
  7336. * @static
  7337. */
  7338. public static function routeIs(...$patterns)
  7339. {
  7340. /** @var \Illuminate\Http\Request $instance */
  7341. return $instance->routeIs(...$patterns);
  7342. }
  7343. /**
  7344. * Determine if the current request URL and query string matches a pattern.
  7345. *
  7346. * @param mixed $patterns
  7347. * @return bool
  7348. * @static
  7349. */
  7350. public static function fullUrlIs(...$patterns)
  7351. {
  7352. /** @var \Illuminate\Http\Request $instance */
  7353. return $instance->fullUrlIs(...$patterns);
  7354. }
  7355. /**
  7356. * Determine if the request is the result of an AJAX call.
  7357. *
  7358. * @return bool
  7359. * @static
  7360. */
  7361. public static function ajax()
  7362. {
  7363. /** @var \Illuminate\Http\Request $instance */
  7364. return $instance->ajax();
  7365. }
  7366. /**
  7367. * Determine if the request is the result of an PJAX call.
  7368. *
  7369. * @return bool
  7370. * @static
  7371. */
  7372. public static function pjax()
  7373. {
  7374. /** @var \Illuminate\Http\Request $instance */
  7375. return $instance->pjax();
  7376. }
  7377. /**
  7378. * Determine if the request is over HTTPS.
  7379. *
  7380. * @return bool
  7381. * @static
  7382. */
  7383. public static function secure()
  7384. {
  7385. /** @var \Illuminate\Http\Request $instance */
  7386. return $instance->secure();
  7387. }
  7388. /**
  7389. * Get the client IP address.
  7390. *
  7391. * @return string
  7392. * @static
  7393. */
  7394. public static function ip()
  7395. {
  7396. /** @var \Illuminate\Http\Request $instance */
  7397. return $instance->ip();
  7398. }
  7399. /**
  7400. * Get the client IP addresses.
  7401. *
  7402. * @return array
  7403. * @static
  7404. */
  7405. public static function ips()
  7406. {
  7407. /** @var \Illuminate\Http\Request $instance */
  7408. return $instance->ips();
  7409. }
  7410. /**
  7411. * Get the client user agent.
  7412. *
  7413. * @return string
  7414. * @static
  7415. */
  7416. public static function userAgent()
  7417. {
  7418. /** @var \Illuminate\Http\Request $instance */
  7419. return $instance->userAgent();
  7420. }
  7421. /**
  7422. * Merge new input into the current request's input array.
  7423. *
  7424. * @param array $input
  7425. * @return \Illuminate\Http\Request
  7426. * @static
  7427. */
  7428. public static function merge($input)
  7429. {
  7430. /** @var \Illuminate\Http\Request $instance */
  7431. return $instance->merge($input);
  7432. }
  7433. /**
  7434. * Replace the input for the current request.
  7435. *
  7436. * @param array $input
  7437. * @return \Illuminate\Http\Request
  7438. * @static
  7439. */
  7440. public static function replace($input)
  7441. {
  7442. /** @var \Illuminate\Http\Request $instance */
  7443. return $instance->replace($input);
  7444. }
  7445. /**
  7446. * Get the JSON payload for the request.
  7447. *
  7448. * @param string $key
  7449. * @param mixed $default
  7450. * @return \Symfony\Component\HttpFoundation\ParameterBag|mixed
  7451. * @static
  7452. */
  7453. public static function json($key = null, $default = null)
  7454. {
  7455. /** @var \Illuminate\Http\Request $instance */
  7456. return $instance->json($key, $default);
  7457. }
  7458. /**
  7459. * Create an Illuminate request from a Symfony instance.
  7460. *
  7461. * @param \Symfony\Component\HttpFoundation\Request $request
  7462. * @return \Illuminate\Http\Request
  7463. * @static
  7464. */
  7465. public static function createFromBase($request)
  7466. {
  7467. return \Illuminate\Http\Request::createFromBase($request);
  7468. }
  7469. /**
  7470. * Clones a request and overrides some of its parameters.
  7471. *
  7472. * @param array $query The GET parameters
  7473. * @param array $request The POST parameters
  7474. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7475. * @param array $cookies The COOKIE parameters
  7476. * @param array $files The FILES parameters
  7477. * @param array $server The SERVER parameters
  7478. * @return static
  7479. * @static
  7480. */
  7481. public static function duplicate($query = null, $request = null, $attributes = null, $cookies = null, $files = null, $server = null)
  7482. {
  7483. /** @var \Illuminate\Http\Request $instance */
  7484. return $instance->duplicate($query, $request, $attributes, $cookies, $files, $server);
  7485. }
  7486. /**
  7487. * Get the session associated with the request.
  7488. *
  7489. * @return \Illuminate\Session\Store
  7490. * @throws \RuntimeException
  7491. * @static
  7492. */
  7493. public static function session()
  7494. {
  7495. /** @var \Illuminate\Http\Request $instance */
  7496. return $instance->session();
  7497. }
  7498. /**
  7499. * Set the session instance on the request.
  7500. *
  7501. * @param \Illuminate\Contracts\Session\Session $session
  7502. * @return void
  7503. * @static
  7504. */
  7505. public static function setLaravelSession($session)
  7506. {
  7507. /** @var \Illuminate\Http\Request $instance */
  7508. $instance->setLaravelSession($session);
  7509. }
  7510. /**
  7511. * Get the user making the request.
  7512. *
  7513. * @param string|null $guard
  7514. * @return mixed
  7515. * @static
  7516. */
  7517. public static function user($guard = null)
  7518. {
  7519. /** @var \Illuminate\Http\Request $instance */
  7520. return $instance->user($guard);
  7521. }
  7522. /**
  7523. * Get the route handling the request.
  7524. *
  7525. * @param string|null $param
  7526. * @return \Illuminate\Routing\Route|object|string
  7527. * @static
  7528. */
  7529. public static function route($param = null)
  7530. {
  7531. /** @var \Illuminate\Http\Request $instance */
  7532. return $instance->route($param);
  7533. }
  7534. /**
  7535. * Get a unique fingerprint for the request / route / IP address.
  7536. *
  7537. * @return string
  7538. * @throws \RuntimeException
  7539. * @static
  7540. */
  7541. public static function fingerprint()
  7542. {
  7543. /** @var \Illuminate\Http\Request $instance */
  7544. return $instance->fingerprint();
  7545. }
  7546. /**
  7547. * Set the JSON payload for the request.
  7548. *
  7549. * @param \Symfony\Component\HttpFoundation\ParameterBag $json
  7550. * @return \Illuminate\Http\Request
  7551. * @static
  7552. */
  7553. public static function setJson($json)
  7554. {
  7555. /** @var \Illuminate\Http\Request $instance */
  7556. return $instance->setJson($json);
  7557. }
  7558. /**
  7559. * Get the user resolver callback.
  7560. *
  7561. * @return \Closure
  7562. * @static
  7563. */
  7564. public static function getUserResolver()
  7565. {
  7566. /** @var \Illuminate\Http\Request $instance */
  7567. return $instance->getUserResolver();
  7568. }
  7569. /**
  7570. * Set the user resolver callback.
  7571. *
  7572. * @param \Closure $callback
  7573. * @return \Illuminate\Http\Request
  7574. * @static
  7575. */
  7576. public static function setUserResolver($callback)
  7577. {
  7578. /** @var \Illuminate\Http\Request $instance */
  7579. return $instance->setUserResolver($callback);
  7580. }
  7581. /**
  7582. * Get the route resolver callback.
  7583. *
  7584. * @return \Closure
  7585. * @static
  7586. */
  7587. public static function getRouteResolver()
  7588. {
  7589. /** @var \Illuminate\Http\Request $instance */
  7590. return $instance->getRouteResolver();
  7591. }
  7592. /**
  7593. * Set the route resolver callback.
  7594. *
  7595. * @param \Closure $callback
  7596. * @return \Illuminate\Http\Request
  7597. * @static
  7598. */
  7599. public static function setRouteResolver($callback)
  7600. {
  7601. /** @var \Illuminate\Http\Request $instance */
  7602. return $instance->setRouteResolver($callback);
  7603. }
  7604. /**
  7605. * Get all of the input and files for the request.
  7606. *
  7607. * @return array
  7608. * @static
  7609. */
  7610. public static function toArray()
  7611. {
  7612. /** @var \Illuminate\Http\Request $instance */
  7613. return $instance->toArray();
  7614. }
  7615. /**
  7616. * Determine if the given offset exists.
  7617. *
  7618. * @param string $offset
  7619. * @return bool
  7620. * @static
  7621. */
  7622. public static function offsetExists($offset)
  7623. {
  7624. /** @var \Illuminate\Http\Request $instance */
  7625. return $instance->offsetExists($offset);
  7626. }
  7627. /**
  7628. * Get the value at the given offset.
  7629. *
  7630. * @param string $offset
  7631. * @return mixed
  7632. * @static
  7633. */
  7634. public static function offsetGet($offset)
  7635. {
  7636. /** @var \Illuminate\Http\Request $instance */
  7637. return $instance->offsetGet($offset);
  7638. }
  7639. /**
  7640. * Set the value at the given offset.
  7641. *
  7642. * @param string $offset
  7643. * @param mixed $value
  7644. * @return void
  7645. * @static
  7646. */
  7647. public static function offsetSet($offset, $value)
  7648. {
  7649. /** @var \Illuminate\Http\Request $instance */
  7650. $instance->offsetSet($offset, $value);
  7651. }
  7652. /**
  7653. * Remove the value at the given offset.
  7654. *
  7655. * @param string $offset
  7656. * @return void
  7657. * @static
  7658. */
  7659. public static function offsetUnset($offset)
  7660. {
  7661. /** @var \Illuminate\Http\Request $instance */
  7662. $instance->offsetUnset($offset);
  7663. }
  7664. /**
  7665. * Sets the parameters for this request.
  7666. *
  7667. * This method also re-initializes all properties.
  7668. *
  7669. * @param array $query The GET parameters
  7670. * @param array $request The POST parameters
  7671. * @param array $attributes The request attributes (parameters parsed from the PATH_INFO, ...)
  7672. * @param array $cookies The COOKIE parameters
  7673. * @param array $files The FILES parameters
  7674. * @param array $server The SERVER parameters
  7675. * @param string|resource|null $content The raw body data
  7676. * @static
  7677. */
  7678. public static function initialize($query = [], $request = [], $attributes = [], $cookies = [], $files = [], $server = [], $content = null)
  7679. {
  7680. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7681. /** @var \Illuminate\Http\Request $instance */
  7682. return $instance->initialize($query, $request, $attributes, $cookies, $files, $server, $content);
  7683. }
  7684. /**
  7685. * Creates a new request with values from PHP's super globals.
  7686. *
  7687. * @return static
  7688. * @static
  7689. */
  7690. public static function createFromGlobals()
  7691. {
  7692. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7693. return \Illuminate\Http\Request::createFromGlobals();
  7694. }
  7695. /**
  7696. * Creates a Request based on a given URI and configuration.
  7697. *
  7698. * The information contained in the URI always take precedence
  7699. * over the other information (server and parameters).
  7700. *
  7701. * @param string $uri The URI
  7702. * @param string $method The HTTP method
  7703. * @param array $parameters The query (GET) or request (POST) parameters
  7704. * @param array $cookies The request cookies ($_COOKIE)
  7705. * @param array $files The request files ($_FILES)
  7706. * @param array $server The server parameters ($_SERVER)
  7707. * @param string|resource|null $content The raw body data
  7708. * @return static
  7709. * @static
  7710. */
  7711. public static function create($uri, $method = 'GET', $parameters = [], $cookies = [], $files = [], $server = [], $content = null)
  7712. {
  7713. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7714. return \Illuminate\Http\Request::create($uri, $method, $parameters, $cookies, $files, $server, $content);
  7715. }
  7716. /**
  7717. * Sets a callable able to create a Request instance.
  7718. *
  7719. * This is mainly useful when you need to override the Request class
  7720. * to keep BC with an existing system. It should not be used for any
  7721. * other purpose.
  7722. *
  7723. * @param callable|null $callable A PHP callable
  7724. * @static
  7725. */
  7726. public static function setFactory($callable)
  7727. {
  7728. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7729. return \Illuminate\Http\Request::setFactory($callable);
  7730. }
  7731. /**
  7732. * Overrides the PHP global variables according to this request instance.
  7733. *
  7734. * It overrides $_GET, $_POST, $_REQUEST, $_SERVER, $_COOKIE.
  7735. * $_FILES is never overridden, see rfc1867
  7736. *
  7737. * @static
  7738. */
  7739. public static function overrideGlobals()
  7740. {
  7741. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7742. /** @var \Illuminate\Http\Request $instance */
  7743. return $instance->overrideGlobals();
  7744. }
  7745. /**
  7746. * Sets a list of trusted proxies.
  7747. *
  7748. * You should only list the reverse proxies that you manage directly.
  7749. *
  7750. * @param array $proxies A list of trusted proxies
  7751. * @param int $trustedHeaderSet A bit field of Request::HEADER_*, to set which headers to trust from your proxies
  7752. * @throws \InvalidArgumentException When $trustedHeaderSet is invalid
  7753. * @static
  7754. */
  7755. public static function setTrustedProxies($proxies)
  7756. {
  7757. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7758. return \Illuminate\Http\Request::setTrustedProxies($proxies);
  7759. }
  7760. /**
  7761. * Gets the list of trusted proxies.
  7762. *
  7763. * @return array An array of trusted proxies
  7764. * @static
  7765. */
  7766. public static function getTrustedProxies()
  7767. {
  7768. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7769. return \Illuminate\Http\Request::getTrustedProxies();
  7770. }
  7771. /**
  7772. * Gets the set of trusted headers from trusted proxies.
  7773. *
  7774. * @return int A bit field of Request::HEADER_* that defines which headers are trusted from your proxies
  7775. * @static
  7776. */
  7777. public static function getTrustedHeaderSet()
  7778. {
  7779. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7780. return \Illuminate\Http\Request::getTrustedHeaderSet();
  7781. }
  7782. /**
  7783. * Sets a list of trusted host patterns.
  7784. *
  7785. * You should only list the hosts you manage using regexs.
  7786. *
  7787. * @param array $hostPatterns A list of trusted host patterns
  7788. * @static
  7789. */
  7790. public static function setTrustedHosts($hostPatterns)
  7791. {
  7792. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7793. return \Illuminate\Http\Request::setTrustedHosts($hostPatterns);
  7794. }
  7795. /**
  7796. * Gets the list of trusted host patterns.
  7797. *
  7798. * @return array An array of trusted host patterns
  7799. * @static
  7800. */
  7801. public static function getTrustedHosts()
  7802. {
  7803. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7804. return \Illuminate\Http\Request::getTrustedHosts();
  7805. }
  7806. /**
  7807. * Sets the name for trusted headers.
  7808. *
  7809. * The following header keys are supported:
  7810. *
  7811. * * Request::HEADER_CLIENT_IP: defaults to X-Forwarded-For (see getClientIp())
  7812. * * Request::HEADER_CLIENT_HOST: defaults to X-Forwarded-Host (see getHost())
  7813. * * Request::HEADER_CLIENT_PORT: defaults to X-Forwarded-Port (see getPort())
  7814. * * Request::HEADER_CLIENT_PROTO: defaults to X-Forwarded-Proto (see getScheme() and isSecure())
  7815. * * Request::HEADER_FORWARDED: defaults to Forwarded (see RFC 7239)
  7816. *
  7817. * Setting an empty value allows to disable the trusted header for the given key.
  7818. *
  7819. * @param string $key The header key
  7820. * @param string $value The header name
  7821. * @throws \InvalidArgumentException
  7822. * @deprecated since version 3.3, to be removed in 4.0. Use the $trustedHeaderSet argument of the Request::setTrustedProxies() method instead.
  7823. * @static
  7824. */
  7825. public static function setTrustedHeaderName($key, $value)
  7826. {
  7827. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7828. return \Illuminate\Http\Request::setTrustedHeaderName($key, $value);
  7829. }
  7830. /**
  7831. * Gets the trusted proxy header name.
  7832. *
  7833. * @param string $key The header key
  7834. * @return string The header name
  7835. * @throws \InvalidArgumentException
  7836. * @deprecated since version 3.3, to be removed in 4.0. Use the Request::getTrustedHeaderSet() method instead.
  7837. * @static
  7838. */
  7839. public static function getTrustedHeaderName($key)
  7840. {
  7841. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7842. return \Illuminate\Http\Request::getTrustedHeaderName($key);
  7843. }
  7844. /**
  7845. * Normalizes a query string.
  7846. *
  7847. * It builds a normalized query string, where keys/value pairs are alphabetized,
  7848. * have consistent escaping and unneeded delimiters are removed.
  7849. *
  7850. * @param string $qs Query string
  7851. * @return string A normalized query string for the Request
  7852. * @static
  7853. */
  7854. public static function normalizeQueryString($qs)
  7855. {
  7856. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7857. return \Illuminate\Http\Request::normalizeQueryString($qs);
  7858. }
  7859. /**
  7860. * Enables support for the _method request parameter to determine the intended HTTP method.
  7861. *
  7862. * Be warned that enabling this feature might lead to CSRF issues in your code.
  7863. * Check that you are using CSRF tokens when required.
  7864. * If the HTTP method parameter override is enabled, an html-form with method "POST" can be altered
  7865. * and used to send a "PUT" or "DELETE" request via the _method request parameter.
  7866. * If these methods are not protected against CSRF, this presents a possible vulnerability.
  7867. *
  7868. * The HTTP method can only be overridden when the real HTTP method is POST.
  7869. *
  7870. * @static
  7871. */
  7872. public static function enableHttpMethodParameterOverride()
  7873. {
  7874. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7875. return \Illuminate\Http\Request::enableHttpMethodParameterOverride();
  7876. }
  7877. /**
  7878. * Checks whether support for the _method request parameter is enabled.
  7879. *
  7880. * @return bool True when the _method request parameter is enabled, false otherwise
  7881. * @static
  7882. */
  7883. public static function getHttpMethodParameterOverride()
  7884. {
  7885. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7886. return \Illuminate\Http\Request::getHttpMethodParameterOverride();
  7887. }
  7888. /**
  7889. * Gets a "parameter" value from any bag.
  7890. *
  7891. * This method is mainly useful for libraries that want to provide some flexibility. If you don't need the
  7892. * flexibility in controllers, it is better to explicitly get request parameters from the appropriate
  7893. * public property instead (attributes, query, request).
  7894. *
  7895. * Order of precedence: PATH (routing placeholders or custom attributes), GET, BODY
  7896. *
  7897. * @param string $key The key
  7898. * @param mixed $default The default value if the parameter key does not exist
  7899. * @return mixed
  7900. * @static
  7901. */
  7902. public static function get($key, $default = null)
  7903. {
  7904. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7905. /** @var \Illuminate\Http\Request $instance */
  7906. return $instance->get($key, $default);
  7907. }
  7908. /**
  7909. * Gets the Session.
  7910. *
  7911. * @return \Symfony\Component\HttpFoundation\SessionInterface|null The session
  7912. * @static
  7913. */
  7914. public static function getSession()
  7915. {
  7916. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7917. /** @var \Illuminate\Http\Request $instance */
  7918. return $instance->getSession();
  7919. }
  7920. /**
  7921. * Whether the request contains a Session which was started in one of the
  7922. * previous requests.
  7923. *
  7924. * @return bool
  7925. * @static
  7926. */
  7927. public static function hasPreviousSession()
  7928. {
  7929. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7930. /** @var \Illuminate\Http\Request $instance */
  7931. return $instance->hasPreviousSession();
  7932. }
  7933. /**
  7934. * Whether the request contains a Session object.
  7935. *
  7936. * This method does not give any information about the state of the session object,
  7937. * like whether the session is started or not. It is just a way to check if this Request
  7938. * is associated with a Session instance.
  7939. *
  7940. * @return bool true when the Request contains a Session object, false otherwise
  7941. * @static
  7942. */
  7943. public static function hasSession()
  7944. {
  7945. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7946. /** @var \Illuminate\Http\Request $instance */
  7947. return $instance->hasSession();
  7948. }
  7949. /**
  7950. * Sets the Session.
  7951. *
  7952. * @param \Symfony\Component\HttpFoundation\SessionInterface $session The Session
  7953. * @static
  7954. */
  7955. public static function setSession($session)
  7956. {
  7957. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7958. /** @var \Illuminate\Http\Request $instance */
  7959. return $instance->setSession($session);
  7960. }
  7961. /**
  7962. * Returns the client IP addresses.
  7963. *
  7964. * In the returned array the most trusted IP address is first, and the
  7965. * least trusted one last. The "real" client IP address is the last one,
  7966. * but this is also the least trusted one. Trusted proxies are stripped.
  7967. *
  7968. * Use this method carefully; you should use getClientIp() instead.
  7969. *
  7970. * @return array The client IP addresses
  7971. * @see getClientIp()
  7972. * @static
  7973. */
  7974. public static function getClientIps()
  7975. {
  7976. //Method inherited from \Symfony\Component\HttpFoundation\Request
  7977. /** @var \Illuminate\Http\Request $instance */
  7978. return $instance->getClientIps();
  7979. }
  7980. /**
  7981. * Returns the client IP address.
  7982. *
  7983. * This method can read the client IP address from the "X-Forwarded-For" header
  7984. * when trusted proxies were set via "setTrustedProxies()". The "X-Forwarded-For"
  7985. * header value is a comma+space separated list of IP addresses, the left-most
  7986. * being the original client, and each successive proxy that passed the request
  7987. * adding the IP address where it received the request from.
  7988. *
  7989. * If your reverse proxy uses a different header name than "X-Forwarded-For",
  7990. * ("Client-Ip" for instance), configure it via the $trustedHeaderSet
  7991. * argument of the Request::setTrustedProxies() method instead.
  7992. *
  7993. * @return string|null The client IP address
  7994. * @see getClientIps()
  7995. * @see https://wikipedia.org/wiki/X-Forwarded-For
  7996. * @static
  7997. */
  7998. public static function getClientIp()
  7999. {
  8000. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8001. /** @var \Illuminate\Http\Request $instance */
  8002. return $instance->getClientIp();
  8003. }
  8004. /**
  8005. * Returns current script name.
  8006. *
  8007. * @return string
  8008. * @static
  8009. */
  8010. public static function getScriptName()
  8011. {
  8012. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8013. /** @var \Illuminate\Http\Request $instance */
  8014. return $instance->getScriptName();
  8015. }
  8016. /**
  8017. * Returns the path being requested relative to the executed script.
  8018. *
  8019. * The path info always starts with a /.
  8020. *
  8021. * Suppose this request is instantiated from /mysite on localhost:
  8022. *
  8023. * * http://localhost/mysite returns an empty string
  8024. * * http://localhost/mysite/about returns '/about'
  8025. * * http://localhost/mysite/enco%20ded returns '/enco%20ded'
  8026. * * http://localhost/mysite/about?var=1 returns '/about'
  8027. *
  8028. * @return string The raw path (i.e. not urldecoded)
  8029. * @static
  8030. */
  8031. public static function getPathInfo()
  8032. {
  8033. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8034. /** @var \Illuminate\Http\Request $instance */
  8035. return $instance->getPathInfo();
  8036. }
  8037. /**
  8038. * Returns the root path from which this request is executed.
  8039. *
  8040. * Suppose that an index.php file instantiates this request object:
  8041. *
  8042. * * http://localhost/index.php returns an empty string
  8043. * * http://localhost/index.php/page returns an empty string
  8044. * * http://localhost/web/index.php returns '/web'
  8045. * * http://localhost/we%20b/index.php returns '/we%20b'
  8046. *
  8047. * @return string The raw path (i.e. not urldecoded)
  8048. * @static
  8049. */
  8050. public static function getBasePath()
  8051. {
  8052. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8053. /** @var \Illuminate\Http\Request $instance */
  8054. return $instance->getBasePath();
  8055. }
  8056. /**
  8057. * Returns the root URL from which this request is executed.
  8058. *
  8059. * The base URL never ends with a /.
  8060. *
  8061. * This is similar to getBasePath(), except that it also includes the
  8062. * script filename (e.g. index.php) if one exists.
  8063. *
  8064. * @return string The raw URL (i.e. not urldecoded)
  8065. * @static
  8066. */
  8067. public static function getBaseUrl()
  8068. {
  8069. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8070. /** @var \Illuminate\Http\Request $instance */
  8071. return $instance->getBaseUrl();
  8072. }
  8073. /**
  8074. * Gets the request's scheme.
  8075. *
  8076. * @return string
  8077. * @static
  8078. */
  8079. public static function getScheme()
  8080. {
  8081. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8082. /** @var \Illuminate\Http\Request $instance */
  8083. return $instance->getScheme();
  8084. }
  8085. /**
  8086. * Returns the port on which the request is made.
  8087. *
  8088. * This method can read the client port from the "X-Forwarded-Port" header
  8089. * when trusted proxies were set via "setTrustedProxies()".
  8090. *
  8091. * The "X-Forwarded-Port" header must contain the client port.
  8092. *
  8093. * If your reverse proxy uses a different header name than "X-Forwarded-Port",
  8094. * configure it via via the $trustedHeaderSet argument of the
  8095. * Request::setTrustedProxies() method instead.
  8096. *
  8097. * @return int|string can be a string if fetched from the server bag
  8098. * @static
  8099. */
  8100. public static function getPort()
  8101. {
  8102. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8103. /** @var \Illuminate\Http\Request $instance */
  8104. return $instance->getPort();
  8105. }
  8106. /**
  8107. * Returns the user.
  8108. *
  8109. * @return string|null
  8110. * @static
  8111. */
  8112. public static function getUser()
  8113. {
  8114. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8115. /** @var \Illuminate\Http\Request $instance */
  8116. return $instance->getUser();
  8117. }
  8118. /**
  8119. * Returns the password.
  8120. *
  8121. * @return string|null
  8122. * @static
  8123. */
  8124. public static function getPassword()
  8125. {
  8126. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8127. /** @var \Illuminate\Http\Request $instance */
  8128. return $instance->getPassword();
  8129. }
  8130. /**
  8131. * Gets the user info.
  8132. *
  8133. * @return string A user name and, optionally, scheme-specific information about how to gain authorization to access the server
  8134. * @static
  8135. */
  8136. public static function getUserInfo()
  8137. {
  8138. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8139. /** @var \Illuminate\Http\Request $instance */
  8140. return $instance->getUserInfo();
  8141. }
  8142. /**
  8143. * Returns the HTTP host being requested.
  8144. *
  8145. * The port name will be appended to the host if it's non-standard.
  8146. *
  8147. * @return string
  8148. * @static
  8149. */
  8150. public static function getHttpHost()
  8151. {
  8152. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8153. /** @var \Illuminate\Http\Request $instance */
  8154. return $instance->getHttpHost();
  8155. }
  8156. /**
  8157. * Returns the requested URI (path and query string).
  8158. *
  8159. * @return string The raw URI (i.e. not URI decoded)
  8160. * @static
  8161. */
  8162. public static function getRequestUri()
  8163. {
  8164. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8165. /** @var \Illuminate\Http\Request $instance */
  8166. return $instance->getRequestUri();
  8167. }
  8168. /**
  8169. * Gets the scheme and HTTP host.
  8170. *
  8171. * If the URL was called with basic authentication, the user
  8172. * and the password are not added to the generated string.
  8173. *
  8174. * @return string The scheme and HTTP host
  8175. * @static
  8176. */
  8177. public static function getSchemeAndHttpHost()
  8178. {
  8179. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8180. /** @var \Illuminate\Http\Request $instance */
  8181. return $instance->getSchemeAndHttpHost();
  8182. }
  8183. /**
  8184. * Generates a normalized URI (URL) for the Request.
  8185. *
  8186. * @return string A normalized URI (URL) for the Request
  8187. * @see getQueryString()
  8188. * @static
  8189. */
  8190. public static function getUri()
  8191. {
  8192. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8193. /** @var \Illuminate\Http\Request $instance */
  8194. return $instance->getUri();
  8195. }
  8196. /**
  8197. * Generates a normalized URI for the given path.
  8198. *
  8199. * @param string $path A path to use instead of the current one
  8200. * @return string The normalized URI for the path
  8201. * @static
  8202. */
  8203. public static function getUriForPath($path)
  8204. {
  8205. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8206. /** @var \Illuminate\Http\Request $instance */
  8207. return $instance->getUriForPath($path);
  8208. }
  8209. /**
  8210. * Returns the path as relative reference from the current Request path.
  8211. *
  8212. * Only the URIs path component (no schema, host etc.) is relevant and must be given.
  8213. * Both paths must be absolute and not contain relative parts.
  8214. * Relative URLs from one resource to another are useful when generating self-contained downloadable document archives.
  8215. * Furthermore, they can be used to reduce the link size in documents.
  8216. *
  8217. * Example target paths, given a base path of "/a/b/c/d":
  8218. * - "/a/b/c/d" -> ""
  8219. * - "/a/b/c/" -> "./"
  8220. * - "/a/b/" -> "../"
  8221. * - "/a/b/c/other" -> "other"
  8222. * - "/a/x/y" -> "../../x/y"
  8223. *
  8224. * @param string $path The target path
  8225. * @return string The relative target path
  8226. * @static
  8227. */
  8228. public static function getRelativeUriForPath($path)
  8229. {
  8230. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8231. /** @var \Illuminate\Http\Request $instance */
  8232. return $instance->getRelativeUriForPath($path);
  8233. }
  8234. /**
  8235. * Generates the normalized query string for the Request.
  8236. *
  8237. * It builds a normalized query string, where keys/value pairs are alphabetized
  8238. * and have consistent escaping.
  8239. *
  8240. * @return string|null A normalized query string for the Request
  8241. * @static
  8242. */
  8243. public static function getQueryString()
  8244. {
  8245. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8246. /** @var \Illuminate\Http\Request $instance */
  8247. return $instance->getQueryString();
  8248. }
  8249. /**
  8250. * Checks whether the request is secure or not.
  8251. *
  8252. * This method can read the client protocol from the "X-Forwarded-Proto" header
  8253. * when trusted proxies were set via "setTrustedProxies()".
  8254. *
  8255. * The "X-Forwarded-Proto" header must contain the protocol: "https" or "http".
  8256. *
  8257. * If your reverse proxy uses a different header name than "X-Forwarded-Proto"
  8258. * ("SSL_HTTPS" for instance), configure it via the $trustedHeaderSet
  8259. * argument of the Request::setTrustedProxies() method instead.
  8260. *
  8261. * @return bool
  8262. * @static
  8263. */
  8264. public static function isSecure()
  8265. {
  8266. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8267. /** @var \Illuminate\Http\Request $instance */
  8268. return $instance->isSecure();
  8269. }
  8270. /**
  8271. * Returns the host name.
  8272. *
  8273. * This method can read the client host name from the "X-Forwarded-Host" header
  8274. * when trusted proxies were set via "setTrustedProxies()".
  8275. *
  8276. * The "X-Forwarded-Host" header must contain the client host name.
  8277. *
  8278. * If your reverse proxy uses a different header name than "X-Forwarded-Host",
  8279. * configure it via the $trustedHeaderSet argument of the
  8280. * Request::setTrustedProxies() method instead.
  8281. *
  8282. * @return string
  8283. * @throws SuspiciousOperationException when the host name is invalid or not trusted
  8284. * @static
  8285. */
  8286. public static function getHost()
  8287. {
  8288. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8289. /** @var \Illuminate\Http\Request $instance */
  8290. return $instance->getHost();
  8291. }
  8292. /**
  8293. * Sets the request method.
  8294. *
  8295. * @param string $method
  8296. * @static
  8297. */
  8298. public static function setMethod($method)
  8299. {
  8300. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8301. /** @var \Illuminate\Http\Request $instance */
  8302. return $instance->setMethod($method);
  8303. }
  8304. /**
  8305. * Gets the request "intended" method.
  8306. *
  8307. * If the X-HTTP-Method-Override header is set, and if the method is a POST,
  8308. * then it is used to determine the "real" intended HTTP method.
  8309. *
  8310. * The _method request parameter can also be used to determine the HTTP method,
  8311. * but only if enableHttpMethodParameterOverride() has been called.
  8312. *
  8313. * The method is always an uppercased string.
  8314. *
  8315. * @return string The request method
  8316. * @see getRealMethod()
  8317. * @static
  8318. */
  8319. public static function getMethod()
  8320. {
  8321. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8322. /** @var \Illuminate\Http\Request $instance */
  8323. return $instance->getMethod();
  8324. }
  8325. /**
  8326. * Gets the "real" request method.
  8327. *
  8328. * @return string The request method
  8329. * @see getMethod()
  8330. * @static
  8331. */
  8332. public static function getRealMethod()
  8333. {
  8334. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8335. /** @var \Illuminate\Http\Request $instance */
  8336. return $instance->getRealMethod();
  8337. }
  8338. /**
  8339. * Gets the mime type associated with the format.
  8340. *
  8341. * @param string $format The format
  8342. * @return string|null The associated mime type (null if not found)
  8343. * @static
  8344. */
  8345. public static function getMimeType($format)
  8346. {
  8347. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8348. /** @var \Illuminate\Http\Request $instance */
  8349. return $instance->getMimeType($format);
  8350. }
  8351. /**
  8352. * Gets the mime types associated with the format.
  8353. *
  8354. * @param string $format The format
  8355. * @return array The associated mime types
  8356. * @static
  8357. */
  8358. public static function getMimeTypes($format)
  8359. {
  8360. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8361. return \Illuminate\Http\Request::getMimeTypes($format);
  8362. }
  8363. /**
  8364. * Gets the format associated with the mime type.
  8365. *
  8366. * @param string $mimeType The associated mime type
  8367. * @return string|null The format (null if not found)
  8368. * @static
  8369. */
  8370. public static function getFormat($mimeType)
  8371. {
  8372. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8373. /** @var \Illuminate\Http\Request $instance */
  8374. return $instance->getFormat($mimeType);
  8375. }
  8376. /**
  8377. * Associates a format with mime types.
  8378. *
  8379. * @param string $format The format
  8380. * @param string|array $mimeTypes The associated mime types (the preferred one must be the first as it will be used as the content type)
  8381. * @static
  8382. */
  8383. public static function setFormat($format, $mimeTypes)
  8384. {
  8385. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8386. /** @var \Illuminate\Http\Request $instance */
  8387. return $instance->setFormat($format, $mimeTypes);
  8388. }
  8389. /**
  8390. * Gets the request format.
  8391. *
  8392. * Here is the process to determine the format:
  8393. *
  8394. * * format defined by the user (with setRequestFormat())
  8395. * * _format request attribute
  8396. * * $default
  8397. *
  8398. * @param string|null $default The default format
  8399. * @return string|null The request format
  8400. * @static
  8401. */
  8402. public static function getRequestFormat($default = 'html')
  8403. {
  8404. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8405. /** @var \Illuminate\Http\Request $instance */
  8406. return $instance->getRequestFormat($default);
  8407. }
  8408. /**
  8409. * Sets the request format.
  8410. *
  8411. * @param string $format The request format
  8412. * @static
  8413. */
  8414. public static function setRequestFormat($format)
  8415. {
  8416. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8417. /** @var \Illuminate\Http\Request $instance */
  8418. return $instance->setRequestFormat($format);
  8419. }
  8420. /**
  8421. * Gets the format associated with the request.
  8422. *
  8423. * @return string|null The format (null if no content type is present)
  8424. * @static
  8425. */
  8426. public static function getContentType()
  8427. {
  8428. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8429. /** @var \Illuminate\Http\Request $instance */
  8430. return $instance->getContentType();
  8431. }
  8432. /**
  8433. * Sets the default locale.
  8434. *
  8435. * @param string $locale
  8436. * @static
  8437. */
  8438. public static function setDefaultLocale($locale)
  8439. {
  8440. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8441. /** @var \Illuminate\Http\Request $instance */
  8442. return $instance->setDefaultLocale($locale);
  8443. }
  8444. /**
  8445. * Get the default locale.
  8446. *
  8447. * @return string
  8448. * @static
  8449. */
  8450. public static function getDefaultLocale()
  8451. {
  8452. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8453. /** @var \Illuminate\Http\Request $instance */
  8454. return $instance->getDefaultLocale();
  8455. }
  8456. /**
  8457. * Sets the locale.
  8458. *
  8459. * @param string $locale
  8460. * @static
  8461. */
  8462. public static function setLocale($locale)
  8463. {
  8464. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8465. /** @var \Illuminate\Http\Request $instance */
  8466. return $instance->setLocale($locale);
  8467. }
  8468. /**
  8469. * Get the locale.
  8470. *
  8471. * @return string
  8472. * @static
  8473. */
  8474. public static function getLocale()
  8475. {
  8476. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8477. /** @var \Illuminate\Http\Request $instance */
  8478. return $instance->getLocale();
  8479. }
  8480. /**
  8481. * Checks if the request method is of specified type.
  8482. *
  8483. * @param string $method Uppercase request method (GET, POST etc)
  8484. * @return bool
  8485. * @static
  8486. */
  8487. public static function isMethod($method)
  8488. {
  8489. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8490. /** @var \Illuminate\Http\Request $instance */
  8491. return $instance->isMethod($method);
  8492. }
  8493. /**
  8494. * Checks whether or not the method is safe.
  8495. *
  8496. * @see https://tools.ietf.org/html/rfc7231#section-4.2.1
  8497. * @param bool $andCacheable Adds the additional condition that the method should be cacheable. True by default.
  8498. * @return bool
  8499. * @static
  8500. */
  8501. public static function isMethodSafe()
  8502. {
  8503. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8504. /** @var \Illuminate\Http\Request $instance */
  8505. return $instance->isMethodSafe();
  8506. }
  8507. /**
  8508. * Checks whether or not the method is idempotent.
  8509. *
  8510. * @return bool
  8511. * @static
  8512. */
  8513. public static function isMethodIdempotent()
  8514. {
  8515. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8516. /** @var \Illuminate\Http\Request $instance */
  8517. return $instance->isMethodIdempotent();
  8518. }
  8519. /**
  8520. * Checks whether the method is cacheable or not.
  8521. *
  8522. * @see https://tools.ietf.org/html/rfc7231#section-4.2.3
  8523. * @return bool True for GET and HEAD, false otherwise
  8524. * @static
  8525. */
  8526. public static function isMethodCacheable()
  8527. {
  8528. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8529. /** @var \Illuminate\Http\Request $instance */
  8530. return $instance->isMethodCacheable();
  8531. }
  8532. /**
  8533. * Returns the protocol version.
  8534. *
  8535. * If the application is behind a proxy, the protocol version used in the
  8536. * requests between the client and the proxy and between the proxy and the
  8537. * server might be different. This returns the former (from the "Via" header)
  8538. * if the proxy is trusted (see "setTrustedProxies()"), otherwise it returns
  8539. * the latter (from the "SERVER_PROTOCOL" server parameter).
  8540. *
  8541. * @return string
  8542. * @static
  8543. */
  8544. public static function getProtocolVersion()
  8545. {
  8546. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8547. /** @var \Illuminate\Http\Request $instance */
  8548. return $instance->getProtocolVersion();
  8549. }
  8550. /**
  8551. * Returns the request body content.
  8552. *
  8553. * @param bool $asResource If true, a resource will be returned
  8554. * @return string|resource The request body content or a resource to read the body stream
  8555. * @throws \LogicException
  8556. * @static
  8557. */
  8558. public static function getContent($asResource = false)
  8559. {
  8560. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8561. /** @var \Illuminate\Http\Request $instance */
  8562. return $instance->getContent($asResource);
  8563. }
  8564. /**
  8565. * Gets the Etags.
  8566. *
  8567. * @return array The entity tags
  8568. * @static
  8569. */
  8570. public static function getETags()
  8571. {
  8572. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8573. /** @var \Illuminate\Http\Request $instance */
  8574. return $instance->getETags();
  8575. }
  8576. /**
  8577. *
  8578. *
  8579. * @return bool
  8580. * @static
  8581. */
  8582. public static function isNoCache()
  8583. {
  8584. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8585. /** @var \Illuminate\Http\Request $instance */
  8586. return $instance->isNoCache();
  8587. }
  8588. /**
  8589. * Returns the preferred language.
  8590. *
  8591. * @param array $locales An array of ordered available locales
  8592. * @return string|null The preferred locale
  8593. * @static
  8594. */
  8595. public static function getPreferredLanguage($locales = null)
  8596. {
  8597. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8598. /** @var \Illuminate\Http\Request $instance */
  8599. return $instance->getPreferredLanguage($locales);
  8600. }
  8601. /**
  8602. * Gets a list of languages acceptable by the client browser.
  8603. *
  8604. * @return array Languages ordered in the user browser preferences
  8605. * @static
  8606. */
  8607. public static function getLanguages()
  8608. {
  8609. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8610. /** @var \Illuminate\Http\Request $instance */
  8611. return $instance->getLanguages();
  8612. }
  8613. /**
  8614. * Gets a list of charsets acceptable by the client browser.
  8615. *
  8616. * @return array List of charsets in preferable order
  8617. * @static
  8618. */
  8619. public static function getCharsets()
  8620. {
  8621. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8622. /** @var \Illuminate\Http\Request $instance */
  8623. return $instance->getCharsets();
  8624. }
  8625. /**
  8626. * Gets a list of encodings acceptable by the client browser.
  8627. *
  8628. * @return array List of encodings in preferable order
  8629. * @static
  8630. */
  8631. public static function getEncodings()
  8632. {
  8633. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8634. /** @var \Illuminate\Http\Request $instance */
  8635. return $instance->getEncodings();
  8636. }
  8637. /**
  8638. * Gets a list of content types acceptable by the client browser.
  8639. *
  8640. * @return array List of content types in preferable order
  8641. * @static
  8642. */
  8643. public static function getAcceptableContentTypes()
  8644. {
  8645. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8646. /** @var \Illuminate\Http\Request $instance */
  8647. return $instance->getAcceptableContentTypes();
  8648. }
  8649. /**
  8650. * Returns true if the request is a XMLHttpRequest.
  8651. *
  8652. * It works if your JavaScript library sets an X-Requested-With HTTP header.
  8653. * It is known to work with common JavaScript frameworks:
  8654. *
  8655. * @see https://wikipedia.org/wiki/List_of_Ajax_frameworks#JavaScript
  8656. * @return bool true if the request is an XMLHttpRequest, false otherwise
  8657. * @static
  8658. */
  8659. public static function isXmlHttpRequest()
  8660. {
  8661. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8662. /** @var \Illuminate\Http\Request $instance */
  8663. return $instance->isXmlHttpRequest();
  8664. }
  8665. /**
  8666. * Indicates whether this request originated from a trusted proxy.
  8667. *
  8668. * This can be useful to determine whether or not to trust the
  8669. * contents of a proxy-specific header.
  8670. *
  8671. * @return bool true if the request came from a trusted proxy, false otherwise
  8672. * @static
  8673. */
  8674. public static function isFromTrustedProxy()
  8675. {
  8676. //Method inherited from \Symfony\Component\HttpFoundation\Request
  8677. /** @var \Illuminate\Http\Request $instance */
  8678. return $instance->isFromTrustedProxy();
  8679. }
  8680. /**
  8681. * Determine if the given content types match.
  8682. *
  8683. * @param string $actual
  8684. * @param string $type
  8685. * @return bool
  8686. * @static
  8687. */
  8688. public static function matchesType($actual, $type)
  8689. {
  8690. return \Illuminate\Http\Request::matchesType($actual, $type);
  8691. }
  8692. /**
  8693. * Determine if the request is sending JSON.
  8694. *
  8695. * @return bool
  8696. * @static
  8697. */
  8698. public static function isJson()
  8699. {
  8700. /** @var \Illuminate\Http\Request $instance */
  8701. return $instance->isJson();
  8702. }
  8703. /**
  8704. * Determine if the current request probably expects a JSON response.
  8705. *
  8706. * @return bool
  8707. * @static
  8708. */
  8709. public static function expectsJson()
  8710. {
  8711. /** @var \Illuminate\Http\Request $instance */
  8712. return $instance->expectsJson();
  8713. }
  8714. /**
  8715. * Determine if the current request is asking for JSON in return.
  8716. *
  8717. * @return bool
  8718. * @static
  8719. */
  8720. public static function wantsJson()
  8721. {
  8722. /** @var \Illuminate\Http\Request $instance */
  8723. return $instance->wantsJson();
  8724. }
  8725. /**
  8726. * Determines whether the current requests accepts a given content type.
  8727. *
  8728. * @param string|array $contentTypes
  8729. * @return bool
  8730. * @static
  8731. */
  8732. public static function accepts($contentTypes)
  8733. {
  8734. /** @var \Illuminate\Http\Request $instance */
  8735. return $instance->accepts($contentTypes);
  8736. }
  8737. /**
  8738. * Return the most suitable content type from the given array based on content negotiation.
  8739. *
  8740. * @param string|array $contentTypes
  8741. * @return string|null
  8742. * @static
  8743. */
  8744. public static function prefers($contentTypes)
  8745. {
  8746. /** @var \Illuminate\Http\Request $instance */
  8747. return $instance->prefers($contentTypes);
  8748. }
  8749. /**
  8750. * Determines whether a request accepts JSON.
  8751. *
  8752. * @return bool
  8753. * @static
  8754. */
  8755. public static function acceptsJson()
  8756. {
  8757. /** @var \Illuminate\Http\Request $instance */
  8758. return $instance->acceptsJson();
  8759. }
  8760. /**
  8761. * Determines whether a request accepts HTML.
  8762. *
  8763. * @return bool
  8764. * @static
  8765. */
  8766. public static function acceptsHtml()
  8767. {
  8768. /** @var \Illuminate\Http\Request $instance */
  8769. return $instance->acceptsHtml();
  8770. }
  8771. /**
  8772. * Get the data format expected in the response.
  8773. *
  8774. * @param string $default
  8775. * @return string
  8776. * @static
  8777. */
  8778. public static function format($default = 'html')
  8779. {
  8780. /** @var \Illuminate\Http\Request $instance */
  8781. return $instance->format($default);
  8782. }
  8783. /**
  8784. * Retrieve an old input item.
  8785. *
  8786. * @param string $key
  8787. * @param string|array|null $default
  8788. * @return string|array
  8789. * @static
  8790. */
  8791. public static function old($key = null, $default = null)
  8792. {
  8793. /** @var \Illuminate\Http\Request $instance */
  8794. return $instance->old($key, $default);
  8795. }
  8796. /**
  8797. * Flash the input for the current request to the session.
  8798. *
  8799. * @return void
  8800. * @static
  8801. */
  8802. public static function flash()
  8803. {
  8804. /** @var \Illuminate\Http\Request $instance */
  8805. $instance->flash();
  8806. }
  8807. /**
  8808. * Flash only some of the input to the session.
  8809. *
  8810. * @param array|mixed $keys
  8811. * @return void
  8812. * @static
  8813. */
  8814. public static function flashOnly($keys)
  8815. {
  8816. /** @var \Illuminate\Http\Request $instance */
  8817. $instance->flashOnly($keys);
  8818. }
  8819. /**
  8820. * Flash only some of the input to the session.
  8821. *
  8822. * @param array|mixed $keys
  8823. * @return void
  8824. * @static
  8825. */
  8826. public static function flashExcept($keys)
  8827. {
  8828. /** @var \Illuminate\Http\Request $instance */
  8829. $instance->flashExcept($keys);
  8830. }
  8831. /**
  8832. * Flush all of the old input from the session.
  8833. *
  8834. * @return void
  8835. * @static
  8836. */
  8837. public static function flush()
  8838. {
  8839. /** @var \Illuminate\Http\Request $instance */
  8840. $instance->flush();
  8841. }
  8842. /**
  8843. * Retrieve a server variable from the request.
  8844. *
  8845. * @param string $key
  8846. * @param string|array|null $default
  8847. * @return string|array
  8848. * @static
  8849. */
  8850. public static function server($key = null, $default = null)
  8851. {
  8852. /** @var \Illuminate\Http\Request $instance */
  8853. return $instance->server($key, $default);
  8854. }
  8855. /**
  8856. * Determine if a header is set on the request.
  8857. *
  8858. * @param string $key
  8859. * @return bool
  8860. * @static
  8861. */
  8862. public static function hasHeader($key)
  8863. {
  8864. /** @var \Illuminate\Http\Request $instance */
  8865. return $instance->hasHeader($key);
  8866. }
  8867. /**
  8868. * Retrieve a header from the request.
  8869. *
  8870. * @param string $key
  8871. * @param string|array|null $default
  8872. * @return string|array
  8873. * @static
  8874. */
  8875. public static function header($key = null, $default = null)
  8876. {
  8877. /** @var \Illuminate\Http\Request $instance */
  8878. return $instance->header($key, $default);
  8879. }
  8880. /**
  8881. * Get the bearer token from the request headers.
  8882. *
  8883. * @return string|null
  8884. * @static
  8885. */
  8886. public static function bearerToken()
  8887. {
  8888. /** @var \Illuminate\Http\Request $instance */
  8889. return $instance->bearerToken();
  8890. }
  8891. /**
  8892. * Determine if the request contains a given input item key.
  8893. *
  8894. * @param string|array $key
  8895. * @return bool
  8896. * @static
  8897. */
  8898. public static function exists($key)
  8899. {
  8900. /** @var \Illuminate\Http\Request $instance */
  8901. return $instance->exists($key);
  8902. }
  8903. /**
  8904. * Determine if the request contains a given input item key.
  8905. *
  8906. * @param string|array $key
  8907. * @return bool
  8908. * @static
  8909. */
  8910. public static function has($key)
  8911. {
  8912. /** @var \Illuminate\Http\Request $instance */
  8913. return $instance->has($key);
  8914. }
  8915. /**
  8916. * Determine if the request contains any of the given inputs.
  8917. *
  8918. * @param mixed $key
  8919. * @return bool
  8920. * @static
  8921. */
  8922. public static function hasAny(...$keys)
  8923. {
  8924. /** @var \Illuminate\Http\Request $instance */
  8925. return $instance->hasAny(...$keys);
  8926. }
  8927. /**
  8928. * Determine if the request contains a non-empty value for an input item.
  8929. *
  8930. * @param string|array $key
  8931. * @return bool
  8932. * @static
  8933. */
  8934. public static function filled($key)
  8935. {
  8936. /** @var \Illuminate\Http\Request $instance */
  8937. return $instance->filled($key);
  8938. }
  8939. /**
  8940. * Get the keys for all of the input and files.
  8941. *
  8942. * @return array
  8943. * @static
  8944. */
  8945. public static function keys()
  8946. {
  8947. /** @var \Illuminate\Http\Request $instance */
  8948. return $instance->keys();
  8949. }
  8950. /**
  8951. * Get all of the input and files for the request.
  8952. *
  8953. * @param array|mixed $keys
  8954. * @return array
  8955. * @static
  8956. */
  8957. public static function all($keys = null)
  8958. {
  8959. /** @var \Illuminate\Http\Request $instance */
  8960. return $instance->all($keys);
  8961. }
  8962. /**
  8963. * Retrieve an input item from the request.
  8964. *
  8965. * @param string $key
  8966. * @param string|array|null $default
  8967. * @return string|array
  8968. * @static
  8969. */
  8970. public static function input($key = null, $default = null)
  8971. {
  8972. /** @var \Illuminate\Http\Request $instance */
  8973. return $instance->input($key, $default);
  8974. }
  8975. /**
  8976. * Get a subset containing the provided keys with values from the input data.
  8977. *
  8978. * @param array|mixed $keys
  8979. * @return array
  8980. * @static
  8981. */
  8982. public static function only($keys)
  8983. {
  8984. /** @var \Illuminate\Http\Request $instance */
  8985. return $instance->only($keys);
  8986. }
  8987. /**
  8988. * Get all of the input except for a specified array of items.
  8989. *
  8990. * @param array|mixed $keys
  8991. * @return array
  8992. * @static
  8993. */
  8994. public static function except($keys)
  8995. {
  8996. /** @var \Illuminate\Http\Request $instance */
  8997. return $instance->except($keys);
  8998. }
  8999. /**
  9000. * Retrieve a query string item from the request.
  9001. *
  9002. * @param string $key
  9003. * @param string|array|null $default
  9004. * @return string|array
  9005. * @static
  9006. */
  9007. public static function query($key = null, $default = null)
  9008. {
  9009. /** @var \Illuminate\Http\Request $instance */
  9010. return $instance->query($key, $default);
  9011. }
  9012. /**
  9013. * Retrieve a request payload item from the request.
  9014. *
  9015. * @param string $key
  9016. * @param string|array|null $default
  9017. * @return string|array
  9018. * @static
  9019. */
  9020. public static function post($key = null, $default = null)
  9021. {
  9022. /** @var \Illuminate\Http\Request $instance */
  9023. return $instance->post($key, $default);
  9024. }
  9025. /**
  9026. * Determine if a cookie is set on the request.
  9027. *
  9028. * @param string $key
  9029. * @return bool
  9030. * @static
  9031. */
  9032. public static function hasCookie($key)
  9033. {
  9034. /** @var \Illuminate\Http\Request $instance */
  9035. return $instance->hasCookie($key);
  9036. }
  9037. /**
  9038. * Retrieve a cookie from the request.
  9039. *
  9040. * @param string $key
  9041. * @param string|array|null $default
  9042. * @return string|array
  9043. * @static
  9044. */
  9045. public static function cookie($key = null, $default = null)
  9046. {
  9047. /** @var \Illuminate\Http\Request $instance */
  9048. return $instance->cookie($key, $default);
  9049. }
  9050. /**
  9051. * Get an array of all of the files on the request.
  9052. *
  9053. * @return array
  9054. * @static
  9055. */
  9056. public static function allFiles()
  9057. {
  9058. /** @var \Illuminate\Http\Request $instance */
  9059. return $instance->allFiles();
  9060. }
  9061. /**
  9062. * Determine if the uploaded data contains a file.
  9063. *
  9064. * @param string $key
  9065. * @return bool
  9066. * @static
  9067. */
  9068. public static function hasFile($key)
  9069. {
  9070. /** @var \Illuminate\Http\Request $instance */
  9071. return $instance->hasFile($key);
  9072. }
  9073. /**
  9074. * Retrieve a file from the request.
  9075. *
  9076. * @param string $key
  9077. * @param mixed $default
  9078. * @return \Illuminate\Http\UploadedFile|array|null
  9079. * @static
  9080. */
  9081. public static function file($key = null, $default = null)
  9082. {
  9083. /** @var \Illuminate\Http\Request $instance */
  9084. return $instance->file($key, $default);
  9085. }
  9086. /**
  9087. * Register a custom macro.
  9088. *
  9089. * @param string $name
  9090. * @param object|callable $macro
  9091. * @return void
  9092. * @static
  9093. */
  9094. public static function macro($name, $macro)
  9095. {
  9096. \Illuminate\Http\Request::macro($name, $macro);
  9097. }
  9098. /**
  9099. * Mix another object into the class.
  9100. *
  9101. * @param object $mixin
  9102. * @return void
  9103. * @static
  9104. */
  9105. public static function mixin($mixin)
  9106. {
  9107. \Illuminate\Http\Request::mixin($mixin);
  9108. }
  9109. /**
  9110. * Checks if macro is registered.
  9111. *
  9112. * @param string $name
  9113. * @return bool
  9114. * @static
  9115. */
  9116. public static function hasMacro($name)
  9117. {
  9118. return \Illuminate\Http\Request::hasMacro($name);
  9119. }
  9120. /**
  9121. *
  9122. *
  9123. * @static
  9124. */
  9125. public static function validate($rules, ...$params)
  9126. {
  9127. return \Illuminate\Http\Request::validate($rules, ...$params);
  9128. }
  9129. }
  9130. /**
  9131. *
  9132. *
  9133. * @see \Illuminate\Contracts\Routing\ResponseFactory
  9134. */
  9135. class Response {
  9136. /**
  9137. * Return a new response from the application.
  9138. *
  9139. * @param string $content
  9140. * @param int $status
  9141. * @param array $headers
  9142. * @return \Illuminate\Http\Response
  9143. * @static
  9144. */
  9145. public static function make($content = '', $status = 200, $headers = [])
  9146. {
  9147. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9148. return $instance->make($content, $status, $headers);
  9149. }
  9150. /**
  9151. * Return a new view response from the application.
  9152. *
  9153. * @param string $view
  9154. * @param array $data
  9155. * @param int $status
  9156. * @param array $headers
  9157. * @return \Illuminate\Http\Response
  9158. * @static
  9159. */
  9160. public static function view($view, $data = [], $status = 200, $headers = [])
  9161. {
  9162. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9163. return $instance->view($view, $data, $status, $headers);
  9164. }
  9165. /**
  9166. * Return a new JSON response from the application.
  9167. *
  9168. * @param mixed $data
  9169. * @param int $status
  9170. * @param array $headers
  9171. * @param int $options
  9172. * @return \Illuminate\Http\JsonResponse
  9173. * @static
  9174. */
  9175. public static function json($data = [], $status = 200, $headers = [], $options = 0)
  9176. {
  9177. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9178. return $instance->json($data, $status, $headers, $options);
  9179. }
  9180. /**
  9181. * Return a new JSONP response from the application.
  9182. *
  9183. * @param string $callback
  9184. * @param mixed $data
  9185. * @param int $status
  9186. * @param array $headers
  9187. * @param int $options
  9188. * @return \Illuminate\Http\JsonResponse
  9189. * @static
  9190. */
  9191. public static function jsonp($callback, $data = [], $status = 200, $headers = [], $options = 0)
  9192. {
  9193. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9194. return $instance->jsonp($callback, $data, $status, $headers, $options);
  9195. }
  9196. /**
  9197. * Return a new streamed response from the application.
  9198. *
  9199. * @param \Closure $callback
  9200. * @param int $status
  9201. * @param array $headers
  9202. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  9203. * @static
  9204. */
  9205. public static function stream($callback, $status = 200, $headers = [])
  9206. {
  9207. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9208. return $instance->stream($callback, $status, $headers);
  9209. }
  9210. /**
  9211. * Create a new file download response.
  9212. *
  9213. * @param \SplFileInfo|string $file
  9214. * @param string $name
  9215. * @param array $headers
  9216. * @param string|null $disposition
  9217. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9218. * @static
  9219. */
  9220. public static function download($file, $name = null, $headers = [], $disposition = 'attachment')
  9221. {
  9222. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9223. return $instance->download($file, $name, $headers, $disposition);
  9224. }
  9225. /**
  9226. * Return the raw contents of a binary file.
  9227. *
  9228. * @param \SplFileInfo|string $file
  9229. * @param array $headers
  9230. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  9231. * @static
  9232. */
  9233. public static function file($file, $headers = [])
  9234. {
  9235. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9236. return $instance->file($file, $headers);
  9237. }
  9238. /**
  9239. * Create a new redirect response to the given path.
  9240. *
  9241. * @param string $path
  9242. * @param int $status
  9243. * @param array $headers
  9244. * @param bool|null $secure
  9245. * @return \Illuminate\Http\RedirectResponse
  9246. * @static
  9247. */
  9248. public static function redirectTo($path, $status = 302, $headers = [], $secure = null)
  9249. {
  9250. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9251. return $instance->redirectTo($path, $status, $headers, $secure);
  9252. }
  9253. /**
  9254. * Create a new redirect response to a named route.
  9255. *
  9256. * @param string $route
  9257. * @param array $parameters
  9258. * @param int $status
  9259. * @param array $headers
  9260. * @return \Illuminate\Http\RedirectResponse
  9261. * @static
  9262. */
  9263. public static function redirectToRoute($route, $parameters = [], $status = 302, $headers = [])
  9264. {
  9265. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9266. return $instance->redirectToRoute($route, $parameters, $status, $headers);
  9267. }
  9268. /**
  9269. * Create a new redirect response to a controller action.
  9270. *
  9271. * @param string $action
  9272. * @param array $parameters
  9273. * @param int $status
  9274. * @param array $headers
  9275. * @return \Illuminate\Http\RedirectResponse
  9276. * @static
  9277. */
  9278. public static function redirectToAction($action, $parameters = [], $status = 302, $headers = [])
  9279. {
  9280. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9281. return $instance->redirectToAction($action, $parameters, $status, $headers);
  9282. }
  9283. /**
  9284. * Create a new redirect response, while putting the current URL in the session.
  9285. *
  9286. * @param string $path
  9287. * @param int $status
  9288. * @param array $headers
  9289. * @param bool|null $secure
  9290. * @return \Illuminate\Http\RedirectResponse
  9291. * @static
  9292. */
  9293. public static function redirectGuest($path, $status = 302, $headers = [], $secure = null)
  9294. {
  9295. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9296. return $instance->redirectGuest($path, $status, $headers, $secure);
  9297. }
  9298. /**
  9299. * Create a new redirect response to the previously intended location.
  9300. *
  9301. * @param string $default
  9302. * @param int $status
  9303. * @param array $headers
  9304. * @param bool|null $secure
  9305. * @return \Illuminate\Http\RedirectResponse
  9306. * @static
  9307. */
  9308. public static function redirectToIntended($default = '/', $status = 302, $headers = [], $secure = null)
  9309. {
  9310. /** @var \Illuminate\Routing\ResponseFactory $instance */
  9311. return $instance->redirectToIntended($default, $status, $headers, $secure);
  9312. }
  9313. /**
  9314. * Register a custom macro.
  9315. *
  9316. * @param string $name
  9317. * @param object|callable $macro
  9318. * @return void
  9319. * @static
  9320. */
  9321. public static function macro($name, $macro)
  9322. {
  9323. \Illuminate\Routing\ResponseFactory::macro($name, $macro);
  9324. }
  9325. /**
  9326. * Mix another object into the class.
  9327. *
  9328. * @param object $mixin
  9329. * @return void
  9330. * @static
  9331. */
  9332. public static function mixin($mixin)
  9333. {
  9334. \Illuminate\Routing\ResponseFactory::mixin($mixin);
  9335. }
  9336. /**
  9337. * Checks if macro is registered.
  9338. *
  9339. * @param string $name
  9340. * @return bool
  9341. * @static
  9342. */
  9343. public static function hasMacro($name)
  9344. {
  9345. return \Illuminate\Routing\ResponseFactory::hasMacro($name);
  9346. }
  9347. }
  9348. /**
  9349. *
  9350. *
  9351. * @method static \Illuminate\Support\Facades\Route prefix(string $prefix)
  9352. * @method static \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
  9353. * @method static \Illuminate\Support\Facades\Route as(string $value)
  9354. * @method static \Illuminate\Support\Facades\Route domain(string $value)
  9355. * @method static \Illuminate\Support\Facades\Route name(string $value)
  9356. * @method static \Illuminate\Support\Facades\Route namespace(string $value)
  9357. * @method static \Illuminate\Support\Facades\Route where(array|string $name, string $expression = null)
  9358. * @see \Illuminate\Routing\Router
  9359. */
  9360. class Route {
  9361. /**
  9362. * Register a new GET route with the router.
  9363. *
  9364. * @param string $uri
  9365. * @param \Closure|array|string|null $action
  9366. * @return \Illuminate\Routing\Route
  9367. * @static
  9368. */
  9369. public static function get($uri, $action = null)
  9370. {
  9371. /** @var \Illuminate\Routing\Router $instance */
  9372. return $instance->get($uri, $action);
  9373. }
  9374. /**
  9375. * Register a new POST route with the router.
  9376. *
  9377. * @param string $uri
  9378. * @param \Closure|array|string|null $action
  9379. * @return \Illuminate\Routing\Route
  9380. * @static
  9381. */
  9382. public static function post($uri, $action = null)
  9383. {
  9384. /** @var \Illuminate\Routing\Router $instance */
  9385. return $instance->post($uri, $action);
  9386. }
  9387. /**
  9388. * Register a new PUT route with the router.
  9389. *
  9390. * @param string $uri
  9391. * @param \Closure|array|string|null $action
  9392. * @return \Illuminate\Routing\Route
  9393. * @static
  9394. */
  9395. public static function put($uri, $action = null)
  9396. {
  9397. /** @var \Illuminate\Routing\Router $instance */
  9398. return $instance->put($uri, $action);
  9399. }
  9400. /**
  9401. * Register a new PATCH route with the router.
  9402. *
  9403. * @param string $uri
  9404. * @param \Closure|array|string|null $action
  9405. * @return \Illuminate\Routing\Route
  9406. * @static
  9407. */
  9408. public static function patch($uri, $action = null)
  9409. {
  9410. /** @var \Illuminate\Routing\Router $instance */
  9411. return $instance->patch($uri, $action);
  9412. }
  9413. /**
  9414. * Register a new DELETE route with the router.
  9415. *
  9416. * @param string $uri
  9417. * @param \Closure|array|string|null $action
  9418. * @return \Illuminate\Routing\Route
  9419. * @static
  9420. */
  9421. public static function delete($uri, $action = null)
  9422. {
  9423. /** @var \Illuminate\Routing\Router $instance */
  9424. return $instance->delete($uri, $action);
  9425. }
  9426. /**
  9427. * Register a new OPTIONS route with the router.
  9428. *
  9429. * @param string $uri
  9430. * @param \Closure|array|string|null $action
  9431. * @return \Illuminate\Routing\Route
  9432. * @static
  9433. */
  9434. public static function options($uri, $action = null)
  9435. {
  9436. /** @var \Illuminate\Routing\Router $instance */
  9437. return $instance->options($uri, $action);
  9438. }
  9439. /**
  9440. * Register a new route responding to all verbs.
  9441. *
  9442. * @param string $uri
  9443. * @param \Closure|array|string|null $action
  9444. * @return \Illuminate\Routing\Route
  9445. * @static
  9446. */
  9447. public static function any($uri, $action = null)
  9448. {
  9449. /** @var \Illuminate\Routing\Router $instance */
  9450. return $instance->any($uri, $action);
  9451. }
  9452. /**
  9453. * Register a new Fallback route with the router.
  9454. *
  9455. * @param \Closure|array|string|null $action
  9456. * @return \Illuminate\Routing\Route
  9457. * @static
  9458. */
  9459. public static function fallback($action)
  9460. {
  9461. /** @var \Illuminate\Routing\Router $instance */
  9462. return $instance->fallback($action);
  9463. }
  9464. /**
  9465. * Create a redirect from one URI to another.
  9466. *
  9467. * @param string $uri
  9468. * @param string $destination
  9469. * @param int $status
  9470. * @return \Illuminate\Routing\Route
  9471. * @static
  9472. */
  9473. public static function redirect($uri, $destination, $status = 301)
  9474. {
  9475. /** @var \Illuminate\Routing\Router $instance */
  9476. return $instance->redirect($uri, $destination, $status);
  9477. }
  9478. /**
  9479. * Register a new route that returns a view.
  9480. *
  9481. * @param string $uri
  9482. * @param string $view
  9483. * @param array $data
  9484. * @return \Illuminate\Routing\Route
  9485. * @static
  9486. */
  9487. public static function view($uri, $view, $data = [])
  9488. {
  9489. /** @var \Illuminate\Routing\Router $instance */
  9490. return $instance->view($uri, $view, $data);
  9491. }
  9492. /**
  9493. * Register a new route with the given verbs.
  9494. *
  9495. * @param array|string $methods
  9496. * @param string $uri
  9497. * @param \Closure|array|string|null $action
  9498. * @return \Illuminate\Routing\Route
  9499. * @static
  9500. */
  9501. public static function match($methods, $uri, $action = null)
  9502. {
  9503. /** @var \Illuminate\Routing\Router $instance */
  9504. return $instance->match($methods, $uri, $action);
  9505. }
  9506. /**
  9507. * Register an array of resource controllers.
  9508. *
  9509. * @param array $resources
  9510. * @return void
  9511. * @static
  9512. */
  9513. public static function resources($resources)
  9514. {
  9515. /** @var \Illuminate\Routing\Router $instance */
  9516. $instance->resources($resources);
  9517. }
  9518. /**
  9519. * Route a resource to a controller.
  9520. *
  9521. * @param string $name
  9522. * @param string $controller
  9523. * @param array $options
  9524. * @return \Illuminate\Routing\PendingResourceRegistration
  9525. * @static
  9526. */
  9527. public static function resource($name, $controller, $options = [])
  9528. {
  9529. /** @var \Illuminate\Routing\Router $instance */
  9530. return $instance->resource($name, $controller, $options);
  9531. }
  9532. /**
  9533. * Register an array of API resource controllers.
  9534. *
  9535. * @param array $resources
  9536. * @return void
  9537. * @static
  9538. */
  9539. public static function apiResources($resources)
  9540. {
  9541. /** @var \Illuminate\Routing\Router $instance */
  9542. $instance->apiResources($resources);
  9543. }
  9544. /**
  9545. * Route an API resource to a controller.
  9546. *
  9547. * @param string $name
  9548. * @param string $controller
  9549. * @param array $options
  9550. * @return \Illuminate\Routing\PendingResourceRegistration
  9551. * @static
  9552. */
  9553. public static function apiResource($name, $controller, $options = [])
  9554. {
  9555. /** @var \Illuminate\Routing\Router $instance */
  9556. return $instance->apiResource($name, $controller, $options);
  9557. }
  9558. /**
  9559. * Create a route group with shared attributes.
  9560. *
  9561. * @param array $attributes
  9562. * @param \Closure|string $routes
  9563. * @return void
  9564. * @static
  9565. */
  9566. public static function group($attributes, $routes)
  9567. {
  9568. /** @var \Illuminate\Routing\Router $instance */
  9569. $instance->group($attributes, $routes);
  9570. }
  9571. /**
  9572. * Merge the given array with the last group stack.
  9573. *
  9574. * @param array $new
  9575. * @return array
  9576. * @static
  9577. */
  9578. public static function mergeWithLastGroup($new)
  9579. {
  9580. /** @var \Illuminate\Routing\Router $instance */
  9581. return $instance->mergeWithLastGroup($new);
  9582. }
  9583. /**
  9584. * Get the prefix from the last group on the stack.
  9585. *
  9586. * @return string
  9587. * @static
  9588. */
  9589. public static function getLastGroupPrefix()
  9590. {
  9591. /** @var \Illuminate\Routing\Router $instance */
  9592. return $instance->getLastGroupPrefix();
  9593. }
  9594. /**
  9595. * Return the response returned by the given route.
  9596. *
  9597. * @param string $name
  9598. * @return mixed
  9599. * @static
  9600. */
  9601. public static function respondWithRoute($name)
  9602. {
  9603. /** @var \Illuminate\Routing\Router $instance */
  9604. return $instance->respondWithRoute($name);
  9605. }
  9606. /**
  9607. * Dispatch the request to the application.
  9608. *
  9609. * @param \Illuminate\Http\Request $request
  9610. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9611. * @static
  9612. */
  9613. public static function dispatch($request)
  9614. {
  9615. /** @var \Illuminate\Routing\Router $instance */
  9616. return $instance->dispatch($request);
  9617. }
  9618. /**
  9619. * Dispatch the request to a route and return the response.
  9620. *
  9621. * @param \Illuminate\Http\Request $request
  9622. * @return mixed
  9623. * @static
  9624. */
  9625. public static function dispatchToRoute($request)
  9626. {
  9627. /** @var \Illuminate\Routing\Router $instance */
  9628. return $instance->dispatchToRoute($request);
  9629. }
  9630. /**
  9631. * Gather the middleware for the given route with resolved class names.
  9632. *
  9633. * @param \Illuminate\Routing\Route $route
  9634. * @return array
  9635. * @static
  9636. */
  9637. public static function gatherRouteMiddleware($route)
  9638. {
  9639. /** @var \Illuminate\Routing\Router $instance */
  9640. return $instance->gatherRouteMiddleware($route);
  9641. }
  9642. /**
  9643. * Create a response instance from the given value.
  9644. *
  9645. * @param \Symfony\Component\HttpFoundation\Request $request
  9646. * @param mixed $response
  9647. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9648. * @static
  9649. */
  9650. public static function prepareResponse($request, $response)
  9651. {
  9652. /** @var \Illuminate\Routing\Router $instance */
  9653. return $instance->prepareResponse($request, $response);
  9654. }
  9655. /**
  9656. * Static version of prepareResponse.
  9657. *
  9658. * @param \Symfony\Component\HttpFoundation\Request $request
  9659. * @param mixed $response
  9660. * @return \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
  9661. * @static
  9662. */
  9663. public static function toResponse($request, $response)
  9664. {
  9665. return \Illuminate\Routing\Router::toResponse($request, $response);
  9666. }
  9667. /**
  9668. * Substitute the route bindings onto the route.
  9669. *
  9670. * @param \Illuminate\Routing\Route $route
  9671. * @return \Illuminate\Routing\Route
  9672. * @static
  9673. */
  9674. public static function substituteBindings($route)
  9675. {
  9676. /** @var \Illuminate\Routing\Router $instance */
  9677. return $instance->substituteBindings($route);
  9678. }
  9679. /**
  9680. * Substitute the implicit Eloquent model bindings for the route.
  9681. *
  9682. * @param \Illuminate\Routing\Route $route
  9683. * @return void
  9684. * @static
  9685. */
  9686. public static function substituteImplicitBindings($route)
  9687. {
  9688. /** @var \Illuminate\Routing\Router $instance */
  9689. $instance->substituteImplicitBindings($route);
  9690. }
  9691. /**
  9692. * Register a route matched event listener.
  9693. *
  9694. * @param string|callable $callback
  9695. * @return void
  9696. * @static
  9697. */
  9698. public static function matched($callback)
  9699. {
  9700. /** @var \Illuminate\Routing\Router $instance */
  9701. $instance->matched($callback);
  9702. }
  9703. /**
  9704. * Get all of the defined middleware short-hand names.
  9705. *
  9706. * @return array
  9707. * @static
  9708. */
  9709. public static function getMiddleware()
  9710. {
  9711. /** @var \Illuminate\Routing\Router $instance */
  9712. return $instance->getMiddleware();
  9713. }
  9714. /**
  9715. * Register a short-hand name for a middleware.
  9716. *
  9717. * @param string $name
  9718. * @param string $class
  9719. * @return \Illuminate\Routing\Router
  9720. * @static
  9721. */
  9722. public static function aliasMiddleware($name, $class)
  9723. {
  9724. /** @var \Illuminate\Routing\Router $instance */
  9725. return $instance->aliasMiddleware($name, $class);
  9726. }
  9727. /**
  9728. * Check if a middlewareGroup with the given name exists.
  9729. *
  9730. * @param string $name
  9731. * @return bool
  9732. * @static
  9733. */
  9734. public static function hasMiddlewareGroup($name)
  9735. {
  9736. /** @var \Illuminate\Routing\Router $instance */
  9737. return $instance->hasMiddlewareGroup($name);
  9738. }
  9739. /**
  9740. * Get all of the defined middleware groups.
  9741. *
  9742. * @return array
  9743. * @static
  9744. */
  9745. public static function getMiddlewareGroups()
  9746. {
  9747. /** @var \Illuminate\Routing\Router $instance */
  9748. return $instance->getMiddlewareGroups();
  9749. }
  9750. /**
  9751. * Register a group of middleware.
  9752. *
  9753. * @param string $name
  9754. * @param array $middleware
  9755. * @return \Illuminate\Routing\Router
  9756. * @static
  9757. */
  9758. public static function middlewareGroup($name, $middleware)
  9759. {
  9760. /** @var \Illuminate\Routing\Router $instance */
  9761. return $instance->middlewareGroup($name, $middleware);
  9762. }
  9763. /**
  9764. * Add a middleware to the beginning of a middleware group.
  9765. *
  9766. * If the middleware is already in the group, it will not be added again.
  9767. *
  9768. * @param string $group
  9769. * @param string $middleware
  9770. * @return \Illuminate\Routing\Router
  9771. * @static
  9772. */
  9773. public static function prependMiddlewareToGroup($group, $middleware)
  9774. {
  9775. /** @var \Illuminate\Routing\Router $instance */
  9776. return $instance->prependMiddlewareToGroup($group, $middleware);
  9777. }
  9778. /**
  9779. * Add a middleware to the end of a middleware group.
  9780. *
  9781. * If the middleware is already in the group, it will not be added again.
  9782. *
  9783. * @param string $group
  9784. * @param string $middleware
  9785. * @return \Illuminate\Routing\Router
  9786. * @static
  9787. */
  9788. public static function pushMiddlewareToGroup($group, $middleware)
  9789. {
  9790. /** @var \Illuminate\Routing\Router $instance */
  9791. return $instance->pushMiddlewareToGroup($group, $middleware);
  9792. }
  9793. /**
  9794. * Add a new route parameter binder.
  9795. *
  9796. * @param string $key
  9797. * @param string|callable $binder
  9798. * @return void
  9799. * @static
  9800. */
  9801. public static function bind($key, $binder)
  9802. {
  9803. /** @var \Illuminate\Routing\Router $instance */
  9804. $instance->bind($key, $binder);
  9805. }
  9806. /**
  9807. * Register a model binder for a wildcard.
  9808. *
  9809. * @param string $key
  9810. * @param string $class
  9811. * @param \Closure|null $callback
  9812. * @return void
  9813. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  9814. * @static
  9815. */
  9816. public static function model($key, $class, $callback = null)
  9817. {
  9818. /** @var \Illuminate\Routing\Router $instance */
  9819. $instance->model($key, $class, $callback);
  9820. }
  9821. /**
  9822. * Get the binding callback for a given binding.
  9823. *
  9824. * @param string $key
  9825. * @return \Closure|null
  9826. * @static
  9827. */
  9828. public static function getBindingCallback($key)
  9829. {
  9830. /** @var \Illuminate\Routing\Router $instance */
  9831. return $instance->getBindingCallback($key);
  9832. }
  9833. /**
  9834. * Get the global "where" patterns.
  9835. *
  9836. * @return array
  9837. * @static
  9838. */
  9839. public static function getPatterns()
  9840. {
  9841. /** @var \Illuminate\Routing\Router $instance */
  9842. return $instance->getPatterns();
  9843. }
  9844. /**
  9845. * Set a global where pattern on all routes.
  9846. *
  9847. * @param string $key
  9848. * @param string $pattern
  9849. * @return void
  9850. * @static
  9851. */
  9852. public static function pattern($key, $pattern)
  9853. {
  9854. /** @var \Illuminate\Routing\Router $instance */
  9855. $instance->pattern($key, $pattern);
  9856. }
  9857. /**
  9858. * Set a group of global where patterns on all routes.
  9859. *
  9860. * @param array $patterns
  9861. * @return void
  9862. * @static
  9863. */
  9864. public static function patterns($patterns)
  9865. {
  9866. /** @var \Illuminate\Routing\Router $instance */
  9867. $instance->patterns($patterns);
  9868. }
  9869. /**
  9870. * Determine if the router currently has a group stack.
  9871. *
  9872. * @return bool
  9873. * @static
  9874. */
  9875. public static function hasGroupStack()
  9876. {
  9877. /** @var \Illuminate\Routing\Router $instance */
  9878. return $instance->hasGroupStack();
  9879. }
  9880. /**
  9881. * Get the current group stack for the router.
  9882. *
  9883. * @return array
  9884. * @static
  9885. */
  9886. public static function getGroupStack()
  9887. {
  9888. /** @var \Illuminate\Routing\Router $instance */
  9889. return $instance->getGroupStack();
  9890. }
  9891. /**
  9892. * Get a route parameter for the current route.
  9893. *
  9894. * @param string $key
  9895. * @param string $default
  9896. * @return mixed
  9897. * @static
  9898. */
  9899. public static function input($key, $default = null)
  9900. {
  9901. /** @var \Illuminate\Routing\Router $instance */
  9902. return $instance->input($key, $default);
  9903. }
  9904. /**
  9905. * Get the request currently being dispatched.
  9906. *
  9907. * @return \Illuminate\Http\Request
  9908. * @static
  9909. */
  9910. public static function getCurrentRequest()
  9911. {
  9912. /** @var \Illuminate\Routing\Router $instance */
  9913. return $instance->getCurrentRequest();
  9914. }
  9915. /**
  9916. * Get the currently dispatched route instance.
  9917. *
  9918. * @return \Illuminate\Routing\Route
  9919. * @static
  9920. */
  9921. public static function getCurrentRoute()
  9922. {
  9923. /** @var \Illuminate\Routing\Router $instance */
  9924. return $instance->getCurrentRoute();
  9925. }
  9926. /**
  9927. * Get the currently dispatched route instance.
  9928. *
  9929. * @return \Illuminate\Routing\Route
  9930. * @static
  9931. */
  9932. public static function current()
  9933. {
  9934. /** @var \Illuminate\Routing\Router $instance */
  9935. return $instance->current();
  9936. }
  9937. /**
  9938. * Check if a route with the given name exists.
  9939. *
  9940. * @param string $name
  9941. * @return bool
  9942. * @static
  9943. */
  9944. public static function has($name)
  9945. {
  9946. /** @var \Illuminate\Routing\Router $instance */
  9947. return $instance->has($name);
  9948. }
  9949. /**
  9950. * Get the current route name.
  9951. *
  9952. * @return string|null
  9953. * @static
  9954. */
  9955. public static function currentRouteName()
  9956. {
  9957. /** @var \Illuminate\Routing\Router $instance */
  9958. return $instance->currentRouteName();
  9959. }
  9960. /**
  9961. * Alias for the "currentRouteNamed" method.
  9962. *
  9963. * @param mixed $patterns
  9964. * @return bool
  9965. * @static
  9966. */
  9967. public static function is(...$patterns)
  9968. {
  9969. /** @var \Illuminate\Routing\Router $instance */
  9970. return $instance->is(...$patterns);
  9971. }
  9972. /**
  9973. * Determine if the current route matches a pattern.
  9974. *
  9975. * @param mixed $patterns
  9976. * @return bool
  9977. * @static
  9978. */
  9979. public static function currentRouteNamed(...$patterns)
  9980. {
  9981. /** @var \Illuminate\Routing\Router $instance */
  9982. return $instance->currentRouteNamed(...$patterns);
  9983. }
  9984. /**
  9985. * Get the current route action.
  9986. *
  9987. * @return string|null
  9988. * @static
  9989. */
  9990. public static function currentRouteAction()
  9991. {
  9992. /** @var \Illuminate\Routing\Router $instance */
  9993. return $instance->currentRouteAction();
  9994. }
  9995. /**
  9996. * Alias for the "currentRouteUses" method.
  9997. *
  9998. * @param array $patterns
  9999. * @return bool
  10000. * @static
  10001. */
  10002. public static function uses(...$patterns)
  10003. {
  10004. /** @var \Illuminate\Routing\Router $instance */
  10005. return $instance->uses(...$patterns);
  10006. }
  10007. /**
  10008. * Determine if the current route action matches a given action.
  10009. *
  10010. * @param string $action
  10011. * @return bool
  10012. * @static
  10013. */
  10014. public static function currentRouteUses($action)
  10015. {
  10016. /** @var \Illuminate\Routing\Router $instance */
  10017. return $instance->currentRouteUses($action);
  10018. }
  10019. /**
  10020. * Register the typical authentication routes for an application.
  10021. *
  10022. * @return void
  10023. * @static
  10024. */
  10025. public static function auth()
  10026. {
  10027. /** @var \Illuminate\Routing\Router $instance */
  10028. $instance->auth();
  10029. }
  10030. /**
  10031. * Set the unmapped global resource parameters to singular.
  10032. *
  10033. * @param bool $singular
  10034. * @return void
  10035. * @static
  10036. */
  10037. public static function singularResourceParameters($singular = true)
  10038. {
  10039. /** @var \Illuminate\Routing\Router $instance */
  10040. $instance->singularResourceParameters($singular);
  10041. }
  10042. /**
  10043. * Set the global resource parameter mapping.
  10044. *
  10045. * @param array $parameters
  10046. * @return void
  10047. * @static
  10048. */
  10049. public static function resourceParameters($parameters = [])
  10050. {
  10051. /** @var \Illuminate\Routing\Router $instance */
  10052. $instance->resourceParameters($parameters);
  10053. }
  10054. /**
  10055. * Get or set the verbs used in the resource URIs.
  10056. *
  10057. * @param array $verbs
  10058. * @return array|null
  10059. * @static
  10060. */
  10061. public static function resourceVerbs($verbs = [])
  10062. {
  10063. /** @var \Illuminate\Routing\Router $instance */
  10064. return $instance->resourceVerbs($verbs);
  10065. }
  10066. /**
  10067. * Get the underlying route collection.
  10068. *
  10069. * @return \Illuminate\Routing\RouteCollection
  10070. * @static
  10071. */
  10072. public static function getRoutes()
  10073. {
  10074. /** @var \Illuminate\Routing\Router $instance */
  10075. return $instance->getRoutes();
  10076. }
  10077. /**
  10078. * Set the route collection instance.
  10079. *
  10080. * @param \Illuminate\Routing\RouteCollection $routes
  10081. * @return void
  10082. * @static
  10083. */
  10084. public static function setRoutes($routes)
  10085. {
  10086. /** @var \Illuminate\Routing\Router $instance */
  10087. $instance->setRoutes($routes);
  10088. }
  10089. /**
  10090. * Register a custom macro.
  10091. *
  10092. * @param string $name
  10093. * @param object|callable $macro
  10094. * @return void
  10095. * @static
  10096. */
  10097. public static function macro($name, $macro)
  10098. {
  10099. \Illuminate\Routing\Router::macro($name, $macro);
  10100. }
  10101. /**
  10102. * Mix another object into the class.
  10103. *
  10104. * @param object $mixin
  10105. * @return void
  10106. * @static
  10107. */
  10108. public static function mixin($mixin)
  10109. {
  10110. \Illuminate\Routing\Router::mixin($mixin);
  10111. }
  10112. /**
  10113. * Checks if macro is registered.
  10114. *
  10115. * @param string $name
  10116. * @return bool
  10117. * @static
  10118. */
  10119. public static function hasMacro($name)
  10120. {
  10121. return \Illuminate\Routing\Router::hasMacro($name);
  10122. }
  10123. /**
  10124. * Dynamically handle calls to the class.
  10125. *
  10126. * @param string $method
  10127. * @param array $parameters
  10128. * @return mixed
  10129. * @throws \BadMethodCallException
  10130. * @static
  10131. */
  10132. public static function macroCall($method, $parameters)
  10133. {
  10134. /** @var \Illuminate\Routing\Router $instance */
  10135. return $instance->macroCall($method, $parameters);
  10136. }
  10137. }
  10138. /**
  10139. *
  10140. *
  10141. * @see \Illuminate\Database\Schema\Builder
  10142. */
  10143. class Schema {
  10144. /**
  10145. * Determine if the given table exists.
  10146. *
  10147. * @param string $table
  10148. * @return bool
  10149. * @static
  10150. */
  10151. public static function hasTable($table)
  10152. {
  10153. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10154. return $instance->hasTable($table);
  10155. }
  10156. /**
  10157. * Get the column listing for a given table.
  10158. *
  10159. * @param string $table
  10160. * @return array
  10161. * @static
  10162. */
  10163. public static function getColumnListing($table)
  10164. {
  10165. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10166. return $instance->getColumnListing($table);
  10167. }
  10168. /**
  10169. * Drop all tables from the database.
  10170. *
  10171. * @return void
  10172. * @static
  10173. */
  10174. public static function dropAllTables()
  10175. {
  10176. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10177. $instance->dropAllTables();
  10178. }
  10179. /**
  10180. * Set the default string length for migrations.
  10181. *
  10182. * @param int $length
  10183. * @return void
  10184. * @static
  10185. */
  10186. public static function defaultStringLength($length)
  10187. {
  10188. //Method inherited from \Illuminate\Database\Schema\Builder
  10189. \Illuminate\Database\Schema\MySqlBuilder::defaultStringLength($length);
  10190. }
  10191. /**
  10192. * Determine if the given table has a given column.
  10193. *
  10194. * @param string $table
  10195. * @param string $column
  10196. * @return bool
  10197. * @static
  10198. */
  10199. public static function hasColumn($table, $column)
  10200. {
  10201. //Method inherited from \Illuminate\Database\Schema\Builder
  10202. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10203. return $instance->hasColumn($table, $column);
  10204. }
  10205. /**
  10206. * Determine if the given table has given columns.
  10207. *
  10208. * @param string $table
  10209. * @param array $columns
  10210. * @return bool
  10211. * @static
  10212. */
  10213. public static function hasColumns($table, $columns)
  10214. {
  10215. //Method inherited from \Illuminate\Database\Schema\Builder
  10216. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10217. return $instance->hasColumns($table, $columns);
  10218. }
  10219. /**
  10220. * Get the data type for the given column name.
  10221. *
  10222. * @param string $table
  10223. * @param string $column
  10224. * @return string
  10225. * @static
  10226. */
  10227. public static function getColumnType($table, $column)
  10228. {
  10229. //Method inherited from \Illuminate\Database\Schema\Builder
  10230. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10231. return $instance->getColumnType($table, $column);
  10232. }
  10233. /**
  10234. * Modify a table on the schema.
  10235. *
  10236. * @param string $table
  10237. * @param \Closure $callback
  10238. * @return void
  10239. * @static
  10240. */
  10241. public static function table($table, $callback)
  10242. {
  10243. //Method inherited from \Illuminate\Database\Schema\Builder
  10244. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10245. $instance->table($table, $callback);
  10246. }
  10247. /**
  10248. * Create a new table on the schema.
  10249. *
  10250. * @param string $table
  10251. * @param \Closure $callback
  10252. * @return void
  10253. * @static
  10254. */
  10255. public static function create($table, $callback)
  10256. {
  10257. //Method inherited from \Illuminate\Database\Schema\Builder
  10258. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10259. $instance->create($table, $callback);
  10260. }
  10261. /**
  10262. * Drop a table from the schema.
  10263. *
  10264. * @param string $table
  10265. * @return void
  10266. * @static
  10267. */
  10268. public static function drop($table)
  10269. {
  10270. //Method inherited from \Illuminate\Database\Schema\Builder
  10271. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10272. $instance->drop($table);
  10273. }
  10274. /**
  10275. * Drop a table from the schema if it exists.
  10276. *
  10277. * @param string $table
  10278. * @return void
  10279. * @static
  10280. */
  10281. public static function dropIfExists($table)
  10282. {
  10283. //Method inherited from \Illuminate\Database\Schema\Builder
  10284. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10285. $instance->dropIfExists($table);
  10286. }
  10287. /**
  10288. * Rename a table on the schema.
  10289. *
  10290. * @param string $from
  10291. * @param string $to
  10292. * @return void
  10293. * @static
  10294. */
  10295. public static function rename($from, $to)
  10296. {
  10297. //Method inherited from \Illuminate\Database\Schema\Builder
  10298. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10299. $instance->rename($from, $to);
  10300. }
  10301. /**
  10302. * Enable foreign key constraints.
  10303. *
  10304. * @return bool
  10305. * @static
  10306. */
  10307. public static function enableForeignKeyConstraints()
  10308. {
  10309. //Method inherited from \Illuminate\Database\Schema\Builder
  10310. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10311. return $instance->enableForeignKeyConstraints();
  10312. }
  10313. /**
  10314. * Disable foreign key constraints.
  10315. *
  10316. * @return bool
  10317. * @static
  10318. */
  10319. public static function disableForeignKeyConstraints()
  10320. {
  10321. //Method inherited from \Illuminate\Database\Schema\Builder
  10322. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10323. return $instance->disableForeignKeyConstraints();
  10324. }
  10325. /**
  10326. * Get the database connection instance.
  10327. *
  10328. * @return \Illuminate\Database\Connection
  10329. * @static
  10330. */
  10331. public static function getConnection()
  10332. {
  10333. //Method inherited from \Illuminate\Database\Schema\Builder
  10334. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10335. return $instance->getConnection();
  10336. }
  10337. /**
  10338. * Set the database connection instance.
  10339. *
  10340. * @param \Illuminate\Database\Connection $connection
  10341. * @return \Illuminate\Database\Schema\MySqlBuilder
  10342. * @static
  10343. */
  10344. public static function setConnection($connection)
  10345. {
  10346. //Method inherited from \Illuminate\Database\Schema\Builder
  10347. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10348. return $instance->setConnection($connection);
  10349. }
  10350. /**
  10351. * Set the Schema Blueprint resolver callback.
  10352. *
  10353. * @param \Closure $resolver
  10354. * @return void
  10355. * @static
  10356. */
  10357. public static function blueprintResolver($resolver)
  10358. {
  10359. //Method inherited from \Illuminate\Database\Schema\Builder
  10360. /** @var \Illuminate\Database\Schema\MySqlBuilder $instance */
  10361. $instance->blueprintResolver($resolver);
  10362. }
  10363. }
  10364. /**
  10365. *
  10366. *
  10367. * @see \Illuminate\Session\SessionManager
  10368. * @see \Illuminate\Session\Store
  10369. */
  10370. class Session {
  10371. /**
  10372. * Get the session configuration.
  10373. *
  10374. * @return array
  10375. * @static
  10376. */
  10377. public static function getSessionConfig()
  10378. {
  10379. /** @var \Illuminate\Session\SessionManager $instance */
  10380. return $instance->getSessionConfig();
  10381. }
  10382. /**
  10383. * Get the default session driver name.
  10384. *
  10385. * @return string
  10386. * @static
  10387. */
  10388. public static function getDefaultDriver()
  10389. {
  10390. /** @var \Illuminate\Session\SessionManager $instance */
  10391. return $instance->getDefaultDriver();
  10392. }
  10393. /**
  10394. * Set the default session driver name.
  10395. *
  10396. * @param string $name
  10397. * @return void
  10398. * @static
  10399. */
  10400. public static function setDefaultDriver($name)
  10401. {
  10402. /** @var \Illuminate\Session\SessionManager $instance */
  10403. $instance->setDefaultDriver($name);
  10404. }
  10405. /**
  10406. * Get a driver instance.
  10407. *
  10408. * @param string $driver
  10409. * @return mixed
  10410. * @static
  10411. */
  10412. public static function driver($driver = null)
  10413. {
  10414. //Method inherited from \Illuminate\Support\Manager
  10415. /** @var \Illuminate\Session\SessionManager $instance */
  10416. return $instance->driver($driver);
  10417. }
  10418. /**
  10419. * Register a custom driver creator Closure.
  10420. *
  10421. * @param string $driver
  10422. * @param \Closure $callback
  10423. * @return \Illuminate\Session\SessionManager
  10424. * @static
  10425. */
  10426. public static function extend($driver, $callback)
  10427. {
  10428. //Method inherited from \Illuminate\Support\Manager
  10429. /** @var \Illuminate\Session\SessionManager $instance */
  10430. return $instance->extend($driver, $callback);
  10431. }
  10432. /**
  10433. * Get all of the created "drivers".
  10434. *
  10435. * @return array
  10436. * @static
  10437. */
  10438. public static function getDrivers()
  10439. {
  10440. //Method inherited from \Illuminate\Support\Manager
  10441. /** @var \Illuminate\Session\SessionManager $instance */
  10442. return $instance->getDrivers();
  10443. }
  10444. /**
  10445. * Start the session, reading the data from a handler.
  10446. *
  10447. * @return bool
  10448. * @static
  10449. */
  10450. public static function start()
  10451. {
  10452. /** @var \Illuminate\Session\Store $instance */
  10453. return $instance->start();
  10454. }
  10455. /**
  10456. * Save the session data to storage.
  10457. *
  10458. * @return bool
  10459. * @static
  10460. */
  10461. public static function save()
  10462. {
  10463. /** @var \Illuminate\Session\Store $instance */
  10464. return $instance->save();
  10465. }
  10466. /**
  10467. * Age the flash data for the session.
  10468. *
  10469. * @return void
  10470. * @static
  10471. */
  10472. public static function ageFlashData()
  10473. {
  10474. /** @var \Illuminate\Session\Store $instance */
  10475. $instance->ageFlashData();
  10476. }
  10477. /**
  10478. * Get all of the session data.
  10479. *
  10480. * @return array
  10481. * @static
  10482. */
  10483. public static function all()
  10484. {
  10485. /** @var \Illuminate\Session\Store $instance */
  10486. return $instance->all();
  10487. }
  10488. /**
  10489. * Checks if a key exists.
  10490. *
  10491. * @param string|array $key
  10492. * @return bool
  10493. * @static
  10494. */
  10495. public static function exists($key)
  10496. {
  10497. /** @var \Illuminate\Session\Store $instance */
  10498. return $instance->exists($key);
  10499. }
  10500. /**
  10501. * Checks if a key is present and not null.
  10502. *
  10503. * @param string|array $key
  10504. * @return bool
  10505. * @static
  10506. */
  10507. public static function has($key)
  10508. {
  10509. /** @var \Illuminate\Session\Store $instance */
  10510. return $instance->has($key);
  10511. }
  10512. /**
  10513. * Get an item from the session.
  10514. *
  10515. * @param string $key
  10516. * @param mixed $default
  10517. * @return mixed
  10518. * @static
  10519. */
  10520. public static function get($key, $default = null)
  10521. {
  10522. /** @var \Illuminate\Session\Store $instance */
  10523. return $instance->get($key, $default);
  10524. }
  10525. /**
  10526. * Get the value of a given key and then forget it.
  10527. *
  10528. * @param string $key
  10529. * @param string $default
  10530. * @return mixed
  10531. * @static
  10532. */
  10533. public static function pull($key, $default = null)
  10534. {
  10535. /** @var \Illuminate\Session\Store $instance */
  10536. return $instance->pull($key, $default);
  10537. }
  10538. /**
  10539. * Determine if the session contains old input.
  10540. *
  10541. * @param string $key
  10542. * @return bool
  10543. * @static
  10544. */
  10545. public static function hasOldInput($key = null)
  10546. {
  10547. /** @var \Illuminate\Session\Store $instance */
  10548. return $instance->hasOldInput($key);
  10549. }
  10550. /**
  10551. * Get the requested item from the flashed input array.
  10552. *
  10553. * @param string $key
  10554. * @param mixed $default
  10555. * @return mixed
  10556. * @static
  10557. */
  10558. public static function getOldInput($key = null, $default = null)
  10559. {
  10560. /** @var \Illuminate\Session\Store $instance */
  10561. return $instance->getOldInput($key, $default);
  10562. }
  10563. /**
  10564. * Replace the given session attributes entirely.
  10565. *
  10566. * @param array $attributes
  10567. * @return void
  10568. * @static
  10569. */
  10570. public static function replace($attributes)
  10571. {
  10572. /** @var \Illuminate\Session\Store $instance */
  10573. $instance->replace($attributes);
  10574. }
  10575. /**
  10576. * Put a key / value pair or array of key / value pairs in the session.
  10577. *
  10578. * @param string|array $key
  10579. * @param mixed $value
  10580. * @return void
  10581. * @static
  10582. */
  10583. public static function put($key, $value = null)
  10584. {
  10585. /** @var \Illuminate\Session\Store $instance */
  10586. $instance->put($key, $value);
  10587. }
  10588. /**
  10589. * Get an item from the session, or store the default value.
  10590. *
  10591. * @param string $key
  10592. * @param \Closure $callback
  10593. * @return mixed
  10594. * @static
  10595. */
  10596. public static function remember($key, $callback)
  10597. {
  10598. /** @var \Illuminate\Session\Store $instance */
  10599. return $instance->remember($key, $callback);
  10600. }
  10601. /**
  10602. * Push a value onto a session array.
  10603. *
  10604. * @param string $key
  10605. * @param mixed $value
  10606. * @return void
  10607. * @static
  10608. */
  10609. public static function push($key, $value)
  10610. {
  10611. /** @var \Illuminate\Session\Store $instance */
  10612. $instance->push($key, $value);
  10613. }
  10614. /**
  10615. * Increment the value of an item in the session.
  10616. *
  10617. * @param string $key
  10618. * @param int $amount
  10619. * @return mixed
  10620. * @static
  10621. */
  10622. public static function increment($key, $amount = 1)
  10623. {
  10624. /** @var \Illuminate\Session\Store $instance */
  10625. return $instance->increment($key, $amount);
  10626. }
  10627. /**
  10628. * Decrement the value of an item in the session.
  10629. *
  10630. * @param string $key
  10631. * @param int $amount
  10632. * @return int
  10633. * @static
  10634. */
  10635. public static function decrement($key, $amount = 1)
  10636. {
  10637. /** @var \Illuminate\Session\Store $instance */
  10638. return $instance->decrement($key, $amount);
  10639. }
  10640. /**
  10641. * Flash a key / value pair to the session.
  10642. *
  10643. * @param string $key
  10644. * @param mixed $value
  10645. * @return void
  10646. * @static
  10647. */
  10648. public static function flash($key, $value = true)
  10649. {
  10650. /** @var \Illuminate\Session\Store $instance */
  10651. $instance->flash($key, $value);
  10652. }
  10653. /**
  10654. * Flash a key / value pair to the session for immediate use.
  10655. *
  10656. * @param string $key
  10657. * @param mixed $value
  10658. * @return void
  10659. * @static
  10660. */
  10661. public static function now($key, $value)
  10662. {
  10663. /** @var \Illuminate\Session\Store $instance */
  10664. $instance->now($key, $value);
  10665. }
  10666. /**
  10667. * Reflash all of the session flash data.
  10668. *
  10669. * @return void
  10670. * @static
  10671. */
  10672. public static function reflash()
  10673. {
  10674. /** @var \Illuminate\Session\Store $instance */
  10675. $instance->reflash();
  10676. }
  10677. /**
  10678. * Reflash a subset of the current flash data.
  10679. *
  10680. * @param array|mixed $keys
  10681. * @return void
  10682. * @static
  10683. */
  10684. public static function keep($keys = null)
  10685. {
  10686. /** @var \Illuminate\Session\Store $instance */
  10687. $instance->keep($keys);
  10688. }
  10689. /**
  10690. * Flash an input array to the session.
  10691. *
  10692. * @param array $value
  10693. * @return void
  10694. * @static
  10695. */
  10696. public static function flashInput($value)
  10697. {
  10698. /** @var \Illuminate\Session\Store $instance */
  10699. $instance->flashInput($value);
  10700. }
  10701. /**
  10702. * Remove an item from the session, returning its value.
  10703. *
  10704. * @param string $key
  10705. * @return mixed
  10706. * @static
  10707. */
  10708. public static function remove($key)
  10709. {
  10710. /** @var \Illuminate\Session\Store $instance */
  10711. return $instance->remove($key);
  10712. }
  10713. /**
  10714. * Remove one or many items from the session.
  10715. *
  10716. * @param string|array $keys
  10717. * @return void
  10718. * @static
  10719. */
  10720. public static function forget($keys)
  10721. {
  10722. /** @var \Illuminate\Session\Store $instance */
  10723. $instance->forget($keys);
  10724. }
  10725. /**
  10726. * Remove all of the items from the session.
  10727. *
  10728. * @return void
  10729. * @static
  10730. */
  10731. public static function flush()
  10732. {
  10733. /** @var \Illuminate\Session\Store $instance */
  10734. $instance->flush();
  10735. }
  10736. /**
  10737. * Flush the session data and regenerate the ID.
  10738. *
  10739. * @return bool
  10740. * @static
  10741. */
  10742. public static function invalidate()
  10743. {
  10744. /** @var \Illuminate\Session\Store $instance */
  10745. return $instance->invalidate();
  10746. }
  10747. /**
  10748. * Generate a new session identifier.
  10749. *
  10750. * @param bool $destroy
  10751. * @return bool
  10752. * @static
  10753. */
  10754. public static function regenerate($destroy = false)
  10755. {
  10756. /** @var \Illuminate\Session\Store $instance */
  10757. return $instance->regenerate($destroy);
  10758. }
  10759. /**
  10760. * Generate a new session ID for the session.
  10761. *
  10762. * @param bool $destroy
  10763. * @return bool
  10764. * @static
  10765. */
  10766. public static function migrate($destroy = false)
  10767. {
  10768. /** @var \Illuminate\Session\Store $instance */
  10769. return $instance->migrate($destroy);
  10770. }
  10771. /**
  10772. * Determine if the session has been started.
  10773. *
  10774. * @return bool
  10775. * @static
  10776. */
  10777. public static function isStarted()
  10778. {
  10779. /** @var \Illuminate\Session\Store $instance */
  10780. return $instance->isStarted();
  10781. }
  10782. /**
  10783. * Get the name of the session.
  10784. *
  10785. * @return string
  10786. * @static
  10787. */
  10788. public static function getName()
  10789. {
  10790. /** @var \Illuminate\Session\Store $instance */
  10791. return $instance->getName();
  10792. }
  10793. /**
  10794. * Set the name of the session.
  10795. *
  10796. * @param string $name
  10797. * @return void
  10798. * @static
  10799. */
  10800. public static function setName($name)
  10801. {
  10802. /** @var \Illuminate\Session\Store $instance */
  10803. $instance->setName($name);
  10804. }
  10805. /**
  10806. * Get the current session ID.
  10807. *
  10808. * @return string
  10809. * @static
  10810. */
  10811. public static function getId()
  10812. {
  10813. /** @var \Illuminate\Session\Store $instance */
  10814. return $instance->getId();
  10815. }
  10816. /**
  10817. * Set the session ID.
  10818. *
  10819. * @param string $id
  10820. * @return void
  10821. * @static
  10822. */
  10823. public static function setId($id)
  10824. {
  10825. /** @var \Illuminate\Session\Store $instance */
  10826. $instance->setId($id);
  10827. }
  10828. /**
  10829. * Determine if this is a valid session ID.
  10830. *
  10831. * @param string $id
  10832. * @return bool
  10833. * @static
  10834. */
  10835. public static function isValidId($id)
  10836. {
  10837. /** @var \Illuminate\Session\Store $instance */
  10838. return $instance->isValidId($id);
  10839. }
  10840. /**
  10841. * Set the existence of the session on the handler if applicable.
  10842. *
  10843. * @param bool $value
  10844. * @return void
  10845. * @static
  10846. */
  10847. public static function setExists($value)
  10848. {
  10849. /** @var \Illuminate\Session\Store $instance */
  10850. $instance->setExists($value);
  10851. }
  10852. /**
  10853. * Get the CSRF token value.
  10854. *
  10855. * @return string
  10856. * @static
  10857. */
  10858. public static function token()
  10859. {
  10860. /** @var \Illuminate\Session\Store $instance */
  10861. return $instance->token();
  10862. }
  10863. /**
  10864. * Regenerate the CSRF token value.
  10865. *
  10866. * @return void
  10867. * @static
  10868. */
  10869. public static function regenerateToken()
  10870. {
  10871. /** @var \Illuminate\Session\Store $instance */
  10872. $instance->regenerateToken();
  10873. }
  10874. /**
  10875. * Get the previous URL from the session.
  10876. *
  10877. * @return string|null
  10878. * @static
  10879. */
  10880. public static function previousUrl()
  10881. {
  10882. /** @var \Illuminate\Session\Store $instance */
  10883. return $instance->previousUrl();
  10884. }
  10885. /**
  10886. * Set the "previous" URL in the session.
  10887. *
  10888. * @param string $url
  10889. * @return void
  10890. * @static
  10891. */
  10892. public static function setPreviousUrl($url)
  10893. {
  10894. /** @var \Illuminate\Session\Store $instance */
  10895. $instance->setPreviousUrl($url);
  10896. }
  10897. /**
  10898. * Get the underlying session handler implementation.
  10899. *
  10900. * @return \SessionHandlerInterface
  10901. * @static
  10902. */
  10903. public static function getHandler()
  10904. {
  10905. /** @var \Illuminate\Session\Store $instance */
  10906. return $instance->getHandler();
  10907. }
  10908. /**
  10909. * Determine if the session handler needs a request.
  10910. *
  10911. * @return bool
  10912. * @static
  10913. */
  10914. public static function handlerNeedsRequest()
  10915. {
  10916. /** @var \Illuminate\Session\Store $instance */
  10917. return $instance->handlerNeedsRequest();
  10918. }
  10919. /**
  10920. * Set the request on the handler instance.
  10921. *
  10922. * @param \Illuminate\Http\Request $request
  10923. * @return void
  10924. * @static
  10925. */
  10926. public static function setRequestOnHandler($request)
  10927. {
  10928. /** @var \Illuminate\Session\Store $instance */
  10929. $instance->setRequestOnHandler($request);
  10930. }
  10931. }
  10932. /**
  10933. *
  10934. *
  10935. * @see \Illuminate\Filesystem\FilesystemManager
  10936. */
  10937. class Storage {
  10938. /**
  10939. * Get a filesystem instance.
  10940. *
  10941. * @param string $name
  10942. * @return \Illuminate\Filesystem\FilesystemAdapter
  10943. * @static
  10944. */
  10945. public static function drive($name = null)
  10946. {
  10947. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10948. return $instance->drive($name);
  10949. }
  10950. /**
  10951. * Get a filesystem instance.
  10952. *
  10953. * @param string $name
  10954. * @return \Illuminate\Filesystem\FilesystemAdapter
  10955. * @static
  10956. */
  10957. public static function disk($name = null)
  10958. {
  10959. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10960. return $instance->disk($name);
  10961. }
  10962. /**
  10963. * Get a default cloud filesystem instance.
  10964. *
  10965. * @return \Illuminate\Filesystem\FilesystemAdapter
  10966. * @static
  10967. */
  10968. public static function cloud()
  10969. {
  10970. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10971. return $instance->cloud();
  10972. }
  10973. /**
  10974. * Create an instance of the local driver.
  10975. *
  10976. * @param array $config
  10977. * @return \Illuminate\Filesystem\FilesystemAdapter
  10978. * @static
  10979. */
  10980. public static function createLocalDriver($config)
  10981. {
  10982. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10983. return $instance->createLocalDriver($config);
  10984. }
  10985. /**
  10986. * Create an instance of the ftp driver.
  10987. *
  10988. * @param array $config
  10989. * @return \Illuminate\Filesystem\FilesystemAdapter
  10990. * @static
  10991. */
  10992. public static function createFtpDriver($config)
  10993. {
  10994. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  10995. return $instance->createFtpDriver($config);
  10996. }
  10997. /**
  10998. * Create an instance of the Amazon S3 driver.
  10999. *
  11000. * @param array $config
  11001. * @return \Illuminate\Contracts\Filesystem\Cloud
  11002. * @static
  11003. */
  11004. public static function createS3Driver($config)
  11005. {
  11006. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11007. return $instance->createS3Driver($config);
  11008. }
  11009. /**
  11010. * Create an instance of the Rackspace driver.
  11011. *
  11012. * @param array $config
  11013. * @return \Illuminate\Contracts\Filesystem\Cloud
  11014. * @static
  11015. */
  11016. public static function createRackspaceDriver($config)
  11017. {
  11018. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11019. return $instance->createRackspaceDriver($config);
  11020. }
  11021. /**
  11022. * Set the given disk instance.
  11023. *
  11024. * @param string $name
  11025. * @param mixed $disk
  11026. * @return void
  11027. * @static
  11028. */
  11029. public static function set($name, $disk)
  11030. {
  11031. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11032. $instance->set($name, $disk);
  11033. }
  11034. /**
  11035. * Get the default driver name.
  11036. *
  11037. * @return string
  11038. * @static
  11039. */
  11040. public static function getDefaultDriver()
  11041. {
  11042. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11043. return $instance->getDefaultDriver();
  11044. }
  11045. /**
  11046. * Get the default cloud driver name.
  11047. *
  11048. * @return string
  11049. * @static
  11050. */
  11051. public static function getDefaultCloudDriver()
  11052. {
  11053. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11054. return $instance->getDefaultCloudDriver();
  11055. }
  11056. /**
  11057. * Register a custom driver creator Closure.
  11058. *
  11059. * @param string $driver
  11060. * @param \Closure $callback
  11061. * @return \Illuminate\Filesystem\FilesystemManager
  11062. * @static
  11063. */
  11064. public static function extend($driver, $callback)
  11065. {
  11066. /** @var \Illuminate\Filesystem\FilesystemManager $instance */
  11067. return $instance->extend($driver, $callback);
  11068. }
  11069. /**
  11070. * Assert that the given file exists.
  11071. *
  11072. * @param string $path
  11073. * @return void
  11074. * @static
  11075. */
  11076. public static function assertExists($path)
  11077. {
  11078. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11079. $instance->assertExists($path);
  11080. }
  11081. /**
  11082. * Assert that the given file does not exist.
  11083. *
  11084. * @param string $path
  11085. * @return void
  11086. * @static
  11087. */
  11088. public static function assertMissing($path)
  11089. {
  11090. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11091. $instance->assertMissing($path);
  11092. }
  11093. /**
  11094. * Determine if a file exists.
  11095. *
  11096. * @param string $path
  11097. * @return bool
  11098. * @static
  11099. */
  11100. public static function exists($path)
  11101. {
  11102. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11103. return $instance->exists($path);
  11104. }
  11105. /**
  11106. * Get the full path for the file at the given "short" path.
  11107. *
  11108. * @param string $path
  11109. * @return string
  11110. * @static
  11111. */
  11112. public static function path($path)
  11113. {
  11114. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11115. return $instance->path($path);
  11116. }
  11117. /**
  11118. * Get the contents of a file.
  11119. *
  11120. * @param string $path
  11121. * @return string
  11122. * @throws \Illuminate\Contracts\Filesystem\FileNotFoundException
  11123. * @static
  11124. */
  11125. public static function get($path)
  11126. {
  11127. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11128. return $instance->get($path);
  11129. }
  11130. /**
  11131. * Create a streamed response for a given file.
  11132. *
  11133. * @param string $path
  11134. * @param string|null $name
  11135. * @param array|null $headers
  11136. * @param string|null $disposition
  11137. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11138. * @static
  11139. */
  11140. public static function response($path, $name = null, $headers = [], $disposition = 'inline')
  11141. {
  11142. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11143. return $instance->response($path, $name, $headers, $disposition);
  11144. }
  11145. /**
  11146. * Create a streamed download response for a given file.
  11147. *
  11148. * @param string $path
  11149. * @param string|null $name
  11150. * @param array|null $headers
  11151. * @return \Symfony\Component\HttpFoundation\StreamedResponse
  11152. * @static
  11153. */
  11154. public static function download($path, $name = null, $headers = [])
  11155. {
  11156. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11157. return $instance->download($path, $name, $headers);
  11158. }
  11159. /**
  11160. * Write the contents of a file.
  11161. *
  11162. * @param string $path
  11163. * @param string|resource $contents
  11164. * @param mixed $options
  11165. * @return bool
  11166. * @static
  11167. */
  11168. public static function put($path, $contents, $options = [])
  11169. {
  11170. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11171. return $instance->put($path, $contents, $options);
  11172. }
  11173. /**
  11174. * Store the uploaded file on the disk.
  11175. *
  11176. * @param string $path
  11177. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11178. * @param array $options
  11179. * @return string|false
  11180. * @static
  11181. */
  11182. public static function putFile($path, $file, $options = [])
  11183. {
  11184. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11185. return $instance->putFile($path, $file, $options);
  11186. }
  11187. /**
  11188. * Store the uploaded file on the disk with a given name.
  11189. *
  11190. * @param string $path
  11191. * @param \Illuminate\Http\File|\Illuminate\Http\UploadedFile $file
  11192. * @param string $name
  11193. * @param array $options
  11194. * @return string|false
  11195. * @static
  11196. */
  11197. public static function putFileAs($path, $file, $name, $options = [])
  11198. {
  11199. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11200. return $instance->putFileAs($path, $file, $name, $options);
  11201. }
  11202. /**
  11203. * Get the visibility for the given path.
  11204. *
  11205. * @param string $path
  11206. * @return string
  11207. * @static
  11208. */
  11209. public static function getVisibility($path)
  11210. {
  11211. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11212. return $instance->getVisibility($path);
  11213. }
  11214. /**
  11215. * Set the visibility for the given path.
  11216. *
  11217. * @param string $path
  11218. * @param string $visibility
  11219. * @return void
  11220. * @static
  11221. */
  11222. public static function setVisibility($path, $visibility)
  11223. {
  11224. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11225. $instance->setVisibility($path, $visibility);
  11226. }
  11227. /**
  11228. * Prepend to a file.
  11229. *
  11230. * @param string $path
  11231. * @param string $data
  11232. * @param string $separator
  11233. * @return int
  11234. * @static
  11235. */
  11236. public static function prepend($path, $data, $separator = '
  11237. ')
  11238. {
  11239. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11240. return $instance->prepend($path, $data, $separator);
  11241. }
  11242. /**
  11243. * Append to a file.
  11244. *
  11245. * @param string $path
  11246. * @param string $data
  11247. * @param string $separator
  11248. * @return int
  11249. * @static
  11250. */
  11251. public static function append($path, $data, $separator = '
  11252. ')
  11253. {
  11254. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11255. return $instance->append($path, $data, $separator);
  11256. }
  11257. /**
  11258. * Delete the file at a given path.
  11259. *
  11260. * @param string|array $paths
  11261. * @return bool
  11262. * @static
  11263. */
  11264. public static function delete($paths)
  11265. {
  11266. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11267. return $instance->delete($paths);
  11268. }
  11269. /**
  11270. * Copy a file to a new location.
  11271. *
  11272. * @param string $from
  11273. * @param string $to
  11274. * @return bool
  11275. * @static
  11276. */
  11277. public static function copy($from, $to)
  11278. {
  11279. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11280. return $instance->copy($from, $to);
  11281. }
  11282. /**
  11283. * Move a file to a new location.
  11284. *
  11285. * @param string $from
  11286. * @param string $to
  11287. * @return bool
  11288. * @static
  11289. */
  11290. public static function move($from, $to)
  11291. {
  11292. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11293. return $instance->move($from, $to);
  11294. }
  11295. /**
  11296. * Get the file size of a given file.
  11297. *
  11298. * @param string $path
  11299. * @return int
  11300. * @static
  11301. */
  11302. public static function size($path)
  11303. {
  11304. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11305. return $instance->size($path);
  11306. }
  11307. /**
  11308. * Get the mime-type of a given file.
  11309. *
  11310. * @param string $path
  11311. * @return string|false
  11312. * @static
  11313. */
  11314. public static function mimeType($path)
  11315. {
  11316. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11317. return $instance->mimeType($path);
  11318. }
  11319. /**
  11320. * Get the file's last modification time.
  11321. *
  11322. * @param string $path
  11323. * @return int
  11324. * @static
  11325. */
  11326. public static function lastModified($path)
  11327. {
  11328. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11329. return $instance->lastModified($path);
  11330. }
  11331. /**
  11332. * Get the URL for the file at the given path.
  11333. *
  11334. * @param string $path
  11335. * @return string
  11336. * @static
  11337. */
  11338. public static function url($path)
  11339. {
  11340. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11341. return $instance->url($path);
  11342. }
  11343. /**
  11344. * Get a temporary URL for the file at the given path.
  11345. *
  11346. * @param string $path
  11347. * @param \DateTimeInterface $expiration
  11348. * @param array $options
  11349. * @return string
  11350. * @static
  11351. */
  11352. public static function temporaryUrl($path, $expiration, $options = [])
  11353. {
  11354. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11355. return $instance->temporaryUrl($path, $expiration, $options);
  11356. }
  11357. /**
  11358. * Get a temporary URL for the file at the given path.
  11359. *
  11360. * @param \League\Flysystem\AwsS3v3\AwsS3Adapter $adapter
  11361. * @param string $path
  11362. * @param \DateTimeInterface $expiration
  11363. * @param array $options
  11364. * @return string
  11365. * @static
  11366. */
  11367. public static function getAwsTemporaryUrl($adapter, $path, $expiration, $options)
  11368. {
  11369. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11370. return $instance->getAwsTemporaryUrl($adapter, $path, $expiration, $options);
  11371. }
  11372. /**
  11373. * Get a temporary URL for the file at the given path.
  11374. *
  11375. * @param \League\Flysystem\Rackspace\RackspaceAdapter $adapter
  11376. * @param string $path
  11377. * @param \DateTimeInterface $expiration
  11378. * @param array $options
  11379. * @return string
  11380. * @static
  11381. */
  11382. public static function getRackspaceTemporaryUrl($adapter, $path, $expiration, $options)
  11383. {
  11384. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11385. return $instance->getRackspaceTemporaryUrl($adapter, $path, $expiration, $options);
  11386. }
  11387. /**
  11388. * Get an array of all files in a directory.
  11389. *
  11390. * @param string|null $directory
  11391. * @param bool $recursive
  11392. * @return array
  11393. * @static
  11394. */
  11395. public static function files($directory = null, $recursive = false)
  11396. {
  11397. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11398. return $instance->files($directory, $recursive);
  11399. }
  11400. /**
  11401. * Get all of the files from the given directory (recursive).
  11402. *
  11403. * @param string|null $directory
  11404. * @return array
  11405. * @static
  11406. */
  11407. public static function allFiles($directory = null)
  11408. {
  11409. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11410. return $instance->allFiles($directory);
  11411. }
  11412. /**
  11413. * Get all of the directories within a given directory.
  11414. *
  11415. * @param string|null $directory
  11416. * @param bool $recursive
  11417. * @return array
  11418. * @static
  11419. */
  11420. public static function directories($directory = null, $recursive = false)
  11421. {
  11422. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11423. return $instance->directories($directory, $recursive);
  11424. }
  11425. /**
  11426. * Get all (recursive) of the directories within a given directory.
  11427. *
  11428. * @param string|null $directory
  11429. * @return array
  11430. * @static
  11431. */
  11432. public static function allDirectories($directory = null)
  11433. {
  11434. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11435. return $instance->allDirectories($directory);
  11436. }
  11437. /**
  11438. * Create a directory.
  11439. *
  11440. * @param string $path
  11441. * @return bool
  11442. * @static
  11443. */
  11444. public static function makeDirectory($path)
  11445. {
  11446. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11447. return $instance->makeDirectory($path);
  11448. }
  11449. /**
  11450. * Recursively delete a directory.
  11451. *
  11452. * @param string $directory
  11453. * @return bool
  11454. * @static
  11455. */
  11456. public static function deleteDirectory($directory)
  11457. {
  11458. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11459. return $instance->deleteDirectory($directory);
  11460. }
  11461. /**
  11462. * Flush the Flysystem cache.
  11463. *
  11464. * @return void
  11465. * @static
  11466. */
  11467. public static function flushCache()
  11468. {
  11469. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11470. $instance->flushCache();
  11471. }
  11472. /**
  11473. * Get the Flysystem driver.
  11474. *
  11475. * @return \League\Flysystem\FilesystemInterface
  11476. * @static
  11477. */
  11478. public static function getDriver()
  11479. {
  11480. /** @var \Illuminate\Filesystem\FilesystemAdapter $instance */
  11481. return $instance->getDriver();
  11482. }
  11483. }
  11484. /**
  11485. *
  11486. *
  11487. * @see \Illuminate\Routing\UrlGenerator
  11488. */
  11489. class URL {
  11490. /**
  11491. * Get the full URL for the current request.
  11492. *
  11493. * @return string
  11494. * @static
  11495. */
  11496. public static function full()
  11497. {
  11498. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11499. return $instance->full();
  11500. }
  11501. /**
  11502. * Get the current URL for the request.
  11503. *
  11504. * @return string
  11505. * @static
  11506. */
  11507. public static function current()
  11508. {
  11509. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11510. return $instance->current();
  11511. }
  11512. /**
  11513. * Get the URL for the previous request.
  11514. *
  11515. * @param mixed $fallback
  11516. * @return string
  11517. * @static
  11518. */
  11519. public static function previous($fallback = false)
  11520. {
  11521. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11522. return $instance->previous($fallback);
  11523. }
  11524. /**
  11525. * Generate an absolute URL to the given path.
  11526. *
  11527. * @param string $path
  11528. * @param mixed $extra
  11529. * @param bool|null $secure
  11530. * @return string
  11531. * @static
  11532. */
  11533. public static function to($path, $extra = [], $secure = null)
  11534. {
  11535. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11536. return $instance->to($path, $extra, $secure);
  11537. }
  11538. /**
  11539. * Generate a secure, absolute URL to the given path.
  11540. *
  11541. * @param string $path
  11542. * @param array $parameters
  11543. * @return string
  11544. * @static
  11545. */
  11546. public static function secure($path, $parameters = [])
  11547. {
  11548. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11549. return $instance->secure($path, $parameters);
  11550. }
  11551. /**
  11552. * Generate the URL to an application asset.
  11553. *
  11554. * @param string $path
  11555. * @param bool|null $secure
  11556. * @return string
  11557. * @static
  11558. */
  11559. public static function asset($path, $secure = null)
  11560. {
  11561. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11562. return $instance->asset($path, $secure);
  11563. }
  11564. /**
  11565. * Generate the URL to a secure asset.
  11566. *
  11567. * @param string $path
  11568. * @return string
  11569. * @static
  11570. */
  11571. public static function secureAsset($path)
  11572. {
  11573. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11574. return $instance->secureAsset($path);
  11575. }
  11576. /**
  11577. * Generate the URL to an asset from a custom root domain such as CDN, etc.
  11578. *
  11579. * @param string $root
  11580. * @param string $path
  11581. * @param bool|null $secure
  11582. * @return string
  11583. * @static
  11584. */
  11585. public static function assetFrom($root, $path, $secure = null)
  11586. {
  11587. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11588. return $instance->assetFrom($root, $path, $secure);
  11589. }
  11590. /**
  11591. * Get the default scheme for a raw URL.
  11592. *
  11593. * @param bool|null $secure
  11594. * @return string
  11595. * @static
  11596. */
  11597. public static function formatScheme($secure)
  11598. {
  11599. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11600. return $instance->formatScheme($secure);
  11601. }
  11602. /**
  11603. * Get the URL to a named route.
  11604. *
  11605. * @param string $name
  11606. * @param mixed $parameters
  11607. * @param bool $absolute
  11608. * @return string
  11609. * @throws \InvalidArgumentException
  11610. * @static
  11611. */
  11612. public static function route($name, $parameters = [], $absolute = true)
  11613. {
  11614. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11615. return $instance->route($name, $parameters, $absolute);
  11616. }
  11617. /**
  11618. * Get the URL to a controller action.
  11619. *
  11620. * @param string $action
  11621. * @param mixed $parameters
  11622. * @param bool $absolute
  11623. * @return string
  11624. * @throws \InvalidArgumentException
  11625. * @static
  11626. */
  11627. public static function action($action, $parameters = [], $absolute = true)
  11628. {
  11629. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11630. return $instance->action($action, $parameters, $absolute);
  11631. }
  11632. /**
  11633. * Format the array of URL parameters.
  11634. *
  11635. * @param mixed|array $parameters
  11636. * @return array
  11637. * @static
  11638. */
  11639. public static function formatParameters($parameters)
  11640. {
  11641. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11642. return $instance->formatParameters($parameters);
  11643. }
  11644. /**
  11645. * Get the base URL for the request.
  11646. *
  11647. * @param string $scheme
  11648. * @param string $root
  11649. * @return string
  11650. * @static
  11651. */
  11652. public static function formatRoot($scheme, $root = null)
  11653. {
  11654. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11655. return $instance->formatRoot($scheme, $root);
  11656. }
  11657. /**
  11658. * Format the given URL segments into a single URL.
  11659. *
  11660. * @param string $root
  11661. * @param string $path
  11662. * @return string
  11663. * @static
  11664. */
  11665. public static function format($root, $path)
  11666. {
  11667. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11668. return $instance->format($root, $path);
  11669. }
  11670. /**
  11671. * Determine if the given path is a valid URL.
  11672. *
  11673. * @param string $path
  11674. * @return bool
  11675. * @static
  11676. */
  11677. public static function isValidUrl($path)
  11678. {
  11679. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11680. return $instance->isValidUrl($path);
  11681. }
  11682. /**
  11683. * Set the default named parameters used by the URL generator.
  11684. *
  11685. * @param array $defaults
  11686. * @return void
  11687. * @static
  11688. */
  11689. public static function defaults($defaults)
  11690. {
  11691. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11692. $instance->defaults($defaults);
  11693. }
  11694. /**
  11695. * Get the default named parameters used by the URL generator.
  11696. *
  11697. * @return array
  11698. * @static
  11699. */
  11700. public static function getDefaultParameters()
  11701. {
  11702. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11703. return $instance->getDefaultParameters();
  11704. }
  11705. /**
  11706. * Force the scheme for URLs.
  11707. *
  11708. * @param string $schema
  11709. * @return void
  11710. * @static
  11711. */
  11712. public static function forceScheme($schema)
  11713. {
  11714. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11715. $instance->forceScheme($schema);
  11716. }
  11717. /**
  11718. * Set the forced root URL.
  11719. *
  11720. * @param string $root
  11721. * @return void
  11722. * @static
  11723. */
  11724. public static function forceRootUrl($root)
  11725. {
  11726. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11727. $instance->forceRootUrl($root);
  11728. }
  11729. /**
  11730. * Set a callback to be used to format the host of generated URLs.
  11731. *
  11732. * @param \Closure $callback
  11733. * @return \Illuminate\Routing\UrlGenerator
  11734. * @static
  11735. */
  11736. public static function formatHostUsing($callback)
  11737. {
  11738. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11739. return $instance->formatHostUsing($callback);
  11740. }
  11741. /**
  11742. * Set a callback to be used to format the path of generated URLs.
  11743. *
  11744. * @param \Closure $callback
  11745. * @return \Illuminate\Routing\UrlGenerator
  11746. * @static
  11747. */
  11748. public static function formatPathUsing($callback)
  11749. {
  11750. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11751. return $instance->formatPathUsing($callback);
  11752. }
  11753. /**
  11754. * Get the path formatter being used by the URL generator.
  11755. *
  11756. * @return \Closure
  11757. * @static
  11758. */
  11759. public static function pathFormatter()
  11760. {
  11761. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11762. return $instance->pathFormatter();
  11763. }
  11764. /**
  11765. * Get the request instance.
  11766. *
  11767. * @return \Illuminate\Http\Request
  11768. * @static
  11769. */
  11770. public static function getRequest()
  11771. {
  11772. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11773. return $instance->getRequest();
  11774. }
  11775. /**
  11776. * Set the current request instance.
  11777. *
  11778. * @param \Illuminate\Http\Request $request
  11779. * @return void
  11780. * @static
  11781. */
  11782. public static function setRequest($request)
  11783. {
  11784. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11785. $instance->setRequest($request);
  11786. }
  11787. /**
  11788. * Set the route collection.
  11789. *
  11790. * @param \Illuminate\Routing\RouteCollection $routes
  11791. * @return \Illuminate\Routing\UrlGenerator
  11792. * @static
  11793. */
  11794. public static function setRoutes($routes)
  11795. {
  11796. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11797. return $instance->setRoutes($routes);
  11798. }
  11799. /**
  11800. * Set the session resolver for the generator.
  11801. *
  11802. * @param callable $sessionResolver
  11803. * @return \Illuminate\Routing\UrlGenerator
  11804. * @static
  11805. */
  11806. public static function setSessionResolver($sessionResolver)
  11807. {
  11808. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11809. return $instance->setSessionResolver($sessionResolver);
  11810. }
  11811. /**
  11812. * Set the root controller namespace.
  11813. *
  11814. * @param string $rootNamespace
  11815. * @return \Illuminate\Routing\UrlGenerator
  11816. * @static
  11817. */
  11818. public static function setRootControllerNamespace($rootNamespace)
  11819. {
  11820. /** @var \Illuminate\Routing\UrlGenerator $instance */
  11821. return $instance->setRootControllerNamespace($rootNamespace);
  11822. }
  11823. /**
  11824. * Register a custom macro.
  11825. *
  11826. * @param string $name
  11827. * @param object|callable $macro
  11828. * @return void
  11829. * @static
  11830. */
  11831. public static function macro($name, $macro)
  11832. {
  11833. \Illuminate\Routing\UrlGenerator::macro($name, $macro);
  11834. }
  11835. /**
  11836. * Mix another object into the class.
  11837. *
  11838. * @param object $mixin
  11839. * @return void
  11840. * @static
  11841. */
  11842. public static function mixin($mixin)
  11843. {
  11844. \Illuminate\Routing\UrlGenerator::mixin($mixin);
  11845. }
  11846. /**
  11847. * Checks if macro is registered.
  11848. *
  11849. * @param string $name
  11850. * @return bool
  11851. * @static
  11852. */
  11853. public static function hasMacro($name)
  11854. {
  11855. return \Illuminate\Routing\UrlGenerator::hasMacro($name);
  11856. }
  11857. }
  11858. /**
  11859. *
  11860. *
  11861. * @see \Illuminate\Validation\Factory
  11862. */
  11863. class Validator {
  11864. /**
  11865. * Create a new Validator instance.
  11866. *
  11867. * @param array $data
  11868. * @param array $rules
  11869. * @param array $messages
  11870. * @param array $customAttributes
  11871. * @return \Illuminate\Validation\Validator
  11872. * @static
  11873. */
  11874. public static function make($data, $rules, $messages = [], $customAttributes = [])
  11875. {
  11876. /** @var \Illuminate\Validation\Factory $instance */
  11877. return $instance->make($data, $rules, $messages, $customAttributes);
  11878. }
  11879. /**
  11880. * Validate the given data against the provided rules.
  11881. *
  11882. * @param array $data
  11883. * @param array $rules
  11884. * @param array $messages
  11885. * @param array $customAttributes
  11886. * @return void
  11887. * @throws \Illuminate\Validation\ValidationException
  11888. * @static
  11889. */
  11890. public static function validate($data, $rules, $messages = [], $customAttributes = [])
  11891. {
  11892. /** @var \Illuminate\Validation\Factory $instance */
  11893. $instance->validate($data, $rules, $messages, $customAttributes);
  11894. }
  11895. /**
  11896. * Register a custom validator extension.
  11897. *
  11898. * @param string $rule
  11899. * @param \Closure|string $extension
  11900. * @param string $message
  11901. * @return void
  11902. * @static
  11903. */
  11904. public static function extend($rule, $extension, $message = null)
  11905. {
  11906. /** @var \Illuminate\Validation\Factory $instance */
  11907. $instance->extend($rule, $extension, $message);
  11908. }
  11909. /**
  11910. * Register a custom implicit validator extension.
  11911. *
  11912. * @param string $rule
  11913. * @param \Closure|string $extension
  11914. * @param string $message
  11915. * @return void
  11916. * @static
  11917. */
  11918. public static function extendImplicit($rule, $extension, $message = null)
  11919. {
  11920. /** @var \Illuminate\Validation\Factory $instance */
  11921. $instance->extendImplicit($rule, $extension, $message);
  11922. }
  11923. /**
  11924. * Register a custom dependent validator extension.
  11925. *
  11926. * @param string $rule
  11927. * @param \Closure|string $extension
  11928. * @param string $message
  11929. * @return void
  11930. * @static
  11931. */
  11932. public static function extendDependent($rule, $extension, $message = null)
  11933. {
  11934. /** @var \Illuminate\Validation\Factory $instance */
  11935. $instance->extendDependent($rule, $extension, $message);
  11936. }
  11937. /**
  11938. * Register a custom validator message replacer.
  11939. *
  11940. * @param string $rule
  11941. * @param \Closure|string $replacer
  11942. * @return void
  11943. * @static
  11944. */
  11945. public static function replacer($rule, $replacer)
  11946. {
  11947. /** @var \Illuminate\Validation\Factory $instance */
  11948. $instance->replacer($rule, $replacer);
  11949. }
  11950. /**
  11951. * Set the Validator instance resolver.
  11952. *
  11953. * @param \Closure $resolver
  11954. * @return void
  11955. * @static
  11956. */
  11957. public static function resolver($resolver)
  11958. {
  11959. /** @var \Illuminate\Validation\Factory $instance */
  11960. $instance->resolver($resolver);
  11961. }
  11962. /**
  11963. * Get the Translator implementation.
  11964. *
  11965. * @return \Illuminate\Contracts\Translation\Translator
  11966. * @static
  11967. */
  11968. public static function getTranslator()
  11969. {
  11970. /** @var \Illuminate\Validation\Factory $instance */
  11971. return $instance->getTranslator();
  11972. }
  11973. /**
  11974. * Get the Presence Verifier implementation.
  11975. *
  11976. * @return \Illuminate\Validation\PresenceVerifierInterface
  11977. * @static
  11978. */
  11979. public static function getPresenceVerifier()
  11980. {
  11981. /** @var \Illuminate\Validation\Factory $instance */
  11982. return $instance->getPresenceVerifier();
  11983. }
  11984. /**
  11985. * Set the Presence Verifier implementation.
  11986. *
  11987. * @param \Illuminate\Validation\PresenceVerifierInterface $presenceVerifier
  11988. * @return void
  11989. * @static
  11990. */
  11991. public static function setPresenceVerifier($presenceVerifier)
  11992. {
  11993. /** @var \Illuminate\Validation\Factory $instance */
  11994. $instance->setPresenceVerifier($presenceVerifier);
  11995. }
  11996. }
  11997. /**
  11998. *
  11999. *
  12000. * @see \Illuminate\View\Factory
  12001. */
  12002. class View {
  12003. /**
  12004. * Get the evaluated view contents for the given view.
  12005. *
  12006. * @param string $path
  12007. * @param array $data
  12008. * @param array $mergeData
  12009. * @return \Illuminate\Contracts\View\View
  12010. * @static
  12011. */
  12012. public static function file($path, $data = [], $mergeData = [])
  12013. {
  12014. /** @var \Illuminate\View\Factory $instance */
  12015. return $instance->file($path, $data, $mergeData);
  12016. }
  12017. /**
  12018. * Get the evaluated view contents for the given view.
  12019. *
  12020. * @param string $view
  12021. * @param array $data
  12022. * @param array $mergeData
  12023. * @return \Illuminate\Contracts\View\View
  12024. * @static
  12025. */
  12026. public static function make($view, $data = [], $mergeData = [])
  12027. {
  12028. /** @var \Illuminate\View\Factory $instance */
  12029. return $instance->make($view, $data, $mergeData);
  12030. }
  12031. /**
  12032. * Get the first view that actually exists from the given list.
  12033. *
  12034. * @param array $views
  12035. * @param array $data
  12036. * @param array $mergeData
  12037. * @return \Illuminate\Contracts\View\View
  12038. * @static
  12039. */
  12040. public static function first($views, $data = [], $mergeData = [])
  12041. {
  12042. /** @var \Illuminate\View\Factory $instance */
  12043. return $instance->first($views, $data, $mergeData);
  12044. }
  12045. /**
  12046. * Get the rendered content of the view based on a given condition.
  12047. *
  12048. * @param bool $condition
  12049. * @param string $view
  12050. * @param array $data
  12051. * @param array $mergeData
  12052. * @return string
  12053. * @static
  12054. */
  12055. public static function renderWhen($condition, $view, $data = [], $mergeData = [])
  12056. {
  12057. /** @var \Illuminate\View\Factory $instance */
  12058. return $instance->renderWhen($condition, $view, $data, $mergeData);
  12059. }
  12060. /**
  12061. * Get the rendered contents of a partial from a loop.
  12062. *
  12063. * @param string $view
  12064. * @param array $data
  12065. * @param string $iterator
  12066. * @param string $empty
  12067. * @return string
  12068. * @static
  12069. */
  12070. public static function renderEach($view, $data, $iterator, $empty = 'raw|')
  12071. {
  12072. /** @var \Illuminate\View\Factory $instance */
  12073. return $instance->renderEach($view, $data, $iterator, $empty);
  12074. }
  12075. /**
  12076. * Determine if a given view exists.
  12077. *
  12078. * @param string $view
  12079. * @return bool
  12080. * @static
  12081. */
  12082. public static function exists($view)
  12083. {
  12084. /** @var \Illuminate\View\Factory $instance */
  12085. return $instance->exists($view);
  12086. }
  12087. /**
  12088. * Get the appropriate view engine for the given path.
  12089. *
  12090. * @param string $path
  12091. * @return \Illuminate\Contracts\View\Engine
  12092. * @throws \InvalidArgumentException
  12093. * @static
  12094. */
  12095. public static function getEngineFromPath($path)
  12096. {
  12097. /** @var \Illuminate\View\Factory $instance */
  12098. return $instance->getEngineFromPath($path);
  12099. }
  12100. /**
  12101. * Add a piece of shared data to the environment.
  12102. *
  12103. * @param array|string $key
  12104. * @param mixed $value
  12105. * @return mixed
  12106. * @static
  12107. */
  12108. public static function share($key, $value = null)
  12109. {
  12110. /** @var \Illuminate\View\Factory $instance */
  12111. return $instance->share($key, $value);
  12112. }
  12113. /**
  12114. * Increment the rendering counter.
  12115. *
  12116. * @return void
  12117. * @static
  12118. */
  12119. public static function incrementRender()
  12120. {
  12121. /** @var \Illuminate\View\Factory $instance */
  12122. $instance->incrementRender();
  12123. }
  12124. /**
  12125. * Decrement the rendering counter.
  12126. *
  12127. * @return void
  12128. * @static
  12129. */
  12130. public static function decrementRender()
  12131. {
  12132. /** @var \Illuminate\View\Factory $instance */
  12133. $instance->decrementRender();
  12134. }
  12135. /**
  12136. * Check if there are no active render operations.
  12137. *
  12138. * @return bool
  12139. * @static
  12140. */
  12141. public static function doneRendering()
  12142. {
  12143. /** @var \Illuminate\View\Factory $instance */
  12144. return $instance->doneRendering();
  12145. }
  12146. /**
  12147. * Add a location to the array of view locations.
  12148. *
  12149. * @param string $location
  12150. * @return void
  12151. * @static
  12152. */
  12153. public static function addLocation($location)
  12154. {
  12155. /** @var \Illuminate\View\Factory $instance */
  12156. $instance->addLocation($location);
  12157. }
  12158. /**
  12159. * Add a new namespace to the loader.
  12160. *
  12161. * @param string $namespace
  12162. * @param string|array $hints
  12163. * @return \Illuminate\View\Factory
  12164. * @static
  12165. */
  12166. public static function addNamespace($namespace, $hints)
  12167. {
  12168. /** @var \Illuminate\View\Factory $instance */
  12169. return $instance->addNamespace($namespace, $hints);
  12170. }
  12171. /**
  12172. * Prepend a new namespace to the loader.
  12173. *
  12174. * @param string $namespace
  12175. * @param string|array $hints
  12176. * @return \Illuminate\View\Factory
  12177. * @static
  12178. */
  12179. public static function prependNamespace($namespace, $hints)
  12180. {
  12181. /** @var \Illuminate\View\Factory $instance */
  12182. return $instance->prependNamespace($namespace, $hints);
  12183. }
  12184. /**
  12185. * Replace the namespace hints for the given namespace.
  12186. *
  12187. * @param string $namespace
  12188. * @param string|array $hints
  12189. * @return \Illuminate\View\Factory
  12190. * @static
  12191. */
  12192. public static function replaceNamespace($namespace, $hints)
  12193. {
  12194. /** @var \Illuminate\View\Factory $instance */
  12195. return $instance->replaceNamespace($namespace, $hints);
  12196. }
  12197. /**
  12198. * Register a valid view extension and its engine.
  12199. *
  12200. * @param string $extension
  12201. * @param string $engine
  12202. * @param \Closure $resolver
  12203. * @return void
  12204. * @static
  12205. */
  12206. public static function addExtension($extension, $engine, $resolver = null)
  12207. {
  12208. /** @var \Illuminate\View\Factory $instance */
  12209. $instance->addExtension($extension, $engine, $resolver);
  12210. }
  12211. /**
  12212. * Flush all of the factory state like sections and stacks.
  12213. *
  12214. * @return void
  12215. * @static
  12216. */
  12217. public static function flushState()
  12218. {
  12219. /** @var \Illuminate\View\Factory $instance */
  12220. $instance->flushState();
  12221. }
  12222. /**
  12223. * Flush all of the section contents if done rendering.
  12224. *
  12225. * @return void
  12226. * @static
  12227. */
  12228. public static function flushStateIfDoneRendering()
  12229. {
  12230. /** @var \Illuminate\View\Factory $instance */
  12231. $instance->flushStateIfDoneRendering();
  12232. }
  12233. /**
  12234. * Get the extension to engine bindings.
  12235. *
  12236. * @return array
  12237. * @static
  12238. */
  12239. public static function getExtensions()
  12240. {
  12241. /** @var \Illuminate\View\Factory $instance */
  12242. return $instance->getExtensions();
  12243. }
  12244. /**
  12245. * Get the engine resolver instance.
  12246. *
  12247. * @return \Illuminate\View\Engines\EngineResolver
  12248. * @static
  12249. */
  12250. public static function getEngineResolver()
  12251. {
  12252. /** @var \Illuminate\View\Factory $instance */
  12253. return $instance->getEngineResolver();
  12254. }
  12255. /**
  12256. * Get the view finder instance.
  12257. *
  12258. * @return \Illuminate\View\ViewFinderInterface
  12259. * @static
  12260. */
  12261. public static function getFinder()
  12262. {
  12263. /** @var \Illuminate\View\Factory $instance */
  12264. return $instance->getFinder();
  12265. }
  12266. /**
  12267. * Set the view finder instance.
  12268. *
  12269. * @param \Illuminate\View\ViewFinderInterface $finder
  12270. * @return void
  12271. * @static
  12272. */
  12273. public static function setFinder($finder)
  12274. {
  12275. /** @var \Illuminate\View\Factory $instance */
  12276. $instance->setFinder($finder);
  12277. }
  12278. /**
  12279. * Flush the cache of views located by the finder.
  12280. *
  12281. * @return void
  12282. * @static
  12283. */
  12284. public static function flushFinderCache()
  12285. {
  12286. /** @var \Illuminate\View\Factory $instance */
  12287. $instance->flushFinderCache();
  12288. }
  12289. /**
  12290. * Get the event dispatcher instance.
  12291. *
  12292. * @return \Illuminate\Contracts\Events\Dispatcher
  12293. * @static
  12294. */
  12295. public static function getDispatcher()
  12296. {
  12297. /** @var \Illuminate\View\Factory $instance */
  12298. return $instance->getDispatcher();
  12299. }
  12300. /**
  12301. * Set the event dispatcher instance.
  12302. *
  12303. * @param \Illuminate\Contracts\Events\Dispatcher $events
  12304. * @return void
  12305. * @static
  12306. */
  12307. public static function setDispatcher($events)
  12308. {
  12309. /** @var \Illuminate\View\Factory $instance */
  12310. $instance->setDispatcher($events);
  12311. }
  12312. /**
  12313. * Get the IoC container instance.
  12314. *
  12315. * @return \Illuminate\Contracts\Container\Container
  12316. * @static
  12317. */
  12318. public static function getContainer()
  12319. {
  12320. /** @var \Illuminate\View\Factory $instance */
  12321. return $instance->getContainer();
  12322. }
  12323. /**
  12324. * Set the IoC container instance.
  12325. *
  12326. * @param \Illuminate\Contracts\Container\Container $container
  12327. * @return void
  12328. * @static
  12329. */
  12330. public static function setContainer($container)
  12331. {
  12332. /** @var \Illuminate\View\Factory $instance */
  12333. $instance->setContainer($container);
  12334. }
  12335. /**
  12336. * Get an item from the shared data.
  12337. *
  12338. * @param string $key
  12339. * @param mixed $default
  12340. * @return mixed
  12341. * @static
  12342. */
  12343. public static function shared($key, $default = null)
  12344. {
  12345. /** @var \Illuminate\View\Factory $instance */
  12346. return $instance->shared($key, $default);
  12347. }
  12348. /**
  12349. * Get all of the shared data for the environment.
  12350. *
  12351. * @return array
  12352. * @static
  12353. */
  12354. public static function getShared()
  12355. {
  12356. /** @var \Illuminate\View\Factory $instance */
  12357. return $instance->getShared();
  12358. }
  12359. /**
  12360. * Start a component rendering process.
  12361. *
  12362. * @param string $name
  12363. * @param array $data
  12364. * @return void
  12365. * @static
  12366. */
  12367. public static function startComponent($name, $data = [])
  12368. {
  12369. /** @var \Illuminate\View\Factory $instance */
  12370. $instance->startComponent($name, $data);
  12371. }
  12372. /**
  12373. * Render the current component.
  12374. *
  12375. * @return string
  12376. * @static
  12377. */
  12378. public static function renderComponent()
  12379. {
  12380. /** @var \Illuminate\View\Factory $instance */
  12381. return $instance->renderComponent();
  12382. }
  12383. /**
  12384. * Start the slot rendering process.
  12385. *
  12386. * @param string $name
  12387. * @param string|null $content
  12388. * @return void
  12389. * @static
  12390. */
  12391. public static function slot($name, $content = null)
  12392. {
  12393. /** @var \Illuminate\View\Factory $instance */
  12394. $instance->slot($name, $content);
  12395. }
  12396. /**
  12397. * Save the slot content for rendering.
  12398. *
  12399. * @return void
  12400. * @static
  12401. */
  12402. public static function endSlot()
  12403. {
  12404. /** @var \Illuminate\View\Factory $instance */
  12405. $instance->endSlot();
  12406. }
  12407. /**
  12408. * Register a view creator event.
  12409. *
  12410. * @param array|string $views
  12411. * @param \Closure|string $callback
  12412. * @return array
  12413. * @static
  12414. */
  12415. public static function creator($views, $callback)
  12416. {
  12417. /** @var \Illuminate\View\Factory $instance */
  12418. return $instance->creator($views, $callback);
  12419. }
  12420. /**
  12421. * Register multiple view composers via an array.
  12422. *
  12423. * @param array $composers
  12424. * @return array
  12425. * @static
  12426. */
  12427. public static function composers($composers)
  12428. {
  12429. /** @var \Illuminate\View\Factory $instance */
  12430. return $instance->composers($composers);
  12431. }
  12432. /**
  12433. * Register a view composer event.
  12434. *
  12435. * @param array|string $views
  12436. * @param \Closure|string $callback
  12437. * @return array
  12438. * @static
  12439. */
  12440. public static function composer($views, $callback)
  12441. {
  12442. /** @var \Illuminate\View\Factory $instance */
  12443. return $instance->composer($views, $callback);
  12444. }
  12445. /**
  12446. * Call the composer for a given view.
  12447. *
  12448. * @param \Illuminate\Contracts\View\View $view
  12449. * @return void
  12450. * @static
  12451. */
  12452. public static function callComposer($view)
  12453. {
  12454. /** @var \Illuminate\View\Factory $instance */
  12455. $instance->callComposer($view);
  12456. }
  12457. /**
  12458. * Call the creator for a given view.
  12459. *
  12460. * @param \Illuminate\Contracts\View\View $view
  12461. * @return void
  12462. * @static
  12463. */
  12464. public static function callCreator($view)
  12465. {
  12466. /** @var \Illuminate\View\Factory $instance */
  12467. $instance->callCreator($view);
  12468. }
  12469. /**
  12470. * Start injecting content into a section.
  12471. *
  12472. * @param string $section
  12473. * @param string|null $content
  12474. * @return void
  12475. * @static
  12476. */
  12477. public static function startSection($section, $content = null)
  12478. {
  12479. /** @var \Illuminate\View\Factory $instance */
  12480. $instance->startSection($section, $content);
  12481. }
  12482. /**
  12483. * Inject inline content into a section.
  12484. *
  12485. * @param string $section
  12486. * @param string $content
  12487. * @return void
  12488. * @static
  12489. */
  12490. public static function inject($section, $content)
  12491. {
  12492. /** @var \Illuminate\View\Factory $instance */
  12493. $instance->inject($section, $content);
  12494. }
  12495. /**
  12496. * Stop injecting content into a section and return its contents.
  12497. *
  12498. * @return string
  12499. * @static
  12500. */
  12501. public static function yieldSection()
  12502. {
  12503. /** @var \Illuminate\View\Factory $instance */
  12504. return $instance->yieldSection();
  12505. }
  12506. /**
  12507. * Stop injecting content into a section.
  12508. *
  12509. * @param bool $overwrite
  12510. * @return string
  12511. * @throws \InvalidArgumentException
  12512. * @static
  12513. */
  12514. public static function stopSection($overwrite = false)
  12515. {
  12516. /** @var \Illuminate\View\Factory $instance */
  12517. return $instance->stopSection($overwrite);
  12518. }
  12519. /**
  12520. * Stop injecting content into a section and append it.
  12521. *
  12522. * @return string
  12523. * @throws \InvalidArgumentException
  12524. * @static
  12525. */
  12526. public static function appendSection()
  12527. {
  12528. /** @var \Illuminate\View\Factory $instance */
  12529. return $instance->appendSection();
  12530. }
  12531. /**
  12532. * Get the string contents of a section.
  12533. *
  12534. * @param string $section
  12535. * @param string $default
  12536. * @return string
  12537. * @static
  12538. */
  12539. public static function yieldContent($section, $default = '')
  12540. {
  12541. /** @var \Illuminate\View\Factory $instance */
  12542. return $instance->yieldContent($section, $default);
  12543. }
  12544. /**
  12545. * Get the parent placeholder for the current request.
  12546. *
  12547. * @param string $section
  12548. * @return string
  12549. * @static
  12550. */
  12551. public static function parentPlaceholder($section = '')
  12552. {
  12553. return \Illuminate\View\Factory::parentPlaceholder($section);
  12554. }
  12555. /**
  12556. * Check if section exists.
  12557. *
  12558. * @param string $name
  12559. * @return bool
  12560. * @static
  12561. */
  12562. public static function hasSection($name)
  12563. {
  12564. /** @var \Illuminate\View\Factory $instance */
  12565. return $instance->hasSection($name);
  12566. }
  12567. /**
  12568. * Get the contents of a section.
  12569. *
  12570. * @param string $name
  12571. * @param string $default
  12572. * @return mixed
  12573. * @static
  12574. */
  12575. public static function getSection($name, $default = null)
  12576. {
  12577. /** @var \Illuminate\View\Factory $instance */
  12578. return $instance->getSection($name, $default);
  12579. }
  12580. /**
  12581. * Get the entire array of sections.
  12582. *
  12583. * @return array
  12584. * @static
  12585. */
  12586. public static function getSections()
  12587. {
  12588. /** @var \Illuminate\View\Factory $instance */
  12589. return $instance->getSections();
  12590. }
  12591. /**
  12592. * Flush all of the sections.
  12593. *
  12594. * @return void
  12595. * @static
  12596. */
  12597. public static function flushSections()
  12598. {
  12599. /** @var \Illuminate\View\Factory $instance */
  12600. $instance->flushSections();
  12601. }
  12602. /**
  12603. * Add new loop to the stack.
  12604. *
  12605. * @param \Countable|array $data
  12606. * @return void
  12607. * @static
  12608. */
  12609. public static function addLoop($data)
  12610. {
  12611. /** @var \Illuminate\View\Factory $instance */
  12612. $instance->addLoop($data);
  12613. }
  12614. /**
  12615. * Increment the top loop's indices.
  12616. *
  12617. * @return void
  12618. * @static
  12619. */
  12620. public static function incrementLoopIndices()
  12621. {
  12622. /** @var \Illuminate\View\Factory $instance */
  12623. $instance->incrementLoopIndices();
  12624. }
  12625. /**
  12626. * Pop a loop from the top of the loop stack.
  12627. *
  12628. * @return void
  12629. * @static
  12630. */
  12631. public static function popLoop()
  12632. {
  12633. /** @var \Illuminate\View\Factory $instance */
  12634. $instance->popLoop();
  12635. }
  12636. /**
  12637. * Get an instance of the last loop in the stack.
  12638. *
  12639. * @return \stdClass|null
  12640. * @static
  12641. */
  12642. public static function getLastLoop()
  12643. {
  12644. /** @var \Illuminate\View\Factory $instance */
  12645. return $instance->getLastLoop();
  12646. }
  12647. /**
  12648. * Get the entire loop stack.
  12649. *
  12650. * @return array
  12651. * @static
  12652. */
  12653. public static function getLoopStack()
  12654. {
  12655. /** @var \Illuminate\View\Factory $instance */
  12656. return $instance->getLoopStack();
  12657. }
  12658. /**
  12659. * Start injecting content into a push section.
  12660. *
  12661. * @param string $section
  12662. * @param string $content
  12663. * @return void
  12664. * @static
  12665. */
  12666. public static function startPush($section, $content = '')
  12667. {
  12668. /** @var \Illuminate\View\Factory $instance */
  12669. $instance->startPush($section, $content);
  12670. }
  12671. /**
  12672. * Stop injecting content into a push section.
  12673. *
  12674. * @return string
  12675. * @throws \InvalidArgumentException
  12676. * @static
  12677. */
  12678. public static function stopPush()
  12679. {
  12680. /** @var \Illuminate\View\Factory $instance */
  12681. return $instance->stopPush();
  12682. }
  12683. /**
  12684. * Start prepending content into a push section.
  12685. *
  12686. * @param string $section
  12687. * @param string $content
  12688. * @return void
  12689. * @static
  12690. */
  12691. public static function startPrepend($section, $content = '')
  12692. {
  12693. /** @var \Illuminate\View\Factory $instance */
  12694. $instance->startPrepend($section, $content);
  12695. }
  12696. /**
  12697. * Stop prepending content into a push section.
  12698. *
  12699. * @return string
  12700. * @throws \InvalidArgumentException
  12701. * @static
  12702. */
  12703. public static function stopPrepend()
  12704. {
  12705. /** @var \Illuminate\View\Factory $instance */
  12706. return $instance->stopPrepend();
  12707. }
  12708. /**
  12709. * Get the string contents of a push section.
  12710. *
  12711. * @param string $section
  12712. * @param string $default
  12713. * @return string
  12714. * @static
  12715. */
  12716. public static function yieldPushContent($section, $default = '')
  12717. {
  12718. /** @var \Illuminate\View\Factory $instance */
  12719. return $instance->yieldPushContent($section, $default);
  12720. }
  12721. /**
  12722. * Flush all of the stacks.
  12723. *
  12724. * @return void
  12725. * @static
  12726. */
  12727. public static function flushStacks()
  12728. {
  12729. /** @var \Illuminate\View\Factory $instance */
  12730. $instance->flushStacks();
  12731. }
  12732. /**
  12733. * Start a translation block.
  12734. *
  12735. * @param array $replacements
  12736. * @return void
  12737. * @static
  12738. */
  12739. public static function startTranslation($replacements = [])
  12740. {
  12741. /** @var \Illuminate\View\Factory $instance */
  12742. $instance->startTranslation($replacements);
  12743. }
  12744. /**
  12745. * Render the current translation.
  12746. *
  12747. * @return string
  12748. * @static
  12749. */
  12750. public static function renderTranslation()
  12751. {
  12752. /** @var \Illuminate\View\Factory $instance */
  12753. return $instance->renderTranslation();
  12754. }
  12755. }
  12756. }
  12757. namespace Maatwebsite\Excel\Facades {
  12758. /**
  12759. *
  12760. *
  12761. */
  12762. class Excel {
  12763. /**
  12764. *
  12765. *
  12766. * @param object $export
  12767. * @param string|null $fileName
  12768. * @param string $writerType
  12769. * @param array $headers
  12770. * @throws \PhpOffice\PhpSpreadsheet\Exception
  12771. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  12772. * @return \Maatwebsite\Excel\BinaryFileResponse
  12773. * @static
  12774. */
  12775. public static function download($export, $fileName, $writerType = null, $headers = [])
  12776. {
  12777. /** @var \Maatwebsite\Excel\Excel $instance */
  12778. return $instance->download($export, $fileName, $writerType, $headers);
  12779. }
  12780. /**
  12781. *
  12782. *
  12783. * @param object $export
  12784. * @param string $filePath
  12785. * @param string|null $disk
  12786. * @param string $writerType
  12787. * @param mixed $diskOptions
  12788. * @throws \PhpOffice\PhpSpreadsheet\Exception
  12789. * @throws \PhpOffice\PhpSpreadsheet\Writer\Exception
  12790. * @return bool
  12791. * @static
  12792. */
  12793. public static function store($export, $filePath, $diskName = null, $writerType = null, $diskOptions = [])
  12794. {
  12795. /** @var \Maatwebsite\Excel\Excel $instance */
  12796. return $instance->store($export, $filePath, $diskName, $writerType, $diskOptions);
  12797. }
  12798. /**
  12799. *
  12800. *
  12801. * @param object $export
  12802. * @param string $filePath
  12803. * @param string|null $disk
  12804. * @param string $writerType
  12805. * @param mixed $diskOptions
  12806. * @return \Maatwebsite\Excel\PendingDispatch
  12807. * @static
  12808. */
  12809. public static function queue($export, $filePath, $disk = null, $writerType = null, $diskOptions = [])
  12810. {
  12811. /** @var \Maatwebsite\Excel\Excel $instance */
  12812. return $instance->queue($export, $filePath, $disk, $writerType, $diskOptions);
  12813. }
  12814. /**
  12815. *
  12816. *
  12817. * @param object $export
  12818. * @param string $writerType
  12819. * @return string
  12820. * @static
  12821. */
  12822. public static function raw($export, $writerType)
  12823. {
  12824. /** @var \Maatwebsite\Excel\Excel $instance */
  12825. return $instance->raw($export, $writerType);
  12826. }
  12827. /**
  12828. *
  12829. *
  12830. * @param object $import
  12831. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  12832. * @param string|null $disk
  12833. * @param string|null $readerType
  12834. * @return \Maatwebsite\Excel\Reader|\Maatwebsite\Excel\PendingDispatch
  12835. * @static
  12836. */
  12837. public static function import($import, $filePath, $disk = null, $readerType = null)
  12838. {
  12839. /** @var \Maatwebsite\Excel\Excel $instance */
  12840. return $instance->import($import, $filePath, $disk, $readerType);
  12841. }
  12842. /**
  12843. *
  12844. *
  12845. * @param object $import
  12846. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  12847. * @param string|null $disk
  12848. * @param string|null $readerType
  12849. * @return array
  12850. * @static
  12851. */
  12852. public static function toArray($import, $filePath, $disk = null, $readerType = null)
  12853. {
  12854. /** @var \Maatwebsite\Excel\Excel $instance */
  12855. return $instance->toArray($import, $filePath, $disk, $readerType);
  12856. }
  12857. /**
  12858. *
  12859. *
  12860. * @param object $import
  12861. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  12862. * @param string|null $disk
  12863. * @param string|null $readerType
  12864. * @return \Maatwebsite\Excel\Collection
  12865. * @static
  12866. */
  12867. public static function toCollection($import, $filePath, $disk = null, $readerType = null)
  12868. {
  12869. /** @var \Maatwebsite\Excel\Excel $instance */
  12870. return $instance->toCollection($import, $filePath, $disk, $readerType);
  12871. }
  12872. /**
  12873. *
  12874. *
  12875. * @param \Maatwebsite\Excel\ShouldQueue $import
  12876. * @param string|\Maatwebsite\Excel\UploadedFile $filePath
  12877. * @param string|null $disk
  12878. * @param string $readerType
  12879. * @return \Maatwebsite\Excel\PendingDispatch
  12880. * @static
  12881. */
  12882. public static function queueImport($import, $filePath, $disk = null, $readerType = null)
  12883. {
  12884. /** @var \Maatwebsite\Excel\Excel $instance */
  12885. return $instance->queueImport($import, $filePath, $disk, $readerType);
  12886. }
  12887. /**
  12888. *
  12889. *
  12890. * @param string $concern
  12891. * @param callable $handler
  12892. * @param string $event
  12893. * @static
  12894. */
  12895. public static function extend($concern, $handler, $event = 'Maatwebsite\\Excel\\Events\\BeforeWriting')
  12896. {
  12897. return \Maatwebsite\Excel\Excel::extend($concern, $handler, $event);
  12898. }
  12899. /**
  12900. * When asserting downloaded, stored, queued or imported, use regular expression
  12901. * to look for a matching file path.
  12902. *
  12903. * @return void
  12904. * @static
  12905. */
  12906. public static function matchByRegex()
  12907. {
  12908. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  12909. $instance->matchByRegex();
  12910. }
  12911. /**
  12912. * When asserting downloaded, stored, queued or imported, use regular string
  12913. * comparison for matching file path.
  12914. *
  12915. * @return void
  12916. * @static
  12917. */
  12918. public static function doNotMatchByRegex()
  12919. {
  12920. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  12921. $instance->doNotMatchByRegex();
  12922. }
  12923. /**
  12924. *
  12925. *
  12926. * @param string $fileName
  12927. * @param callable|null $callback
  12928. * @static
  12929. */
  12930. public static function assertDownloaded($fileName, $callback = null)
  12931. {
  12932. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  12933. return $instance->assertDownloaded($fileName, $callback);
  12934. }
  12935. /**
  12936. *
  12937. *
  12938. * @param string $filePath
  12939. * @param string|callable|null $disk
  12940. * @param callable|null $callback
  12941. * @static
  12942. */
  12943. public static function assertStored($filePath, $disk = null, $callback = null)
  12944. {
  12945. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  12946. return $instance->assertStored($filePath, $disk, $callback);
  12947. }
  12948. /**
  12949. *
  12950. *
  12951. * @param string $filePath
  12952. * @param string|callable|null $disk
  12953. * @param callable|null $callback
  12954. * @static
  12955. */
  12956. public static function assertQueued($filePath, $disk = null, $callback = null)
  12957. {
  12958. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  12959. return $instance->assertQueued($filePath, $disk, $callback);
  12960. }
  12961. /**
  12962. *
  12963. *
  12964. * @param string $filePath
  12965. * @param string|callable|null $disk
  12966. * @param callable|null $callback
  12967. * @static
  12968. */
  12969. public static function assertImported($filePath, $disk = null, $callback = null)
  12970. {
  12971. /** @var \Maatwebsite\Excel\Fakes\ExcelFake $instance */
  12972. return $instance->assertImported($filePath, $disk, $callback);
  12973. }
  12974. }
  12975. }
  12976. namespace Dingo\Api\Facade {
  12977. /**
  12978. *
  12979. *
  12980. */
  12981. class API {
  12982. /**
  12983. * Attach files to be uploaded.
  12984. *
  12985. * @param array $files
  12986. * @return \Dingo\Api\Dispatcher
  12987. * @static
  12988. */
  12989. public static function attach($files)
  12990. {
  12991. /** @var \Dingo\Api\Dispatcher $instance */
  12992. return $instance->attach($files);
  12993. }
  12994. /**
  12995. * Internal request will be authenticated as the given user.
  12996. *
  12997. * @param mixed $user
  12998. * @return \Dingo\Api\Dispatcher
  12999. * @static
  13000. */
  13001. public static function be($user)
  13002. {
  13003. /** @var \Dingo\Api\Dispatcher $instance */
  13004. return $instance->be($user);
  13005. }
  13006. /**
  13007. * Send a JSON payload in the request body.
  13008. *
  13009. * @param string|array $content
  13010. * @return \Dingo\Api\Dispatcher
  13011. * @static
  13012. */
  13013. public static function json($content)
  13014. {
  13015. /** @var \Dingo\Api\Dispatcher $instance */
  13016. return $instance->json($content);
  13017. }
  13018. /**
  13019. * Sets the domain to be used for the request.
  13020. *
  13021. * @param string $domain
  13022. * @return \Dingo\Api\Dispatcher
  13023. * @static
  13024. */
  13025. public static function on($domain)
  13026. {
  13027. /** @var \Dingo\Api\Dispatcher $instance */
  13028. return $instance->on($domain);
  13029. }
  13030. /**
  13031. * Return the raw response object once request is dispatched.
  13032. *
  13033. * @return \Dingo\Api\Dispatcher
  13034. * @static
  13035. */
  13036. public static function raw()
  13037. {
  13038. /** @var \Dingo\Api\Dispatcher $instance */
  13039. return $instance->raw();
  13040. }
  13041. /**
  13042. * Only authenticate with the given user for a single request.
  13043. *
  13044. * @return \Dingo\Api\Dispatcher
  13045. * @static
  13046. */
  13047. public static function once()
  13048. {
  13049. /** @var \Dingo\Api\Dispatcher $instance */
  13050. return $instance->once();
  13051. }
  13052. /**
  13053. * Set the version of the API for the next request.
  13054. *
  13055. * @param string $version
  13056. * @return \Dingo\Api\Dispatcher
  13057. * @static
  13058. */
  13059. public static function version($version)
  13060. {
  13061. /** @var \Dingo\Api\Dispatcher $instance */
  13062. return $instance->version($version);
  13063. }
  13064. /**
  13065. * Set the parameters to be sent on the next API request.
  13066. *
  13067. * @param string|array $parameters
  13068. * @return \Dingo\Api\Dispatcher
  13069. * @static
  13070. */
  13071. public static function with($parameters)
  13072. {
  13073. /** @var \Dingo\Api\Dispatcher $instance */
  13074. return $instance->with($parameters);
  13075. }
  13076. /**
  13077. * Set a header to be sent on the next API request.
  13078. *
  13079. * @param string $key
  13080. * @param string $value
  13081. * @return \Dingo\Api\Dispatcher
  13082. * @static
  13083. */
  13084. public static function header($key, $value)
  13085. {
  13086. /** @var \Dingo\Api\Dispatcher $instance */
  13087. return $instance->header($key, $value);
  13088. }
  13089. /**
  13090. * Set a cookie to be sent on the next API request.
  13091. *
  13092. * @param \Symfony\Component\HttpFoundation\Cookie $cookie
  13093. * @return \Dingo\Api\Dispatcher
  13094. * @static
  13095. */
  13096. public static function cookie($cookie)
  13097. {
  13098. /** @var \Dingo\Api\Dispatcher $instance */
  13099. return $instance->cookie($cookie);
  13100. }
  13101. /**
  13102. * Perform API GET request.
  13103. *
  13104. * @param string $uri
  13105. * @param string|array $parameters
  13106. * @return mixed
  13107. * @static
  13108. */
  13109. public static function get($uri, $parameters = [])
  13110. {
  13111. /** @var \Dingo\Api\Dispatcher $instance */
  13112. return $instance->get($uri, $parameters);
  13113. }
  13114. /**
  13115. * Perform API POST request.
  13116. *
  13117. * @param string $uri
  13118. * @param string|array $parameters
  13119. * @param string $content
  13120. * @return mixed
  13121. * @static
  13122. */
  13123. public static function post($uri, $parameters = [], $content = '')
  13124. {
  13125. /** @var \Dingo\Api\Dispatcher $instance */
  13126. return $instance->post($uri, $parameters, $content);
  13127. }
  13128. /**
  13129. * Perform API PUT request.
  13130. *
  13131. * @param string $uri
  13132. * @param string|array $parameters
  13133. * @param string $content
  13134. * @return mixed
  13135. * @static
  13136. */
  13137. public static function put($uri, $parameters = [], $content = '')
  13138. {
  13139. /** @var \Dingo\Api\Dispatcher $instance */
  13140. return $instance->put($uri, $parameters, $content);
  13141. }
  13142. /**
  13143. * Perform API PATCH request.
  13144. *
  13145. * @param string $uri
  13146. * @param string|array $parameters
  13147. * @param string $content
  13148. * @return mixed
  13149. * @static
  13150. */
  13151. public static function patch($uri, $parameters = [], $content = '')
  13152. {
  13153. /** @var \Dingo\Api\Dispatcher $instance */
  13154. return $instance->patch($uri, $parameters, $content);
  13155. }
  13156. /**
  13157. * Perform API DELETE request.
  13158. *
  13159. * @param string $uri
  13160. * @param string|array $parameters
  13161. * @param string $content
  13162. * @return mixed
  13163. * @static
  13164. */
  13165. public static function delete($uri, $parameters = [], $content = '')
  13166. {
  13167. /** @var \Dingo\Api\Dispatcher $instance */
  13168. return $instance->delete($uri, $parameters, $content);
  13169. }
  13170. /**
  13171. * Get the domain.
  13172. *
  13173. * @return string
  13174. * @static
  13175. */
  13176. public static function getDomain()
  13177. {
  13178. /** @var \Dingo\Api\Dispatcher $instance */
  13179. return $instance->getDomain();
  13180. }
  13181. /**
  13182. * Get the version.
  13183. *
  13184. * @return string
  13185. * @static
  13186. */
  13187. public static function getVersion()
  13188. {
  13189. /** @var \Dingo\Api\Dispatcher $instance */
  13190. return $instance->getVersion();
  13191. }
  13192. /**
  13193. * Get the format.
  13194. *
  13195. * @return string
  13196. * @static
  13197. */
  13198. public static function getFormat()
  13199. {
  13200. /** @var \Dingo\Api\Dispatcher $instance */
  13201. return $instance->getFormat();
  13202. }
  13203. /**
  13204. * Get the subtype.
  13205. *
  13206. * @return string
  13207. * @static
  13208. */
  13209. public static function getSubtype()
  13210. {
  13211. /** @var \Dingo\Api\Dispatcher $instance */
  13212. return $instance->getSubtype();
  13213. }
  13214. /**
  13215. * Set the subtype.
  13216. *
  13217. * @param string $subtype
  13218. * @return void
  13219. * @static
  13220. */
  13221. public static function setSubtype($subtype)
  13222. {
  13223. /** @var \Dingo\Api\Dispatcher $instance */
  13224. $instance->setSubtype($subtype);
  13225. }
  13226. /**
  13227. * Get the standards tree.
  13228. *
  13229. * @return string
  13230. * @static
  13231. */
  13232. public static function getStandardsTree()
  13233. {
  13234. /** @var \Dingo\Api\Dispatcher $instance */
  13235. return $instance->getStandardsTree();
  13236. }
  13237. /**
  13238. * Set the standards tree.
  13239. *
  13240. * @param string $standardsTree
  13241. * @return void
  13242. * @static
  13243. */
  13244. public static function setStandardsTree($standardsTree)
  13245. {
  13246. /** @var \Dingo\Api\Dispatcher $instance */
  13247. $instance->setStandardsTree($standardsTree);
  13248. }
  13249. /**
  13250. * Set the prefix.
  13251. *
  13252. * @param string $prefix
  13253. * @return void
  13254. * @static
  13255. */
  13256. public static function setPrefix($prefix)
  13257. {
  13258. /** @var \Dingo\Api\Dispatcher $instance */
  13259. $instance->setPrefix($prefix);
  13260. }
  13261. /**
  13262. * Set the default version.
  13263. *
  13264. * @param string $version
  13265. * @return void
  13266. * @static
  13267. */
  13268. public static function setDefaultVersion($version)
  13269. {
  13270. /** @var \Dingo\Api\Dispatcher $instance */
  13271. $instance->setDefaultVersion($version);
  13272. }
  13273. /**
  13274. * Set the default domain.
  13275. *
  13276. * @param string $domain
  13277. * @return void
  13278. * @static
  13279. */
  13280. public static function setDefaultDomain($domain)
  13281. {
  13282. /** @var \Dingo\Api\Dispatcher $instance */
  13283. $instance->setDefaultDomain($domain);
  13284. }
  13285. /**
  13286. * Set the default format.
  13287. *
  13288. * @param string $format
  13289. * @return void
  13290. * @static
  13291. */
  13292. public static function setDefaultFormat($format)
  13293. {
  13294. /** @var \Dingo\Api\Dispatcher $instance */
  13295. $instance->setDefaultFormat($format);
  13296. }
  13297. }
  13298. }
  13299. namespace Tymon\JWTAuth\Facades {
  13300. /**
  13301. *
  13302. *
  13303. */
  13304. class JWTAuth {
  13305. /**
  13306. * Attempt to authenticate the user and return the token.
  13307. *
  13308. * @param array $credentials
  13309. * @return false|string
  13310. * @static
  13311. */
  13312. public static function attempt($credentials)
  13313. {
  13314. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13315. return $instance->attempt($credentials);
  13316. }
  13317. /**
  13318. * Authenticate a user via a token.
  13319. *
  13320. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  13321. * @static
  13322. */
  13323. public static function authenticate()
  13324. {
  13325. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13326. return $instance->authenticate();
  13327. }
  13328. /**
  13329. * Alias for authenticate().
  13330. *
  13331. * @return \Tymon\JWTAuth\Contracts\JWTSubject|false
  13332. * @static
  13333. */
  13334. public static function toUser()
  13335. {
  13336. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13337. return $instance->toUser();
  13338. }
  13339. /**
  13340. * Get the authenticated user.
  13341. *
  13342. * @return \Tymon\JWTAuth\Contracts\JWTSubject
  13343. * @static
  13344. */
  13345. public static function user()
  13346. {
  13347. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13348. return $instance->user();
  13349. }
  13350. /**
  13351. * Generate a token for a given subject.
  13352. *
  13353. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  13354. * @return string
  13355. * @static
  13356. */
  13357. public static function fromSubject($subject)
  13358. {
  13359. //Method inherited from \Tymon\JWTAuth\JWT
  13360. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13361. return $instance->fromSubject($subject);
  13362. }
  13363. /**
  13364. * Alias to generate a token for a given user.
  13365. *
  13366. * @param \Tymon\JWTAuth\Contracts\JWTSubject $user
  13367. * @return string
  13368. * @static
  13369. */
  13370. public static function fromUser($user)
  13371. {
  13372. //Method inherited from \Tymon\JWTAuth\JWT
  13373. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13374. return $instance->fromUser($user);
  13375. }
  13376. /**
  13377. * Refresh an expired token.
  13378. *
  13379. * @param bool $forceForever
  13380. * @param bool $resetClaims
  13381. * @return string
  13382. * @static
  13383. */
  13384. public static function refresh($forceForever = false, $resetClaims = false)
  13385. {
  13386. //Method inherited from \Tymon\JWTAuth\JWT
  13387. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13388. return $instance->refresh($forceForever, $resetClaims);
  13389. }
  13390. /**
  13391. * Invalidate a token (add it to the blacklist).
  13392. *
  13393. * @param bool $forceForever
  13394. * @return \Tymon\JWTAuth\JWTAuth
  13395. * @static
  13396. */
  13397. public static function invalidate($forceForever = false)
  13398. {
  13399. //Method inherited from \Tymon\JWTAuth\JWT
  13400. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13401. return $instance->invalidate($forceForever);
  13402. }
  13403. /**
  13404. * Alias to get the payload, and as a result checks that
  13405. * the token is valid i.e. not expired or blacklisted.
  13406. *
  13407. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  13408. * @return \Tymon\JWTAuth\Payload
  13409. * @static
  13410. */
  13411. public static function checkOrFail()
  13412. {
  13413. //Method inherited from \Tymon\JWTAuth\JWT
  13414. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13415. return $instance->checkOrFail();
  13416. }
  13417. /**
  13418. * Check that the token is valid.
  13419. *
  13420. * @param bool $getPayload
  13421. * @return \Tymon\JWTAuth\Payload|bool
  13422. * @static
  13423. */
  13424. public static function check($getPayload = false)
  13425. {
  13426. //Method inherited from \Tymon\JWTAuth\JWT
  13427. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13428. return $instance->check($getPayload);
  13429. }
  13430. /**
  13431. * Get the token.
  13432. *
  13433. * @return \Tymon\JWTAuth\Token|null
  13434. * @static
  13435. */
  13436. public static function getToken()
  13437. {
  13438. //Method inherited from \Tymon\JWTAuth\JWT
  13439. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13440. return $instance->getToken();
  13441. }
  13442. /**
  13443. * Parse the token from the request.
  13444. *
  13445. * @throws \Tymon\JWTAuth\Exceptions\JWTException
  13446. * @return \Tymon\JWTAuth\JWTAuth
  13447. * @static
  13448. */
  13449. public static function parseToken()
  13450. {
  13451. //Method inherited from \Tymon\JWTAuth\JWT
  13452. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13453. return $instance->parseToken();
  13454. }
  13455. /**
  13456. * Get the raw Payload instance.
  13457. *
  13458. * @return \Tymon\JWTAuth\Payload
  13459. * @static
  13460. */
  13461. public static function getPayload()
  13462. {
  13463. //Method inherited from \Tymon\JWTAuth\JWT
  13464. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13465. return $instance->getPayload();
  13466. }
  13467. /**
  13468. * Alias for getPayload().
  13469. *
  13470. * @return \Tymon\JWTAuth\Payload
  13471. * @static
  13472. */
  13473. public static function payload()
  13474. {
  13475. //Method inherited from \Tymon\JWTAuth\JWT
  13476. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13477. return $instance->payload();
  13478. }
  13479. /**
  13480. * Convenience method to get a claim value.
  13481. *
  13482. * @param string $claim
  13483. * @return mixed
  13484. * @static
  13485. */
  13486. public static function getClaim($claim)
  13487. {
  13488. //Method inherited from \Tymon\JWTAuth\JWT
  13489. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13490. return $instance->getClaim($claim);
  13491. }
  13492. /**
  13493. * Create a Payload instance.
  13494. *
  13495. * @param \Tymon\JWTAuth\Contracts\JWTSubject $subject
  13496. * @return \Tymon\JWTAuth\Payload
  13497. * @static
  13498. */
  13499. public static function makePayload($subject)
  13500. {
  13501. //Method inherited from \Tymon\JWTAuth\JWT
  13502. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13503. return $instance->makePayload($subject);
  13504. }
  13505. /**
  13506. * Check if the subject model matches the one saved in the token.
  13507. *
  13508. * @param string|object $model
  13509. * @return bool
  13510. * @static
  13511. */
  13512. public static function checkSubjectModel($model)
  13513. {
  13514. //Method inherited from \Tymon\JWTAuth\JWT
  13515. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13516. return $instance->checkSubjectModel($model);
  13517. }
  13518. /**
  13519. * Set the token.
  13520. *
  13521. * @param \Tymon\JWTAuth\Token|string $token
  13522. * @return \Tymon\JWTAuth\JWTAuth
  13523. * @static
  13524. */
  13525. public static function setToken($token)
  13526. {
  13527. //Method inherited from \Tymon\JWTAuth\JWT
  13528. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13529. return $instance->setToken($token);
  13530. }
  13531. /**
  13532. * Unset the current token.
  13533. *
  13534. * @return \Tymon\JWTAuth\JWTAuth
  13535. * @static
  13536. */
  13537. public static function unsetToken()
  13538. {
  13539. //Method inherited from \Tymon\JWTAuth\JWT
  13540. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13541. return $instance->unsetToken();
  13542. }
  13543. /**
  13544. * Set the request instance.
  13545. *
  13546. * @param \Illuminate\Http\Request $request
  13547. * @return \Tymon\JWTAuth\JWTAuth
  13548. * @static
  13549. */
  13550. public static function setRequest($request)
  13551. {
  13552. //Method inherited from \Tymon\JWTAuth\JWT
  13553. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13554. return $instance->setRequest($request);
  13555. }
  13556. /**
  13557. * Set whether the subject should be "locked".
  13558. *
  13559. * @param bool $lock
  13560. * @return \Tymon\JWTAuth\JWTAuth
  13561. * @static
  13562. */
  13563. public static function lockSubject($lock)
  13564. {
  13565. //Method inherited from \Tymon\JWTAuth\JWT
  13566. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13567. return $instance->lockSubject($lock);
  13568. }
  13569. /**
  13570. * Get the Manager instance.
  13571. *
  13572. * @return \Tymon\JWTAuth\Manager
  13573. * @static
  13574. */
  13575. public static function manager()
  13576. {
  13577. //Method inherited from \Tymon\JWTAuth\JWT
  13578. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13579. return $instance->manager();
  13580. }
  13581. /**
  13582. * Get the Parser instance.
  13583. *
  13584. * @return \Tymon\JWTAuth\Http\Parser\Parser
  13585. * @static
  13586. */
  13587. public static function parser()
  13588. {
  13589. //Method inherited from \Tymon\JWTAuth\JWT
  13590. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13591. return $instance->parser();
  13592. }
  13593. /**
  13594. * Get the Payload Factory.
  13595. *
  13596. * @return \Tymon\JWTAuth\Factory
  13597. * @static
  13598. */
  13599. public static function factory()
  13600. {
  13601. //Method inherited from \Tymon\JWTAuth\JWT
  13602. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13603. return $instance->factory();
  13604. }
  13605. /**
  13606. * Get the Blacklist.
  13607. *
  13608. * @return \Tymon\JWTAuth\Blacklist
  13609. * @static
  13610. */
  13611. public static function blacklist()
  13612. {
  13613. //Method inherited from \Tymon\JWTAuth\JWT
  13614. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13615. return $instance->blacklist();
  13616. }
  13617. /**
  13618. * Set the custom claims.
  13619. *
  13620. * @param array $customClaims
  13621. * @return \Tymon\JWTAuth\JWTAuth
  13622. * @static
  13623. */
  13624. public static function customClaims($customClaims)
  13625. {
  13626. //Method inherited from \Tymon\JWTAuth\JWT
  13627. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13628. return $instance->customClaims($customClaims);
  13629. }
  13630. /**
  13631. * Alias to set the custom claims.
  13632. *
  13633. * @param array $customClaims
  13634. * @return \Tymon\JWTAuth\JWTAuth
  13635. * @static
  13636. */
  13637. public static function claims($customClaims)
  13638. {
  13639. //Method inherited from \Tymon\JWTAuth\JWT
  13640. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13641. return $instance->claims($customClaims);
  13642. }
  13643. /**
  13644. * Get the custom claims.
  13645. *
  13646. * @return array
  13647. * @static
  13648. */
  13649. public static function getCustomClaims()
  13650. {
  13651. //Method inherited from \Tymon\JWTAuth\JWT
  13652. /** @var \Tymon\JWTAuth\JWTAuth $instance */
  13653. return $instance->getCustomClaims();
  13654. }
  13655. }
  13656. /**
  13657. *
  13658. *
  13659. */
  13660. class JWTFactory {
  13661. /**
  13662. * Create the Payload instance.
  13663. *
  13664. * @param bool $resetClaims
  13665. * @return \Tymon\JWTAuth\Payload
  13666. * @static
  13667. */
  13668. public static function make($resetClaims = false)
  13669. {
  13670. /** @var \Tymon\JWTAuth\Factory $instance */
  13671. return $instance->make($resetClaims);
  13672. }
  13673. /**
  13674. * Empty the claims collection.
  13675. *
  13676. * @return \Tymon\JWTAuth\Factory
  13677. * @static
  13678. */
  13679. public static function emptyClaims()
  13680. {
  13681. /** @var \Tymon\JWTAuth\Factory $instance */
  13682. return $instance->emptyClaims();
  13683. }
  13684. /**
  13685. * Build and get the Claims Collection.
  13686. *
  13687. * @return \Tymon\JWTAuth\Claims\Collection
  13688. * @static
  13689. */
  13690. public static function buildClaimsCollection()
  13691. {
  13692. /** @var \Tymon\JWTAuth\Factory $instance */
  13693. return $instance->buildClaimsCollection();
  13694. }
  13695. /**
  13696. * Get a Payload instance with a claims collection.
  13697. *
  13698. * @param \Tymon\JWTAuth\Claims\Collection $claims
  13699. * @return \Tymon\JWTAuth\Payload
  13700. * @static
  13701. */
  13702. public static function withClaims($claims)
  13703. {
  13704. /** @var \Tymon\JWTAuth\Factory $instance */
  13705. return $instance->withClaims($claims);
  13706. }
  13707. /**
  13708. * Set the default claims to be added to the Payload.
  13709. *
  13710. * @param array $claims
  13711. * @return \Tymon\JWTAuth\Factory
  13712. * @static
  13713. */
  13714. public static function setDefaultClaims($claims)
  13715. {
  13716. /** @var \Tymon\JWTAuth\Factory $instance */
  13717. return $instance->setDefaultClaims($claims);
  13718. }
  13719. /**
  13720. * Helper to set the ttl.
  13721. *
  13722. * @param int $ttl
  13723. * @return \Tymon\JWTAuth\Factory
  13724. * @static
  13725. */
  13726. public static function setTTL($ttl)
  13727. {
  13728. /** @var \Tymon\JWTAuth\Factory $instance */
  13729. return $instance->setTTL($ttl);
  13730. }
  13731. /**
  13732. * Helper to get the ttl.
  13733. *
  13734. * @return int
  13735. * @static
  13736. */
  13737. public static function getTTL()
  13738. {
  13739. /** @var \Tymon\JWTAuth\Factory $instance */
  13740. return $instance->getTTL();
  13741. }
  13742. /**
  13743. * Get the default claims.
  13744. *
  13745. * @return array
  13746. * @static
  13747. */
  13748. public static function getDefaultClaims()
  13749. {
  13750. /** @var \Tymon\JWTAuth\Factory $instance */
  13751. return $instance->getDefaultClaims();
  13752. }
  13753. /**
  13754. * Get the PayloadValidator instance.
  13755. *
  13756. * @return \Tymon\JWTAuth\Validators\PayloadValidator
  13757. * @static
  13758. */
  13759. public static function validator()
  13760. {
  13761. /** @var \Tymon\JWTAuth\Factory $instance */
  13762. return $instance->validator();
  13763. }
  13764. /**
  13765. * Set the custom claims.
  13766. *
  13767. * @param array $customClaims
  13768. * @return \Tymon\JWTAuth\Factory
  13769. * @static
  13770. */
  13771. public static function customClaims($customClaims)
  13772. {
  13773. /** @var \Tymon\JWTAuth\Factory $instance */
  13774. return $instance->customClaims($customClaims);
  13775. }
  13776. /**
  13777. * Alias to set the custom claims.
  13778. *
  13779. * @param array $customClaims
  13780. * @return \Tymon\JWTAuth\Factory
  13781. * @static
  13782. */
  13783. public static function claims($customClaims)
  13784. {
  13785. /** @var \Tymon\JWTAuth\Factory $instance */
  13786. return $instance->claims($customClaims);
  13787. }
  13788. /**
  13789. * Get the custom claims.
  13790. *
  13791. * @return array
  13792. * @static
  13793. */
  13794. public static function getCustomClaims()
  13795. {
  13796. /** @var \Tymon\JWTAuth\Factory $instance */
  13797. return $instance->getCustomClaims();
  13798. }
  13799. /**
  13800. * Set the refresh flow flag.
  13801. *
  13802. * @param bool $refreshFlow
  13803. * @return \Tymon\JWTAuth\Factory
  13804. * @static
  13805. */
  13806. public static function setRefreshFlow($refreshFlow = true)
  13807. {
  13808. /** @var \Tymon\JWTAuth\Factory $instance */
  13809. return $instance->setRefreshFlow($refreshFlow);
  13810. }
  13811. }
  13812. }
  13813. namespace Arcanedev\LogViewer\Facades {
  13814. /**
  13815. * Class LogViewer
  13816. *
  13817. * @package Arcanedev\LogViewer\Facades
  13818. * @author ARCANEDEV <arcanedev.maroc@gmail.com>
  13819. */
  13820. class LogViewer {
  13821. /**
  13822. * Get the log levels.
  13823. *
  13824. * @param bool $flip
  13825. * @return array
  13826. * @static
  13827. */
  13828. public static function levels($flip = false)
  13829. {
  13830. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13831. return $instance->levels($flip);
  13832. }
  13833. /**
  13834. * Get the translated log levels.
  13835. *
  13836. * @param string|null $locale
  13837. * @return array
  13838. * @static
  13839. */
  13840. public static function levelsNames($locale = null)
  13841. {
  13842. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13843. return $instance->levelsNames($locale);
  13844. }
  13845. /**
  13846. * Set the log storage path.
  13847. *
  13848. * @param string $path
  13849. * @return self
  13850. * @static
  13851. */
  13852. public static function setPath($path)
  13853. {
  13854. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13855. return $instance->setPath($path);
  13856. }
  13857. /**
  13858. * Get the log pattern.
  13859. *
  13860. * @return string
  13861. * @static
  13862. */
  13863. public static function getPattern()
  13864. {
  13865. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13866. return $instance->getPattern();
  13867. }
  13868. /**
  13869. * Set the log pattern.
  13870. *
  13871. * @param string $date
  13872. * @param string $prefix
  13873. * @param string $extension
  13874. * @return self
  13875. * @static
  13876. */
  13877. public static function setPattern($prefix = 'laravel-', $date = '[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]', $extension = '.log')
  13878. {
  13879. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13880. return $instance->setPattern($prefix, $date, $extension);
  13881. }
  13882. /**
  13883. * Get all logs.
  13884. *
  13885. * @return \Arcanedev\LogViewer\Entities\LogCollection
  13886. * @static
  13887. */
  13888. public static function all()
  13889. {
  13890. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13891. return $instance->all();
  13892. }
  13893. /**
  13894. * Paginate all logs.
  13895. *
  13896. * @param int $perPage
  13897. * @return \Illuminate\Pagination\LengthAwarePaginator
  13898. * @static
  13899. */
  13900. public static function paginate($perPage = 30)
  13901. {
  13902. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13903. return $instance->paginate($perPage);
  13904. }
  13905. /**
  13906. * Get a log.
  13907. *
  13908. * @param string $date
  13909. * @return \Arcanedev\LogViewer\Entities\Log
  13910. * @static
  13911. */
  13912. public static function get($date)
  13913. {
  13914. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13915. return $instance->get($date);
  13916. }
  13917. /**
  13918. * Get the log entries.
  13919. *
  13920. * @param string $date
  13921. * @param string $level
  13922. * @return \Arcanedev\LogViewer\Entities\LogEntryCollection
  13923. * @static
  13924. */
  13925. public static function entries($date, $level = 'all')
  13926. {
  13927. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13928. return $instance->entries($date, $level);
  13929. }
  13930. /**
  13931. * Download a log file.
  13932. *
  13933. * @param string $date
  13934. * @param string|null $filename
  13935. * @param array $headers
  13936. * @return \Symfony\Component\HttpFoundation\BinaryFileResponse
  13937. * @static
  13938. */
  13939. public static function download($date, $filename = null, $headers = [])
  13940. {
  13941. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13942. return $instance->download($date, $filename, $headers);
  13943. }
  13944. /**
  13945. * Get logs statistics.
  13946. *
  13947. * @return array
  13948. * @static
  13949. */
  13950. public static function stats()
  13951. {
  13952. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13953. return $instance->stats();
  13954. }
  13955. /**
  13956. * Get logs statistics table.
  13957. *
  13958. * @param string|null $locale
  13959. * @return \Arcanedev\LogViewer\Tables\StatsTable
  13960. * @static
  13961. */
  13962. public static function statsTable($locale = null)
  13963. {
  13964. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13965. return $instance->statsTable($locale);
  13966. }
  13967. /**
  13968. * Delete the log.
  13969. *
  13970. * @param string $date
  13971. * @return bool
  13972. * @static
  13973. */
  13974. public static function delete($date)
  13975. {
  13976. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13977. return $instance->delete($date);
  13978. }
  13979. /**
  13980. * Get all valid log files.
  13981. *
  13982. * @return array
  13983. * @static
  13984. */
  13985. public static function files()
  13986. {
  13987. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13988. return $instance->files();
  13989. }
  13990. /**
  13991. * List the log files (only dates).
  13992. *
  13993. * @return array
  13994. * @static
  13995. */
  13996. public static function dates()
  13997. {
  13998. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  13999. return $instance->dates();
  14000. }
  14001. /**
  14002. * Get logs count.
  14003. *
  14004. * @return int
  14005. * @static
  14006. */
  14007. public static function count()
  14008. {
  14009. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  14010. return $instance->count();
  14011. }
  14012. /**
  14013. * Get entries total from all logs.
  14014. *
  14015. * @param string $level
  14016. * @return int
  14017. * @static
  14018. */
  14019. public static function total($level = 'all')
  14020. {
  14021. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  14022. return $instance->total($level);
  14023. }
  14024. /**
  14025. * Get logs tree.
  14026. *
  14027. * @param bool $trans
  14028. * @return array
  14029. * @static
  14030. */
  14031. public static function tree($trans = false)
  14032. {
  14033. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  14034. return $instance->tree($trans);
  14035. }
  14036. /**
  14037. * Get logs menu.
  14038. *
  14039. * @param bool $trans
  14040. * @return array
  14041. * @static
  14042. */
  14043. public static function menu($trans = true)
  14044. {
  14045. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  14046. return $instance->menu($trans);
  14047. }
  14048. /**
  14049. * Determine if the log folder is empty or not.
  14050. *
  14051. * @return bool
  14052. * @static
  14053. */
  14054. public static function isEmpty()
  14055. {
  14056. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  14057. return $instance->isEmpty();
  14058. }
  14059. /**
  14060. * Get the LogViewer version.
  14061. *
  14062. * @return string
  14063. * @static
  14064. */
  14065. public static function version()
  14066. {
  14067. /** @var \Arcanedev\LogViewer\LogViewer $instance */
  14068. return $instance->version();
  14069. }
  14070. }
  14071. }
  14072. namespace {
  14073. class App extends \Illuminate\Support\Facades\App {}
  14074. class Artisan extends \Illuminate\Support\Facades\Artisan {}
  14075. class Auth extends \Illuminate\Support\Facades\Auth {}
  14076. class Blade extends \Illuminate\Support\Facades\Blade {}
  14077. class Broadcast extends \Illuminate\Support\Facades\Broadcast {}
  14078. class Bus extends \Illuminate\Support\Facades\Bus {}
  14079. class Cache extends \Illuminate\Support\Facades\Cache {}
  14080. class Config extends \Illuminate\Support\Facades\Config {}
  14081. class Cookie extends \Illuminate\Support\Facades\Cookie {}
  14082. class Crypt extends \Illuminate\Support\Facades\Crypt {}
  14083. class DB extends \Illuminate\Support\Facades\DB {}
  14084. class Eloquent extends \Illuminate\Database\Eloquent\Model {
  14085. /**
  14086. * Create and return an un-saved model instance.
  14087. *
  14088. * @param array $attributes
  14089. * @return \Illuminate\Database\Eloquent\Model
  14090. * @static
  14091. */
  14092. public static function make($attributes = [])
  14093. {
  14094. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14095. return $instance->make($attributes);
  14096. }
  14097. /**
  14098. * Register a new global scope.
  14099. *
  14100. * @param string $identifier
  14101. * @param \Illuminate\Database\Eloquent\Scope|\Closure $scope
  14102. * @return \Illuminate\Database\Eloquent\Builder
  14103. * @static
  14104. */
  14105. public static function withGlobalScope($identifier, $scope)
  14106. {
  14107. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14108. return $instance->withGlobalScope($identifier, $scope);
  14109. }
  14110. /**
  14111. * Remove a registered global scope.
  14112. *
  14113. * @param \Illuminate\Database\Eloquent\Scope|string $scope
  14114. * @return \Illuminate\Database\Eloquent\Builder
  14115. * @static
  14116. */
  14117. public static function withoutGlobalScope($scope)
  14118. {
  14119. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14120. return $instance->withoutGlobalScope($scope);
  14121. }
  14122. /**
  14123. * Remove all or passed registered global scopes.
  14124. *
  14125. * @param array|null $scopes
  14126. * @return \Illuminate\Database\Eloquent\Builder
  14127. * @static
  14128. */
  14129. public static function withoutGlobalScopes($scopes = null)
  14130. {
  14131. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14132. return $instance->withoutGlobalScopes($scopes);
  14133. }
  14134. /**
  14135. * Get an array of global scopes that were removed from the query.
  14136. *
  14137. * @return array
  14138. * @static
  14139. */
  14140. public static function removedScopes()
  14141. {
  14142. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14143. return $instance->removedScopes();
  14144. }
  14145. /**
  14146. * Add a where clause on the primary key to the query.
  14147. *
  14148. * @param mixed $id
  14149. * @return \Illuminate\Database\Eloquent\Builder
  14150. * @static
  14151. */
  14152. public static function whereKey($id)
  14153. {
  14154. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14155. return $instance->whereKey($id);
  14156. }
  14157. /**
  14158. * Add a where clause on the primary key to the query.
  14159. *
  14160. * @param mixed $id
  14161. * @return \Illuminate\Database\Eloquent\Builder
  14162. * @static
  14163. */
  14164. public static function whereKeyNot($id)
  14165. {
  14166. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14167. return $instance->whereKeyNot($id);
  14168. }
  14169. /**
  14170. * Add a basic where clause to the query.
  14171. *
  14172. * @param string|array|\Closure $column
  14173. * @param string $operator
  14174. * @param mixed $value
  14175. * @param string $boolean
  14176. * @return \Illuminate\Database\Eloquent\Builder
  14177. * @static
  14178. */
  14179. public static function where($column, $operator = null, $value = null, $boolean = 'and')
  14180. {
  14181. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14182. return $instance->where($column, $operator, $value, $boolean);
  14183. }
  14184. /**
  14185. * Add an "or where" clause to the query.
  14186. *
  14187. * @param \Closure|array|string $column
  14188. * @param string $operator
  14189. * @param mixed $value
  14190. * @return \Illuminate\Database\Eloquent\Builder|static
  14191. * @static
  14192. */
  14193. public static function orWhere($column, $operator = null, $value = null)
  14194. {
  14195. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14196. return $instance->orWhere($column, $operator, $value);
  14197. }
  14198. /**
  14199. * Create a collection of models from plain arrays.
  14200. *
  14201. * @param array $items
  14202. * @return \Illuminate\Database\Eloquent\Collection
  14203. * @static
  14204. */
  14205. public static function hydrate($items)
  14206. {
  14207. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14208. return $instance->hydrate($items);
  14209. }
  14210. /**
  14211. * Create a collection of models from a raw query.
  14212. *
  14213. * @param string $query
  14214. * @param array $bindings
  14215. * @return \Illuminate\Database\Eloquent\Collection
  14216. * @static
  14217. */
  14218. public static function fromQuery($query, $bindings = [])
  14219. {
  14220. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14221. return $instance->fromQuery($query, $bindings);
  14222. }
  14223. /**
  14224. * Find a model by its primary key.
  14225. *
  14226. * @param mixed $id
  14227. * @param array $columns
  14228. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection|static[]|static|null
  14229. * @static
  14230. */
  14231. public static function find($id, $columns = [])
  14232. {
  14233. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14234. return $instance->find($id, $columns);
  14235. }
  14236. /**
  14237. * Find multiple models by their primary keys.
  14238. *
  14239. * @param \Illuminate\Contracts\Support\Arrayable|array $ids
  14240. * @param array $columns
  14241. * @return \Illuminate\Database\Eloquent\Collection
  14242. * @static
  14243. */
  14244. public static function findMany($ids, $columns = [])
  14245. {
  14246. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14247. return $instance->findMany($ids, $columns);
  14248. }
  14249. /**
  14250. * Find a model by its primary key or throw an exception.
  14251. *
  14252. * @param mixed $id
  14253. * @param array $columns
  14254. * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Collection
  14255. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14256. * @static
  14257. */
  14258. public static function findOrFail($id, $columns = [])
  14259. {
  14260. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14261. return $instance->findOrFail($id, $columns);
  14262. }
  14263. /**
  14264. * Find a model by its primary key or return fresh model instance.
  14265. *
  14266. * @param mixed $id
  14267. * @param array $columns
  14268. * @return \Illuminate\Database\Eloquent\Model
  14269. * @static
  14270. */
  14271. public static function findOrNew($id, $columns = [])
  14272. {
  14273. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14274. return $instance->findOrNew($id, $columns);
  14275. }
  14276. /**
  14277. * Get the first record matching the attributes or instantiate it.
  14278. *
  14279. * @param array $attributes
  14280. * @param array $values
  14281. * @return \Illuminate\Database\Eloquent\Model
  14282. * @static
  14283. */
  14284. public static function firstOrNew($attributes, $values = [])
  14285. {
  14286. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14287. return $instance->firstOrNew($attributes, $values);
  14288. }
  14289. /**
  14290. * Get the first record matching the attributes or create it.
  14291. *
  14292. * @param array $attributes
  14293. * @param array $values
  14294. * @return \Illuminate\Database\Eloquent\Model
  14295. * @static
  14296. */
  14297. public static function firstOrCreate($attributes, $values = [])
  14298. {
  14299. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14300. return $instance->firstOrCreate($attributes, $values);
  14301. }
  14302. /**
  14303. * Create or update a record matching the attributes, and fill it with values.
  14304. *
  14305. * @param array $attributes
  14306. * @param array $values
  14307. * @return \Illuminate\Database\Eloquent\Model
  14308. * @static
  14309. */
  14310. public static function updateOrCreate($attributes, $values = [])
  14311. {
  14312. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14313. return $instance->updateOrCreate($attributes, $values);
  14314. }
  14315. /**
  14316. * Execute the query and get the first result or throw an exception.
  14317. *
  14318. * @param array $columns
  14319. * @return \Illuminate\Database\Eloquent\Model|static
  14320. * @throws \Illuminate\Database\Eloquent\ModelNotFoundException
  14321. * @static
  14322. */
  14323. public static function firstOrFail($columns = [])
  14324. {
  14325. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14326. return $instance->firstOrFail($columns);
  14327. }
  14328. /**
  14329. * Execute the query and get the first result or call a callback.
  14330. *
  14331. * @param \Closure|array $columns
  14332. * @param \Closure|null $callback
  14333. * @return \Illuminate\Database\Eloquent\Model|static|mixed
  14334. * @static
  14335. */
  14336. public static function firstOr($columns = [], $callback = null)
  14337. {
  14338. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14339. return $instance->firstOr($columns, $callback);
  14340. }
  14341. /**
  14342. * Get a single column's value from the first result of a query.
  14343. *
  14344. * @param string $column
  14345. * @return mixed
  14346. * @static
  14347. */
  14348. public static function value($column)
  14349. {
  14350. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14351. return $instance->value($column);
  14352. }
  14353. /**
  14354. * Execute the query as a "select" statement.
  14355. *
  14356. * @param array $columns
  14357. * @return \Illuminate\Database\Eloquent\Collection|static[]
  14358. * @static
  14359. */
  14360. public static function get($columns = [])
  14361. {
  14362. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14363. return $instance->get($columns);
  14364. }
  14365. /**
  14366. * Get the hydrated models without eager loading.
  14367. *
  14368. * @param array $columns
  14369. * @return \Illuminate\Database\Eloquent\Model[]
  14370. * @static
  14371. */
  14372. public static function getModels($columns = [])
  14373. {
  14374. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14375. return $instance->getModels($columns);
  14376. }
  14377. /**
  14378. * Eager load the relationships for the models.
  14379. *
  14380. * @param array $models
  14381. * @return array
  14382. * @static
  14383. */
  14384. public static function eagerLoadRelations($models)
  14385. {
  14386. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14387. return $instance->eagerLoadRelations($models);
  14388. }
  14389. /**
  14390. * Get a generator for the given query.
  14391. *
  14392. * @return \Generator
  14393. * @static
  14394. */
  14395. public static function cursor()
  14396. {
  14397. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14398. return $instance->cursor();
  14399. }
  14400. /**
  14401. * Chunk the results of a query by comparing numeric IDs.
  14402. *
  14403. * @param int $count
  14404. * @param callable $callback
  14405. * @param string $column
  14406. * @param string|null $alias
  14407. * @return bool
  14408. * @static
  14409. */
  14410. public static function chunkById($count, $callback, $column = null, $alias = null)
  14411. {
  14412. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14413. return $instance->chunkById($count, $callback, $column, $alias);
  14414. }
  14415. /**
  14416. * Get an array with the values of a given column.
  14417. *
  14418. * @param string $column
  14419. * @param string|null $key
  14420. * @return \Illuminate\Support\Collection
  14421. * @static
  14422. */
  14423. public static function pluck($column, $key = null)
  14424. {
  14425. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14426. return $instance->pluck($column, $key);
  14427. }
  14428. /**
  14429. * Paginate the given query.
  14430. *
  14431. * @param int $perPage
  14432. * @param array $columns
  14433. * @param string $pageName
  14434. * @param int|null $page
  14435. * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
  14436. * @throws \InvalidArgumentException
  14437. * @static
  14438. */
  14439. public static function paginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  14440. {
  14441. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14442. return $instance->paginate($perPage, $columns, $pageName, $page);
  14443. }
  14444. /**
  14445. * Paginate the given query into a simple paginator.
  14446. *
  14447. * @param int $perPage
  14448. * @param array $columns
  14449. * @param string $pageName
  14450. * @param int|null $page
  14451. * @return \Illuminate\Contracts\Pagination\Paginator
  14452. * @static
  14453. */
  14454. public static function simplePaginate($perPage = null, $columns = [], $pageName = 'page', $page = null)
  14455. {
  14456. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14457. return $instance->simplePaginate($perPage, $columns, $pageName, $page);
  14458. }
  14459. /**
  14460. * Save a new model and return the instance.
  14461. *
  14462. * @param array $attributes
  14463. * @return \Illuminate\Database\Eloquent\Model|$this
  14464. * @static
  14465. */
  14466. public static function create($attributes = [])
  14467. {
  14468. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14469. return $instance->create($attributes);
  14470. }
  14471. /**
  14472. * Save a new model and return the instance. Allow mass-assignment.
  14473. *
  14474. * @param array $attributes
  14475. * @return \Illuminate\Database\Eloquent\Model|$this
  14476. * @static
  14477. */
  14478. public static function forceCreate($attributes)
  14479. {
  14480. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14481. return $instance->forceCreate($attributes);
  14482. }
  14483. /**
  14484. * Register a replacement for the default delete function.
  14485. *
  14486. * @param \Closure $callback
  14487. * @return void
  14488. * @static
  14489. */
  14490. public static function onDelete($callback)
  14491. {
  14492. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14493. $instance->onDelete($callback);
  14494. }
  14495. /**
  14496. * Call the given local model scopes.
  14497. *
  14498. * @param array $scopes
  14499. * @return mixed
  14500. * @static
  14501. */
  14502. public static function scopes($scopes)
  14503. {
  14504. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14505. return $instance->scopes($scopes);
  14506. }
  14507. /**
  14508. * Apply the scopes to the Eloquent builder instance and return it.
  14509. *
  14510. * @return \Illuminate\Database\Eloquent\Builder|static
  14511. * @static
  14512. */
  14513. public static function applyScopes()
  14514. {
  14515. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14516. return $instance->applyScopes();
  14517. }
  14518. /**
  14519. * Prevent the specified relations from being eager loaded.
  14520. *
  14521. * @param mixed $relations
  14522. * @return \Illuminate\Database\Eloquent\Builder
  14523. * @static
  14524. */
  14525. public static function without($relations)
  14526. {
  14527. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14528. return $instance->without($relations);
  14529. }
  14530. /**
  14531. * Create a new instance of the model being queried.
  14532. *
  14533. * @param array $attributes
  14534. * @return \Illuminate\Database\Eloquent\Model
  14535. * @static
  14536. */
  14537. public static function newModelInstance($attributes = [])
  14538. {
  14539. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14540. return $instance->newModelInstance($attributes);
  14541. }
  14542. /**
  14543. * Get the underlying query builder instance.
  14544. *
  14545. * @return \Illuminate\Database\Query\Builder
  14546. * @static
  14547. */
  14548. public static function getQuery()
  14549. {
  14550. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14551. return $instance->getQuery();
  14552. }
  14553. /**
  14554. * Set the underlying query builder instance.
  14555. *
  14556. * @param \Illuminate\Database\Query\Builder $query
  14557. * @return \Illuminate\Database\Eloquent\Builder
  14558. * @static
  14559. */
  14560. public static function setQuery($query)
  14561. {
  14562. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14563. return $instance->setQuery($query);
  14564. }
  14565. /**
  14566. * Get a base query builder instance.
  14567. *
  14568. * @return \Illuminate\Database\Query\Builder
  14569. * @static
  14570. */
  14571. public static function toBase()
  14572. {
  14573. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14574. return $instance->toBase();
  14575. }
  14576. /**
  14577. * Get the relationships being eagerly loaded.
  14578. *
  14579. * @return array
  14580. * @static
  14581. */
  14582. public static function getEagerLoads()
  14583. {
  14584. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14585. return $instance->getEagerLoads();
  14586. }
  14587. /**
  14588. * Set the relationships being eagerly loaded.
  14589. *
  14590. * @param array $eagerLoad
  14591. * @return \Illuminate\Database\Eloquent\Builder
  14592. * @static
  14593. */
  14594. public static function setEagerLoads($eagerLoad)
  14595. {
  14596. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14597. return $instance->setEagerLoads($eagerLoad);
  14598. }
  14599. /**
  14600. * Get the model instance being queried.
  14601. *
  14602. * @return \Illuminate\Database\Eloquent\Model
  14603. * @static
  14604. */
  14605. public static function getModel()
  14606. {
  14607. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14608. return $instance->getModel();
  14609. }
  14610. /**
  14611. * Set a model instance for the model being queried.
  14612. *
  14613. * @param \Illuminate\Database\Eloquent\Model $model
  14614. * @return \Illuminate\Database\Eloquent\Builder
  14615. * @static
  14616. */
  14617. public static function setModel($model)
  14618. {
  14619. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14620. return $instance->setModel($model);
  14621. }
  14622. /**
  14623. * Get the given macro by name.
  14624. *
  14625. * @param string $name
  14626. * @return \Closure
  14627. * @static
  14628. */
  14629. public static function getMacro($name)
  14630. {
  14631. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14632. return $instance->getMacro($name);
  14633. }
  14634. /**
  14635. * Chunk the results of the query.
  14636. *
  14637. * @param int $count
  14638. * @param callable $callback
  14639. * @return bool
  14640. * @static
  14641. */
  14642. public static function chunk($count, $callback)
  14643. {
  14644. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14645. return $instance->chunk($count, $callback);
  14646. }
  14647. /**
  14648. * Execute a callback over each item while chunking.
  14649. *
  14650. * @param callable $callback
  14651. * @param int $count
  14652. * @return bool
  14653. * @static
  14654. */
  14655. public static function each($callback, $count = 1000)
  14656. {
  14657. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14658. return $instance->each($callback, $count);
  14659. }
  14660. /**
  14661. * Execute the query and get the first result.
  14662. *
  14663. * @param array $columns
  14664. * @return \Illuminate\Database\Eloquent\Model|object|static|null
  14665. * @static
  14666. */
  14667. public static function first($columns = [])
  14668. {
  14669. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14670. return $instance->first($columns);
  14671. }
  14672. /**
  14673. * Apply the callback's query changes if the given "value" is true.
  14674. *
  14675. * @param mixed $value
  14676. * @param callable $callback
  14677. * @param callable $default
  14678. * @return mixed
  14679. * @static
  14680. */
  14681. public static function when($value, $callback, $default = null)
  14682. {
  14683. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14684. return $instance->when($value, $callback, $default);
  14685. }
  14686. /**
  14687. * Pass the query to a given callback.
  14688. *
  14689. * @param \Closure $callback
  14690. * @return \Illuminate\Database\Query\Builder
  14691. * @static
  14692. */
  14693. public static function tap($callback)
  14694. {
  14695. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14696. return $instance->tap($callback);
  14697. }
  14698. /**
  14699. * Apply the callback's query changes if the given "value" is false.
  14700. *
  14701. * @param mixed $value
  14702. * @param callable $callback
  14703. * @param callable $default
  14704. * @return mixed
  14705. * @static
  14706. */
  14707. public static function unless($value, $callback, $default = null)
  14708. {
  14709. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14710. return $instance->unless($value, $callback, $default);
  14711. }
  14712. /**
  14713. * Add a relationship count / exists condition to the query.
  14714. *
  14715. * @param string $relation
  14716. * @param string $operator
  14717. * @param int $count
  14718. * @param string $boolean
  14719. * @param \Closure|null $callback
  14720. * @return \Illuminate\Database\Eloquent\Builder|static
  14721. * @static
  14722. */
  14723. public static function has($relation, $operator = '>=', $count = 1, $boolean = 'and', $callback = null)
  14724. {
  14725. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14726. return $instance->has($relation, $operator, $count, $boolean, $callback);
  14727. }
  14728. /**
  14729. * Add a relationship count / exists condition to the query with an "or".
  14730. *
  14731. * @param string $relation
  14732. * @param string $operator
  14733. * @param int $count
  14734. * @return \Illuminate\Database\Eloquent\Builder|static
  14735. * @static
  14736. */
  14737. public static function orHas($relation, $operator = '>=', $count = 1)
  14738. {
  14739. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14740. return $instance->orHas($relation, $operator, $count);
  14741. }
  14742. /**
  14743. * Add a relationship count / exists condition to the query.
  14744. *
  14745. * @param string $relation
  14746. * @param string $boolean
  14747. * @param \Closure|null $callback
  14748. * @return \Illuminate\Database\Eloquent\Builder|static
  14749. * @static
  14750. */
  14751. public static function doesntHave($relation, $boolean = 'and', $callback = null)
  14752. {
  14753. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14754. return $instance->doesntHave($relation, $boolean, $callback);
  14755. }
  14756. /**
  14757. * Add a relationship count / exists condition to the query with an "or".
  14758. *
  14759. * @param string $relation
  14760. * @return \Illuminate\Database\Eloquent\Builder|static
  14761. * @static
  14762. */
  14763. public static function orDoesntHave($relation)
  14764. {
  14765. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14766. return $instance->orDoesntHave($relation);
  14767. }
  14768. /**
  14769. * Add a relationship count / exists condition to the query with where clauses.
  14770. *
  14771. * @param string $relation
  14772. * @param \Closure|null $callback
  14773. * @param string $operator
  14774. * @param int $count
  14775. * @return \Illuminate\Database\Eloquent\Builder|static
  14776. * @static
  14777. */
  14778. public static function whereHas($relation, $callback = null, $operator = '>=', $count = 1)
  14779. {
  14780. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14781. return $instance->whereHas($relation, $callback, $operator, $count);
  14782. }
  14783. /**
  14784. * Add a relationship count / exists condition to the query with where clauses and an "or".
  14785. *
  14786. * @param string $relation
  14787. * @param \Closure $callback
  14788. * @param string $operator
  14789. * @param int $count
  14790. * @return \Illuminate\Database\Eloquent\Builder|static
  14791. * @static
  14792. */
  14793. public static function orWhereHas($relation, $callback = null, $operator = '>=', $count = 1)
  14794. {
  14795. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14796. return $instance->orWhereHas($relation, $callback, $operator, $count);
  14797. }
  14798. /**
  14799. * Add a relationship count / exists condition to the query with where clauses.
  14800. *
  14801. * @param string $relation
  14802. * @param \Closure|null $callback
  14803. * @return \Illuminate\Database\Eloquent\Builder|static
  14804. * @static
  14805. */
  14806. public static function whereDoesntHave($relation, $callback = null)
  14807. {
  14808. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14809. return $instance->whereDoesntHave($relation, $callback);
  14810. }
  14811. /**
  14812. * Add a relationship count / exists condition to the query with where clauses and an "or".
  14813. *
  14814. * @param string $relation
  14815. * @param \Closure $callback
  14816. * @return \Illuminate\Database\Eloquent\Builder|static
  14817. * @static
  14818. */
  14819. public static function orWhereDoesntHave($relation, $callback = null)
  14820. {
  14821. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14822. return $instance->orWhereDoesntHave($relation, $callback);
  14823. }
  14824. /**
  14825. * Add subselect queries to count the relations.
  14826. *
  14827. * @param mixed $relations
  14828. * @return \Illuminate\Database\Eloquent\Builder
  14829. * @static
  14830. */
  14831. public static function withCount($relations)
  14832. {
  14833. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14834. return $instance->withCount($relations);
  14835. }
  14836. /**
  14837. * Merge the where constraints from another query to the current query.
  14838. *
  14839. * @param \Illuminate\Database\Eloquent\Builder $from
  14840. * @return \Illuminate\Database\Eloquent\Builder|static
  14841. * @static
  14842. */
  14843. public static function mergeConstraintsFrom($from)
  14844. {
  14845. /** @var \Illuminate\Database\Eloquent\Builder $instance */
  14846. return $instance->mergeConstraintsFrom($from);
  14847. }
  14848. /**
  14849. * Set the columns to be selected.
  14850. *
  14851. * @param array|mixed $columns
  14852. * @return \Illuminate\Database\Query\Builder
  14853. * @static
  14854. */
  14855. public static function select($columns = [])
  14856. {
  14857. /** @var \Illuminate\Database\Query\Builder $instance */
  14858. return $instance->select($columns);
  14859. }
  14860. /**
  14861. * Add a new "raw" select expression to the query.
  14862. *
  14863. * @param string $expression
  14864. * @param array $bindings
  14865. * @return \Illuminate\Database\Query\Builder|static
  14866. * @static
  14867. */
  14868. public static function selectRaw($expression, $bindings = [])
  14869. {
  14870. /** @var \Illuminate\Database\Query\Builder $instance */
  14871. return $instance->selectRaw($expression, $bindings);
  14872. }
  14873. /**
  14874. * Add a subselect expression to the query.
  14875. *
  14876. * @param \Closure|\Illuminate\Database\Query\Builder|string $query
  14877. * @param string $as
  14878. * @return \Illuminate\Database\Query\Builder|static
  14879. * @throws \InvalidArgumentException
  14880. * @static
  14881. */
  14882. public static function selectSub($query, $as)
  14883. {
  14884. /** @var \Illuminate\Database\Query\Builder $instance */
  14885. return $instance->selectSub($query, $as);
  14886. }
  14887. /**
  14888. * Add a new select column to the query.
  14889. *
  14890. * @param array|mixed $column
  14891. * @return \Illuminate\Database\Query\Builder
  14892. * @static
  14893. */
  14894. public static function addSelect($column)
  14895. {
  14896. /** @var \Illuminate\Database\Query\Builder $instance */
  14897. return $instance->addSelect($column);
  14898. }
  14899. /**
  14900. * Force the query to only return distinct results.
  14901. *
  14902. * @return \Illuminate\Database\Query\Builder
  14903. * @static
  14904. */
  14905. public static function distinct()
  14906. {
  14907. /** @var \Illuminate\Database\Query\Builder $instance */
  14908. return $instance->distinct();
  14909. }
  14910. /**
  14911. * Set the table which the query is targeting.
  14912. *
  14913. * @param string $table
  14914. * @return \Illuminate\Database\Query\Builder
  14915. * @static
  14916. */
  14917. public static function from($table)
  14918. {
  14919. /** @var \Illuminate\Database\Query\Builder $instance */
  14920. return $instance->from($table);
  14921. }
  14922. /**
  14923. * Add a join clause to the query.
  14924. *
  14925. * @param string $table
  14926. * @param string $first
  14927. * @param string|null $operator
  14928. * @param string|null $second
  14929. * @param string $type
  14930. * @param bool $where
  14931. * @return \Illuminate\Database\Query\Builder
  14932. * @static
  14933. */
  14934. public static function join($table, $first, $operator = null, $second = null, $type = 'inner', $where = false)
  14935. {
  14936. /** @var \Illuminate\Database\Query\Builder $instance */
  14937. return $instance->join($table, $first, $operator, $second, $type, $where);
  14938. }
  14939. /**
  14940. * Add a "join where" clause to the query.
  14941. *
  14942. * @param string $table
  14943. * @param string $first
  14944. * @param string $operator
  14945. * @param string $second
  14946. * @param string $type
  14947. * @return \Illuminate\Database\Query\Builder|static
  14948. * @static
  14949. */
  14950. public static function joinWhere($table, $first, $operator, $second, $type = 'inner')
  14951. {
  14952. /** @var \Illuminate\Database\Query\Builder $instance */
  14953. return $instance->joinWhere($table, $first, $operator, $second, $type);
  14954. }
  14955. /**
  14956. * Add a left join to the query.
  14957. *
  14958. * @param string $table
  14959. * @param string $first
  14960. * @param string|null $operator
  14961. * @param string|null $second
  14962. * @return \Illuminate\Database\Query\Builder|static
  14963. * @static
  14964. */
  14965. public static function leftJoin($table, $first, $operator = null, $second = null)
  14966. {
  14967. /** @var \Illuminate\Database\Query\Builder $instance */
  14968. return $instance->leftJoin($table, $first, $operator, $second);
  14969. }
  14970. /**
  14971. * Add a "join where" clause to the query.
  14972. *
  14973. * @param string $table
  14974. * @param string $first
  14975. * @param string $operator
  14976. * @param string $second
  14977. * @return \Illuminate\Database\Query\Builder|static
  14978. * @static
  14979. */
  14980. public static function leftJoinWhere($table, $first, $operator, $second)
  14981. {
  14982. /** @var \Illuminate\Database\Query\Builder $instance */
  14983. return $instance->leftJoinWhere($table, $first, $operator, $second);
  14984. }
  14985. /**
  14986. * Add a right join to the query.
  14987. *
  14988. * @param string $table
  14989. * @param string $first
  14990. * @param string|null $operator
  14991. * @param string|null $second
  14992. * @return \Illuminate\Database\Query\Builder|static
  14993. * @static
  14994. */
  14995. public static function rightJoin($table, $first, $operator = null, $second = null)
  14996. {
  14997. /** @var \Illuminate\Database\Query\Builder $instance */
  14998. return $instance->rightJoin($table, $first, $operator, $second);
  14999. }
  15000. /**
  15001. * Add a "right join where" clause to the query.
  15002. *
  15003. * @param string $table
  15004. * @param string $first
  15005. * @param string $operator
  15006. * @param string $second
  15007. * @return \Illuminate\Database\Query\Builder|static
  15008. * @static
  15009. */
  15010. public static function rightJoinWhere($table, $first, $operator, $second)
  15011. {
  15012. /** @var \Illuminate\Database\Query\Builder $instance */
  15013. return $instance->rightJoinWhere($table, $first, $operator, $second);
  15014. }
  15015. /**
  15016. * Add a "cross join" clause to the query.
  15017. *
  15018. * @param string $table
  15019. * @param string|null $first
  15020. * @param string|null $operator
  15021. * @param string|null $second
  15022. * @return \Illuminate\Database\Query\Builder|static
  15023. * @static
  15024. */
  15025. public static function crossJoin($table, $first = null, $operator = null, $second = null)
  15026. {
  15027. /** @var \Illuminate\Database\Query\Builder $instance */
  15028. return $instance->crossJoin($table, $first, $operator, $second);
  15029. }
  15030. /**
  15031. * Merge an array of where clauses and bindings.
  15032. *
  15033. * @param array $wheres
  15034. * @param array $bindings
  15035. * @return void
  15036. * @static
  15037. */
  15038. public static function mergeWheres($wheres, $bindings)
  15039. {
  15040. /** @var \Illuminate\Database\Query\Builder $instance */
  15041. $instance->mergeWheres($wheres, $bindings);
  15042. }
  15043. /**
  15044. * Prepare the value and operator for a where clause.
  15045. *
  15046. * @param string $value
  15047. * @param string $operator
  15048. * @param bool $useDefault
  15049. * @return array
  15050. * @throws \InvalidArgumentException
  15051. * @static
  15052. */
  15053. public static function prepareValueAndOperator($value, $operator, $useDefault = false)
  15054. {
  15055. /** @var \Illuminate\Database\Query\Builder $instance */
  15056. return $instance->prepareValueAndOperator($value, $operator, $useDefault);
  15057. }
  15058. /**
  15059. * Add a "where" clause comparing two columns to the query.
  15060. *
  15061. * @param string|array $first
  15062. * @param string|null $operator
  15063. * @param string|null $second
  15064. * @param string|null $boolean
  15065. * @return \Illuminate\Database\Query\Builder|static
  15066. * @static
  15067. */
  15068. public static function whereColumn($first, $operator = null, $second = null, $boolean = 'and')
  15069. {
  15070. /** @var \Illuminate\Database\Query\Builder $instance */
  15071. return $instance->whereColumn($first, $operator, $second, $boolean);
  15072. }
  15073. /**
  15074. * Add an "or where" clause comparing two columns to the query.
  15075. *
  15076. * @param string|array $first
  15077. * @param string|null $operator
  15078. * @param string|null $second
  15079. * @return \Illuminate\Database\Query\Builder|static
  15080. * @static
  15081. */
  15082. public static function orWhereColumn($first, $operator = null, $second = null)
  15083. {
  15084. /** @var \Illuminate\Database\Query\Builder $instance */
  15085. return $instance->orWhereColumn($first, $operator, $second);
  15086. }
  15087. /**
  15088. * Add a raw where clause to the query.
  15089. *
  15090. * @param string $sql
  15091. * @param mixed $bindings
  15092. * @param string $boolean
  15093. * @return \Illuminate\Database\Query\Builder
  15094. * @static
  15095. */
  15096. public static function whereRaw($sql, $bindings = [], $boolean = 'and')
  15097. {
  15098. /** @var \Illuminate\Database\Query\Builder $instance */
  15099. return $instance->whereRaw($sql, $bindings, $boolean);
  15100. }
  15101. /**
  15102. * Add a raw or where clause to the query.
  15103. *
  15104. * @param string $sql
  15105. * @param mixed $bindings
  15106. * @return \Illuminate\Database\Query\Builder|static
  15107. * @static
  15108. */
  15109. public static function orWhereRaw($sql, $bindings = [])
  15110. {
  15111. /** @var \Illuminate\Database\Query\Builder $instance */
  15112. return $instance->orWhereRaw($sql, $bindings);
  15113. }
  15114. /**
  15115. * Add a "where in" clause to the query.
  15116. *
  15117. * @param string $column
  15118. * @param mixed $values
  15119. * @param string $boolean
  15120. * @param bool $not
  15121. * @return \Illuminate\Database\Query\Builder
  15122. * @static
  15123. */
  15124. public static function whereIn($column, $values, $boolean = 'and', $not = false)
  15125. {
  15126. /** @var \Illuminate\Database\Query\Builder $instance */
  15127. return $instance->whereIn($column, $values, $boolean, $not);
  15128. }
  15129. /**
  15130. * Add an "or where in" clause to the query.
  15131. *
  15132. * @param string $column
  15133. * @param mixed $values
  15134. * @return \Illuminate\Database\Query\Builder|static
  15135. * @static
  15136. */
  15137. public static function orWhereIn($column, $values)
  15138. {
  15139. /** @var \Illuminate\Database\Query\Builder $instance */
  15140. return $instance->orWhereIn($column, $values);
  15141. }
  15142. /**
  15143. * Add a "where not in" clause to the query.
  15144. *
  15145. * @param string $column
  15146. * @param mixed $values
  15147. * @param string $boolean
  15148. * @return \Illuminate\Database\Query\Builder|static
  15149. * @static
  15150. */
  15151. public static function whereNotIn($column, $values, $boolean = 'and')
  15152. {
  15153. /** @var \Illuminate\Database\Query\Builder $instance */
  15154. return $instance->whereNotIn($column, $values, $boolean);
  15155. }
  15156. /**
  15157. * Add an "or where not in" clause to the query.
  15158. *
  15159. * @param string $column
  15160. * @param mixed $values
  15161. * @return \Illuminate\Database\Query\Builder|static
  15162. * @static
  15163. */
  15164. public static function orWhereNotIn($column, $values)
  15165. {
  15166. /** @var \Illuminate\Database\Query\Builder $instance */
  15167. return $instance->orWhereNotIn($column, $values);
  15168. }
  15169. /**
  15170. * Add a "where null" clause to the query.
  15171. *
  15172. * @param string $column
  15173. * @param string $boolean
  15174. * @param bool $not
  15175. * @return \Illuminate\Database\Query\Builder
  15176. * @static
  15177. */
  15178. public static function whereNull($column, $boolean = 'and', $not = false)
  15179. {
  15180. /** @var \Illuminate\Database\Query\Builder $instance */
  15181. return $instance->whereNull($column, $boolean, $not);
  15182. }
  15183. /**
  15184. * Add an "or where null" clause to the query.
  15185. *
  15186. * @param string $column
  15187. * @return \Illuminate\Database\Query\Builder|static
  15188. * @static
  15189. */
  15190. public static function orWhereNull($column)
  15191. {
  15192. /** @var \Illuminate\Database\Query\Builder $instance */
  15193. return $instance->orWhereNull($column);
  15194. }
  15195. /**
  15196. * Add a "where not null" clause to the query.
  15197. *
  15198. * @param string $column
  15199. * @param string $boolean
  15200. * @return \Illuminate\Database\Query\Builder|static
  15201. * @static
  15202. */
  15203. public static function whereNotNull($column, $boolean = 'and')
  15204. {
  15205. /** @var \Illuminate\Database\Query\Builder $instance */
  15206. return $instance->whereNotNull($column, $boolean);
  15207. }
  15208. /**
  15209. * Add a where between statement to the query.
  15210. *
  15211. * @param string $column
  15212. * @param array $values
  15213. * @param string $boolean
  15214. * @param bool $not
  15215. * @return \Illuminate\Database\Query\Builder
  15216. * @static
  15217. */
  15218. public static function whereBetween($column, $values, $boolean = 'and', $not = false)
  15219. {
  15220. /** @var \Illuminate\Database\Query\Builder $instance */
  15221. return $instance->whereBetween($column, $values, $boolean, $not);
  15222. }
  15223. /**
  15224. * Add an or where between statement to the query.
  15225. *
  15226. * @param string $column
  15227. * @param array $values
  15228. * @return \Illuminate\Database\Query\Builder|static
  15229. * @static
  15230. */
  15231. public static function orWhereBetween($column, $values)
  15232. {
  15233. /** @var \Illuminate\Database\Query\Builder $instance */
  15234. return $instance->orWhereBetween($column, $values);
  15235. }
  15236. /**
  15237. * Add a where not between statement to the query.
  15238. *
  15239. * @param string $column
  15240. * @param array $values
  15241. * @param string $boolean
  15242. * @return \Illuminate\Database\Query\Builder|static
  15243. * @static
  15244. */
  15245. public static function whereNotBetween($column, $values, $boolean = 'and')
  15246. {
  15247. /** @var \Illuminate\Database\Query\Builder $instance */
  15248. return $instance->whereNotBetween($column, $values, $boolean);
  15249. }
  15250. /**
  15251. * Add an or where not between statement to the query.
  15252. *
  15253. * @param string $column
  15254. * @param array $values
  15255. * @return \Illuminate\Database\Query\Builder|static
  15256. * @static
  15257. */
  15258. public static function orWhereNotBetween($column, $values)
  15259. {
  15260. /** @var \Illuminate\Database\Query\Builder $instance */
  15261. return $instance->orWhereNotBetween($column, $values);
  15262. }
  15263. /**
  15264. * Add an "or where not null" clause to the query.
  15265. *
  15266. * @param string $column
  15267. * @return \Illuminate\Database\Query\Builder|static
  15268. * @static
  15269. */
  15270. public static function orWhereNotNull($column)
  15271. {
  15272. /** @var \Illuminate\Database\Query\Builder $instance */
  15273. return $instance->orWhereNotNull($column);
  15274. }
  15275. /**
  15276. * Add a "where date" statement to the query.
  15277. *
  15278. * @param string $column
  15279. * @param string $operator
  15280. * @param mixed $value
  15281. * @param string $boolean
  15282. * @return \Illuminate\Database\Query\Builder|static
  15283. * @static
  15284. */
  15285. public static function whereDate($column, $operator, $value = null, $boolean = 'and')
  15286. {
  15287. /** @var \Illuminate\Database\Query\Builder $instance */
  15288. return $instance->whereDate($column, $operator, $value, $boolean);
  15289. }
  15290. /**
  15291. * Add an "or where date" statement to the query.
  15292. *
  15293. * @param string $column
  15294. * @param string $operator
  15295. * @param string $value
  15296. * @return \Illuminate\Database\Query\Builder|static
  15297. * @static
  15298. */
  15299. public static function orWhereDate($column, $operator, $value)
  15300. {
  15301. /** @var \Illuminate\Database\Query\Builder $instance */
  15302. return $instance->orWhereDate($column, $operator, $value);
  15303. }
  15304. /**
  15305. * Add a "where time" statement to the query.
  15306. *
  15307. * @param string $column
  15308. * @param string $operator
  15309. * @param int $value
  15310. * @param string $boolean
  15311. * @return \Illuminate\Database\Query\Builder|static
  15312. * @static
  15313. */
  15314. public static function whereTime($column, $operator, $value, $boolean = 'and')
  15315. {
  15316. /** @var \Illuminate\Database\Query\Builder $instance */
  15317. return $instance->whereTime($column, $operator, $value, $boolean);
  15318. }
  15319. /**
  15320. * Add an "or where time" statement to the query.
  15321. *
  15322. * @param string $column
  15323. * @param string $operator
  15324. * @param int $value
  15325. * @return \Illuminate\Database\Query\Builder|static
  15326. * @static
  15327. */
  15328. public static function orWhereTime($column, $operator, $value)
  15329. {
  15330. /** @var \Illuminate\Database\Query\Builder $instance */
  15331. return $instance->orWhereTime($column, $operator, $value);
  15332. }
  15333. /**
  15334. * Add a "where day" statement to the query.
  15335. *
  15336. * @param string $column
  15337. * @param string $operator
  15338. * @param mixed $value
  15339. * @param string $boolean
  15340. * @return \Illuminate\Database\Query\Builder|static
  15341. * @static
  15342. */
  15343. public static function whereDay($column, $operator, $value = null, $boolean = 'and')
  15344. {
  15345. /** @var \Illuminate\Database\Query\Builder $instance */
  15346. return $instance->whereDay($column, $operator, $value, $boolean);
  15347. }
  15348. /**
  15349. * Add a "where month" statement to the query.
  15350. *
  15351. * @param string $column
  15352. * @param string $operator
  15353. * @param mixed $value
  15354. * @param string $boolean
  15355. * @return \Illuminate\Database\Query\Builder|static
  15356. * @static
  15357. */
  15358. public static function whereMonth($column, $operator, $value = null, $boolean = 'and')
  15359. {
  15360. /** @var \Illuminate\Database\Query\Builder $instance */
  15361. return $instance->whereMonth($column, $operator, $value, $boolean);
  15362. }
  15363. /**
  15364. * Add a "where year" statement to the query.
  15365. *
  15366. * @param string $column
  15367. * @param string $operator
  15368. * @param mixed $value
  15369. * @param string $boolean
  15370. * @return \Illuminate\Database\Query\Builder|static
  15371. * @static
  15372. */
  15373. public static function whereYear($column, $operator, $value = null, $boolean = 'and')
  15374. {
  15375. /** @var \Illuminate\Database\Query\Builder $instance */
  15376. return $instance->whereYear($column, $operator, $value, $boolean);
  15377. }
  15378. /**
  15379. * Add a nested where statement to the query.
  15380. *
  15381. * @param \Closure $callback
  15382. * @param string $boolean
  15383. * @return \Illuminate\Database\Query\Builder|static
  15384. * @static
  15385. */
  15386. public static function whereNested($callback, $boolean = 'and')
  15387. {
  15388. /** @var \Illuminate\Database\Query\Builder $instance */
  15389. return $instance->whereNested($callback, $boolean);
  15390. }
  15391. /**
  15392. * Create a new query instance for nested where condition.
  15393. *
  15394. * @return \Illuminate\Database\Query\Builder
  15395. * @static
  15396. */
  15397. public static function forNestedWhere()
  15398. {
  15399. /** @var \Illuminate\Database\Query\Builder $instance */
  15400. return $instance->forNestedWhere();
  15401. }
  15402. /**
  15403. * Add another query builder as a nested where to the query builder.
  15404. *
  15405. * @param \Illuminate\Database\Query\Builder|static $query
  15406. * @param string $boolean
  15407. * @return \Illuminate\Database\Query\Builder
  15408. * @static
  15409. */
  15410. public static function addNestedWhereQuery($query, $boolean = 'and')
  15411. {
  15412. /** @var \Illuminate\Database\Query\Builder $instance */
  15413. return $instance->addNestedWhereQuery($query, $boolean);
  15414. }
  15415. /**
  15416. * Add an exists clause to the query.
  15417. *
  15418. * @param \Closure $callback
  15419. * @param string $boolean
  15420. * @param bool $not
  15421. * @return \Illuminate\Database\Query\Builder
  15422. * @static
  15423. */
  15424. public static function whereExists($callback, $boolean = 'and', $not = false)
  15425. {
  15426. /** @var \Illuminate\Database\Query\Builder $instance */
  15427. return $instance->whereExists($callback, $boolean, $not);
  15428. }
  15429. /**
  15430. * Add an or exists clause to the query.
  15431. *
  15432. * @param \Closure $callback
  15433. * @param bool $not
  15434. * @return \Illuminate\Database\Query\Builder|static
  15435. * @static
  15436. */
  15437. public static function orWhereExists($callback, $not = false)
  15438. {
  15439. /** @var \Illuminate\Database\Query\Builder $instance */
  15440. return $instance->orWhereExists($callback, $not);
  15441. }
  15442. /**
  15443. * Add a where not exists clause to the query.
  15444. *
  15445. * @param \Closure $callback
  15446. * @param string $boolean
  15447. * @return \Illuminate\Database\Query\Builder|static
  15448. * @static
  15449. */
  15450. public static function whereNotExists($callback, $boolean = 'and')
  15451. {
  15452. /** @var \Illuminate\Database\Query\Builder $instance */
  15453. return $instance->whereNotExists($callback, $boolean);
  15454. }
  15455. /**
  15456. * Add a where not exists clause to the query.
  15457. *
  15458. * @param \Closure $callback
  15459. * @return \Illuminate\Database\Query\Builder|static
  15460. * @static
  15461. */
  15462. public static function orWhereNotExists($callback)
  15463. {
  15464. /** @var \Illuminate\Database\Query\Builder $instance */
  15465. return $instance->orWhereNotExists($callback);
  15466. }
  15467. /**
  15468. * Add an exists clause to the query.
  15469. *
  15470. * @param \Illuminate\Database\Query\Builder $query
  15471. * @param string $boolean
  15472. * @param bool $not
  15473. * @return \Illuminate\Database\Query\Builder
  15474. * @static
  15475. */
  15476. public static function addWhereExistsQuery($query, $boolean = 'and', $not = false)
  15477. {
  15478. /** @var \Illuminate\Database\Query\Builder $instance */
  15479. return $instance->addWhereExistsQuery($query, $boolean, $not);
  15480. }
  15481. /**
  15482. * Handles dynamic "where" clauses to the query.
  15483. *
  15484. * @param string $method
  15485. * @param string $parameters
  15486. * @return \Illuminate\Database\Query\Builder
  15487. * @static
  15488. */
  15489. public static function dynamicWhere($method, $parameters)
  15490. {
  15491. /** @var \Illuminate\Database\Query\Builder $instance */
  15492. return $instance->dynamicWhere($method, $parameters);
  15493. }
  15494. /**
  15495. * Add a "group by" clause to the query.
  15496. *
  15497. * @param array $groups
  15498. * @return \Illuminate\Database\Query\Builder
  15499. * @static
  15500. */
  15501. public static function groupBy(...$groups)
  15502. {
  15503. /** @var \Illuminate\Database\Query\Builder $instance */
  15504. return $instance->groupBy(...$groups);
  15505. }
  15506. /**
  15507. * Add a "having" clause to the query.
  15508. *
  15509. * @param string $column
  15510. * @param string|null $operator
  15511. * @param string|null $value
  15512. * @param string $boolean
  15513. * @return \Illuminate\Database\Query\Builder
  15514. * @static
  15515. */
  15516. public static function having($column, $operator = null, $value = null, $boolean = 'and')
  15517. {
  15518. /** @var \Illuminate\Database\Query\Builder $instance */
  15519. return $instance->having($column, $operator, $value, $boolean);
  15520. }
  15521. /**
  15522. * Add a "or having" clause to the query.
  15523. *
  15524. * @param string $column
  15525. * @param string|null $operator
  15526. * @param string|null $value
  15527. * @return \Illuminate\Database\Query\Builder|static
  15528. * @static
  15529. */
  15530. public static function orHaving($column, $operator = null, $value = null)
  15531. {
  15532. /** @var \Illuminate\Database\Query\Builder $instance */
  15533. return $instance->orHaving($column, $operator, $value);
  15534. }
  15535. /**
  15536. * Add a raw having clause to the query.
  15537. *
  15538. * @param string $sql
  15539. * @param array $bindings
  15540. * @param string $boolean
  15541. * @return \Illuminate\Database\Query\Builder
  15542. * @static
  15543. */
  15544. public static function havingRaw($sql, $bindings = [], $boolean = 'and')
  15545. {
  15546. /** @var \Illuminate\Database\Query\Builder $instance */
  15547. return $instance->havingRaw($sql, $bindings, $boolean);
  15548. }
  15549. /**
  15550. * Add a raw or having clause to the query.
  15551. *
  15552. * @param string $sql
  15553. * @param array $bindings
  15554. * @return \Illuminate\Database\Query\Builder|static
  15555. * @static
  15556. */
  15557. public static function orHavingRaw($sql, $bindings = [])
  15558. {
  15559. /** @var \Illuminate\Database\Query\Builder $instance */
  15560. return $instance->orHavingRaw($sql, $bindings);
  15561. }
  15562. /**
  15563. * Add an "order by" clause to the query.
  15564. *
  15565. * @param string $column
  15566. * @param string $direction
  15567. * @return \Illuminate\Database\Query\Builder
  15568. * @static
  15569. */
  15570. public static function orderBy($column, $direction = 'asc')
  15571. {
  15572. /** @var \Illuminate\Database\Query\Builder $instance */
  15573. return $instance->orderBy($column, $direction);
  15574. }
  15575. /**
  15576. * Add a descending "order by" clause to the query.
  15577. *
  15578. * @param string $column
  15579. * @return \Illuminate\Database\Query\Builder
  15580. * @static
  15581. */
  15582. public static function orderByDesc($column)
  15583. {
  15584. /** @var \Illuminate\Database\Query\Builder $instance */
  15585. return $instance->orderByDesc($column);
  15586. }
  15587. /**
  15588. * Add an "order by" clause for a timestamp to the query.
  15589. *
  15590. * @param string $column
  15591. * @return \Illuminate\Database\Query\Builder|static
  15592. * @static
  15593. */
  15594. public static function latest($column = 'created_at')
  15595. {
  15596. /** @var \Illuminate\Database\Query\Builder $instance */
  15597. return $instance->latest($column);
  15598. }
  15599. /**
  15600. * Add an "order by" clause for a timestamp to the query.
  15601. *
  15602. * @param string $column
  15603. * @return \Illuminate\Database\Query\Builder|static
  15604. * @static
  15605. */
  15606. public static function oldest($column = 'created_at')
  15607. {
  15608. /** @var \Illuminate\Database\Query\Builder $instance */
  15609. return $instance->oldest($column);
  15610. }
  15611. /**
  15612. * Put the query's results in random order.
  15613. *
  15614. * @param string $seed
  15615. * @return \Illuminate\Database\Query\Builder
  15616. * @static
  15617. */
  15618. public static function inRandomOrder($seed = '')
  15619. {
  15620. /** @var \Illuminate\Database\Query\Builder $instance */
  15621. return $instance->inRandomOrder($seed);
  15622. }
  15623. /**
  15624. * Add a raw "order by" clause to the query.
  15625. *
  15626. * @param string $sql
  15627. * @param array $bindings
  15628. * @return \Illuminate\Database\Query\Builder
  15629. * @static
  15630. */
  15631. public static function orderByRaw($sql, $bindings = [])
  15632. {
  15633. /** @var \Illuminate\Database\Query\Builder $instance */
  15634. return $instance->orderByRaw($sql, $bindings);
  15635. }
  15636. /**
  15637. * Alias to set the "offset" value of the query.
  15638. *
  15639. * @param int $value
  15640. * @return \Illuminate\Database\Query\Builder|static
  15641. * @static
  15642. */
  15643. public static function skip($value)
  15644. {
  15645. /** @var \Illuminate\Database\Query\Builder $instance */
  15646. return $instance->skip($value);
  15647. }
  15648. /**
  15649. * Set the "offset" value of the query.
  15650. *
  15651. * @param int $value
  15652. * @return \Illuminate\Database\Query\Builder
  15653. * @static
  15654. */
  15655. public static function offset($value)
  15656. {
  15657. /** @var \Illuminate\Database\Query\Builder $instance */
  15658. return $instance->offset($value);
  15659. }
  15660. /**
  15661. * Alias to set the "limit" value of the query.
  15662. *
  15663. * @param int $value
  15664. * @return \Illuminate\Database\Query\Builder|static
  15665. * @static
  15666. */
  15667. public static function take($value)
  15668. {
  15669. /** @var \Illuminate\Database\Query\Builder $instance */
  15670. return $instance->take($value);
  15671. }
  15672. /**
  15673. * Set the "limit" value of the query.
  15674. *
  15675. * @param int $value
  15676. * @return \Illuminate\Database\Query\Builder
  15677. * @static
  15678. */
  15679. public static function limit($value)
  15680. {
  15681. /** @var \Illuminate\Database\Query\Builder $instance */
  15682. return $instance->limit($value);
  15683. }
  15684. /**
  15685. * Set the limit and offset for a given page.
  15686. *
  15687. * @param int $page
  15688. * @param int $perPage
  15689. * @return \Illuminate\Database\Query\Builder|static
  15690. * @static
  15691. */
  15692. public static function forPage($page, $perPage = 15)
  15693. {
  15694. /** @var \Illuminate\Database\Query\Builder $instance */
  15695. return $instance->forPage($page, $perPage);
  15696. }
  15697. /**
  15698. * Constrain the query to the next "page" of results after a given ID.
  15699. *
  15700. * @param int $perPage
  15701. * @param int $lastId
  15702. * @param string $column
  15703. * @return \Illuminate\Database\Query\Builder|static
  15704. * @static
  15705. */
  15706. public static function forPageAfterId($perPage = 15, $lastId = 0, $column = 'id')
  15707. {
  15708. /** @var \Illuminate\Database\Query\Builder $instance */
  15709. return $instance->forPageAfterId($perPage, $lastId, $column);
  15710. }
  15711. /**
  15712. * Add a union statement to the query.
  15713. *
  15714. * @param \Illuminate\Database\Query\Builder|\Closure $query
  15715. * @param bool $all
  15716. * @return \Illuminate\Database\Query\Builder|static
  15717. * @static
  15718. */
  15719. public static function union($query, $all = false)
  15720. {
  15721. /** @var \Illuminate\Database\Query\Builder $instance */
  15722. return $instance->union($query, $all);
  15723. }
  15724. /**
  15725. * Add a union all statement to the query.
  15726. *
  15727. * @param \Illuminate\Database\Query\Builder|\Closure $query
  15728. * @return \Illuminate\Database\Query\Builder|static
  15729. * @static
  15730. */
  15731. public static function unionAll($query)
  15732. {
  15733. /** @var \Illuminate\Database\Query\Builder $instance */
  15734. return $instance->unionAll($query);
  15735. }
  15736. /**
  15737. * Lock the selected rows in the table.
  15738. *
  15739. * @param string|bool $value
  15740. * @return \Illuminate\Database\Query\Builder
  15741. * @static
  15742. */
  15743. public static function lock($value = true)
  15744. {
  15745. /** @var \Illuminate\Database\Query\Builder $instance */
  15746. return $instance->lock($value);
  15747. }
  15748. /**
  15749. * Lock the selected rows in the table for updating.
  15750. *
  15751. * @return \Illuminate\Database\Query\Builder
  15752. * @static
  15753. */
  15754. public static function lockForUpdate()
  15755. {
  15756. /** @var \Illuminate\Database\Query\Builder $instance */
  15757. return $instance->lockForUpdate();
  15758. }
  15759. /**
  15760. * Share lock the selected rows in the table.
  15761. *
  15762. * @return \Illuminate\Database\Query\Builder
  15763. * @static
  15764. */
  15765. public static function sharedLock()
  15766. {
  15767. /** @var \Illuminate\Database\Query\Builder $instance */
  15768. return $instance->sharedLock();
  15769. }
  15770. /**
  15771. * Get the SQL representation of the query.
  15772. *
  15773. * @return string
  15774. * @static
  15775. */
  15776. public static function toSql()
  15777. {
  15778. /** @var \Illuminate\Database\Query\Builder $instance */
  15779. return $instance->toSql();
  15780. }
  15781. /**
  15782. * Get the count of the total records for the paginator.
  15783. *
  15784. * @param array $columns
  15785. * @return int
  15786. * @static
  15787. */
  15788. public static function getCountForPagination($columns = [])
  15789. {
  15790. /** @var \Illuminate\Database\Query\Builder $instance */
  15791. return $instance->getCountForPagination($columns);
  15792. }
  15793. /**
  15794. * Concatenate values of a given column as a string.
  15795. *
  15796. * @param string $column
  15797. * @param string $glue
  15798. * @return string
  15799. * @static
  15800. */
  15801. public static function implode($column, $glue = '')
  15802. {
  15803. /** @var \Illuminate\Database\Query\Builder $instance */
  15804. return $instance->implode($column, $glue);
  15805. }
  15806. /**
  15807. * Determine if any rows exist for the current query.
  15808. *
  15809. * @return bool
  15810. * @static
  15811. */
  15812. public static function exists()
  15813. {
  15814. /** @var \Illuminate\Database\Query\Builder $instance */
  15815. return $instance->exists();
  15816. }
  15817. /**
  15818. * Determine if no rows exist for the current query.
  15819. *
  15820. * @return bool
  15821. * @static
  15822. */
  15823. public static function doesntExist()
  15824. {
  15825. /** @var \Illuminate\Database\Query\Builder $instance */
  15826. return $instance->doesntExist();
  15827. }
  15828. /**
  15829. * Retrieve the "count" result of the query.
  15830. *
  15831. * @param string $columns
  15832. * @return int
  15833. * @static
  15834. */
  15835. public static function count($columns = '*')
  15836. {
  15837. /** @var \Illuminate\Database\Query\Builder $instance */
  15838. return $instance->count($columns);
  15839. }
  15840. /**
  15841. * Retrieve the minimum value of a given column.
  15842. *
  15843. * @param string $column
  15844. * @return mixed
  15845. * @static
  15846. */
  15847. public static function min($column)
  15848. {
  15849. /** @var \Illuminate\Database\Query\Builder $instance */
  15850. return $instance->min($column);
  15851. }
  15852. /**
  15853. * Retrieve the maximum value of a given column.
  15854. *
  15855. * @param string $column
  15856. * @return mixed
  15857. * @static
  15858. */
  15859. public static function max($column)
  15860. {
  15861. /** @var \Illuminate\Database\Query\Builder $instance */
  15862. return $instance->max($column);
  15863. }
  15864. /**
  15865. * Retrieve the sum of the values of a given column.
  15866. *
  15867. * @param string $column
  15868. * @return mixed
  15869. * @static
  15870. */
  15871. public static function sum($column)
  15872. {
  15873. /** @var \Illuminate\Database\Query\Builder $instance */
  15874. return $instance->sum($column);
  15875. }
  15876. /**
  15877. * Retrieve the average of the values of a given column.
  15878. *
  15879. * @param string $column
  15880. * @return mixed
  15881. * @static
  15882. */
  15883. public static function avg($column)
  15884. {
  15885. /** @var \Illuminate\Database\Query\Builder $instance */
  15886. return $instance->avg($column);
  15887. }
  15888. /**
  15889. * Alias for the "avg" method.
  15890. *
  15891. * @param string $column
  15892. * @return mixed
  15893. * @static
  15894. */
  15895. public static function average($column)
  15896. {
  15897. /** @var \Illuminate\Database\Query\Builder $instance */
  15898. return $instance->average($column);
  15899. }
  15900. /**
  15901. * Execute an aggregate function on the database.
  15902. *
  15903. * @param string $function
  15904. * @param array $columns
  15905. * @return mixed
  15906. * @static
  15907. */
  15908. public static function aggregate($function, $columns = [])
  15909. {
  15910. /** @var \Illuminate\Database\Query\Builder $instance */
  15911. return $instance->aggregate($function, $columns);
  15912. }
  15913. /**
  15914. * Execute a numeric aggregate function on the database.
  15915. *
  15916. * @param string $function
  15917. * @param array $columns
  15918. * @return float|int
  15919. * @static
  15920. */
  15921. public static function numericAggregate($function, $columns = [])
  15922. {
  15923. /** @var \Illuminate\Database\Query\Builder $instance */
  15924. return $instance->numericAggregate($function, $columns);
  15925. }
  15926. /**
  15927. * Insert a new record into the database.
  15928. *
  15929. * @param array $values
  15930. * @return bool
  15931. * @static
  15932. */
  15933. public static function insert($values)
  15934. {
  15935. /** @var \Illuminate\Database\Query\Builder $instance */
  15936. return $instance->insert($values);
  15937. }
  15938. /**
  15939. * Insert a new record and get the value of the primary key.
  15940. *
  15941. * @param array $values
  15942. * @param string|null $sequence
  15943. * @return int
  15944. * @static
  15945. */
  15946. public static function insertGetId($values, $sequence = null)
  15947. {
  15948. /** @var \Illuminate\Database\Query\Builder $instance */
  15949. return $instance->insertGetId($values, $sequence);
  15950. }
  15951. /**
  15952. * Insert or update a record matching the attributes, and fill it with values.
  15953. *
  15954. * @param array $attributes
  15955. * @param array $values
  15956. * @return bool
  15957. * @static
  15958. */
  15959. public static function updateOrInsert($attributes, $values = [])
  15960. {
  15961. /** @var \Illuminate\Database\Query\Builder $instance */
  15962. return $instance->updateOrInsert($attributes, $values);
  15963. }
  15964. /**
  15965. * Run a truncate statement on the table.
  15966. *
  15967. * @return void
  15968. * @static
  15969. */
  15970. public static function truncate()
  15971. {
  15972. /** @var \Illuminate\Database\Query\Builder $instance */
  15973. $instance->truncate();
  15974. }
  15975. /**
  15976. * Create a raw database expression.
  15977. *
  15978. * @param mixed $value
  15979. * @return \Illuminate\Database\Query\Expression
  15980. * @static
  15981. */
  15982. public static function raw($value)
  15983. {
  15984. /** @var \Illuminate\Database\Query\Builder $instance */
  15985. return $instance->raw($value);
  15986. }
  15987. /**
  15988. * Get the current query value bindings in a flattened array.
  15989. *
  15990. * @return array
  15991. * @static
  15992. */
  15993. public static function getBindings()
  15994. {
  15995. /** @var \Illuminate\Database\Query\Builder $instance */
  15996. return $instance->getBindings();
  15997. }
  15998. /**
  15999. * Get the raw array of bindings.
  16000. *
  16001. * @return array
  16002. * @static
  16003. */
  16004. public static function getRawBindings()
  16005. {
  16006. /** @var \Illuminate\Database\Query\Builder $instance */
  16007. return $instance->getRawBindings();
  16008. }
  16009. /**
  16010. * Set the bindings on the query builder.
  16011. *
  16012. * @param array $bindings
  16013. * @param string $type
  16014. * @return \Illuminate\Database\Query\Builder
  16015. * @throws \InvalidArgumentException
  16016. * @static
  16017. */
  16018. public static function setBindings($bindings, $type = 'where')
  16019. {
  16020. /** @var \Illuminate\Database\Query\Builder $instance */
  16021. return $instance->setBindings($bindings, $type);
  16022. }
  16023. /**
  16024. * Add a binding to the query.
  16025. *
  16026. * @param mixed $value
  16027. * @param string $type
  16028. * @return \Illuminate\Database\Query\Builder
  16029. * @throws \InvalidArgumentException
  16030. * @static
  16031. */
  16032. public static function addBinding($value, $type = 'where')
  16033. {
  16034. /** @var \Illuminate\Database\Query\Builder $instance */
  16035. return $instance->addBinding($value, $type);
  16036. }
  16037. /**
  16038. * Merge an array of bindings into our bindings.
  16039. *
  16040. * @param \Illuminate\Database\Query\Builder $query
  16041. * @return \Illuminate\Database\Query\Builder
  16042. * @static
  16043. */
  16044. public static function mergeBindings($query)
  16045. {
  16046. /** @var \Illuminate\Database\Query\Builder $instance */
  16047. return $instance->mergeBindings($query);
  16048. }
  16049. /**
  16050. * Get the database query processor instance.
  16051. *
  16052. * @return \Illuminate\Database\Query\Processors\Processor
  16053. * @static
  16054. */
  16055. public static function getProcessor()
  16056. {
  16057. /** @var \Illuminate\Database\Query\Builder $instance */
  16058. return $instance->getProcessor();
  16059. }
  16060. /**
  16061. * Get the query grammar instance.
  16062. *
  16063. * @return \Illuminate\Database\Query\Grammars\Grammar
  16064. * @static
  16065. */
  16066. public static function getGrammar()
  16067. {
  16068. /** @var \Illuminate\Database\Query\Builder $instance */
  16069. return $instance->getGrammar();
  16070. }
  16071. /**
  16072. * Use the write pdo for query.
  16073. *
  16074. * @return \Illuminate\Database\Query\Builder
  16075. * @static
  16076. */
  16077. public static function useWritePdo()
  16078. {
  16079. /** @var \Illuminate\Database\Query\Builder $instance */
  16080. return $instance->useWritePdo();
  16081. }
  16082. /**
  16083. * Clone the query without the given properties.
  16084. *
  16085. * @param array $properties
  16086. * @return static
  16087. * @static
  16088. */
  16089. public static function cloneWithout($properties)
  16090. {
  16091. /** @var \Illuminate\Database\Query\Builder $instance */
  16092. return $instance->cloneWithout($properties);
  16093. }
  16094. /**
  16095. * Clone the query without the given bindings.
  16096. *
  16097. * @param array $except
  16098. * @return static
  16099. * @static
  16100. */
  16101. public static function cloneWithoutBindings($except)
  16102. {
  16103. /** @var \Illuminate\Database\Query\Builder $instance */
  16104. return $instance->cloneWithoutBindings($except);
  16105. }
  16106. /**
  16107. * Register a custom macro.
  16108. *
  16109. * @param string $name
  16110. * @param object|callable $macro
  16111. * @return void
  16112. * @static
  16113. */
  16114. public static function macro($name, $macro)
  16115. {
  16116. \Illuminate\Database\Query\Builder::macro($name, $macro);
  16117. }
  16118. /**
  16119. * Mix another object into the class.
  16120. *
  16121. * @param object $mixin
  16122. * @return void
  16123. * @static
  16124. */
  16125. public static function mixin($mixin)
  16126. {
  16127. \Illuminate\Database\Query\Builder::mixin($mixin);
  16128. }
  16129. /**
  16130. * Checks if macro is registered.
  16131. *
  16132. * @param string $name
  16133. * @return bool
  16134. * @static
  16135. */
  16136. public static function hasMacro($name)
  16137. {
  16138. return \Illuminate\Database\Query\Builder::hasMacro($name);
  16139. }
  16140. /**
  16141. * Dynamically handle calls to the class.
  16142. *
  16143. * @param string $method
  16144. * @param array $parameters
  16145. * @return mixed
  16146. * @throws \BadMethodCallException
  16147. * @static
  16148. */
  16149. public static function macroCall($method, $parameters)
  16150. {
  16151. /** @var \Illuminate\Database\Query\Builder $instance */
  16152. return $instance->macroCall($method, $parameters);
  16153. }
  16154. }
  16155. class Event extends \Illuminate\Support\Facades\Event {}
  16156. class File extends \Illuminate\Support\Facades\File {}
  16157. class Gate extends \Illuminate\Support\Facades\Gate {}
  16158. class Hash extends \Illuminate\Support\Facades\Hash {}
  16159. class Lang extends \Illuminate\Support\Facades\Lang {}
  16160. class Log extends \Illuminate\Support\Facades\Log {}
  16161. class Mail extends \Illuminate\Support\Facades\Mail {}
  16162. class Notification extends \Illuminate\Support\Facades\Notification {}
  16163. class Password extends \Illuminate\Support\Facades\Password {}
  16164. class Queue extends \Illuminate\Support\Facades\Queue {}
  16165. class Redirect extends \Illuminate\Support\Facades\Redirect {}
  16166. class Redis extends \Illuminate\Support\Facades\Redis {}
  16167. class Request extends \Illuminate\Support\Facades\Request {}
  16168. class Response extends \Illuminate\Support\Facades\Response {}
  16169. class Route extends \Illuminate\Support\Facades\Route {}
  16170. class Schema extends \Illuminate\Support\Facades\Schema {}
  16171. class Session extends \Illuminate\Support\Facades\Session {}
  16172. class Storage extends \Illuminate\Support\Facades\Storage {}
  16173. class URL extends \Illuminate\Support\Facades\URL {}
  16174. class Validator extends \Illuminate\Support\Facades\Validator {}
  16175. class View extends \Illuminate\Support\Facades\View {}
  16176. class Excel extends \Maatwebsite\Excel\Facades\Excel {}
  16177. class API extends \Dingo\Api\Facade\API {}
  16178. class JWTAuth extends \Tymon\JWTAuth\Facades\JWTAuth {}
  16179. class JWTFactory extends \Tymon\JWTAuth\Facades\JWTFactory {}
  16180. class LogViewer extends \Arcanedev\LogViewer\Facades\LogViewer {}
  16181. }